google_sign_in 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/helpers/google_sign_in/button_helper.rb +1 -1
- data/google_sign_in.gemspec +1 -1
- data/test/helpers/button_helper_test.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24c15501a3592c3084e2c010f28b27286fbc1063fc14a4e12cae6a39d45e2d91
|
4
|
+
data.tar.gz: 641fa3446a70fd92c3c4118df79622c3584df23d045b76665b536fad7640f31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9582961f9e2c3dd6943e7759165fea8dd3ad7c5dd7f3ea4a20952caaf4b148e613682d2846ee5995e8776fc56ecd94239365212f5b08f8e8e0f49dc19b6c54
|
7
|
+
data.tar.gz: 9c21ca9843a11d54482106c0b8889d313fc4a70b3b5686df7e0fb27042d4e8b100918b67789d81d625a829ee8b632025cd433f119c0d8320983cc4c49caf9e82
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module GoogleSignIn::ButtonHelper
|
2
2
|
def google_sign_in_button(text = nil, proceed_to:, **options, &block)
|
3
|
-
form_with url: google_sign_in.authorization_path do
|
3
|
+
form_with url: google_sign_in.authorization_path, local: true do
|
4
4
|
hidden_field_tag(:proceed_to, proceed_to, id: nil) + button_tag(text, name: nil, **options, &block)
|
5
5
|
end
|
6
6
|
end
|
data/google_sign_in.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'google_sign_in'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
s.authors = ['David Heinemeier Hansson', 'George Claghorn']
|
5
5
|
s.email = ['david@basecamp.com', 'george@basecamp.com']
|
6
6
|
s.summary = 'Sign in (or up) with Google for Rails applications'
|
@@ -3,7 +3,7 @@ require "test_helper"
|
|
3
3
|
class GoogleSignIn::ButtonHelperTest < ActionView::TestCase
|
4
4
|
test "generating a login button with text content" do
|
5
5
|
assert_dom_equal <<-HTML, google_sign_in_button("Log in with Google", proceed_to: "https://www.example.com/login")
|
6
|
-
<form action="/google_sign_in/authorization" accept-charset="UTF-8"
|
6
|
+
<form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
|
7
7
|
<input name="utf8" type="hidden" value="✓" />
|
8
8
|
<input name="proceed_to" type="hidden" value="https://www.example.com/login" />
|
9
9
|
<button type="submit">Log in with Google</button>
|
@@ -13,7 +13,7 @@ class GoogleSignIn::ButtonHelperTest < ActionView::TestCase
|
|
13
13
|
|
14
14
|
test "generating a login button with HTML content" do
|
15
15
|
assert_dom_equal <<-HTML, google_sign_in_button(proceed_to: "https://www.example.com/login") { image_tag("google.png") }
|
16
|
-
<form action="/google_sign_in/authorization" accept-charset="UTF-8"
|
16
|
+
<form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
|
17
17
|
<input name="utf8" type="hidden" value="✓" />
|
18
18
|
<input name="proceed_to" type="hidden" value="https://www.example.com/login" />
|
19
19
|
<button type="submit"><img src="/images/google.png"></button>
|
@@ -26,7 +26,7 @@ class GoogleSignIn::ButtonHelperTest < ActionView::TestCase
|
|
26
26
|
class: "login-button", data: { disable_with: "Loading Google login…" })
|
27
27
|
|
28
28
|
assert_dom_equal <<-HTML, button
|
29
|
-
<form action="/google_sign_in/authorization" accept-charset="UTF-8"
|
29
|
+
<form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
|
30
30
|
<input name="utf8" type="hidden" value="✓" />
|
31
31
|
<input name="proceed_to" type="hidden" value="https://www.example.com/login" />
|
32
32
|
<button type="submit" class="login-button" data-disable-with="Loading Google login…">Log in with Google</button>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_sign_in
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-09-
|
12
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|