siddharthasampler 0.1.0 → 0.2.0
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/Gemfile.lock +20 -0
- data/lib/siddharthasampler/version.rb +1 -1
- data/lib/siddharthasampler.rb +2 -2
- data/siddharthasampler-0.1.0.gem +0 -0
- data/siddharthasampler.gemspec +2 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ab9e00aa40855cfd3044cd6cecd8598038be4f5
|
|
4
|
+
data.tar.gz: 21c43fc4fd4bfa6a9f52c8d3396986823b8cdd1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f9f0922997ca8ff7442ffa40def332a9f13cab0aad20fd3ea07e81f16b041fd65abb1aaab4779d1d7c187c2cbb07c4b027705ce973dcf512003c80f01050543
|
|
7
|
+
data.tar.gz: '0365638b9afac8847f90e33d011eab7e6dc07a4047711e377764be1b42cfe883adc4b604f886371fe9ab4b87dcb8b860f498add4da19c9d38b866a763b6fdee4'
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
siddharthasampler (0.1.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
rake (10.5.0)
|
|
10
|
+
|
|
11
|
+
PLATFORMS
|
|
12
|
+
ruby
|
|
13
|
+
|
|
14
|
+
DEPENDENCIES
|
|
15
|
+
bundler (~> 1.16)
|
|
16
|
+
rake (~> 10.0)
|
|
17
|
+
siddharthasampler!
|
|
18
|
+
|
|
19
|
+
BUNDLED WITH
|
|
20
|
+
1.16.0
|
data/lib/siddharthasampler.rb
CHANGED
|
@@ -2,7 +2,7 @@ require "siddharthasampler/version"
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
module Siddharthasampler
|
|
5
|
-
def read(
|
|
5
|
+
def read(minimum_chars = 1000)
|
|
6
6
|
file = './lib/siddhartha.txt'
|
|
7
7
|
text = []
|
|
8
8
|
File.readlines(file).each do |line|
|
|
@@ -14,7 +14,7 @@ module Siddharthasampler
|
|
|
14
14
|
|
|
15
15
|
todays_siddhartha = []
|
|
16
16
|
i = 0
|
|
17
|
-
until todays_siddhartha.join(' ').length >
|
|
17
|
+
until todays_siddhartha.join(' ').length > minimum_chars
|
|
18
18
|
todays_siddhartha << siddhartha_paragraphs[rando + i]
|
|
19
19
|
i = i + 1
|
|
20
20
|
end
|
|
Binary file
|
data/siddharthasampler.gemspec
CHANGED
|
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Matthew Black"]
|
|
10
10
|
spec.email = ["matthewallenblack@gmail.com"]
|
|
11
11
|
|
|
12
|
-
spec.summary = %q{Outputs a > 1,000-
|
|
12
|
+
spec.summary = %q{Outputs a > 1,000-character excerpt of a great book.}
|
|
13
|
+
spec.description = "A ~1,000-character selection is the default, but you can change that by calling Siddharthasampler.read(2000), for example."
|
|
13
14
|
spec.homepage = "https://github.com/matthew-black/siddharthasampler"
|
|
14
15
|
spec.license = "MIT"
|
|
15
16
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: siddharthasampler
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Black
|
|
@@ -38,7 +38,8 @@ dependencies:
|
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '10.0'
|
|
41
|
-
description:
|
|
41
|
+
description: A ~1,000-character selection is the default, but you can change that
|
|
42
|
+
by calling Siddharthasampler.read(2000), for example.
|
|
42
43
|
email:
|
|
43
44
|
- matthewallenblack@gmail.com
|
|
44
45
|
executables: []
|
|
@@ -48,6 +49,7 @@ files:
|
|
|
48
49
|
- ".gitignore"
|
|
49
50
|
- CODE_OF_CONDUCT.md
|
|
50
51
|
- Gemfile
|
|
52
|
+
- Gemfile.lock
|
|
51
53
|
- LICENSE.txt
|
|
52
54
|
- README.md
|
|
53
55
|
- Rakefile
|
|
@@ -57,6 +59,7 @@ files:
|
|
|
57
59
|
- lib/siddhartha.txt
|
|
58
60
|
- lib/siddharthasampler.rb
|
|
59
61
|
- lib/siddharthasampler/version.rb
|
|
62
|
+
- siddharthasampler-0.1.0.gem
|
|
60
63
|
- siddharthasampler.gemspec
|
|
61
64
|
homepage: https://github.com/matthew-black/siddharthasampler
|
|
62
65
|
licenses:
|
|
@@ -81,5 +84,5 @@ rubyforge_project:
|
|
|
81
84
|
rubygems_version: 2.5.2
|
|
82
85
|
signing_key:
|
|
83
86
|
specification_version: 4
|
|
84
|
-
summary: Outputs a > 1,000-
|
|
87
|
+
summary: Outputs a > 1,000-character excerpt of a great book.
|
|
85
88
|
test_files: []
|