monban-core 1.0.3 → 1.1.0

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: e2b3646dc11e0a440463e3de730a855cf89a16d55ef15f88921e894861205fce
4
- data.tar.gz: da5a7436c1089000adb681c7edf982903f3201ca06456bb6a3f03f59de8328d3
3
+ metadata.gz: c191a3d9b6c48dc6fdffa4461029e453d138cc0a0dcaa0ea584f99cbea572622
4
+ data.tar.gz: 23b0fe725f65fe29e2708010be43bdd4fd1817be64a51dab1ff8357ac4e33104
5
5
  SHA512:
6
- metadata.gz: 451059921caf6a143a5fb6f7f9abfce31e34176cbb8f5efd2e7a6be7121371d2ef29d379c7d184c1a2edce38ca2b49425a9fd7e3ab0f4c1fe9a871434745452a
7
- data.tar.gz: 3081914f93d168485a165ed2225b7ff3465a4eed2567ff6d144a1f972d24edc9737a1f876099139c6c0b6618fb4295487460844e50c14426abaec6a9ccf64c82
6
+ metadata.gz: ddb7915e4f0a13e45e8cb362a7e3fb089a973c04b01fb2ffd39dd5db4d5362c31a4d9b01e4cb5363b300a0103275f153f462bb8db52e2cd108168ca764bac838
7
+ data.tar.gz: 9de125e55b1aab31c7323e710d71bbaeb02223ed226caba2447f5f94260bc434f3021b54d5c27a3ac92188dc6084d6a02b49414212988164dff119cfe4be0b90
@@ -0,0 +1,7 @@
1
+ # Version : 1.1.0
2
+
3
+ fix: detect login_type from account on general token
4
+
5
+ ## commits
6
+
7
+ * fix: detect login_type from account on genral token
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Version : 1.1.0
2
+
3
+ fix: detect login_type from account on general token
4
+
1
5
  # Version : 1.0.3
2
6
 
3
7
  fix: travis
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- monban-core (1.0.3)
4
+ monban-core (1.1.0)
5
5
  getto-initialize_with (~> 1.0)
6
6
  getto-params (~> 1.0)
7
7
  jwt (~> 2.1)
@@ -1,5 +1,5 @@
1
1
  module Monban
2
2
  module Core
3
- VERSION = "1.0.3"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -13,17 +13,20 @@ module Monban
13
13
 
14
14
  initialize_with(
15
15
  error: Monban::Core::ERRORS,
16
- login: Symbol,
16
+ repository: [
17
+ :login_type,
18
+ ],
17
19
  full: Full,
18
20
  authy: Authy,
19
21
  )
20
22
 
21
23
  def create(account_id:)
24
+ login = repository.login_type(account_id: account_id)
22
25
  case login
23
- when :full then full.create(account_id: account_id)
24
- when :authy then authy.create(account_id: account_id)
26
+ when "full" then full.create(account_id: account_id)
27
+ when "authy" then authy.create(account_id: account_id)
25
28
  else
26
- error.server_error! "invalid login: #{login}"
29
+ error.server_error! "invalid login: #{login} / #{account_id}"
27
30
  end
28
31
  end
29
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monban-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - shun@getto.systems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-28 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: getto-initialize_with
@@ -127,6 +127,7 @@ files:
127
127
  - CHANGELOG/1.0.1.md
128
128
  - CHANGELOG/1.0.2.md
129
129
  - CHANGELOG/1.0.3.md
130
+ - CHANGELOG/1.1.0.md
130
131
  - Gemfile
131
132
  - Gemfile.lock
132
133
  - LICENSE