pin_it 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/lib/pin_it.rb +1 -1
- data/lib/pin_it/version.rb +1 -1
- metadata +8 -8
data/README.md
CHANGED
@@ -33,9 +33,9 @@ In your application layout, include this:
|
|
33
33
|
|
34
34
|
Then, in your views, do something like this:
|
35
35
|
|
36
|
-
<%= pin_it_button :media => image_url(@photo.url)
|
36
|
+
<%= pin_it_button :media => image_url(@photo.url),
|
37
37
|
:description => @photo.description,
|
38
|
-
:
|
38
|
+
:url => photo_url(@photo) %>
|
39
39
|
|
40
40
|
### Rails > 3.1
|
41
41
|
|
@@ -47,9 +47,9 @@ Put it in application.js
|
|
47
47
|
|
48
48
|
Then, in your views, do something like this:
|
49
49
|
|
50
|
-
<%= pin_it_button media: image_url(@photo.url)
|
50
|
+
<%= pin_it_button media: image_url(@photo.url),
|
51
51
|
description: @photo.description,
|
52
|
-
|
52
|
+
url: photo_url(@photo) %>
|
53
53
|
|
54
54
|
|
55
55
|
## Contributing
|
data/lib/pin_it.rb
CHANGED
@@ -10,7 +10,7 @@ module PinIt
|
|
10
10
|
def pin_it_button(options = {})
|
11
11
|
%{<a href="http://pinterest.com/pin/create/button/?url=page_url&media=img_url&description=description" class="pin-it-button" count-layout="horizontal">Pin It</a>}
|
12
12
|
query_params = options.slice(:url, :media, :description)
|
13
|
-
content_tag :a, "Pin It", "href" => "http://pinterest.com/pin/create/button
|
13
|
+
content_tag :a, "Pin It", "href" => "http://pinterest.com/pin/create/button/?#{query_params.to_query}",
|
14
14
|
"class" => "pin-it-button",
|
15
15
|
"count-layout" => "horizontal"
|
16
16
|
end
|
data/lib/pin_it/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pin_it
|
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-03-
|
12
|
+
date: 2012-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70313597754100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70313597754100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70313597753300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70313597753300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70313597752580 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70313597752580
|
47
47
|
description: Rails helpers for adding Pinterest.com "Pin It" buttons to views
|
48
48
|
email:
|
49
49
|
- joshua@fanzter.com
|