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 +4 -4
- data/CHANGELOG/1.1.0.md +7 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/monban/core/version.rb +1 -1
- data/lib/monban/use_case/auth/token/general.rb +7 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c191a3d9b6c48dc6fdffa4461029e453d138cc0a0dcaa0ea584f99cbea572622
|
4
|
+
data.tar.gz: 23b0fe725f65fe29e2708010be43bdd4fd1817be64a51dab1ff8357ac4e33104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddb7915e4f0a13e45e8cb362a7e3fb089a973c04b01fb2ffd39dd5db4d5362c31a4d9b01e4cb5363b300a0103275f153f462bb8db52e2cd108168ca764bac838
|
7
|
+
data.tar.gz: 9de125e55b1aab31c7323e710d71bbaeb02223ed226caba2447f5f94260bc434f3021b54d5c27a3ac92188dc6084d6a02b49414212988164dff119cfe4be0b90
|
data/CHANGELOG/1.1.0.md
ADDED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/monban/core/version.rb
CHANGED
@@ -13,17 +13,20 @@ module Monban
|
|
13
13
|
|
14
14
|
initialize_with(
|
15
15
|
error: Monban::Core::ERRORS,
|
16
|
-
|
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
|
24
|
-
when
|
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
|
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-
|
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
|