simplelorem 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -4
  3. data/lib/simplelorem/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c10154c3876224ab0f0da72ee2b2042cad2b36a0
4
- data.tar.gz: 4805d10b8fd0f2df70a548ebfef1e28a999b54d3
3
+ metadata.gz: 79130cbb8464cfabc48e4f101899762fff33c571
4
+ data.tar.gz: 90f006c9a7dc2fcb82024dd80e92a40853edd803
5
5
  SHA512:
6
- metadata.gz: e8623e65227744ec4b38faf77ab134135846ec164d443130d4fe47bb739f9aaefe82a95ce12778dc4e8431bf1685561b478577501fa6311ecad44c69b974798f
7
- data.tar.gz: fa6e12f140eb1b4234e3c2c10a24ee9780030a7c8fd40c51779e01a819f92b0f8c5080a3ab53443ad30fbdbf4e07f16528e60b25b22b3dd9f7d3c02c343ce5fa
6
+ metadata.gz: 0da5fcb4726e7a079730c8c4836f3edfa4c80182ffbaef045e59ac385ca2bae97bb89d008b7e7416bd24f1dfcbe0256dc21f6494abf1abf3b4d6549a66e27273
7
+ data.tar.gz: e9dd8a9de48ebe65dc4d14de5156cfe0271f23f0c23d1d64779562fe9b6dec13b165eca979fbba4c85e014eda119f7366aa1ad37c8485e438de537e7d9814215
data/README.md CHANGED
@@ -25,11 +25,18 @@ Or install it yourself as:
25
25
  Generate a new instance, takes in training text.
26
26
 
27
27
  ```ruby
28
- sentence_count = 10
29
- generator = Simplelorem::Generator.new("My training, text, here"))
28
+ sentence_count = 2
29
+
30
+ training_text = "Y Combinator., raising a round, Series A, cash flow, scalability, uber for X, next big thing., Steve Jobs, MVP, TechCruch!, hacker, code, big data, hackernews, designernews, sublime text, code artisan, ruby on rails, AWS, digitalocean."
31
+
32
+ generator = Simplelorem::Generator.new(training_text))
30
33
  generator.generate(sentence_count)
34
+
35
+ > Sublime text hacker uber for X cash flow code artisan. Y combinator code sublime text raising a round uber for X Series A ruby on rails next big thing.
31
36
  ```
32
37
 
33
- Training text is expected to be tokenized by commas. For example,
38
+ + __Training text is expected to be tokenized by commas.__ It will automatically prune extra whitespace and punctuation.
39
+
40
+ + The generator will then take care of punctuation, capitlization, and delimeters like commas and semicolons at runtime.
34
41
 
35
- `"this, is, my, training, text"`
42
+ + Sentence length is random from 6 to 22 words.
@@ -1,3 +1,3 @@
1
1
  module Simplelorem
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplelorem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - jaxgeller