doesfacebook 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/does_facebook_helper.rb +5 -0
- data/lib/doesfacebook/filters.rb +3 -3
- data/lib/doesfacebook.rb +1 -1
- metadata +2 -2
@@ -10,6 +10,11 @@ module DoesFacebookHelper
|
|
10
10
|
controller.send(:facebook_config)[:app_id]
|
11
11
|
end
|
12
12
|
|
13
|
+
# Return the API key of the current application to the view
|
14
|
+
def api_key
|
15
|
+
controller.send(:facebook_config)[:api_key]
|
16
|
+
end
|
17
|
+
|
13
18
|
# Return the current app callback URL
|
14
19
|
def app_callback_url
|
15
20
|
controller.send(:facebook_config)[:callback_url]
|
data/lib/doesfacebook/filters.rb
CHANGED
@@ -17,10 +17,10 @@ module DoesFacebook
|
|
17
17
|
digested = OpenSSL::HMAC.digest("sha256", app_secret, encoded_data)
|
18
18
|
valid = (digested == decoded_signature)
|
19
19
|
if valid
|
20
|
-
logger.info "
|
20
|
+
logger.info " Facebook Signed Request Valid."
|
21
21
|
else
|
22
|
-
logger.info "
|
23
|
-
raise "
|
22
|
+
logger.info " Facebook Signed Request is not Valid. Ensure request is from Facebook."
|
23
|
+
raise "DoesFacebook: Invalid Signed Request. Ensure request is from Facebook."
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/lib/doesfacebook.rb
CHANGED
@@ -17,7 +17,7 @@ module DoesFacebook
|
|
17
17
|
# engine_name :doesfacebook
|
18
18
|
end
|
19
19
|
|
20
|
-
# Return the current working version of
|
20
|
+
# Return the current working version of DoesFacebook from VERSION file:
|
21
21
|
def self.version
|
22
22
|
@@version ||= File.open(File.join(File.dirname(__FILE__), "..", "VERSION"), "r").read
|
23
23
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: doesfacebook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- mccolin
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-02-
|
13
|
+
date: 2011-02-14 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|