wordbot 0.1.1 → 0.1.2
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/README.md +2 -0
- data/features/fixtures/words.txt +1 -0
- data/features/mutilator.feature +4 -0
- data/lib/wordbot/cli/mutilator.rb +6 -0
- data/lib/wordbot/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c42a01adcdcff88d22e404c769f7259554b59762
|
|
4
|
+
data.tar.gz: 364f078b401b8de3e97f3d0497e66a915c391882
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cb3dedb584205d3f3c25da98954686622b1b1c9136ed1cfe59223a3b65d6d6701dd1cdf659ba97f2bfa0b26ace081a441703ef2e503a7504726315d567500db
|
|
7
|
+
data.tar.gz: 7c5cee902ea9235010050c3b49ab7163f10bc7df34287c04d8fb4a2a0b4f101366f91c097f9acf310f82c14b7c09a522ccaca8d90dbe72f5a11e6cb4e4894cf8
|
data/README.md
CHANGED
|
@@ -5,3 +5,5 @@
|
|
|
5
5
|
[](https://rubygems.org/gems/wordbot)
|
|
6
6
|
[](http://pikesley.mit-license.org)
|
|
7
7
|
[](https://github.com/badges/badgerbadgerbadger)
|
|
8
|
+
|
|
9
|
+
#Wordbot
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
It doesn't seem to me that this fantastically marvelous universe, this tremendous range of time and space and different kinds of animals, and all the different planets, and all these atoms with all their motions, and so on, all this complicated thing can merely be a stage so that God can watch human beings struggle for good and evil — which is the view that religion has. The stage is too big for the drama
|
data/features/mutilator.feature
CHANGED
|
@@ -3,3 +3,7 @@ Feature: Mutilate text
|
|
|
3
3
|
Scenario: Mangle some text
|
|
4
4
|
When I successfully run `mutilator generate destroy this text`
|
|
5
5
|
Then the output should match /^d.....y t..s t..t$/
|
|
6
|
+
|
|
7
|
+
Scenario: Mangle a file
|
|
8
|
+
When I successfully run `mutilator from_file ../../features/fixtures/words.txt`
|
|
9
|
+
Then the output should match /t..s f...........y m.......s u......e, t..s t........s r...e of t..e and/
|
|
@@ -15,6 +15,12 @@ module Wordbot
|
|
|
15
15
|
end
|
|
16
16
|
map %w(-g --generate) => :generate
|
|
17
17
|
|
|
18
|
+
desc 'from_file', 'Generate mutilated text from a file'
|
|
19
|
+
def from_file filename
|
|
20
|
+
f = File.read filename
|
|
21
|
+
puts Wordbot::Bot.mutilate f
|
|
22
|
+
end
|
|
23
|
+
|
|
18
24
|
desc 'tweet', 'Tweet the mutilated text'
|
|
19
25
|
def tweet *words
|
|
20
26
|
begin
|
data/lib/wordbot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wordbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- pikesley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -195,6 +195,7 @@ files:
|
|
|
195
195
|
- README.md
|
|
196
196
|
- Rakefile
|
|
197
197
|
- bin/mutilator
|
|
198
|
+
- features/fixtures/words.txt
|
|
198
199
|
- features/mutilator.feature
|
|
199
200
|
- features/support/env.rb
|
|
200
201
|
- lib/wordbot.rb
|
|
@@ -231,6 +232,7 @@ signing_key:
|
|
|
231
232
|
specification_version: 4
|
|
232
233
|
summary: Do some stuff with text
|
|
233
234
|
test_files:
|
|
235
|
+
- features/fixtures/words.txt
|
|
234
236
|
- features/mutilator.feature
|
|
235
237
|
- features/support/env.rb
|
|
236
238
|
- spec/spec_helper.rb
|