remotty-rails 0.1.0 → 0.1.1

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: e80b9e9073ddf71e6601144cfa9f980840379c38
4
- data.tar.gz: 07ceffab0fafd38523582f428cc64bf45828bd39
3
+ metadata.gz: 8f6ccd78f35337a9c3c3d792fdabde36039f5d6f
4
+ data.tar.gz: c7843836c41da3fe9ada856e5251fde05f869302
5
5
  SHA512:
6
- metadata.gz: c22e00f18dc110f1926b78e0e21522c0403b6fd75ec8e2b049f73659a2a6b27517407e7ff1b0a941db13da4a744f9d1420840f39b92efd30b9e6d905fdb780cc
7
- data.tar.gz: b77bd588146632d4690456dbc3534990eda5e45698fc33ca030102cbe2728592fe11cbf7978cb616cdcb31751a5fbf1f88a4c329a75f728fd73c36a873cf2c58
6
+ metadata.gz: 605523b11aa7f6db42d58e2e4b704b53aa3f5ed2fa1f2a3ede9677e0d7a278b28e4fb89a61d06d3ff78256ab5a321b2239d2a3271a99695e1c42f93f16027e79
7
+ data.tar.gz: 9d79cce96ee058f90a70b09eefe81f727075e8a6871b6696708c32ad7634fdac92e1c94300ec470a3e6905aeff93fd254ba4b575d1196b4b505eadd800f55a6b
@@ -1,3 +1,7 @@
1
+ # 0.1.1
2
+
3
+ - support omniauth with popup or window
4
+
1
5
  # 0.1.0
2
6
 
3
7
  - remove MimeResponds for rails 4.2
@@ -46,7 +46,7 @@ class Remotty::Users::OmniauthCallbacksController < Devise::OmniauthCallbacksCon
46
46
  @ret[:error][:data] = user if user
47
47
  end
48
48
 
49
- render :inline => "<script>window.opener.oauthCallback(#{@ret.to_json}); window.close();</script>",
49
+ render :inline => "<script>(window.opener || window).oauthCallback(#{@ret.to_json}); if(window.opener) { window.close(); }</script>",
50
50
  :content_type => 'text/html'
51
51
  end
52
52
 
@@ -58,7 +58,7 @@ class Remotty::Users::OmniauthCallbacksController < Devise::OmniauthCallbacksCon
58
58
  }
59
59
  }
60
60
 
61
- render :inline => "<script>window.opener.oauthCallback(#{@ret.to_json}); window.close();</script>",
61
+ render :inline => "<script>(window.opener || window).oauthCallback(#{@ret.to_json}); if(window.opener) { window.close(); }</script>",
62
62
  :content_type => 'text/html'
63
63
  end
64
64
 
@@ -1,5 +1,5 @@
1
1
  module Remotty
2
2
  module Rails
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remotty-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chungsub Kim
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-26 00:00:00.000000000 Z
12
+ date: 2015-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack-cors
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubyforge_project:
256
- rubygems_version: 2.4.1
256
+ rubygems_version: 2.4.6
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: rails base package by remotty