flakey 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/flakey/facebook.rb +2 -0
- data/lib/flakey/twitter.rb +1 -1
- data/lib/flakey/version.rb +1 -1
- data/spec/flakey/twitter_spec.rb +2 -2
- metadata +6 -6
data/lib/flakey/facebook.rb
CHANGED
@@ -5,6 +5,8 @@ module Flakey
|
|
5
5
|
Flakey.configuration.facebook_nickname
|
6
6
|
end
|
7
7
|
|
8
|
+
# TODO: This should be facebook_profile_url in order to stay
|
9
|
+
# consistent with the Twitter module.
|
8
10
|
def facebook_url(options = {})
|
9
11
|
nickname = options[:nickname] || facebook_nickname
|
10
12
|
"https://www.facebook.com/" + nickname
|
data/lib/flakey/twitter.rb
CHANGED
@@ -7,7 +7,7 @@ module Flakey
|
|
7
7
|
SHARE_URL = BASE_URL + "/share"
|
8
8
|
|
9
9
|
# Default HTML classes for the various buttons.
|
10
|
-
TWEET_BUTTON_CLASS = 'twitter-
|
10
|
+
TWEET_BUTTON_CLASS = 'twitter-share-button'
|
11
11
|
FOLLOW_BUTTON_CLASS = 'twitter-follow-button'
|
12
12
|
|
13
13
|
# Get the default Twitter handle for this configuration. If a
|
data/lib/flakey/version.rb
CHANGED
data/spec/flakey/twitter_spec.rb
CHANGED
@@ -23,14 +23,14 @@ describe Flakey::Twitter do
|
|
23
23
|
it "should append to the class list" do
|
24
24
|
subject.should_receive(:link_to)
|
25
25
|
.with("Tweet", Flakey::Twitter::SHARE_URL,
|
26
|
-
hash_including(class: 'hello twitter-
|
26
|
+
hash_including(class: 'hello twitter-share-button'))
|
27
27
|
subject.tweet_button(class: 'hello')
|
28
28
|
end
|
29
29
|
|
30
30
|
it "should work without a class argument" do
|
31
31
|
subject.should_receive(:link_to)
|
32
32
|
.with("Tweet", Flakey::Twitter::SHARE_URL,
|
33
|
-
hash_including(class: 'twitter-
|
33
|
+
hash_including(class: 'twitter-share-button'))
|
34
34
|
subject.tweet_button
|
35
35
|
end
|
36
36
|
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.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-08-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70215496741500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70215496741500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70215496741020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70215496741020
|
36
36
|
description: Social helpers for Rails apps.
|
37
37
|
email:
|
38
38
|
- dtuite@gmail.com
|