openapply 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGE_LOG.md +5 -1
- data/Gemfile.lock +2 -2
- data/lib/openapply/get_many_students.rb +2 -2
- data/lib/openapply/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f9aaca0a532ad6fbcaa083f722bd35a72e620961ae1dd3c541a73ae08915eed
|
4
|
+
data.tar.gz: 14ac6d5821f44120c824db2d4ffef12cb503a9dc76e7cc39ba8886d31cad95b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 571bf0b2b81c714215de94da28bfb0e8c906555a5efc5411f93766b9e74a923e2a88b04957c280fc9d3347c5f4bfee607cfc3988f7bcd55d98d4715bbf3445c6
|
7
|
+
data.tar.gz: 25d6edea4e4b7434e09995ea0ba004ad20ac467f02308e66c43e949530b83117e6ff462909b1f20edc9b445e4ffd316935c8f97468bb8ac8bd7fd3194fbfa524
|
data/CHANGE_LOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
### Openapply CHANGE LOG
|
2
2
|
|
3
|
-
* **v0.3.
|
3
|
+
* **v0.3.2** - compatible with 0.3.x - 2018-04-11
|
4
|
+
- add another break condition (prevent nil)
|
5
|
+
|
6
|
+
* **v0.3.1** - compatible with 0.3.x - 2018-04-10
|
7
|
+
- protect against nil error no when meta info returned from OA
|
4
8
|
- add error / exception when ENV doesn't load properly
|
5
9
|
- remove unused gems (scp and ssh)
|
6
10
|
- add example / demo usage code
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
openapply (0.3.
|
4
|
+
openapply (0.3.2)
|
5
5
|
httparty (~> 0.15)
|
6
6
|
json (~> 2.1)
|
7
7
|
|
@@ -18,7 +18,7 @@ GEM
|
|
18
18
|
diff-lcs (1.3)
|
19
19
|
docile (1.1.5)
|
20
20
|
hashdiff (0.3.7)
|
21
|
-
httparty (0.
|
21
|
+
httparty (0.16.2)
|
22
22
|
multi_xml (>= 0.5.2)
|
23
23
|
json (2.1.0)
|
24
24
|
method_source (0.9.0)
|
@@ -83,13 +83,13 @@ module Openapply
|
|
83
83
|
while page_number.nil? or page_number > 1
|
84
84
|
url = url_for_many_students_summaries(status, since_id, since_date, count)
|
85
85
|
answer = oa_answer( url )
|
86
|
-
break if answer.nil? or answer[:students].empty?
|
86
|
+
break if answer.nil? or answer[:students].nil? or answer[:students].empty?
|
87
87
|
students += answer[:students]
|
88
88
|
guardians += answer[:linked][:parents]
|
89
89
|
last_student = answer[:students].last
|
90
90
|
since_id = last_student[:id]
|
91
|
-
page_number = 0 if answer[:meta].nil?
|
92
91
|
page_number = answer[:meta][:pages].to_i unless answer[:meta].nil?
|
92
|
+
page_number = 0 if answer[:meta].nil?
|
93
93
|
end
|
94
94
|
end
|
95
95
|
return { students: students,
|
data/lib/openapply/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openapply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Tihen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|