random-word 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.markdown +4 -0
- data/lib/random_word.rb +2 -2
- data/lib/random_word/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4dbb0ff5d1bd2c1ac1c0dbb7f4430043178054c
|
4
|
+
data.tar.gz: 632431ef124e598c70c7ac69c7da6d1199037f48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd39d6aaff7b1803b11c4c65bc3f03831a577f33b55952ea692dff5fa04c7863e42b49deac15d021c5e328cdee3b9e3eed6d9906d5a03727e97111f7fbc43b8
|
7
|
+
data.tar.gz: '018fef5b553c8e2095572d6b9402926b9d44122ff9a10ff4e45b2c7b8a9947e932aa2552fd433f88df80a8a0d7a2a1b331d24a62c55685e7ced00e69d2e91503'
|
data/HISTORY.markdown
CHANGED
data/lib/random_word.rb
CHANGED
@@ -87,13 +87,13 @@ module RandomWord
|
|
87
87
|
|
88
88
|
# @return [Enumerator] Random phrase enumerator
|
89
89
|
def phrases
|
90
|
-
@phrases ||=
|
90
|
+
@phrases ||= (Class.new do
|
91
91
|
def each()
|
92
92
|
while true
|
93
93
|
yield "#{RandomWord.adjs.next} #{RandomWord.nouns.next}"
|
94
94
|
end
|
95
95
|
end
|
96
|
-
end.new)
|
96
|
+
end.new).to_enum
|
97
97
|
end
|
98
98
|
|
99
99
|
# Create a random, non-repeating enumerator for a list of words
|
data/lib/random_word/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: random-word
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Williams
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|