randexp 0.1.1 → 0.1.2

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.
data/CHANGELOG CHANGED
@@ -1,4 +1,7 @@
1
- == 0.1.1 "Still Quite Beta"
1
+ == 0.1.2 "I'm Not Saying It's Not Beta"
2
+ * Changed rand to Kernel#rand to avoid conflicting with rails (thanks agile!)
3
+
4
+ == 0.1.1 "Still Quite Beta" 2008-07-20
2
5
  * Added Range#of method.
3
6
  * Heavy refactoring of the Parser.parse method.
4
7
  * Fixed the /\./ bug.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/rdoctask'
7
7
 
8
8
  PROJECT_NAME = "randexp"
9
9
  GEM = "randexp"
10
- GEM_VERSION = "0.1.1"
10
+ GEM_VERSION = "0.1.2"
11
11
  AUTHOR = "Ben Burkert"
12
12
  EMAIL = "ben@benburkert.com"
13
13
  HOMEPAGE = "http://github.com/benburkert/randexp"
@@ -1,5 +1,5 @@
1
1
  class Array
2
2
  def pick
3
- at rand(size)
3
+ at Kernel.rand(size)
4
4
  end
5
- end
5
+ end
@@ -3,7 +3,7 @@ class Range
3
3
  to_a.pick
4
4
  end
5
5
 
6
- def of(&blk)
7
- pick.of(&blk)
6
+ def of
7
+ pick.of { yield }
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: randexp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Burkert
@@ -9,7 +9,7 @@ autorequire: randexp
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-20 00:00:00 -05:00
12
+ date: 2008-07-28 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15