random_word 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0f591d356d1b2b44c1c9d0c8ec8e341b3c47ec6
4
- data.tar.gz: ad41ce7c5c211799ddb5663600db1a98475d3051
3
+ metadata.gz: b6d86574e480316a628ae07e1faf41b8c95e017a
4
+ data.tar.gz: bb17a59df63a635d52bc8d307f9afc75babdf36c
5
5
  SHA512:
6
- metadata.gz: 37b230f6e6917c37c2efd60933d334e7ae695b59110a7634435fe4980f4bbd0150c5d1e0dcc03811f27f96a0c8c833b7ff741809446c222d0d5eca6dd8b8b555
7
- data.tar.gz: 42a2613bd9fb803116ba643aaeb861f589dcdb5b311653b08164ee5d28bfacb1da0b20660855d66c9ef94c286bfa2245dcf454750192dfd066785207e588391a
6
+ metadata.gz: f407c75210747b30f5bc6e4d892565dfe84632435b8031838c5ddf5a5608d8d6181bd3872765e31eb029d72086b4d0e9c2ba901f99dfb5b898b2dcccaa395870
7
+ data.tar.gz: 98936938d4c959ecc1a996c64ef54f542a6b844fe46f9a4eec53e30fbceb8fa4435b349a1045e8efa9bcd96ea622fe06e2e6e3f5f17dc19bbc219595ad1dd3f7
@@ -1,2 +1 @@
1
- n�'L���M!ԛ��P%|��fAX,�+�o��G��ڭ{1[u«�~�G5��U P��jPn�<ZF8��O&��Pޚ��*�X!>R���K��� u4n������\���19*�ړ�o6DM�9ng�e�t�ǫt
2
- Q�"�����ij�ccW �ه�:��`�A 3� �v�
1
+ �!<,.r$LZ���BpO'!G���W.��W,��?Aqs֑`1s��I1%uv�����3�-�*���Ysze��[�}_ht�6Y�l�O�E!�����a����#>�p�7�7~|0��xh{.q,�FɈ(���VGSӛ��#����{������x�i�ji2U�.�б�K���:Mjw><�45��%4#��gTFƹ�t�%�.��[An)�%ⶺ �$UT+�|�i}3:׻��: ��bn5
data.tar.gz.sig CHANGED
Binary file
@@ -4,20 +4,15 @@
4
4
 
5
5
  # desc: Returns a random word
6
6
 
7
+ require 'wordsdotdat'
8
+
7
9
 
8
10
  class RandomWord
9
11
 
10
12
  class << self
11
13
 
12
- def adjs() @adjs ||= load_data 'adjs.dat' end
13
- def nouns() @nouns ||= load_data 'nouns.dat' end
14
-
15
- def load_data(filename)
16
-
17
- filepath = File.join(File.dirname(__FILE__), '..', 'data', filename)
18
- File.open(filepath){|f| Marshal.load(f)}.shuffle.to_enum
19
-
20
- end
14
+ def adjs() WordsDotDat.adjs.shuffle.to_enum end
15
+ def nouns() WordsDotDat.nouns.shuffle.to_enum end
21
16
 
22
17
  end
23
18
 
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: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,16 +31,34 @@ cert_chain:
31
31
  v2Qwx7E4oTdBUgN3ElB1eDi0gg4NErOxUm+bxFAmzOZUkkOYJEsDiBIxTwf0yvI4
32
32
  9eKeQf41xmIjlg==
33
33
  -----END CERTIFICATE-----
34
- date: 2017-10-13 00:00:00.000000000 Z
35
- dependencies: []
34
+ date: 2017-10-20 00:00:00.000000000 Z
35
+ dependencies:
36
+ - !ruby/object:Gem::Dependency
37
+ name: wordsdotdat
38
+ requirement: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '0.1'
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 0.1.0
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '0.1'
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.1.0
36
56
  description:
37
57
  email: james@jamesrobertson.eu
38
58
  executables: []
39
59
  extensions: []
40
60
  extra_rdoc_files: []
41
61
  files:
42
- - data/adjs.dat
43
- - data/nouns.dat
44
62
  - lib/random_word.rb
45
63
  homepage: https://github.com/jrobertson/random_word
46
64
  licenses:
metadata.gz.sig CHANGED
Binary file
Binary file
Binary file