ssk_line 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ssk_line.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eee3c632759a25a502489ed1f9750e86d9c62d1086e26f8118763e2a2f9dd8e5
4
- data.tar.gz: f9f4d6bc518b7512bac35a23a41f5aafe0269433e16007fc1768b956ce25898a
3
+ metadata.gz: 2a758de8729859df4405a9c522a65ba35c8bf98f507a8ebdd8dbd5feed4c1e49
4
+ data.tar.gz: 85b8ef830d4d07d428918a590783c14b62439e891c499964213a384a9e3d2c96
5
5
  SHA512:
6
- metadata.gz: f361a8cc9e3790401ca4667cbd1cb68b06eb740f3806fb79a4b72158444710912fd2c34830e48736bf4ad0dcd1304d85ad2db818c19c5926454c9f03ac00eed1
7
- data.tar.gz: f7b6052d91a14ed45e55efb023f2ab43c7c484cd341a4ee66e02e39cb71c3bc23dbbf32d4d060a3396a1cbac13183480e658f79190878b7a66f1b464deea0986
6
+ metadata.gz: a643381c9b3175770c67ae6381a3a1a2a73f1bb7d93c4d3d996b315d4bd0b66dc26dd7ee218a72bea4c9c344e1ae3528bdefb08b15e73e97ae66a3363703f84a
7
+ data.tar.gz: bfd0a8f8620e9e4692e681e6acea3d3e496d81a31abca328605b0620411cfdf5bd91ed835b86eed830668e0a8e07685d78e23e37d39b6800b20c3fcb5c15e1e8
data/lib/ssk_line.rb CHANGED
@@ -9,21 +9,18 @@ module SskLine
9
9
  'https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id='+ENV['LINEAPI_CHANNEL_ID']+'&redirect_uri='+ENV['LINEAPI_CALLBACK_URL']+'&state='+request.session[:line_csrf]+'&scope=profile%20openid'
10
10
  end
11
11
 
12
+ #最低限の設定がされているかのチェック
12
13
  def self.status_check(request,controller,user_class)
13
14
  request.flash[:danger]=''
14
15
  self.env_key_check(request,'LINEAPI_CHANNEL_ID')
15
16
  self.env_key_check(request,'LINEAPI_CALLBACK_URL')
16
- self.env_key_check(request,'LINEAPI_CALLBACK_URL')
17
+ self.env_key_check(request,'LINEAPI_CHANNEL_SECRET')
17
18
  self.instance_method_check(request,user_class,:teacher)
18
19
  self.instance_method_check(request,user_class,:admin)
19
20
  self.instance_method_check(request,user_class,:lineid)
20
21
  self.instance_method_check(request,user_class,:dname)
21
22
  self.instance_method_check(request,user_class,:picture)
22
-
23
-
24
-
25
23
  if request.flash[:danger].length > 0 then return false else return true end
26
-
27
24
  end
28
25
 
29
26
  def self.instance_method_check(request,user_class,key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssk_line
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Quaranto