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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c797fa59e282aafa6305da5e02ee60d5789901b3
4
- data.tar.gz: 014ccb3295581426b20b4d34532c8a2fc1833b14
3
+ metadata.gz: 041d20dc5bd4b3566cbb859cbb99a260c2365221
4
+ data.tar.gz: 2e2067c4e18a57ade6106b071f862c9696a40f51
5
5
  SHA512:
6
- metadata.gz: 04be5d95c059da7565730d676c271fc3d3a9029ce52034ed2655215a6a743ac7177fd966ff2018e79ef4639c09a6940753c6f520b7b42411af05e665c1321a9d
7
- data.tar.gz: 63a224d56ee88df11339c752fe364213cd33dbc747c987265e64aae3f0c350718937192dc6de8e2a15885892666a55e621a4051fb1d5b04e3e0b34479c54bfd7
6
+ metadata.gz: ea453dcf9f83cf2d06f891a8b8e76d8f54a420f44cace9607a71f30f8125c0d1384ad8e794cf6b1346aaf789ed35319e2bef42ce7516dd68278b108cba191887
7
+ data.tar.gz: 284773f6648fffeedeae1751e69442c22fcb06d01579fe5bfaf50b903efae2e2f62106c6a1d586628d0c66e569798d4fa553aa44cc95571644773620b25babb8
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module Flakey
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flakey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Tuite