random-words 1.0.9 → 1.0.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/CHANGELOG.md +14 -0
- data/README.md +3 -2
- data/bin/randw +8 -3
- data/lib/random-words/array.rb +9 -0
- data/lib/random-words/config.rb +1 -1
- data/lib/random-words/generator.rb +69 -47
- data/lib/random-words/number-to-word.rb +4 -4
- data/lib/random-words/numeric.rb +13 -0
- data/lib/random-words/string.rb +109 -10
- data/lib/random-words/version.rb +1 -1
- data/lib/random-words/words/1984/clauses.txt +79 -79
- data/lib/random-words/words/alice/clauses.txt +81 -81
- data/lib/random-words/words/bacon/clauses.txt +639 -639
- data/lib/random-words/words/corporate/clauses.txt +100 -100
- data/lib/random-words/words/doctor/clauses.txt +83 -83
- data/lib/random-words/words/english/clauses.txt +639 -639
- data/lib/random-words/words/english/conjunctions-subordinate.txt +0 -1
- data/lib/random-words/words/foulmouth/clauses.txt +58 -58
- data/lib/random-words/words/hipster/clauses.txt +180 -180
- data/lib/random-words/words/hipster/conjunctions-coordinating.txt +1 -1
- data/lib/random-words/words/hipster/phrases.txt +3 -3
- data/lib/random-words/words/veggie/clauses.txt +57 -57
- data/lib/random-words.rb +1 -0
- data/src/_README.md +4 -3
- metadata +3 -2
data/lib/random-words.rb
CHANGED
@@ -9,6 +9,7 @@ require_relative 'random-words/string'
|
|
9
9
|
require_relative 'random-words/hash'
|
10
10
|
require_relative 'random-words/array'
|
11
11
|
require_relative 'random-words/boolean'
|
12
|
+
require_relative 'random-words/numeric'
|
12
13
|
require_relative 'random-words/source'
|
13
14
|
require_relative 'random-words/config'
|
14
15
|
require_relative 'random-words/generator'
|
data/src/_README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# RandomWords
|
2
2
|
<!--README-->
|
3
3
|
|
4
|
-
[](https://rubygems.org/gems/random-words)[](https://rubygems.org/gems/random-words)[](https://opensource.org/licenses/MIT)
|
5
5
|
|
6
6
|
A random text (Lorem Ipsum) generator.
|
7
7
|
|
@@ -68,7 +68,7 @@ elements to include.
|
|
68
68
|
|
69
69
|
First, the source language (defaults to latin), then the
|
70
70
|
length of paragraphs and tables: e.g. `english/medium`. You
|
71
|
-
can add any digits to determine how many
|
71
|
+
can add any digits to determine how many paragraphs are
|
72
72
|
generated (default 5), e.g. `corporate/medium/10`.
|
73
73
|
|
74
74
|
Then you can add individual elements, or use `/all` to
|
@@ -87,6 +87,7 @@ trigger all elements. The elements available are:
|
|
87
87
|
| headers | add headlines |
|
88
88
|
| image | add images |
|
89
89
|
| table | add tables |
|
90
|
+
| x | add extended punctuation |
|
90
91
|
|
91
92
|
The number of elements inserted depends on the length you specify.
|
92
93
|
|
@@ -293,4 +294,4 @@ rw.sentence_length
|
|
293
294
|
|
294
295
|
### License
|
295
296
|
|
296
|
-
This project is licensed under the [MIT license](LICENSE).
|
297
|
+
This project is licensed under the [MIT license](LICENSE).
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: random-words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: nokogiri
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- lib/random-words/html2markdown.rb
|
52
52
|
- lib/random-words/lorem-markdown.rb
|
53
53
|
- lib/random-words/number-to-word.rb
|
54
|
+
- lib/random-words/numeric.rb
|
54
55
|
- lib/random-words/source.rb
|
55
56
|
- lib/random-words/string.rb
|
56
57
|
- lib/random-words/table-cleanup.rb
|