TagoLine 0.1.4.17 → 0.1.4.19

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: 1b81c8fe7ecfab61ea1b808b671197543a73eba31bdd8578305a7fa300d394ec
4
- data.tar.gz: 7b1a59b58fae89c95488ee5da680c9b491d2968558d889f04461edbaa0396da5
3
+ metadata.gz: f6a922a8577485cc7cd6bc8fdfea9dec7c4c774def42734a817fab669662e4e7
4
+ data.tar.gz: 59c8594620d702539d8a16febb54ca5fc4144bafaad0f1afbb8e2b9013da9030
5
5
  SHA512:
6
- metadata.gz: d10060f91d2bfbb072fdc9df39f83f5f766923197f9013ac9f0cc0185fcb396d894987ea8cedf87e60c56ff4375bf06b1356a958dcb9678c651c6bf862e21f53
7
- data.tar.gz: 5d88ef7208b8180bccc93e7765995527fb9a0b93b21a5c2ec5688f006db032cf032752d0d79696b5f784994970ea510d98f96223e4689b201af662aa6d34df2e
6
+ metadata.gz: 78611464e04abbd59951ed47e9dcb60fc2d5d16c66b365950ba2685961c301e510defa5b36ebba228a2c72d7cd3e6432dccc860ce27800d95520a6a5c3712814
7
+ data.tar.gz: fda7e43b7920d37d6477ea3c9ef275edf633434983ee0b2b00b783d1d67b74510b34566d6a5151cf7339f83c5b93c5e3ae14ef84826dab877d9023829c071303
@@ -42,10 +42,11 @@ module TagoLine
42
42
  controller.session[:line_picture]= JSON.parse(res.body)["picture"]
43
43
 
44
44
  if user_class != nil
45
- user = user_class.find_or_initialize_by(line_sub: controller.session[:line_sub])
46
- user.line_name = controller.session[:line_name]
47
- user.line_picture = controller.session[:line_picture]
48
- user.save
45
+ user = user_class.find_or_initialize_by(line_sub: JSON.parse(res.body)["sub"])
46
+ user.line_name = JSON.parse(res.body)["name"]
47
+ user.line_picture = JSON.parse(res.body)["picture"]
48
+ user.save!
49
+ logger.debug('helloooooooooooooooooooooo')
49
50
  controller.session[:user_id] = user.id
50
51
  end
51
52
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TagoLine
4
- VERSION = "0.1.4.17"
4
+ VERSION = "0.1.4.19"
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.17
4
+ version: 0.1.4.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - manatago