meibo 0.14.0 → 0.15.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/academic_session.rb +6 -2
- data/lib/meibo/classroom.rb +4 -0
- data/lib/meibo/course.rb +4 -0
- data/lib/meibo/data_model.rb +4 -0
- data/lib/meibo/data_set.rb +5 -0
- data/lib/meibo/demographic.rb +4 -0
- data/lib/meibo/enrollment.rb +4 -0
- data/lib/meibo/organization.rb +9 -1
- data/lib/meibo/role.rb +4 -0
- data/lib/meibo/user.rb +4 -0
- data/lib/meibo/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: 0f093d7946a8add1449f8ae9c89c94a47431f36386c598dfeb21ca225ca9c167
|
4
|
+
data.tar.gz: facfe3ab95a9e3c4f61885afedea7df1c8f657725f4e61b6918da4e58f0375ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c472f7f3874f886ae4c27b9fb93b8a8024f820b1a6172b04b54efcfcaca5672faca6d1235845d9bad8daf63fa9a277714140ee9114ca537ced93e584a6c45d55
|
7
|
+
data.tar.gz: 0220f2730b1ee389f13e7c114a87964a82a7777e3c1662963c04977f74a9bfa85b0c5afbacd2701a483aef3c9ba6f30c1f4be8d6722081334288b4d5bb590864
|
data/Gemfile.lock
CHANGED
@@ -45,6 +45,10 @@ module Meibo
|
|
45
45
|
@extension_fields = extension_fields
|
46
46
|
end
|
47
47
|
|
48
|
+
def collection
|
49
|
+
Meibo.current_roster.academic_sessions
|
50
|
+
end
|
51
|
+
|
48
52
|
def grading_period?
|
49
53
|
type == TYPES[:grading_period]
|
50
54
|
end
|
@@ -62,11 +66,11 @@ module Meibo
|
|
62
66
|
end
|
63
67
|
|
64
68
|
def parent
|
65
|
-
parent_sourced_id &&
|
69
|
+
parent_sourced_id && collection.find(parent_sourced_id)
|
66
70
|
end
|
67
71
|
|
68
72
|
def children
|
69
|
-
|
73
|
+
collection.where(parent_sourced_id: sourced_id)
|
70
74
|
end
|
71
75
|
end
|
72
76
|
end
|
data/lib/meibo/classroom.rb
CHANGED
data/lib/meibo/course.rb
CHANGED
data/lib/meibo/data_model.rb
CHANGED
data/lib/meibo/data_set.rb
CHANGED
@@ -42,6 +42,11 @@ module Meibo
|
|
42
42
|
raise DataNotFoundError, "sourcedId: #{sourced_id} が見つかりません"
|
43
43
|
end
|
44
44
|
|
45
|
+
def lineno(datum)
|
46
|
+
# NOTE: add one for one-based, and add one for header line
|
47
|
+
find_index(datum)&.+(2)
|
48
|
+
end
|
49
|
+
|
45
50
|
def where(**conditions)
|
46
51
|
group_cache[conditions.keys.sort][conditions.values]
|
47
52
|
end
|
data/lib/meibo/demographic.rb
CHANGED
data/lib/meibo/enrollment.rb
CHANGED
data/lib/meibo/organization.rb
CHANGED
@@ -41,6 +41,10 @@ module Meibo
|
|
41
41
|
@extension_fields = extension_fields
|
42
42
|
end
|
43
43
|
|
44
|
+
def collection
|
45
|
+
Meibo.current_roster.organizations
|
46
|
+
end
|
47
|
+
|
44
48
|
def department?
|
45
49
|
type == TYPES[:department]
|
46
50
|
end
|
@@ -66,7 +70,11 @@ module Meibo
|
|
66
70
|
end
|
67
71
|
|
68
72
|
def parent
|
69
|
-
parent_sourced_id &&
|
73
|
+
parent_sourced_id && collection.find(parent_sourced_id)
|
74
|
+
end
|
75
|
+
|
76
|
+
def children
|
77
|
+
collection.where(parent_sourced_id: sourced_id)
|
70
78
|
end
|
71
79
|
|
72
80
|
def enrollments
|
data/lib/meibo/role.rb
CHANGED
data/lib/meibo/user.rb
CHANGED
data/lib/meibo/user_profile.rb
CHANGED
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.15.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-21 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.15.0/CHANGELOG.md
|
129
129
|
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|