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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3826a9d118356a0f052648585a26e6a0583b570a
4
- data.tar.gz: badfd138905d15a4ca6dc52d8c11d0ff04207c61
3
+ metadata.gz: aacd669447d92129209ff2f40b62dc475b9c0f04
4
+ data.tar.gz: 18ce9acc528570b03e59bbac1c6c7958fea0e422
5
5
  SHA512:
6
- metadata.gz: 72c4e941085e4ecf3406ab028584b999683e9b952f057fccf9cbaf78adfc70ded5e294bb423d5bf2d49ad7f2632517c30cda9d0ed015d7be5c3553b7202bb1fc
7
- data.tar.gz: a8c07e4495fa7e81c39fe4ee969dd6dc0e9d820ee9c6edc72a1ad846bcda97fdf5baf40ab67a36ba9f7996d87001ed145173595bc218d305718d73c58452598c
6
+ metadata.gz: 66f412226ce66d0d5f0fb0019a7fec7c2671bf9422f8898b5b0a79427dafea6a4b46790d45e79ddaa3895e84be84eb0d3bf92b7fb26d9d27a6ea8ac4860a3a8e
7
+ data.tar.gz: c76bb0535dd1b20a6308a5abebbbac173c9adcc2d0649250dc975153a3fffcd896d48ffe63b2d674373db77edf8d9e00e035da021650880c39a02253d6311049
data/lib/replacer_bot.rb CHANGED
@@ -17,4 +17,4 @@ require 'replacer_bot/twitter_client'
17
17
  Dotenv.load
18
18
  Dotenv.load "#{ENV['HOME']}/.replacer_botrc"
19
19
 
20
- TWITTER_LIMIT = 140
20
+ TWITTER_LIMIT = 280
@@ -1,3 +1,3 @@
1
1
  module ReplacerBot
2
- VERSION = "0.1.1-rc2"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -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 140 characters nicely' do
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 <= 140} ).to eq true
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.1.pre.rc2
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-10-01 00:00:00.000000000 Z
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: 1.3.1
298
+ version: '0'
299
299
  requirements: []
300
300
  rubyforge_project:
301
301
  rubygems_version: 2.6.8