meibo 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/meibo/factory_bot/academic_session.rb +4 -0
- data/lib/meibo/factory_bot/classroom.rb +8 -1
- data/lib/meibo/factory_bot/course.rb +4 -0
- data/lib/meibo/factory_bot/demographic.rb +4 -0
- data/lib/meibo/factory_bot/enrollment.rb +12 -0
- data/lib/meibo/factory_bot/organization.rb +4 -0
- data/lib/meibo/factory_bot/role.rb +4 -0
- data/lib/meibo/factory_bot/user.rb +8 -6
- data/lib/meibo/factory_bot/user_profile.rb +4 -0
- 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: 0ae56245ed5c00c8542a7d497a8180a1c6966b3d3591e8a84c244eacbcde28a3
|
4
|
+
data.tar.gz: a53953525d4b043bf49328bbc63194e17fd56064a69b2271d0b5842143ec0b72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71944143746b3134ffc1eafe8a7f3a867a649cdfdd1eb183d49bb01bbe21862b953d996db5f611b9f0f3f661ca3fc07e3d21227c089e292e7d7e76d5758d1eff
|
7
|
+
data.tar.gz: da22ce6f5136370a0085eb2ef6409689ae2fe32fb67d292ba80c9051bbfd5f9d0b99176b6a74592eb92d25724260e33b9e0238e857eb86838aef3180ffbcd93e
|
data/Gemfile.lock
CHANGED
@@ -19,5 +19,9 @@ FactoryBot.define do
|
|
19
19
|
end_date { Date.new(school_year + 1, 3, 31).iso8601 }
|
20
20
|
parent_sourced_id { parent&.sourced_id }
|
21
21
|
school_year { today.year }
|
22
|
+
|
23
|
+
trait :jp do
|
24
|
+
initialize_with { Meibo::JapanProfile::AcademicSession.new(**attributes) }
|
25
|
+
end
|
22
26
|
end
|
23
27
|
end
|
@@ -19,10 +19,17 @@ FactoryBot.define do
|
|
19
19
|
class_type { Meibo::Classroom::TYPES[:homeroom] }
|
20
20
|
school_sourced_id { school&.sourced_id }
|
21
21
|
term_sourced_ids { terms.map(&:sourced_id) }
|
22
|
-
|
22
|
+
|
23
|
+
trait :jp do
|
24
|
+
initialize_with { Meibo::JapanProfile::Classroom.new(**attributes) }
|
25
|
+
end
|
23
26
|
|
24
27
|
trait :special_needs do
|
25
28
|
special_needs { true }
|
26
29
|
end
|
30
|
+
|
31
|
+
trait :no_special_needs do
|
32
|
+
special_needs { false }
|
33
|
+
end
|
27
34
|
end
|
28
35
|
end
|
@@ -33,5 +33,17 @@ FactoryBot.define do
|
|
33
33
|
trait :guardian do
|
34
34
|
role { Meibo::Enrollment::ROLES[:guardian] }
|
35
35
|
end
|
36
|
+
|
37
|
+
trait :jp do
|
38
|
+
initialize_with { Meibo::JapanProfile::Classroom.new(**attributes) }
|
39
|
+
end
|
40
|
+
|
41
|
+
trait :public do
|
42
|
+
public_flg { true }
|
43
|
+
end
|
44
|
+
|
45
|
+
trait :private do
|
46
|
+
public_flg { false }
|
47
|
+
end
|
36
48
|
end
|
37
49
|
end
|
@@ -18,13 +18,15 @@ FactoryBot.define do
|
|
18
18
|
sequence(:family_name) {|n| "Doe#{n}" }
|
19
19
|
agent_sourced_ids { agents&.map(&:sourced_id) }
|
20
20
|
primary_org_sourced_id { primary_organization&.sourced_id }
|
21
|
-
end
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
homeroom { nil }
|
26
|
-
end
|
22
|
+
trait :jp do
|
23
|
+
initialize_with { Meibo::JapanProfile::User.new(**attributes) }
|
27
24
|
|
28
|
-
|
25
|
+
transient do
|
26
|
+
homeroom { nil }
|
27
|
+
end
|
28
|
+
|
29
|
+
home_class { homeroom&.sourced_id }
|
30
|
+
end
|
29
31
|
end
|
30
32
|
end
|
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.9.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: 2022-11-
|
11
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -125,7 +125,7 @@ metadata:
|
|
125
125
|
allowed_push_host: https://rubygems.org/
|
126
126
|
homepage_uri: https://github.com/hanachin/meibo
|
127
127
|
source_code_uri: https://github.com/hanachin/meibo
|
128
|
-
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.
|
128
|
+
changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.9.0/CHANGELOG.md
|
129
129
|
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|