TagoLine 0.1.4.19 → 0.1.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6a922a8577485cc7cd6bc8fdfea9dec7c4c774def42734a817fab669662e4e7
4
- data.tar.gz: 59c8594620d702539d8a16febb54ca5fc4144bafaad0f1afbb8e2b9013da9030
3
+ metadata.gz: 277ca5f10f90d6717f0600f6d6e87dcff55e1e3bd476036ebb02901f0eb7f7c2
4
+ data.tar.gz: cd512721127ba751b819009443cb4a5509d89487bc40a5b0160cbb95c7aad88f
5
5
  SHA512:
6
- metadata.gz: 78611464e04abbd59951ed47e9dcb60fc2d5d16c66b365950ba2685961c301e510defa5b36ebba228a2c72d7cd3e6432dccc860ce27800d95520a6a5c3712814
7
- data.tar.gz: fda7e43b7920d37d6477ea3c9ef275edf633434983ee0b2b00b783d1d67b74510b34566d6a5151cf7339f83c5b93c5e3ae14ef84826dab877d9023829c071303
6
+ metadata.gz: 42e24e42a236c6e1ddcb1ce5a9d2291fa7f5fc902b7f47b81cc06e2f620197917f6b81a2ca075544b6eb9942b77506268a856276feb3ae9e960fba09f15bf0a6
7
+ data.tar.gz: 7685831c0641975c8a0e08da9cda7ff816ce56641dc395c94e61f67b7a0eab3c181b433702a7f39f4ca0c6aa864c658425928ae303be0dfe898ff9b6a7d5333f
@@ -22,7 +22,7 @@ module TagoLine
22
22
 
23
23
  if stateIsRight(controller)
24
24
  res = getAccessToken(controller)
25
- getUserInfo(controller, res["id_token"], user_class=nil)
25
+ getUserInfo(controller, res["id_token"], user_class)
26
26
  return true
27
27
  else
28
28
  return false
@@ -45,8 +45,7 @@ module TagoLine
45
45
  user = user_class.find_or_initialize_by(line_sub: JSON.parse(res.body)["sub"])
46
46
  user.line_name = JSON.parse(res.body)["name"]
47
47
  user.line_picture = JSON.parse(res.body)["picture"]
48
- user.save!
49
- logger.debug('helloooooooooooooooooooooo')
48
+ user.save
50
49
  controller.session[:user_id] = user.id
51
50
  end
52
51
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoLine
4
- VERSION = "0.1.4.19"
4
+ VERSION = "0.1.4.20"
5
5
  CALLBACK_URL = ENV["LINE_CALLBACK_URL"]
6
6
  CHANNEL_ID = ENV["LINE_CHANNEL_ID"]
7
7
  CHANNEL_SECRET = ENV["LINE_CHANNEL_SECRET"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: TagoLine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.19
4
+ version: 0.1.4.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago