randomfromrange 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/randomfromrange.rb +2 -2
  2. metadata +4 -4
@@ -1,5 +1,5 @@
1
- # Ruby 1.9.3 Range for Kernel.random update backwards compatibility
2
- Kernel.class_eval do
1
+ # Ruby 1.9.3 Range for Kernel random update backwards compatibility
2
+ class Object
3
3
  alias :old_rand :rand
4
4
  def rand(v=nil)
5
5
  if(v.respond_to? :to_i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: randomfromrange
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-07-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: ! 'Provides older Ruby versions with Ruby 1.9.3''s change to Kernel.rand:
14
+ description: ! 'Provides older Ruby versions with Ruby 1.9.3''s change to rand():
15
15
  the ability to pass a Range object as argument.'
16
16
  email: mail@julian-rupp.eu
17
17
  executables: []
@@ -42,5 +42,5 @@ rubyforge_project:
42
42
  rubygems_version: 1.8.25
43
43
  signing_key:
44
44
  specification_version: 3
45
- summary: Modifies Kernel.rand to also accept Ranges
45
+ summary: Modifies rand() to also accept Ranges
46
46
  test_files: []