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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b137ee1cc83a6653b49903d092c9e50ea829c8a7cd0521def7b72ca2cc80cad9
4
- data.tar.gz: f76556d215cf8a35b25f280831672fa50fe348e3a1910f78a0e1d95ff36238b9
3
+ metadata.gz: 24c15501a3592c3084e2c010f28b27286fbc1063fc14a4e12cae6a39d45e2d91
4
+ data.tar.gz: 641fa3446a70fd92c3c4118df79622c3584df23d045b76665b536fad7640f31c
5
5
  SHA512:
6
- metadata.gz: 201e14b5924a62836dc8479496d26567482219fea58a492c665b5a2585cf026bbd20ee2641cdc55ee822b07a7668f73804b559d5d4dde9b021a0cb39d550c040
7
- data.tar.gz: b3057993c034c2ca588b684a730b9b7337366b857deed6fe848478a84a6f9f8df1769a2995d619bf880625d85184cda6aef4723608f61163a80f4f9e634fd7bc
6
+ metadata.gz: 8a9582961f9e2c3dd6943e7759165fea8dd3ad7c5dd7f3ea4a20952caaf4b148e613682d2846ee5995e8776fc56ecd94239365212f5b08f8e8e0f49dc19b6c54
7
+ data.tar.gz: 9c21ca9843a11d54482106c0b8889d313fc4a70b3b5686df7e0fb27042d4e8b100918b67789d81d625a829ee8b632025cd433f119c0d8320983cc4c49caf9e82
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- google_sign_in (1.0.1)
4
+ google_sign_in (1.0.2)
5
5
  google-id-token (>= 1.4.0)
6
6
  oauth2 (>= 1.4.0)
7
7
  rails (>= 5.2.0)
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'google_sign_in'
3
- s.version = '1.0.1'
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" data-remote="true" method="post">
6
+ <form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
7
7
  <input name="utf8" type="hidden" value="&#x2713;" />
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" data-remote="true" method="post">
16
+ <form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
17
17
  <input name="utf8" type="hidden" value="&#x2713;" />
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" data-remote="true" method="post">
29
+ <form action="/google_sign_in/authorization" accept-charset="UTF-8" method="post">
30
30
  <input name="utf8" type="hidden" value="&#x2713;" />
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.1
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-10 00:00:00.000000000 Z
12
+ date: 2018-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails