contemporary_words 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/contemporary_words.rb +10 -0
- metadata +8 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a1a23c089b52be20319fb3cbeb1981ecd022d099
|
4
|
+
data.tar.gz: d2c2ad2fbb66432958324abb86ebf38effce413e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bb16621f89ad606d5b7e7ba77f97983bdf39280850f83d6e7987e033cc8165148573f0b30ed7244d4fddc49cb2591e55a98e36bd31a7d589969fe76250806dd2
|
7
|
+
data.tar.gz: 6fdc978bcd4c82ab8878cd497c50ca8bc9a1893315c2123ded932eba232de856c72753711f23353f77d17fefde67eadbd6481cfd8a16a8553d7bb005706aa1f5
|
data/lib/contemporary_words.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
1
3
|
module ContemporaryWords
|
2
4
|
|
3
5
|
class << self
|
@@ -2372,6 +2374,14 @@ module ContemporaryWords
|
|
2372
2374
|
]
|
2373
2375
|
end
|
2374
2376
|
|
2377
|
+
def random_word
|
2378
|
+
all[SecureRandom.random_number(all.length)]
|
2379
|
+
end
|
2380
|
+
|
2381
|
+
def random_words(n)
|
2382
|
+
(1..n).map { ContemporaryWords.random_word() }.join(' ')
|
2383
|
+
end
|
2384
|
+
|
2375
2385
|
end
|
2376
2386
|
|
2377
2387
|
end
|
metadata
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contemporary_words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Chris Oei
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: A ruby gem that has the list of the most commonly used contemporary English
|
15
14
|
words sorted by length, then alphabetical order. Useful for creating mnemonic codes.
|
16
|
-
email:
|
15
|
+
email: xcko-rubygems@yahoo.com
|
17
16
|
executables: []
|
18
17
|
extensions: []
|
19
18
|
extra_rdoc_files: []
|
@@ -21,27 +20,26 @@ files:
|
|
21
20
|
- lib/contemporary_words.rb
|
22
21
|
homepage: https://github.com/chrisoei/contemporary_words
|
23
22
|
licenses: []
|
23
|
+
metadata: {}
|
24
24
|
post_install_message:
|
25
25
|
rdoc_options: []
|
26
26
|
require_paths:
|
27
27
|
- lib
|
28
28
|
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
-
none: false
|
30
29
|
requirements:
|
31
|
-
- -
|
30
|
+
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
33
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
34
|
requirements:
|
37
|
-
- -
|
35
|
+
- - ">="
|
38
36
|
- !ruby/object:Gem::Version
|
39
37
|
version: '0'
|
40
38
|
requirements: []
|
41
39
|
rubyforge_project:
|
42
|
-
rubygems_version:
|
40
|
+
rubygems_version: 2.2.2
|
43
41
|
signing_key:
|
44
|
-
specification_version:
|
42
|
+
specification_version: 4
|
45
43
|
summary: A ruby gem that has the list of the most commonly used contemporary English
|
46
44
|
words.
|
47
45
|
test_files: []
|