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.foo { | |
@response[:rates].each_with_index do |rate, rate_idx| | |
xml.send("rate_#{rate_idx+1}") { | |
xml.rate_code rate[:ratecode] | |
xml.base_rate rate[:base_rate] | |
} | |
} |
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
mbp:lib omnix$ jruby -v | |
jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_31) [darwin-x86_64-java] | |
mbp:lib omnix$ echo $JRUBY_OPTS | |
--1.9 | |
mbp:lib omnix$ irb | |
jruby-1.6.5 :001 > require 'securerandom' | |
=> true | |
jruby-1.6.5 :002 > SecureRandom.uuid | |
NoMethodError: undefined method `uuid' for SecureRandom:Class | |
from (irb):2:in `evaluate' |
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
response[:fees] = reservation.reservation_fees.map do |fee| | |
fee.attributes.select { |k,v| %w(name rate quantity amount).include? k }.symbolize_keys | |
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
deployer@pringles:/var/www/reznet_core/current$ RAILS_ENV=production puma | |
/var/www/reznet_core/shared/bundle/jruby/1.9/gems/rack-1.4.1/lib/rack.rb:14 warning: already initialized constant VERSION | |
JopensslService.java:10 warning: already initialized constant PKCS1_PADDING | |
JopensslService.java:10 warning: already initialized constant SSLV23_PADDING | |
JopensslService.java:10 warning: already initialized constant NO_PADDING | |
JopensslService.java:10 warning: already initialized constant PKCS1_OAEP_PADDING | |
JopensslService.java:10 warning: already initialized constant UNIVERSAL_TAG_NAME | |
JopensslService.java:10 warning: already initialized constant EOC | |
JopensslService.java:10 warning: already initialized constant BOOLEAN | |
JopensslService.java:10 warning: already initialized constant INTEGER |
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
Concurrency Level: 10 | |
Time taken for tests: 32.114 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 27416000 bytes | |
HTML transferred: 27056000 bytes | |
Requests per second: 31.14 [#/sec] (mean) | |
Time per request: 321.143 [ms] (mean) | |
Time per request: 32.114 [ms] (mean, across all concurrent requests) |
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
deployer@pringles:~$ rvm install jruby-1.7 | |
jruby-1.7 - #fetching | |
jruby-1.7 - #downloading jruby-bin-1.7, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
curl: (22) The requested URL returned error: 404 | |
The requested url does not exist: 'http://jruby.org.s3.amazonaws.com/downloads/1.7/jruby-bin-1.7.tar.gz' | |
Trying ftp:// URL instead. | |
% Total % Received % Xferd Average Speed Time Time Time Current |
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
Concurrency Level: 10 | |
Time taken for tests: 119.433 seconds | |
Complete requests: 1000 | |
Failed requests: 0 | |
Write errors: 0 | |
Total transferred: 27421000 bytes | |
HTML transferred: 27056000 bytes | |
Requests per second: 8.37 [#/sec] (mean) | |
Time per request: 1194.334 [ms] (mean) | |
Time per request: 119.433 [ms] (mean, across all concurrent requests) |
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 'http://rubygems.org' | |
gem 'rails', '3.2.3' | |
gem 'redis' | |
gem 'execjs' | |
platforms :mri do | |
gem 'unicorn' | |
gem 'pg' | |
gem 'therubyracer' |
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
{"function":"AS","pickup_location":"PHX","pickup_location_airport_code":"T01","pickup_location_name":"Phoenix, AZ/S-IN 008","pickup_location_type":"T","pickup_date":"18MAY2012","pickup_time":"1000","return_location":"PHX","return_location_airport_code":"T01","return_date":"20MAY2012","return_time":"1000","rental_length":"00200","rental_days":"002","rental_hours":"00","error_number":0,"rates":[{"base_rate":"19.36","rate_plan":"D","xday_rate":"19.36","xhr_rate":"10.00","cartype":"ECAR","currency":"USD","car_description":"Toyota Yaris 4 Passengers or Similar","ratecode":"2D","rate_category":"S","base_quantity":2,"base_amount":"38.72","xday_quantity":0,"xday_amount":"0.00","xhr_quantity":0,"xhr_amount":"0.00","time_and_mileage":"38.72","fees":[{"name":"Facility Fee 0.77 PER DAY","rate":"0.77","quantity":1,"amount":"1.54"},{"name":"Customer Facility Charge 6.00 PER DAY","rate":"6.00","quantity":1,"amount":"12.00"},{"name":"Vehicle License Fee 5.00%","rate":"5.00","quantity":1,"amount":"1.94"},{"name":"Sales Tax 11 |
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
deployer@pringles:~$ rvm reinstall jruby-head | |
Removing /home/deployer/.rvm/src/jruby-head... | |
Removing /home/deployer/.rvm/rubies/jruby-head... | |
Removing jruby-head aliases... | |
Removing jruby-head wrappers... | |
Removing jruby-head environments... | |
Removing jruby-head binaries... | |
jruby-head - #fetching | |
HEAD is now at d5c15f5 Revert "[1.9] Revert JRuby original change to tmpdir.rb" | |
From git://github.com/jruby/jruby |