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 +4 -4
- data/VERSION +1 -1
- data/facepalm2.gemspec +2 -2
- data/lib/facepalm/rails/controller/redirects.rb +5 -5
- data/lib/facepalm/user.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41dae229b13f81cbbacfa571bfc062720c0cebc5
|
4
|
+
data.tar.gz: 627612aa165091fd5850da13e637fbd2c130506b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ceda059c27a2ee9ab6ab34e1584f78ae3427bda411a0768c28b67d8ed6edf4c759177855845d9cabfc6710605b84022767a4a2c8c6520c5bd3bb26635bc287
|
7
|
+
data.tar.gz: b4271e45531b5fa16ea418c7aa9f870505ae4e5c549ac0455fccc1d212ba6ef3eca72f1ba13d52c1b19627e988ddf3b780cb47fd633027204cad4f033dc4d24c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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.
|
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.
|
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