replacer_bot 0.1.1.pre.rc2 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/replacer_bot.rb +1 -1
- data/lib/replacer_bot/version.rb +1 -1
- data/spec/lib/replacer_bot/helpers_spec.rb +3 -3
- data/spec/lib/replacer_bot/replacer_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacd669447d92129209ff2f40b62dc475b9c0f04
|
4
|
+
data.tar.gz: 18ce9acc528570b03e59bbac1c6c7958fea0e422
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66f412226ce66d0d5f0fb0019a7fec7c2671bf9422f8898b5b0a79427dafea6a4b46790d45e79ddaa3895e84be84eb0d3bf92b7fb26d9d27a6ea8ac4860a3a8e
|
7
|
+
data.tar.gz: c76bb0535dd1b20a6308a5abebbbac173c9adcc2d0649250dc975153a3fffcd896d48ffe63b2d674373db77edf8d9e00e035da021650880c39a02253d6311049
|
data/lib/replacer_bot.rb
CHANGED
data/lib/replacer_bot/version.rb
CHANGED
@@ -74,9 +74,9 @@ module ReplacerBot
|
|
74
74
|
expect(ReplacerBot.title_case 'lowercase at the start').to eq 'Lowercase at the start'
|
75
75
|
end
|
76
76
|
|
77
|
-
it 'trims to
|
78
|
-
expect(ReplacerBot.truncate 'FYI via @DBMph: The 2016 proposed budget is now in Taylor Swift format! You may access it on our website: http://t.co/EO6Lep3PeW #Transparency').
|
79
|
-
to eq 'FYI via @DBMph: The 2016 proposed budget is now in Taylor Swift format! You may access it on our website: http://t.co/EO6Lep3PeW'
|
77
|
+
it 'trims to 280 characters nicely' do
|
78
|
+
expect(ReplacerBot.truncate 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus mollis et ligula id commodo. Suspendisse in luctus enim. Nulla cras amet. FYI via @DBMph: The 2016 proposed budget is now in Taylor Swift format! You may access it on our website: http://t.co/EO6Lep3PeW #Transparency').
|
79
|
+
to eq 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus mollis et ligula id commodo. Suspendisse in luctus enim. Nulla cras amet. FYI via @DBMph: The 2016 proposed budget is now in Taylor Swift format! You may access it on our website: http://t.co/EO6Lep3PeW'
|
80
80
|
end
|
81
81
|
|
82
82
|
it 'replaces text' do
|
@@ -75,7 +75,7 @@ module ReplacerBot
|
|
75
75
|
expect(replacer.tweets).to be_a Array
|
76
76
|
expect(replacer.tweets.first).to eq 'CamTaylorSwift have booked your place weeks Taylor Swift session central cambridge https jpwajua8qb'
|
77
77
|
expect(replacer.tweets[10]).to eq 'New #TaylorSwift book ed. by @leohavemann @jatenas https://t.co/umQvMtPm6W'
|
78
|
-
expect(replacer.tweets.all? { |t| t.length <=
|
78
|
+
expect(replacer.tweets.all? { |t| t.length <= 280} ).to eq true
|
79
79
|
end
|
80
80
|
|
81
81
|
it 'actually sends tweets', :vcr do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: replacer_bot
|
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: 2017-
|
11
|
+
date: 2017-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|
@@ -293,9 +293,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
293
293
|
version: '0'
|
294
294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
295
|
requirements:
|
296
|
-
- - "
|
296
|
+
- - ">="
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version:
|
298
|
+
version: '0'
|
299
299
|
requirements: []
|
300
300
|
rubyforge_project:
|
301
301
|
rubygems_version: 2.6.8
|