meibo 0.9.0 → 0.11.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: 0ae56245ed5c00c8542a7d497a8180a1c6966b3d3591e8a84c244eacbcde28a3
4
- data.tar.gz: a53953525d4b043bf49328bbc63194e17fd56064a69b2271d0b5842143ec0b72
3
+ metadata.gz: 11537d1363e9c059a0a6166beb9cf60e2b27821a1e1a2f99feec39aae883318a
4
+ data.tar.gz: 214ac900f47b7fdec86dc0072670b08e2029911eb9935fdb998de3fa297a95f2
5
5
  SHA512:
6
- metadata.gz: 71944143746b3134ffc1eafe8a7f3a867a649cdfdd1eb183d49bb01bbe21862b953d996db5f611b9f0f3f661ca3fc07e3d21227c089e292e7d7e76d5758d1eff
7
- data.tar.gz: da22ce6f5136370a0085eb2ef6409689ae2fe32fb67d292ba80c9051bbfd5f9d0b99176b6a74592eb92d25724260e33b9e0238e857eb86838aef3180ffbcd93e
6
+ metadata.gz: '0054203874839c0e8d36a334eef284aac82fa277aace6f5c94230579c4e9770e8e9ef1df7b9dc24beb7eedbc8930cfc9cfa66f597feab33cc4f5712706b0084e'
7
+ data.tar.gz: 4b477cd635c5195efe6c913695dc0115c9b1cb41320542a9e0024f75923ecd7be888dae43f098383e34cd0ed07359541f95d9812fbaa8fede4166760c9caad1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- meibo (0.9.0)
4
+ meibo (0.11.0)
5
5
  rubyzip
6
6
  zeitwerk
7
7
 
@@ -15,11 +15,27 @@ FactoryBot.define do
15
15
  sourced_id { SecureRandom.uuid }
16
16
  title { "#{school_year}年度" }
17
17
  type { Meibo::AcademicSession::TYPES[:school_year] }
18
- start_date { Date.new(school_year, 4, 1).iso8601 }
19
- end_date { Date.new(school_year + 1, 3, 31).iso8601 }
18
+ start_date { Date.new(school_year, 4, 1) }
19
+ end_date { Date.new(school_year + 1, 3, 31) }
20
20
  parent_sourced_id { parent&.sourced_id }
21
21
  school_year { today.year }
22
22
 
23
+ trait :grading_period do
24
+ type { Meibo::AcademicSession::TYPES[:grading_period] }
25
+ end
26
+
27
+ trait :semester do
28
+ type { Meibo::AcademicSession::TYPES[:semester] }
29
+ end
30
+
31
+ trait :school_year do
32
+ type { Meibo::AcademicSession::TYPES[:school_year] }
33
+ end
34
+
35
+ trait :term do
36
+ type { Meibo::AcademicSession::TYPES[:term] }
37
+ end
38
+
23
39
  trait :jp do
24
40
  initialize_with { Meibo::JapanProfile::AcademicSession.new(**attributes) }
25
41
  end
@@ -20,6 +20,14 @@ FactoryBot.define do
20
20
  school_sourced_id { school&.sourced_id }
21
21
  term_sourced_ids { terms.map(&:sourced_id) }
22
22
 
23
+ trait :homeroom do
24
+ class_type { Meibo::Classroom::TYPES[:homeroom] }
25
+ end
26
+
27
+ trait :scheduled do
28
+ class_type { Meibo::Classroom::TYPES[:scheduled] }
29
+ end
30
+
23
31
  trait :jp do
24
32
  initialize_with { Meibo::JapanProfile::Classroom.new(**attributes) }
25
33
  end
@@ -16,5 +16,21 @@ FactoryBot.define do
16
16
  trait :jp do
17
17
  initialize_with { Meibo::JapanProfile::Demographic.new(**attributes) }
18
18
  end
19
+
20
+ trait :male do
21
+ sex { Meibo::Demographic::SEX[:male] }
22
+ end
23
+
24
+ trait :female do
25
+ sex { Meibo::Demographic::SEX[:female] }
26
+ end
27
+
28
+ trait :unspecified do
29
+ sex { Meibo::Demographic::SEX[:unspecified] }
30
+ end
31
+
32
+ trait :other do
33
+ sex { Meibo::Demographic::SEX[:other] }
34
+ end
19
35
  end
20
36
  end
@@ -18,6 +18,14 @@ FactoryBot.define do
18
18
  school_sourced_id { school&.sourced_id }
19
19
  user_sourced_id { user&.sourced_id }
20
20
 
21
+ trait :administrator do
22
+ role { Meibo::Enrollment::ROLES[:administrator] }
23
+ end
24
+
25
+ trait :proctor do
26
+ role { Meibo::Enrollment::ROLES[:proctor] }
27
+ end
28
+
21
29
  trait :student do
22
30
  role { Meibo::Enrollment::ROLES[:student] }
23
31
  end
@@ -26,18 +34,14 @@ FactoryBot.define do
26
34
  role { Meibo::Enrollment::ROLES[:teacher] }
27
35
  end
28
36
 
29
- trait :administrator do
30
- role { Meibo::Enrollment::ROLES[:administrator] }
37
+ trait :jp do
38
+ initialize_with { Meibo::JapanProfile::Enrollment.new(**attributes) }
31
39
  end
32
40
 
33
41
  trait :guardian do
34
42
  role { Meibo::Enrollment::ROLES[:guardian] }
35
43
  end
36
44
 
37
- trait :jp do
38
- initialize_with { Meibo::JapanProfile::Classroom.new(**attributes) }
39
- end
40
-
41
45
  trait :public do
42
46
  public_flg { true }
43
47
  end
@@ -30,14 +30,30 @@ FactoryBot.define do
30
30
  "#{school_type}#{prefecture_no}#{kubun}#{school_no}#{check_digit}"
31
31
  end
32
32
 
33
- trait :district do
34
- type { Meibo::Organization::TYPES[:district] }
33
+ trait :department do
34
+ type { Meibo::Organization::TYPES[:department] }
35
35
  end
36
36
 
37
37
  trait :school do
38
38
  type { Meibo::Organization::TYPES[:school] }
39
39
  end
40
40
 
41
+ trait :district do
42
+ type { Meibo::Organization::TYPES[:district] }
43
+ end
44
+
45
+ trait :local do
46
+ type { Meibo::Organization::TYPES[:local] }
47
+ end
48
+
49
+ trait :state do
50
+ type { Meibo::Organization::TYPES[:state] }
51
+ end
52
+
53
+ trait :national do
54
+ type { Meibo::Organization::TYPES[:national] }
55
+ end
56
+
41
57
  trait :elementary_school do |factory|
42
58
  type { Meibo::Organization::TYPES[:school] }
43
59
  sequence(:name) {|n| "第#{n}小学校" }
@@ -26,18 +26,54 @@ FactoryBot.define do
26
26
  role_type { Meibo::Role::TYPES[:secondary] }
27
27
  end
28
28
 
29
- trait :teacher do
30
- role { Meibo::Role::ROLES[:teacher] }
29
+ trait :aide do
30
+ role { Meibo::Role::ROLES[:aide] }
31
31
  end
32
32
 
33
- trait :student do
34
- role { Meibo::Role::ROLES[:student] }
33
+ trait :counselor do
34
+ role { Meibo::Role::ROLES[:counselor] }
35
+ end
36
+
37
+ trait :district_administrator do
38
+ role { Meibo::Role::ROLES[:district_administrator] }
35
39
  end
36
40
 
37
41
  trait :guardian do
38
42
  role { Meibo::Role::ROLES[:guardian] }
39
43
  end
40
44
 
45
+ trait :parent do
46
+ role { Meibo::Role::ROLES[:parent] }
47
+ end
48
+
49
+ trait :principal do
50
+ role { Meibo::Role::ROLES[:principal] }
51
+ end
52
+
53
+ trait :proctor do
54
+ role { Meibo::Role::ROLES[:proctor] }
55
+ end
56
+
57
+ trait :relative do
58
+ role { Meibo::Role::ROLES[:relative] }
59
+ end
60
+
61
+ trait :site_administrator do
62
+ role { Meibo::Role::ROLES[:site_administrator] }
63
+ end
64
+
65
+ trait :student do
66
+ role { Meibo::Role::ROLES[:student] }
67
+ end
68
+
69
+ trait :system_administrator do
70
+ role { Meibo::Role::ROLES[:system_administrator] }
71
+ end
72
+
73
+ trait :teacher do
74
+ role { Meibo::Role::ROLES[:teacher] }
75
+ end
76
+
41
77
  trait :jp do
42
78
  initialize_with { Meibo::JapanProfile::Role.new(**attributes) }
43
79
  end
data/lib/meibo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meibo
4
- VERSION = "0.9.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meibo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiei Miyagi
@@ -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.9.0/CHANGELOG.md
128
+ changelog_uri: https://github.com/hanachin/meibo/blob/meibo/v0.11.0/CHANGELOG.md
129
129
  post_install_message:
130
130
  rdoc_options: []
131
131
  require_paths: