openapply 1.0.3.8 → 1.0.3.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 733a884d68b4bed5fd8950edb54b6bc5e25097d62f956bbf98dd0d60e7cf2fc5
4
- data.tar.gz: '062497cf8075c4104a274b0d0baa30f6b0f427682f57103922f40689eff47b28'
3
+ metadata.gz: f3d0417741f52d557be754a657e3b87a659e6bc81c7ffaa8e574dde30c50f7a3
4
+ data.tar.gz: 233e89a964ac7d94004593679395ad85ff8c5d84ec911bebbb3040969cd711a8
5
5
  SHA512:
6
- metadata.gz: f32fe9493fb8e194cdce35d1d627acf5ce001c2a6a2f0dc91fc30b0e14f84fcf3f1f0b9176334cac7c4e34a42f36965f6110f16b447968af628c06d617d3745b
7
- data.tar.gz: d9964c4b90f671da46ee4be127dd8eba5f2b04f71f16ef030fa58732f59e42c9be5c057fe75a25d088e40f53d08abab9ba35f55620e84a25f93c3a393a12648b
6
+ metadata.gz: 03f77e33cc388f099ce3b99b1870eca761affe2b32591f881c7db63a2b09645d8306b34460181312c3a609b6d6ecb687765ab80715827be697b6e4f3ef0fe13f
7
+ data.tar.gz: 296569f8e3fb219ecd1dee1ae02800bbe5d4362c6e2239b0a51f58599116de867175dfea9aa70ee83b7adb93ea71414919a69266562f34ec51eb408aa81adba7
data/CHANGE_LOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ### Openapply CHANGE LOG
2
2
 
3
+ * **v1.0.3.9** - compatible with 1.0.x - 2026-04-20
4
+ - retrieve guardian summary data from students' `parent_guardian` key instead of the linked hash
5
+
3
6
  * **v1.0.3.5** - compatible with 1.0.x - 2022-08-23
4
7
  - add a debug env variable to debug queries
5
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openapply (1.0.3.7)
4
+ openapply (1.0.3.9)
5
5
  httparty (~> 0.20)
6
6
  json (~> 2.6)
7
7
  oauth2 (~> 2.0)
@@ -11,39 +11,52 @@ GEM
11
11
  specs:
12
12
  addressable (2.8.1)
13
13
  public_suffix (>= 2.0.2, < 6.0)
14
+ base64 (0.3.0)
15
+ bigdecimal (4.1.2)
14
16
  codacy-coverage (2.2.1)
15
17
  simplecov
16
18
  coderay (1.1.3)
17
19
  crack (0.4.5)
18
20
  rexml
21
+ csv (3.3.5)
19
22
  diff-lcs (1.5.0)
20
23
  docile (1.4.0)
21
- faraday (2.7.4)
22
- faraday-net_http (>= 2.0, < 3.1)
23
- ruby2_keywords (>= 0.0.4)
24
- faraday-net_http (3.0.2)
24
+ faraday (2.14.1)
25
+ faraday-net_http (>= 2.0, < 3.5)
26
+ json
27
+ logger
28
+ faraday-net_http (3.4.2)
29
+ net-http (~> 0.5)
25
30
  hashdiff (1.0.1)
26
- hashie (5.0.0)
27
- httparty (0.21.0)
31
+ hashie (5.1.0)
32
+ logger
33
+ httparty (0.24.2)
34
+ csv
28
35
  mini_mime (>= 1.0.0)
29
36
  multi_xml (>= 0.5.2)
30
- json (2.6.3)
31
- jwt (2.7.0)
37
+ json (2.19.4)
38
+ jwt (3.1.2)
39
+ base64
40
+ logger (1.7.0)
32
41
  method_source (1.0.0)
33
- mini_mime (1.1.2)
34
- multi_xml (0.6.0)
35
- oauth2 (2.0.9)
36
- faraday (>= 0.17.3, < 3.0)
37
- jwt (>= 1.0, < 3.0)
42
+ mini_mime (1.1.5)
43
+ multi_xml (0.8.1)
44
+ bigdecimal (>= 3.1, < 5)
45
+ net-http (0.9.1)
46
+ uri (>= 0.11.1)
47
+ oauth2 (2.0.18)
48
+ faraday (>= 0.17.3, < 4.0)
49
+ jwt (>= 1.0, < 4.0)
50
+ logger (~> 1.2)
38
51
  multi_xml (~> 0.5)
39
52
  rack (>= 1.2, < 4)
40
- snaky_hash (~> 2.0)
41
- version_gem (~> 1.1)
53
+ snaky_hash (~> 2.0, >= 2.0.3)
54
+ version_gem (~> 1.1, >= 1.1.9)
42
55
  pry (0.14.2)
43
56
  coderay (~> 1.1)
44
57
  method_source (~> 1.0)
45
58
  public_suffix (5.0.1)
46
- rack (3.0.4.1)
59
+ rack (3.2.6)
47
60
  rake (13.0.6)
48
61
  rexml (3.2.5)
49
62
  rspec (3.12.0)
@@ -59,17 +72,17 @@ GEM
59
72
  diff-lcs (>= 1.2.0, < 2.0)
60
73
  rspec-support (~> 3.12.0)
61
74
  rspec-support (3.12.0)
62
- ruby2_keywords (0.0.5)
63
75
  simplecov (0.22.0)
64
76
  docile (~> 1.1)
65
77
  simplecov-html (~> 0.11)
66
78
  simplecov_json_formatter (~> 0.1)
67
79
  simplecov-html (0.12.3)
68
80
  simplecov_json_formatter (0.1.4)
69
- snaky_hash (2.0.1)
70
- hashie
71
- version_gem (~> 1.1, >= 1.1.1)
72
- version_gem (1.1.1)
81
+ snaky_hash (2.0.3)
82
+ hashie (>= 0.1.0, < 6)
83
+ version_gem (>= 1.1.8, < 3)
84
+ uri (1.1.1)
85
+ version_gem (1.1.9)
73
86
  webmock (3.18.1)
74
87
  addressable (>= 2.8.0)
75
88
  crack (>= 0.3.2)
@@ -77,6 +90,7 @@ GEM
77
90
 
78
91
  PLATFORMS
79
92
  arm64-darwin-20
93
+ arm64-darwin-25
80
94
  x86_64-darwin-21
81
95
 
82
96
  DEPENDENCIES
@@ -85,7 +85,7 @@ module Openapply
85
85
  answer = oa_answer( url )
86
86
  break if answer.nil? or answer[:students].nil? or answer[:students].empty?
87
87
  students += answer[:students]
88
- guardians += answer[:linked][:parents]
88
+ guardians += extract_parents_from_students( answer[:students] )
89
89
  last_student = answer[:students].last
90
90
  since_id = last_student[:id]
91
91
  page_number = answer[:meta][:pages].to_i unless answer[:meta].nil?
@@ -113,5 +113,14 @@ module Openapply
113
113
  return "#{api_path}/students/?#{url_options.join('&')}"
114
114
  end
115
115
 
116
+ def extract_parents_from_students( students )
117
+ parents = []
118
+ students.each do |student|
119
+ next if student[:parent_guardian].nil? or student[:parent_guardian].empty?
120
+ parents = student[:parent_guardian]
121
+ end
122
+ return parents
123
+ end
124
+
116
125
  end
117
126
  end
@@ -1,5 +1,5 @@
1
1
  module Openapply
2
2
  module Version
3
- VERSION = "1.0.3.8"
3
+ VERSION = "1.0.3.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openapply
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3.8
4
+ version: 1.0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Tihen
8
8
  - Elliott Hébert
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2023-03-22 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: httparty
@@ -137,7 +136,6 @@ dependencies:
137
136
  - - "~>"
138
137
  - !ruby/object:Gem::Version
139
138
  version: '0.14'
140
- description:
141
139
  email:
142
140
  - btihen@gmail.com
143
141
  - btihen@las.ch
@@ -172,7 +170,6 @@ homepage: https://github.com/las-it/openapply
172
170
  licenses:
173
171
  - MIT
174
172
  metadata: {}
175
- post_install_message:
176
173
  rdoc_options: []
177
174
  require_paths:
178
175
  - lib
@@ -187,8 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
184
  - !ruby/object:Gem::Version
188
185
  version: '0'
189
186
  requirements: []
190
- rubygems_version: 3.0.3.1
191
- signing_key:
187
+ rubygems_version: 3.6.9
192
188
  specification_version: 4
193
189
  summary: Access OpenApply's APIs with Ruby
194
190
  test_files: []