academic_benchmarks 0.0.10 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/academic_benchmarks/api/auth.rb +6 -4
- data/lib/academic_benchmarks/api/constants.rb +2 -20
- data/lib/academic_benchmarks/api/handle.rb +0 -20
- data/lib/academic_benchmarks/api/standards.rb +127 -83
- data/lib/academic_benchmarks/lib/attr_to_vals.rb +7 -0
- data/lib/academic_benchmarks/lib/inst_vars_to_hash.rb +2 -0
- data/lib/academic_benchmarks/standards/authority.rb +35 -9
- data/lib/academic_benchmarks/standards/disciplines.rb +21 -0
- data/lib/academic_benchmarks/standards/document.rb +14 -6
- data/lib/academic_benchmarks/standards/education_levels.rb +21 -0
- data/lib/academic_benchmarks/standards/grade.rb +4 -5
- data/lib/academic_benchmarks/standards/number.rb +21 -0
- data/lib/academic_benchmarks/standards/publication.rb +59 -0
- data/lib/academic_benchmarks/standards/section.rb +23 -0
- data/lib/academic_benchmarks/standards/standard.rb +37 -70
- data/lib/academic_benchmarks/standards/standards_forest.rb +4 -38
- data/lib/academic_benchmarks/standards/standards_tree.rb +2 -63
- data/lib/academic_benchmarks/standards/statement.rb +21 -0
- data/lib/academic_benchmarks/standards/subject.rb +3 -4
- data/lib/academic_benchmarks/standards/utilizations.rb +19 -0
- metadata +37 -18
- data/lib/academic_benchmarks/lib/remove_obsolete_children.rb +0 -10
- data/lib/academic_benchmarks/standards/course.rb +0 -22
- data/lib/academic_benchmarks/standards/has_relations.rb +0 -21
- data/lib/academic_benchmarks/standards/parent.rb +0 -41
- data/lib/academic_benchmarks/standards/subject_doc.rb +0 -22
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
+
|
3
|
+
module AcademicBenchmarks
|
4
|
+
module Standards
|
5
|
+
class Statement
|
6
|
+
include InstVarsToHash
|
7
|
+
|
8
|
+
attr_accessor :descr
|
9
|
+
|
10
|
+
alias_method :description, :descr
|
11
|
+
|
12
|
+
def self.from_hash(hash)
|
13
|
+
self.new(descr: hash["descr"])
|
14
|
+
end
|
15
|
+
|
16
|
+
def initialize(descr:)
|
17
|
+
@descr = descr
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -5,15 +5,14 @@ module AcademicBenchmarks
|
|
5
5
|
class Subject
|
6
6
|
include InstVarsToHash
|
7
7
|
|
8
|
-
attr_accessor :code
|
8
|
+
attr_accessor :code
|
9
9
|
|
10
10
|
def self.from_hash(hash)
|
11
|
-
self.new(code: hash["code"]
|
11
|
+
self.new(code: hash["code"])
|
12
12
|
end
|
13
13
|
|
14
|
-
def initialize(code
|
14
|
+
def initialize(code:)
|
15
15
|
@code = code
|
16
|
-
@broad = broad
|
17
16
|
end
|
18
17
|
end
|
19
18
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
+
|
3
|
+
module AcademicBenchmarks
|
4
|
+
module Standards
|
5
|
+
class Utilizations
|
6
|
+
include InstVarsToHash
|
7
|
+
|
8
|
+
attr_accessor :type
|
9
|
+
|
10
|
+
def self.from_hash(hash)
|
11
|
+
self.new(type: hash["type"])
|
12
|
+
end
|
13
|
+
|
14
|
+
def initialize(type:)
|
15
|
+
@type = type
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: academic_benchmarks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Porter
|
8
|
-
|
8
|
+
- Augusto Callejas
|
9
|
+
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
date: 2016-11-23 00:00:00.000000000 Z
|
@@ -33,7 +34,7 @@ dependencies:
|
|
33
34
|
version: 3.2.22
|
34
35
|
- - "<"
|
35
36
|
- !ruby/object:Gem::Version
|
36
|
-
version: '6.
|
37
|
+
version: '6.2'
|
37
38
|
type: :runtime
|
38
39
|
prerelease: false
|
39
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +44,21 @@ dependencies:
|
|
43
44
|
version: 3.2.22
|
44
45
|
- - "<"
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version: '6.
|
47
|
+
version: '6.2'
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: hash_dig_and_collect
|
50
|
+
requirement: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.1
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.0.1
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rake
|
49
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,28 +121,28 @@ dependencies:
|
|
106
121
|
requirements:
|
107
122
|
- - "~>"
|
108
123
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
124
|
+
version: '3.5'
|
110
125
|
type: :development
|
111
126
|
prerelease: false
|
112
127
|
version_requirements: !ruby/object:Gem::Requirement
|
113
128
|
requirements:
|
114
129
|
- - "~>"
|
115
130
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
131
|
+
version: '3.5'
|
117
132
|
- !ruby/object:Gem::Dependency
|
118
133
|
name: rubocop
|
119
134
|
requirement: !ruby/object:Gem::Requirement
|
120
135
|
requirements:
|
121
136
|
- - "~>"
|
122
137
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0.
|
138
|
+
version: '0.49'
|
124
139
|
type: :development
|
125
140
|
prerelease: false
|
126
141
|
version_requirements: !ruby/object:Gem::Requirement
|
127
142
|
requirements:
|
128
143
|
- - "~>"
|
129
144
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0.
|
145
|
+
version: '0.49'
|
131
146
|
- !ruby/object:Gem::Dependency
|
132
147
|
name: rubocop-rspec
|
133
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,7 +173,9 @@ dependencies:
|
|
158
173
|
version: '1.6'
|
159
174
|
description: A ruby api for accessing the Academic Benchmarks API. A valid subscription
|
160
175
|
with accompanying credentials will be required to access the API
|
161
|
-
email:
|
176
|
+
email:
|
177
|
+
- bporter@instructure.com
|
178
|
+
- acallejas@instructure.com
|
162
179
|
executables: []
|
163
180
|
extensions: []
|
164
181
|
extra_rdoc_files: []
|
@@ -168,24 +185,27 @@ files:
|
|
168
185
|
- lib/academic_benchmarks/api/constants.rb
|
169
186
|
- lib/academic_benchmarks/api/handle.rb
|
170
187
|
- lib/academic_benchmarks/api/standards.rb
|
188
|
+
- lib/academic_benchmarks/lib/attr_to_vals.rb
|
171
189
|
- lib/academic_benchmarks/lib/inst_vars_to_hash.rb
|
172
|
-
- lib/academic_benchmarks/lib/remove_obsolete_children.rb
|
173
190
|
- lib/academic_benchmarks/standards/authority.rb
|
174
|
-
- lib/academic_benchmarks/standards/
|
191
|
+
- lib/academic_benchmarks/standards/disciplines.rb
|
175
192
|
- lib/academic_benchmarks/standards/document.rb
|
193
|
+
- lib/academic_benchmarks/standards/education_levels.rb
|
176
194
|
- lib/academic_benchmarks/standards/grade.rb
|
177
|
-
- lib/academic_benchmarks/standards/
|
178
|
-
- lib/academic_benchmarks/standards/
|
195
|
+
- lib/academic_benchmarks/standards/number.rb
|
196
|
+
- lib/academic_benchmarks/standards/publication.rb
|
197
|
+
- lib/academic_benchmarks/standards/section.rb
|
179
198
|
- lib/academic_benchmarks/standards/standard.rb
|
180
199
|
- lib/academic_benchmarks/standards/standards_forest.rb
|
181
200
|
- lib/academic_benchmarks/standards/standards_tree.rb
|
201
|
+
- lib/academic_benchmarks/standards/statement.rb
|
182
202
|
- lib/academic_benchmarks/standards/subject.rb
|
183
|
-
- lib/academic_benchmarks/standards/
|
203
|
+
- lib/academic_benchmarks/standards/utilizations.rb
|
184
204
|
homepage: https://github.com/instructure/academic_benchmarks
|
185
205
|
licenses:
|
186
206
|
- AGPL-3.0
|
187
207
|
metadata: {}
|
188
|
-
post_install_message:
|
208
|
+
post_install_message:
|
189
209
|
rdoc_options: []
|
190
210
|
require_paths:
|
191
211
|
- lib
|
@@ -200,9 +220,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
220
|
- !ruby/object:Gem::Version
|
201
221
|
version: '0'
|
202
222
|
requirements: []
|
203
|
-
|
204
|
-
|
205
|
-
signing_key:
|
223
|
+
rubygems_version: 3.2.15
|
224
|
+
signing_key:
|
206
225
|
specification_version: 4
|
207
226
|
summary: A ruby api for accessing the Academic Benchmarks API
|
208
227
|
test_files: []
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
-
|
3
|
-
module AcademicBenchmarks
|
4
|
-
module Standards
|
5
|
-
class Course
|
6
|
-
include InstVarsToHash
|
7
|
-
|
8
|
-
attr_accessor :guid, :description
|
9
|
-
|
10
|
-
alias_method :descr, :description
|
11
|
-
|
12
|
-
def self.from_hash(hash)
|
13
|
-
self.new(description: hash["descr"], guid: hash["guid"])
|
14
|
-
end
|
15
|
-
|
16
|
-
def initialize(guid:, description:)
|
17
|
-
@guid = guid
|
18
|
-
@description = description
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
-
|
3
|
-
module AcademicBenchmarks
|
4
|
-
module Standards
|
5
|
-
class HasRelations
|
6
|
-
include InstVarsToHash
|
7
|
-
|
8
|
-
attr_accessor :origin, :derivative, :related_derivative
|
9
|
-
|
10
|
-
def self.from_hash(hash)
|
11
|
-
self.new(derivative: hash["derivative"], origin: hash["origin"], related_derivative: hash["related_derivative"])
|
12
|
-
end
|
13
|
-
|
14
|
-
def initialize(origin: 0, derivative: 0, related_derivative: 0)
|
15
|
-
@origin = origin
|
16
|
-
@derivative = derivative
|
17
|
-
@related_derivative = related_derivative
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
-
|
3
|
-
module AcademicBenchmarks
|
4
|
-
module Standards
|
5
|
-
class Parent
|
6
|
-
include InstVarsToHash
|
7
|
-
|
8
|
-
attr_accessor :guid, :description, :number, :stem, :label, :deepest,
|
9
|
-
:seq, :level, :status, :version
|
10
|
-
|
11
|
-
def self.from_hash(hash)
|
12
|
-
self.new(
|
13
|
-
guid: hash["guid"],
|
14
|
-
description: hash["description"],
|
15
|
-
number: hash["number"],
|
16
|
-
stem: hash["stem"],
|
17
|
-
label: hash["label"],
|
18
|
-
deepest: hash["deepest"],
|
19
|
-
seq: hash["seq"],
|
20
|
-
level: hash["level"],
|
21
|
-
status: hash["status"],
|
22
|
-
version: hash["version"]
|
23
|
-
)
|
24
|
-
end
|
25
|
-
|
26
|
-
def initialize(guid:, description:, number:, stem:, label:, deepest:,
|
27
|
-
seq:, level:, status:, version:)
|
28
|
-
@guid = guid
|
29
|
-
@description = description
|
30
|
-
@number = number
|
31
|
-
@stem = stem
|
32
|
-
@label = label
|
33
|
-
@deepest = deepest
|
34
|
-
@seq = seq
|
35
|
-
@level = level
|
36
|
-
@status = status
|
37
|
-
@version = version
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
|
-
|
3
|
-
module AcademicBenchmarks
|
4
|
-
module Standards
|
5
|
-
class SubjectDoc
|
6
|
-
include InstVarsToHash
|
7
|
-
|
8
|
-
attr_accessor :guid, :description
|
9
|
-
|
10
|
-
alias_method :descr, :description
|
11
|
-
|
12
|
-
def self.from_hash(hash)
|
13
|
-
self.new(guid: hash["guid"], description: hash["descr"])
|
14
|
-
end
|
15
|
-
|
16
|
-
def initialize(guid:, description:)
|
17
|
-
@guid = guid
|
18
|
-
@description = description
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|