Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors
Nov 18, 2011
Frank Shearar Ruby 1.9 changed how characters work. This change makes all tests pas…
…s in Ruby 1.9 while still keeping them working in Ruby 1.8.
39407b4
Howard Yeh Merge pull request #3 from frankshearar/master
Update rantly to pass all tests in Ruby 1.9
bc0bd6c

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/rantly/generator.rb
2  lib/rantly/generator.rb
@@ -230,7 +230,7 @@ class << self
230 230
       end
231 231
 
232 232
       def of(regexp)
233  
-        ASCII.scan(regexp).to_a.map! { |char| char[0] }
  233
+        ASCII.scan(regexp).to_a.map! { |char| char[0].ord }
234 234
       end
235 235
     end
236 236
     

No commit comments for this range

Something went wrong with that request. Please try again.