facebook_dialog 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 CHANGED
@@ -8,6 +8,8 @@ A utility that makes it easy to integrate progressively enhanced facebook dialog
8
8
  #in a Rails View
9
9
  <%= link_to "Share on Facebook" FacebookDialog::Feed.new({
10
10
  redirect_uri: "http://www.example.com",
11
+ link: "http://www.example.com",
12
+ name: "Want to know?",
11
13
  caption: "Something pretty awesome",
12
14
  description: "Zomg! You won't believe what I found on the web."
13
15
  }),
@@ -25,6 +25,7 @@ module FacebookDialog
25
25
  #ref
26
26
  def initialize(options = {})
27
27
  @options = options
28
+ @options[:app_id] = FacebookDialog.api_key
28
29
  end
29
30
 
30
31
  def url
@@ -1,4 +1,4 @@
1
1
  module FacebookDialog
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe FacebookDialog::Feed do
4
4
  let(:redirect_uri) { "http://www.example.com" }
5
- let(:title) { "Title! With. Special Characters" }
5
+ let(:name) { "Title! With. Special Characters" }
6
6
  let(:caption) { "A Caption" }
7
7
  let(:description) { "A description" }
8
8
  let(:api_key) { "An Api Key" }
@@ -14,7 +14,8 @@ describe FacebookDialog::Feed do
14
14
  subject do
15
15
  FacebookDialog::Feed.new({
16
16
  redirect_uri: redirect_uri,
17
- title: title,
17
+ name: name,
18
+ link: redirect_uri,
18
19
  caption: caption,
19
20
  description: description
20
21
  })
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook_dialog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &2157516940 !ruby/object:Gem::Requirement
16
+ requirement: &2156166720 !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: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157516940
24
+ version_requirements: *2156166720
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activemodel
27
- requirement: &2157516380 !ruby/object:Gem::Requirement
27
+ requirement: &2156166140 !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: :runtime
34
34
  prerelease: false
35
- version_requirements: *2157516380
35
+ version_requirements: *2156166140
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: configatron
38
- requirement: &2157515940 !ruby/object:Gem::Requirement
38
+ requirement: &2156165640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2157515940
46
+ version_requirements: *2156165640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &2157515260 !ruby/object:Gem::Requirement
49
+ requirement: &2156165100 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2157515260
57
+ version_requirements: *2156165100
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec
60
- requirement: &2157514520 !ruby/object:Gem::Requirement
60
+ requirement: &2156164600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2157514520
68
+ version_requirements: *2156164600
69
69
  description: A utility for building progressively enhanced Facebook dialogs
70
70
  email:
71
71
  - dpickett@enlightsolutions.com
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  segments:
103
103
  - 0
104
- hash: 772972050930884118
104
+ hash: -4243053102014288206
105
105
  required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: 772972050930884118
113
+ hash: -4243053102014288206
114
114
  requirements: []
115
115
  rubyforge_project:
116
116
  rubygems_version: 1.8.6