spicy-proton 2.1.7 → 2.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +4 -0
- data/lib/corpus/adjectives-fixed.bin +0 -0
- data/lib/corpus/adjectives.bin +0 -0
- data/lib/corpus/adverbs-fixed.bin +0 -0
- data/lib/corpus/adverbs.bin +0 -0
- data/lib/corpus/nouns-fixed.bin +0 -0
- data/lib/corpus/nouns.bin +0 -0
- data/lib/corpus/verbs-fixed.bin +0 -0
- data/lib/corpus/verbs.bin +0 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8491b0f28f72ee90247b33134ac01df55f8aee35859fbe5a10d06efb75f7b54b
|
4
|
+
data.tar.gz: 1a03a34487fe44e1712ff91409cee2323b1b281a66eebe48d4f272b2586de162
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c0fb730eb8bddfba4c338949eedad093a87f9cd42f11fef8d0efabd7d112fde565e56bad0c6a53e2008d3423afd4ff2ae5e9590e9c4f3b9fc1b82f294256773
|
7
|
+
data.tar.gz: 060fc3dc44a6a9fce2f608f9134e94cc089529a9c2923939e2ba3606d7239225c0ae81b3b406972aaeab657be2aebaf3e7fd408918b0eab9fa8776399632440f
|
data/README.md
CHANGED
@@ -18,6 +18,8 @@ puts Spicy::Proton.pair
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
+
**Option 1: Class methods**
|
22
|
+
|
21
23
|
When generating single or infrequent specimens, class methods are faster and use less memory.
|
22
24
|
|
23
25
|
```ruby
|
@@ -41,6 +43,8 @@ Spicy::Proton.adverb(min: 0) # => "prophetically"
|
|
41
43
|
Spicy::Proton.verb(max: 100) # => "sparkles"
|
42
44
|
```
|
43
45
|
|
46
|
+
**Option 2: Instance methods**
|
47
|
+
|
44
48
|
When generating multiple specimens, instance methods are faster. The instance keeps the word corpus in memory. The instance methods are the same as their class method counterparts.
|
45
49
|
|
46
50
|
```ruby
|
Binary file
|
data/lib/corpus/adjectives.bin
CHANGED
Binary file
|
Binary file
|
data/lib/corpus/adverbs.bin
CHANGED
Binary file
|
data/lib/corpus/nouns-fixed.bin
CHANGED
Binary file
|
data/lib/corpus/nouns.bin
CHANGED
Binary file
|
data/lib/corpus/verbs-fixed.bin
CHANGED
Binary file
|
data/lib/corpus/verbs.bin
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spicy-proton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schmich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -80,8 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
|
84
|
-
rubygems_version: 2.6.14
|
83
|
+
rubygems_version: 3.0.0
|
85
84
|
signing_key:
|
86
85
|
specification_version: 4
|
87
86
|
summary: Generate a random English adjective-noun word pair.
|