spicy-proton 2.1.9 → 2.1.10
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 +4 -4
- data/README.md +4 -0
- data/lib/corpus/adjectives-fixed.bin +0 -0
- data/lib/corpus/adjectives.bin +0 -0
- data/lib/corpus/nouns-fixed.bin +0 -0
- data/lib/corpus/nouns.bin +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33f382fbd8fb89c323545a3c8042aa811b560718ec8ca366be9755fc3f31d629
|
|
4
|
+
data.tar.gz: 1f0b7bbefb7f75e403987a3d8a569e77fe782c1423140bbca0f8bfa5a0c04b2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e488ba845089aa1ef132c19a1f8c1bfe43e488e5b4c4f1c0129286d13457753ba920211c73be6f2dff74997c90d2abc75284bd43fe34a10051b0686e96fbbda7
|
|
7
|
+
data.tar.gz: 59c0259e6dbc86b427a1c4683407e8322f0802b3de4c840e573101f66048791f5f971b71fb9cc19d0b61a37735433abf3318d2a19dfe0aa12069d03173aef7e1
|
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
|
data/lib/corpus/nouns-fixed.bin
CHANGED
|
Binary file
|
data/lib/corpus/nouns.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.10
|
|
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-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bindata
|