wordbot 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 506794cdbdd798e02f884919cab7222c02636317
4
- data.tar.gz: 7e4a7464eb59b3cbbf3fd05f4bf52403d864d6ec
3
+ metadata.gz: c42a01adcdcff88d22e404c769f7259554b59762
4
+ data.tar.gz: 364f078b401b8de3e97f3d0497e66a915c391882
5
5
  SHA512:
6
- metadata.gz: ab6a578dbc9cbd7fbb8eda1b5e15b0cb1b335f281774c7b8032831bf86cb54d2bd199ea9951f28cc3cc117323db4070c0bb0561e35bb38741463e4da1623ab38
7
- data.tar.gz: 1b2be3d87a394f6e808bb91fe99e0d951fc053f6949545cd43b16e0868b2f977838926ca26d93082994aeb59b9b69beac50cb2a0d23fcccb8692744ffacafbd5
6
+ metadata.gz: 3cb3dedb584205d3f3c25da98954686622b1b1c9136ed1cfe59223a3b65d6d6701dd1cdf659ba97f2bfa0b26ace081a441703ef2e503a7504726315d567500db
7
+ data.tar.gz: 7c5cee902ea9235010050c3b49ab7163f10bc7df34287c04d8fb4a2a0b4f101366f91c097f9acf310f82c14b7c09a522ccaca8d90dbe72f5a11e6cb4e4894cf8
data/README.md CHANGED
@@ -5,3 +5,5 @@
5
5
  [![Gem Version](http://img.shields.io/gem/v/wordbot.svg)](https://rubygems.org/gems/wordbot)
6
6
  [![License](http://img.shields.io/:license-mit-blue.svg)](http://pikesley.mit-license.org)
7
7
  [![Badges](http://img.shields.io/:badges-7/7-ff6799.svg)](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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Wordbot
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-13 00:00:00.000000000 Z
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