pin_it 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/pin_it.rb +1 -1
- data/lib/pin_it/version.rb +1 -1
- metadata +8 -8
data/README.md
CHANGED
@@ -35,7 +35,7 @@ Then, in your views, do something like this:
|
|
35
35
|
|
36
36
|
<%= pin_it_button :media => image_url(@photo.url)
|
37
37
|
:description => @photo.description,
|
38
|
-
:
|
38
|
+
:page_url => photo_url(@photo) %>
|
39
39
|
|
40
40
|
### Rails > 3.1
|
41
41
|
|
@@ -49,7 +49,7 @@ Then, in your views, do something like this:
|
|
49
49
|
|
50
50
|
<%= pin_it_button media: image_url(@photo.url)
|
51
51
|
description: @photo.description,
|
52
|
-
|
52
|
+
page_url: photo_url(@photo) %>
|
53
53
|
|
54
54
|
|
55
55
|
## Contributing
|
data/lib/pin_it.rb
CHANGED
@@ -9,7 +9,7 @@ module PinIt
|
|
9
9
|
module Helper
|
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
|
-
query_params = options.slice(:
|
12
|
+
query_params = options.slice(:url, :media, :description)
|
13
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"
|
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.3
|
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-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70349295352940 !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: *70349295352940
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70349295352320 !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: *70349295352320
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70349295351540 !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: *70349295351540
|
47
47
|
description: Rails helpers for adding Pinterest.com "Pin It" buttons to views
|
48
48
|
email:
|
49
49
|
- joshua@fanzter.com
|