doesfacebook 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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]
@@ -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 "DoFacebook: Signed Request Valid."
20
+ logger.info " Facebook Signed Request Valid."
21
21
  else
22
- logger.info "DoFacebook: Invalid Signed Request. Ensure request from Facebook."
23
- raise "DoFacebook: Invalid Signed Request. Ensure request from Facebook."
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 DoFacebook from VERSION file:
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.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-12 00:00:00 -05:00
13
+ date: 2011-02-14 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency