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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46040a26e248cab04cdc680944d5b54163e5b0a9
4
- data.tar.gz: 52c8f7d9cd6fbf08d5d8f4e0477063aa1b709a81
3
+ metadata.gz: a4dbb0ff5d1bd2c1ac1c0dbb7f4430043178054c
4
+ data.tar.gz: 632431ef124e598c70c7ac69c7da6d1199037f48
5
5
  SHA512:
6
- metadata.gz: d518db24ade102f614c7b0d0bf33ce4be4b09f29d891dc0868a16507e3f16e51fc5b4b0d7e12d7773300d3f0c7fb10a4cf35f5ab9e98f6d84e4049f99a4a7ef6
7
- data.tar.gz: f88978b86e93291084f15d2f3029bbfd4056134f1a53816ce8a59ed132a64efd705320accd682320df5dca85fa28b3c742d7dc90ff143e63273ef5d850a07605
6
+ metadata.gz: 2fd39d6aaff7b1803b11c4c65bc3f03831a577f33b55952ea692dff5fa04c7863e42b49deac15d021c5e328cdee3b9e3eed6d9906d5a03727e97111f7fbc43b8
7
+ data.tar.gz: '018fef5b553c8e2095572d6b9402926b9d44122ff9a10ff4e45b2c7b8a9947e932aa2552fd433f88df80a8a0d7a2a1b331d24a62c55685e7ced00e69d2e91503'
@@ -1,3 +1,7 @@
1
+ 2.1.1
2
+ ----
3
+ * Fix deprecation warning
4
+
1
5
  1.3
2
6
  ----
3
7
  * Added exclude patterns. This makes it easy to prevent words with certain patterns from being returned.
@@ -87,13 +87,13 @@ module RandomWord
87
87
 
88
88
  # @return [Enumerator] Random phrase enumerator
89
89
  def phrases
90
- @phrases ||= Enumerator.new(Class.new do
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
@@ -1,3 +1,3 @@
1
1
  module RandomWord
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
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.0
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: 2017-12-12 00:00:00.000000000 Z
12
+ date: 2018-08-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler