meibo 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +2 -1
- data/Gemfile.lock +1 -1
- data/lib/meibo/factory_bot/role.rb +10 -1
- data/lib/meibo/factory_bot/user.rb +17 -2
- data/lib/meibo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00ecbfbaef30129e7c786dbcd4fa12b328d98f14cfeea61ac324a29fae66b69e
|
4
|
+
data.tar.gz: 83dd173fe04db639a914c6c2d41ba73fd3119b39ac51c4fe00a691e26f99ea80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9233be4a0d226ad7f40a23a8de2a665835a118e2ff0ba1b16ac1f438e50afb76be445eaea3b94d6bdce4819ac7be08d3bf94e41415cb06f4fd0ab7f5371bebdf
|
7
|
+
data.tar.gz: a59035b09ab0c6de6ef109b079ca063ab43d7cb6294e4657809c19a6dd7461737e68bdaece2d79dee620df4618ab08301bfcbffb668c1f570b7b90bc7a3f59a4
|
data/.rubocop_todo.yml
CHANGED
@@ -29,7 +29,8 @@ Metrics/AbcSize:
|
|
29
29
|
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods, inherit_mode.
|
30
30
|
# AllowedMethods: refine
|
31
31
|
Metrics/BlockLength:
|
32
|
-
|
32
|
+
Exclude:
|
33
|
+
- 'lib/meibo/factory_bot/**/*.rb'
|
33
34
|
|
34
35
|
# Offense count: 4
|
35
36
|
# Configuration parameters: CountComments, CountAsOne.
|
data/Gemfile.lock
CHANGED
@@ -75,7 +75,16 @@ FactoryBot.define do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
trait :jp do
|
78
|
-
|
78
|
+
jp_version { "1.1" }
|
79
|
+
|
80
|
+
initialize_with do
|
81
|
+
case jp_version
|
82
|
+
when "1.1"
|
83
|
+
Meibo::Role.new(**attributes)
|
84
|
+
when "1.0"
|
85
|
+
Meibo::JapanProfile::RoleJpM0.new(**attributes)
|
86
|
+
end
|
87
|
+
end
|
79
88
|
end
|
80
89
|
end
|
81
90
|
end
|
@@ -5,11 +5,19 @@ require "securerandom"
|
|
5
5
|
|
6
6
|
FactoryBot.define do
|
7
7
|
factory :meibo_user, class: "Meibo::User" do
|
8
|
-
initialize_with
|
8
|
+
initialize_with do
|
9
|
+
case oneroster_version
|
10
|
+
when "1.2.1"
|
11
|
+
new(**attributes)
|
12
|
+
when "1.2", "1.2.0"
|
13
|
+
Meibo::UserM0.new(**attributes)
|
14
|
+
end
|
15
|
+
end
|
9
16
|
|
10
17
|
transient do
|
11
18
|
agents { [] }
|
12
19
|
primary_organization { nil }
|
20
|
+
oneroster_version { "1.2.1" }
|
13
21
|
end
|
14
22
|
|
15
23
|
sourced_id { SecureRandom.uuid }
|
@@ -20,7 +28,14 @@ FactoryBot.define do
|
|
20
28
|
primary_org_sourced_id { primary_organization&.sourced_id }
|
21
29
|
|
22
30
|
trait :jp do
|
23
|
-
initialize_with
|
31
|
+
initialize_with do
|
32
|
+
case oneroster_version
|
33
|
+
when "1.2.1"
|
34
|
+
Meibo::JapanProfile::User.new(**attributes)
|
35
|
+
when "1.2", "1.2.0"
|
36
|
+
Meibo::JapanProfile::UserM0.new(**attributes)
|
37
|
+
end
|
38
|
+
end
|
24
39
|
|
25
40
|
transient do
|
26
41
|
homeroom { nil }
|
data/lib/meibo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meibo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seiei Miyagi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: csv
|
@@ -142,7 +142,7 @@ metadata:
|
|
142
142
|
allowed_push_host: https://rubygems.org/
|
143
143
|
homepage_uri: https://github.com/hanachin/meibo
|
144
144
|
source_code_uri: https://github.com/hanachin/meibo
|
145
|
-
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.
|
145
|
+
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.23.0/CHANGELOG.md
|
146
146
|
rubygems_mfa_required: 'true'
|
147
147
|
post_install_message:
|
148
148
|
rdoc_options: []
|