This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace :calc_ceps do | |
| desc "Calcular o redespacho dos correios do cliente específico" | |
| task all_ceps: :environment do | |
| customer = Customer.find_by(api_key:"c0414dadf7d5db207f1188e8e6c53ea3302dc1bb") | |
| current_admin_user = AdminUser.find_by(email:"vagner@envixo.com") | |
| ##binding.pry | |
| book = Spreadsheet::Workbook.new | |
| # Define the sheet name | |
| @product = Product.find_by_name("PAC") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Administration::ContractsController < Administration::BaseController | |
| def new | |
| @company = Company.find(params[:company_id]) | |
| @contract = Contract.new | |
| @contract.distance_fees.build | |
| @contract.contract_authorizations.build | |
| @contract.initial_charge = current_admin_user.levoo_unit.present? ? current_admin_user.levoo_unit.setting.initial_charge : Setting.first.initial_charge | |
| @contract.extra_mileage_threshold = current_admin_user.levoo_unit.present? ? current_admin_user.levoo_unit.setting.extra_mileage_threshold : Setting.first.extra_mileage_threshold | |
| @contract.extra_mileage_value = current_admin_user.levoo_unit.present? ? current_admin_user.levoo_unit.setting.extra_mileage_value : Setting.first.extra_mileage_value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sidekiq/api' | |
| Sidekiq::RetrySet.new.clear | |
| Sidekiq::ScheduledSet.new.clear | |
| Sidekiq::Stats.new.reset | |
| Sidekiq::DeadSet.new.clear | |
| stats = Sidekiq::Stats.new | |
| stats.queues.each do |key, value| | |
| queue = Sidekiq::Queue.new(key) | |
| queue.clear | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Started PATCH "/backoffice/clientes/17086" for 127.0.0.1 at 2015-04-27 22:22:28 -0300 | |
| Processing by Backoffice::CustomersController#update as JS | |
| Parameters: {"utf8"=>"✓", "origin"=>"file_fields", "file_field_id"=>"34507", "customer"=>{"dest_nome"=>"ADAISE BORGES ", "dest_cep"=>"34000000", "dest_endereco"=>"RUA F 189 ", "dest_numero"=>"", "dest_complemento"=>"", "dest_bairro"=>"MONTE CASTELO", "dest_cidade"=>"NOVA LIMA", "dest_uf"=>"MG", "obs"=>"", "dest_fone1"=>"(31) 35413846", "dest_fone2"=>"(31) 88746946", "file_fields_attributes"=>{"0"=>{"histories"=>{"phone"=>"3188637619", "reason_id"=>"27", "description"=>"Teste do Patrick.", "reschedule_in(3i)"=>"", "reschedule_in(2i)"=>"", "reschedule_in(1i)"=>"", "reschedule_in(4i)"=>"", "reschedule_in(5i)"=>"", "user_id"=>"60"}, "id"=>"34507"}}}, "commit"=>"Salvar", "id"=>"17086"} | |
| User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 ORDER BY "users"."id" ASC LIMIT 1 | |
| Company Load (0.7ms) SELECT "companies" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module AlertHelper | |
| # Define the necessary css class for each alert | |
| def alert_class_for(flash_type) | |
| case flash_type.to_sym | |
| when :success | |
| "alert-success" | |
| when :error | |
| "alert-danger" | |
| when :alert | |
| "alert-warning" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vaga para trabalho remoto: | |
| Eu preciso de um desenvolvedor Ruby on Rails, com comprometimento e seriedade para trabalho remoto de 8h por dia, para desenvolver um novo projeto. | |
| Conhecimentos necessários: Ruby on Rails 4, PostgreSQL, HAML, SASS, CoffeeScript, RSpec, jQuery, CSS e Javascript. Com capacidade de desenvolver tanto backend como frontend. | |
| Interessados enviar currículo para: patrickespake@gmail.com | |
| Por favor enviar também pretensão salarial e o link para o GitHub pessoal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pessoal, | |
| Estou montando uma startup nova em Niterói/RJ, com uma ideia bem inovadora e promissora. Estou montando uma equipe, preciso de 2 desenvolvedores Ruby on Rails e um designer que saiba codificar HTML e CSS. | |
| A oportunidade inclui moradia em Niterói/RJ. | |
| Interessados enviar currículo com pretensão salarial para: patrickespake@gmail.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source 'https://rubygems.org' | |
| ruby '1.9.3' | |
| gem 'rails', '3.2.11' | |
| gem 'pg', '0.14.0' | |
| gem 'jquery-rails', '2.0.2' | |
| gem 'thin', '1.4.1' | |
| gem 'uuidtools', '2.1.2' | |
| gem 'haml', '3.1.6' | |
| gem 'haml-rails' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIT | |
| remote: git://github.com/mergulhao/integration.git | |
| revision: 1a87c121fe54642823e94758a456d00f20efac40 | |
| specs: | |
| integration (0.0.1) | |
| hpricot | |
| GIT | |
| remote: https://github.com/joliss/jquery-ui-rails | |
| revision: 2b32d52cf26fcf85f28c6c7ed25f952db571de16 |