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
| def create_result | |
| xml ||= open("https://s3.amazonaws.com/bionuclear/154948_Tabla1.xml") | |
| document = Nokogiri::XML(xml) | |
| articles = document.css('ARTICULOS') | |
| # return nil if the user does not exist | |
| user_e = User.find_by(:email => result.email) |
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
| vendor/bundle/ruby/2.0.0/gems/thin-1.6.1/lib/thin/connection.rb:55:in `process' | |
| 2014-02-03T15:58:10.965430+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call' | |
| 2014-02-03T15:58:10.965430+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call' | |
| 2014-02-03T15:58:10.965593+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/thin-1.6.1/lib/thin/connection.rb:80:in `pre_process' | |
| 2014-02-03T15:58:10.964964+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>' | |
| 2014-02-03T15:58:10.964964+00:00 app[web.1]: bin/rails:4:in `require' | |
| 2014-02-03T15:58:10.964964+00:00 app[web.1]: bin/rails:4:in `<main>' | |
| 2014-02-03T15:58:10.967022+00:00 heroku[router]: at=info method=GET path=/assets/glyphicons-halflings.png host=cmpc-lab-v2.herokuapp.com request_id=b5fbb5ef-c07d-440f-b64e-89a4ae10618e fwd="190.166.175.131" dyno=web.1 connect=2ms service=7ms status=404 bytes=1351 | |
| 2014-02-03T |
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
| http://cmpc-lab-v1.herokuapp.com//users/confirmation?confirmation_token=azLuZLJmZ1iNyK7Ty83L |
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
| def self.generate_from_xml | |
| xml = open("https://s3.amazonaws.com/bionuclear/154948_Tabla2.xml") | |
| document = Nokogiri::XML(xml) | |
| articles = document.css('ARTICULOS') | |
| articles.each do |result| | |
| email = result.css('email').first.content | |
| patient = result.css('nombre_paciente').first.content | |
| age = result.css('edad').first.content | |
| insurance_plan = result.css('Aseguradora').first.content |
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 'open-uri' | |
| task :result do | |
| xml = open("https://s3.amazonaws.com/bionuclear/154948_Tabla2.xml") | |
| document = Nokogiri::XML(xml) | |
| articles = document.css('ARTICULOS') | |
| articles.each do |result| | |
| email = result.css('email').first.content |
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
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/app/controllers/qbwc_controller.rb:2:in `<class:QbwcController>' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/app/controllers/qbwc_controller.rb:1:in `<top (required)>' | |
| /tmp/build_7b69cfa9-6720-4cc2-a6e8-b3d132abdb86/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `requ |
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
| <?xml version="1.0"?> | |
| <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" | |
| xmlns:o="urn:schemas-microsoft-com:office:office" | |
| xmlns:x="urn:schemas-microsoft-com:office:excel" | |
| xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" | |
| xmlns:html="http://www.w3.org/TR/REC-html40"> | |
| <Worksheet ss:Name="Sheet1"> | |
| <Table> | |
| <Row> | |
| <Cell><Data ss:Type="String">Línea</Data></Cell> |
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
| 2014-03-12T20:49:39.045886+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_1158' | |
| 2014-03-12T20:49:39.045886+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:326:in `around' | |
| 2014-03-12T20:49:39.046130+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:310:in `_callback_around_393' | |
| 2014-03-12T20:49:39.046130+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_1158' | |
| 2014-03-12T20:49:39.046130+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:502:in `_run__1206341770347423023__process_action__1353693459091259579__callbacks' | |
| 2014-03-12T20:49:39.046130+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_act |
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
| 2014-04-21T19:42:27.219125+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' | |
| 2014-04-21T19:42:27.219451+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' | |
| 2014-04-21T19:42:27.219451+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render' | |
| 2014-04-21T19:42:27.219451+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/refinerycms-pages-2.1.0/lib/refinery/pages/instance_methods.rb:32:in `render_with_presenters' | |
| 2014-04-21T19:42:27.219451+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action' | |
| 2014-04-21T19:42:27.219451+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:514:in `block in _run__1811436951999047141__process_action__4 |
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 'open-uri' | |
| task :result => :environment do | |
| xml = open("https://s3.amazonaws.com/bionuclear/154948_Tabla3.xml") | |
| document = Nokogiri::XML(xml) | |
| articles = document.css('ARTICULOS') | |
| articles.each do |result| | |
| email = result.css('email').first.content |
OlderNewer