openapply 0.3.1 → 0.3.2

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: 5478208e639f6d809fc7d16db8d4484d06e28c92350a0d744af4f2f377813369
4
- data.tar.gz: 03c9e34ee1fda5e164d845bc9331fc1e466ae2618f03e5aceb6e962a1ddf4e23
3
+ metadata.gz: 1f9aaca0a532ad6fbcaa083f722bd35a72e620961ae1dd3c541a73ae08915eed
4
+ data.tar.gz: 14ac6d5821f44120c824db2d4ffef12cb503a9dc76e7cc39ba8886d31cad95b0
5
5
  SHA512:
6
- metadata.gz: 65c27f0485036ab3cc2e944fc1d5ccd321b29b54939b96d78cab82d911bc069697990f0bbb6ffe327821166cf492ba859e171aecd09e239025ea021df7e7cefa
7
- data.tar.gz: d901982b841b137fdf5a8dfe252440f94b6c1083e83da092b82c4879e650057d56182c033ece970e5af93b9bae39a99d7914d3c7004c9765c47d2cfce1746d93
6
+ metadata.gz: 571bf0b2b81c714215de94da28bfb0e8c906555a5efc5411f93766b9e74a923e2a88b04957c280fc9d3347c5f4bfee607cfc3988f7bcd55d98d4715bbf3445c6
7
+ data.tar.gz: 25d6edea4e4b7434e09995ea0ba004ad20ac467f02308e66c43e949530b83117e6ff462909b1f20edc9b445e4ffd316935c8f97468bb8ac8bd7fd3194fbfa524
@@ -1,6 +1,10 @@
1
1
  ### Openapply CHANGE LOG
2
2
 
3
- * **v0.3.1** - compatible with 0.3.x - 2018-02-XX
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openapply (0.3.1)
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.15.6)
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,
@@ -1,5 +1,5 @@
1
1
  module Openapply
2
2
  module Version
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2018-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty