academic_benchmarks 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/academic_benchmarks/api/auth.rb +7 -5
- data/lib/academic_benchmarks/api/constants.rb +2 -20
- data/lib/academic_benchmarks/api/handle.rb +2 -22
- data/lib/academic_benchmarks/api/standards.rb +120 -84
- 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 +36 -10
- data/lib/academic_benchmarks/standards/disciplines.rb +21 -0
- data/lib/academic_benchmarks/standards/document.rb +14 -7
- data/lib/academic_benchmarks/standards/education_levels.rb +21 -0
- data/lib/academic_benchmarks/standards/grade.rb +5 -6
- data/lib/academic_benchmarks/standards/number.rb +23 -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 +35 -72
- 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 +4 -5
- metadata +52 -21
- 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
|
@@ -1,19 +1,18 @@
|
|
1
|
-
|
1
|
+
require 'academic_benchmarks/lib/inst_vars_to_hash'
|
2
2
|
|
3
3
|
module AcademicBenchmarks
|
4
4
|
module Standards
|
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
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: academic_benchmarks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Porter
|
8
|
+
- Augusto Callejas
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: httparty
|
@@ -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.1'
|
37
38
|
type: :runtime
|
38
39
|
prerelease: false
|
39
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +44,35 @@ dependencies:
|
|
43
44
|
version: 3.2.22
|
44
45
|
- - "<"
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version: '6.
|
47
|
+
version: '6.1'
|
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
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '12.0'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '12.0'
|
47
76
|
- !ruby/object:Gem::Dependency
|
48
77
|
name: vcr
|
49
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,44 +105,44 @@ dependencies:
|
|
76
105
|
name: byebug
|
77
106
|
requirement: !ruby/object:Gem::Requirement
|
78
107
|
requirements:
|
79
|
-
- - "
|
108
|
+
- - ">="
|
80
109
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
110
|
+
version: '0'
|
82
111
|
type: :development
|
83
112
|
prerelease: false
|
84
113
|
version_requirements: !ruby/object:Gem::Requirement
|
85
114
|
requirements:
|
86
|
-
- - "
|
115
|
+
- - ">="
|
87
116
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
117
|
+
version: '0'
|
89
118
|
- !ruby/object:Gem::Dependency
|
90
119
|
name: webmock
|
91
120
|
requirement: !ruby/object:Gem::Requirement
|
92
121
|
requirements:
|
93
122
|
- - "~>"
|
94
123
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
124
|
+
version: '3.5'
|
96
125
|
type: :development
|
97
126
|
prerelease: false
|
98
127
|
version_requirements: !ruby/object:Gem::Requirement
|
99
128
|
requirements:
|
100
129
|
- - "~>"
|
101
130
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
131
|
+
version: '3.5'
|
103
132
|
- !ruby/object:Gem::Dependency
|
104
133
|
name: rubocop
|
105
134
|
requirement: !ruby/object:Gem::Requirement
|
106
135
|
requirements:
|
107
136
|
- - "~>"
|
108
137
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
138
|
+
version: '0.49'
|
110
139
|
type: :development
|
111
140
|
prerelease: false
|
112
141
|
version_requirements: !ruby/object:Gem::Requirement
|
113
142
|
requirements:
|
114
143
|
- - "~>"
|
115
144
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
145
|
+
version: '0.49'
|
117
146
|
- !ruby/object:Gem::Dependency
|
118
147
|
name: rubocop-rspec
|
119
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -144,7 +173,9 @@ dependencies:
|
|
144
173
|
version: '1.6'
|
145
174
|
description: A ruby api for accessing the Academic Benchmarks API. A valid subscription
|
146
175
|
with accompanying credentials will be required to access the API
|
147
|
-
email:
|
176
|
+
email:
|
177
|
+
- bporter@instructure.com
|
178
|
+
- acallejas@instructure.com
|
148
179
|
executables: []
|
149
180
|
extensions: []
|
150
181
|
extra_rdoc_files: []
|
@@ -154,19 +185,21 @@ files:
|
|
154
185
|
- lib/academic_benchmarks/api/constants.rb
|
155
186
|
- lib/academic_benchmarks/api/handle.rb
|
156
187
|
- lib/academic_benchmarks/api/standards.rb
|
188
|
+
- lib/academic_benchmarks/lib/attr_to_vals.rb
|
157
189
|
- lib/academic_benchmarks/lib/inst_vars_to_hash.rb
|
158
|
-
- lib/academic_benchmarks/lib/remove_obsolete_children.rb
|
159
190
|
- lib/academic_benchmarks/standards/authority.rb
|
160
|
-
- lib/academic_benchmarks/standards/
|
191
|
+
- lib/academic_benchmarks/standards/disciplines.rb
|
161
192
|
- lib/academic_benchmarks/standards/document.rb
|
193
|
+
- lib/academic_benchmarks/standards/education_levels.rb
|
162
194
|
- lib/academic_benchmarks/standards/grade.rb
|
163
|
-
- lib/academic_benchmarks/standards/
|
164
|
-
- 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
|
165
198
|
- lib/academic_benchmarks/standards/standard.rb
|
166
199
|
- lib/academic_benchmarks/standards/standards_forest.rb
|
167
200
|
- lib/academic_benchmarks/standards/standards_tree.rb
|
201
|
+
- lib/academic_benchmarks/standards/statement.rb
|
168
202
|
- lib/academic_benchmarks/standards/subject.rb
|
169
|
-
- lib/academic_benchmarks/standards/subject_doc.rb
|
170
203
|
homepage: https://github.com/instructure/academic_benchmarks
|
171
204
|
licenses:
|
172
205
|
- AGPL-3.0
|
@@ -186,10 +219,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
219
|
- !ruby/object:Gem::Version
|
187
220
|
version: '0'
|
188
221
|
requirements: []
|
189
|
-
|
190
|
-
rubygems_version: 2.2.5
|
222
|
+
rubygems_version: 3.1.2
|
191
223
|
signing_key:
|
192
224
|
specification_version: 4
|
193
225
|
summary: A ruby api for accessing the Academic Benchmarks API
|
194
226
|
test_files: []
|
195
|
-
has_rdoc:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
require_relative '../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_relative '../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_relative '../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_relative '../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
|