Update Ruby sample code
Merge pull request #2615 from sebv/master

Started to fix ios tests
Merge pull request #2599 from bootstraponline/ruby_sample

Update Ruby sample code
fixed more ios tests