lit_ipsum 0.9.6 → 0.9.7
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/lib/lit_ipsum/carroll/alice_in_wonderland.rb +19 -0
- data/lib/lit_ipsum/dickens/oliver_twist.rb +19 -0
- data/lib/lit_ipsum/poe/raven.rb +19 -0
- data/lib/lit_ipsum/version.rb +1 -1
- data/lib/texts/carroll/alice-in-wonderland.txt +3600 -0
- data/lib/texts/dickens/oliver-twist.txt +18798 -0
- data/lib/texts/poe/the-raven.txt +134 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfc99ca729f59afc591b59ffd441080fc10c0e506a8620e438c27cd56dfcc3c9
|
4
|
+
data.tar.gz: 307a88014cd6626bdef758cdfdfab67c15f7d6dacc0db4465d1f2ce176e4a319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c281ca4a9ca7e541245d522026b9546a2db35687714ca47b22a703ff2fef029efdb453fd89fd166804266adafe80cff2ae3edee21aa9eb9024d7f2a6182b67f
|
7
|
+
data.tar.gz: 13cdc6343a7fac25915e9e335fa9248b9d59f4ee29c5f1ae3f47f5f31fe63fdf99cd60a739e57a6f71e54dc1a080c79f040be8d58cdad8f9fb75ecf5ab8c37c3
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LitIpsum
|
4
|
+
class Carroll
|
5
|
+
class AliceInWonderland < Base
|
6
|
+
FILENAME = File.join(File.dirname(File.expand_path(__FILE__)), '../../texts/carroll/alice-in-wonderland.txt')
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def sentences(count, max_sentence = 0, filename = FILENAME)
|
10
|
+
super(count, max_sentence, filename)
|
11
|
+
end
|
12
|
+
|
13
|
+
def words(count, filename = FILENAME)
|
14
|
+
super(count, filename)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LitIpsum
|
4
|
+
class Dickens
|
5
|
+
class OliverTwist < Base
|
6
|
+
FILENAME = File.join(File.dirname(File.expand_path(__FILE__)), '../../texts/dickens/oliver-twist.txt')
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def sentences(count, max_sentence = 0, filename = FILENAME)
|
10
|
+
super(count, max_sentence, filename)
|
11
|
+
end
|
12
|
+
|
13
|
+
def words(count, filename = FILENAME)
|
14
|
+
super(count, filename)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module LitIpsum
|
4
|
+
class Poe
|
5
|
+
class Raven < Base
|
6
|
+
FILENAME = File.join(File.dirname(File.expand_path(__FILE__)), '../../texts/poe/the-raven.txt')
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def sentences(count, max_sentence = 0, filename = FILENAME)
|
10
|
+
super(count, max_sentence, filename)
|
11
|
+
end
|
12
|
+
|
13
|
+
def words(count, filename = FILENAME)
|
14
|
+
super(count, filename)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/lit_ipsum/version.rb
CHANGED