facepalm2 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56e470c74f47e9b60f23a263276080e3596f5484
4
- data.tar.gz: a57eca5199a0e9055a94afc08f9c5989b53b4999
3
+ metadata.gz: 41dae229b13f81cbbacfa571bfc062720c0cebc5
4
+ data.tar.gz: 627612aa165091fd5850da13e637fbd2c130506b
5
5
  SHA512:
6
- metadata.gz: dbd841b9eaa1b865683d28612f9d94ad0155d248d4cb66f9a054a3c1d849cfad310a7ac64c4de188fd693f953b45b779290022512a1f694584afb011cc8b25cb
7
- data.tar.gz: 49e2ad0c4213442034a28d4b3d2db7877dc9d5401136710f3bb34f8a71e134ab568196045c9d0303522f96d92d026276cea2f1e6ccd3a840bb477686f179157b
6
+ metadata.gz: 72ceda059c27a2ee9ab6ab34e1584f78ae3427bda411a0768c28b67d8ed6edf4c759177855845d9cabfc6710605b84022767a4a2c8c6520c5bd3bb26635bc287
7
+ data.tar.gz: b4271e45531b5fa16ea418c7aa9f870505ae4e5c549ac0455fccc1d212ba6ef3eca72f1ba13d52c1b19627e988ddf3b780cb47fd633027204cad4f033dc4d24c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
data/facepalm2.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: facepalm2 0.0.4 ruby lib
5
+ # stub: facepalm2 0.0.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "facepalm2"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -13,7 +13,7 @@ module Facepalm
13
13
  # Overrides ActionController::Base#redirect_to to pass signed_request in flash[]
14
14
  def redirect_to_with_signed_request(*args)
15
15
  flash[:signed_request] = fb_signed_request if fb_canvas?
16
-
16
+
17
17
  redirect_to_without_signed_request(*args)
18
18
  end
19
19
 
@@ -23,7 +23,7 @@ module Facepalm
23
23
  redirect_url = url_options.is_a?(String) ? url_options : url_for(url_options)
24
24
 
25
25
  logger.info "Redirecting from IFRAME to #{ redirect_url }"
26
-
26
+
27
27
  respond_to do |format|
28
28
  format.html do
29
29
  render(
@@ -31,7 +31,7 @@ module Facepalm
31
31
  :layout => false
32
32
  )
33
33
  end
34
-
34
+
35
35
  format.js do
36
36
  render(
37
37
  :text => iframe_redirect_js_code(redirect_url),
@@ -61,7 +61,7 @@ module Facepalm
61
61
  </head></html>
62
62
  }
63
63
  end
64
-
64
+
65
65
  # Generates JavaScript code to redirect user
66
66
  #
67
67
  # @param target_url An URL to redirect the user to
@@ -71,4 +71,4 @@ module Facepalm
71
71
  end
72
72
  end
73
73
  end
74
- end
74
+ end
data/lib/facepalm/user.rb CHANGED
@@ -41,6 +41,7 @@ module Facepalm
41
41
 
42
42
 
43
43
  def initialize(options = {})
44
+ ::Rails.logger.info(options.inspect)
44
45
  @options = options
45
46
  end
46
47
 
@@ -75,4 +76,4 @@ module Facepalm
75
76
  end
76
77
  end
77
78
 
78
- end
79
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facepalm2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksey V. Dmitriev