facebook_app 0.0.20 → 0.0.21

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.
@@ -4,6 +4,4 @@
4
4
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
5
  // the compiled file.
6
6
  //
7
- //= require jquery
8
- //= require jquery_ujs
9
7
  //= require_tree .
@@ -5,6 +5,7 @@ window.removeAppPermissions = () ->
5
5
  FB.api("/me/permissions", "delete", {}, () -> alert("Removed App Permission From Facebook"))
6
6
 
7
7
  window.facebookLogin = (redirectUrl, permissions) ->
8
+ track("see_permissions_dialogue")
8
9
  FB.getLoginStatus (status) ->
9
10
  if status.authResponse
10
11
  console.log "User already logged in"
@@ -2,7 +2,8 @@ module FacebookApp
2
2
  class ConversionSummary
3
3
 
4
4
  def virality_coefficient(state)
5
- (send(state, :viral).to_i.fdiv(send(state, :advertising).to_i)*100).to_s
5
+ all_known = send(state, :viral) + send(state, :advertising)
6
+ (send(state, :viral).to_i.fdiv(all_known.to_i)*100).to_s
6
7
  end
7
8
 
8
9
  def percentage_of_total(state, marketing_mode)
@@ -7,7 +7,7 @@ module FacebookApp
7
7
  end
8
8
 
9
9
  def track_conversion(conversion_state)
10
- Rails.logger.debug "Attempting to track #{conversion_state}"
10
+ Rails.logger.log "Attempting to track #{conversion_state}"
11
11
  Conversion.track(cookies[:conversion_id], conversion_state)
12
12
  rescue
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module FacebookApp
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: facebook_app
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.20
5
+ version: 0.0.21
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jack Kinsella
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-08 00:00:00 Z
13
+ date: 2011-11-09 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails