flakey 0.2.1 → 0.2.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/lib/flakey/twitter.rb +1 -1
- data/lib/flakey/version.rb +1 -1
- data/spec/flakey/twitter_spec.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041d20dc5bd4b3566cbb859cbb99a260c2365221
|
4
|
+
data.tar.gz: 2e2067c4e18a57ade6106b071f862c9696a40f51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea453dcf9f83cf2d06f891a8b8e76d8f54a420f44cace9607a71f30f8125c0d1384ad8e794cf6b1346aaf789ed35319e2bef42ce7516dd68278b108cba191887
|
7
|
+
data.tar.gz: 284773f6648fffeedeae1751e69442c22fcb06d01579fe5bfaf50b903efae2e2f62106c6a1d586628d0c66e569798d4fa553aa44cc95571644773620b25babb8
|
data/lib/flakey/twitter.rb
CHANGED
@@ -157,8 +157,8 @@ module Flakey
|
|
157
157
|
%w[text hashtags related via].each do |url_key|
|
158
158
|
if settings.has_key?(url_key.to_sym) && settings[url_key.to_sym] != ''
|
159
159
|
url += "&#{url_key}=#{CGI.escape settings[url_key.to_sym]}"
|
160
|
-
settings.delete(url_key.to_sym)
|
161
160
|
end
|
161
|
+
settings.delete(url_key.to_sym)
|
162
162
|
end
|
163
163
|
|
164
164
|
if block_given?
|
data/lib/flakey/version.rb
CHANGED
data/spec/flakey/twitter_spec.rb
CHANGED
@@ -83,6 +83,11 @@ describe Flakey::Twitter do
|
|
83
83
|
subject.custom_tweet_button.should_not =~ /&via=/
|
84
84
|
end
|
85
85
|
|
86
|
+
it 'should not have via in the hyml' do
|
87
|
+
Flakey.configuration.stub(tweet_via: '')
|
88
|
+
subject.custom_tweet_button.should_not =~ /via=""/
|
89
|
+
end
|
90
|
+
|
86
91
|
it 'should set a class' do
|
87
92
|
subject.custom_tweet_button.should =~ /class="custom-twee/
|
88
93
|
end
|