spicy-proton 2.1.9 → 2.1.13
Sign up to get free protection for your applications and to get access to all the features.
- 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/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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6600dfe90e2a56f168ea64fec617d491e4f1c291817c37226bb881a861b5b9b7
|
4
|
+
data.tar.gz: '0586c35298deb675847585aceda0f2401080ea2205868664d9f4b5bc1e78d1c4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a372b85b64fb997e2c087233c131780d79e9024a1e3b1db1e00fe236d264e024bc1d6f34d9e6fdce13b2a791731b201ff85bec4e8e3c1c6358ff42eb967a6059
|
7
|
+
data.tar.gz: 505808fe70d09b84c5e0cbd4529189b0c3921eb43d32545e966ce11531e8bc019c3a7df19ebde676abc9f527e617fbdae6d1cc0ad08d220ebc5c486fff9a5878
|
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.13
|
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-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|