openapply 1.0.3.6 → 1.0.3.8
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 +4 -4
- data/Gemfile.lock +32 -32
- data/lib/openapply/client.rb +23 -2
- data/lib/openapply/put.rb +5 -0
- data/lib/openapply/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 733a884d68b4bed5fd8950edb54b6bc5e25097d62f956bbf98dd0d60e7cf2fc5
|
|
4
|
+
data.tar.gz: '062497cf8075c4104a274b0d0baa30f6b0f427682f57103922f40689eff47b28'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f32fe9493fb8e194cdce35d1d627acf5ce001c2a6a2f0dc91fc30b0e14f84fcf3f1f0b9176334cac7c4e34a42f36965f6110f16b447968af628c06d617d3745b
|
|
7
|
+
data.tar.gz: d9964c4b90f671da46ee4be127dd8eba5f2b04f71f16ef030fa58732f59e42c9be5c057fe75a25d088e40f53d08abab9ba35f55620e84a25f93c3a393a12648b
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
openapply (1.0.3.
|
|
4
|
+
openapply (1.0.3.7)
|
|
5
5
|
httparty (~> 0.20)
|
|
6
6
|
json (~> 2.6)
|
|
7
7
|
oauth2 (~> 2.0)
|
|
@@ -18,59 +18,58 @@ GEM
|
|
|
18
18
|
rexml
|
|
19
19
|
diff-lcs (1.5.0)
|
|
20
20
|
docile (1.4.0)
|
|
21
|
-
faraday (2.
|
|
21
|
+
faraday (2.7.4)
|
|
22
22
|
faraday-net_http (>= 2.0, < 3.1)
|
|
23
23
|
ruby2_keywords (>= 0.0.4)
|
|
24
|
-
faraday-net_http (3.0.
|
|
24
|
+
faraday-net_http (3.0.2)
|
|
25
25
|
hashdiff (1.0.1)
|
|
26
26
|
hashie (5.0.0)
|
|
27
|
-
httparty (0.
|
|
28
|
-
|
|
27
|
+
httparty (0.21.0)
|
|
28
|
+
mini_mime (>= 1.0.0)
|
|
29
29
|
multi_xml (>= 0.5.2)
|
|
30
|
-
json (2.6.
|
|
31
|
-
jwt (2.
|
|
30
|
+
json (2.6.3)
|
|
31
|
+
jwt (2.7.0)
|
|
32
32
|
method_source (1.0.0)
|
|
33
|
-
|
|
34
|
-
mime-types-data (~> 3.2015)
|
|
35
|
-
mime-types-data (3.2022.0105)
|
|
33
|
+
mini_mime (1.1.2)
|
|
36
34
|
multi_xml (0.6.0)
|
|
37
|
-
oauth2 (2.0.
|
|
35
|
+
oauth2 (2.0.9)
|
|
38
36
|
faraday (>= 0.17.3, < 3.0)
|
|
39
37
|
jwt (>= 1.0, < 3.0)
|
|
40
38
|
multi_xml (~> 0.5)
|
|
41
|
-
rack (>= 1.2, <
|
|
42
|
-
|
|
39
|
+
rack (>= 1.2, < 4)
|
|
40
|
+
snaky_hash (~> 2.0)
|
|
43
41
|
version_gem (~> 1.1)
|
|
44
|
-
pry (0.14.
|
|
42
|
+
pry (0.14.2)
|
|
45
43
|
coderay (~> 1.1)
|
|
46
44
|
method_source (~> 1.0)
|
|
47
|
-
public_suffix (5.0.
|
|
48
|
-
rack (
|
|
45
|
+
public_suffix (5.0.1)
|
|
46
|
+
rack (3.0.4.1)
|
|
49
47
|
rake (13.0.6)
|
|
50
|
-
rash_alt (0.4.12)
|
|
51
|
-
hashie (>= 3.4)
|
|
52
48
|
rexml (3.2.5)
|
|
53
|
-
rspec (3.
|
|
54
|
-
rspec-core (~> 3.
|
|
55
|
-
rspec-expectations (~> 3.
|
|
56
|
-
rspec-mocks (~> 3.
|
|
57
|
-
rspec-core (3.
|
|
58
|
-
rspec-support (~> 3.
|
|
59
|
-
rspec-expectations (3.
|
|
49
|
+
rspec (3.12.0)
|
|
50
|
+
rspec-core (~> 3.12.0)
|
|
51
|
+
rspec-expectations (~> 3.12.0)
|
|
52
|
+
rspec-mocks (~> 3.12.0)
|
|
53
|
+
rspec-core (3.12.1)
|
|
54
|
+
rspec-support (~> 3.12.0)
|
|
55
|
+
rspec-expectations (3.12.2)
|
|
60
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
61
|
-
rspec-support (~> 3.
|
|
62
|
-
rspec-mocks (3.
|
|
57
|
+
rspec-support (~> 3.12.0)
|
|
58
|
+
rspec-mocks (3.12.3)
|
|
63
59
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
64
|
-
rspec-support (~> 3.
|
|
65
|
-
rspec-support (3.
|
|
60
|
+
rspec-support (~> 3.12.0)
|
|
61
|
+
rspec-support (3.12.0)
|
|
66
62
|
ruby2_keywords (0.0.5)
|
|
67
|
-
simplecov (0.
|
|
63
|
+
simplecov (0.22.0)
|
|
68
64
|
docile (~> 1.1)
|
|
69
65
|
simplecov-html (~> 0.11)
|
|
70
66
|
simplecov_json_formatter (~> 0.1)
|
|
71
67
|
simplecov-html (0.12.3)
|
|
72
68
|
simplecov_json_formatter (0.1.4)
|
|
73
|
-
|
|
69
|
+
snaky_hash (2.0.1)
|
|
70
|
+
hashie
|
|
71
|
+
version_gem (~> 1.1, >= 1.1.1)
|
|
72
|
+
version_gem (1.1.1)
|
|
74
73
|
webmock (3.18.1)
|
|
75
74
|
addressable (>= 2.8.0)
|
|
76
75
|
crack (>= 0.3.2)
|
|
@@ -78,6 +77,7 @@ GEM
|
|
|
78
77
|
|
|
79
78
|
PLATFORMS
|
|
80
79
|
arm64-darwin-20
|
|
80
|
+
x86_64-darwin-21
|
|
81
81
|
|
|
82
82
|
DEPENDENCIES
|
|
83
83
|
bundler (~> 2.3)
|
|
@@ -89,4 +89,4 @@ DEPENDENCIES
|
|
|
89
89
|
webmock (~> 3.18)
|
|
90
90
|
|
|
91
91
|
BUNDLED WITH
|
|
92
|
-
2.3.
|
|
92
|
+
2.3.26
|
data/lib/openapply/client.rb
CHANGED
|
@@ -102,9 +102,17 @@ module Openapply
|
|
|
102
102
|
|
|
103
103
|
return answer
|
|
104
104
|
rescue TooManyRequestError
|
|
105
|
+
puts "TooManyRequestError"
|
|
105
106
|
sleep (answer.headers['X-RateLimit-Period'].to_i + 1)
|
|
106
107
|
retry
|
|
107
|
-
rescue *NET_EXCEPTIONS
|
|
108
|
+
rescue *NET_EXCEPTIONS => error
|
|
109
|
+
if ENV['OA_DEBUG']
|
|
110
|
+
puts "ERROR:"
|
|
111
|
+
puts "error: #{error}"
|
|
112
|
+
puts "message: #{error.message}"
|
|
113
|
+
puts "###"
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if times_retried < max_retries
|
|
109
117
|
times_retried += 1
|
|
110
118
|
retry
|
|
@@ -151,9 +159,22 @@ module Openapply
|
|
|
151
159
|
puts "###"
|
|
152
160
|
end
|
|
153
161
|
|
|
162
|
+
raise TooManyRequestError if answer.too_many_requests?
|
|
163
|
+
|
|
154
164
|
return answer
|
|
155
165
|
|
|
156
|
-
rescue
|
|
166
|
+
rescue TooManyRequestError
|
|
167
|
+
puts "TooManyRequestError"
|
|
168
|
+
sleep (answer.headers['X-RateLimit-Period'].to_i + 1)
|
|
169
|
+
retry
|
|
170
|
+
rescue *NET_EXCEPTIONS => error
|
|
171
|
+
if ENV['OA_DEBUG']
|
|
172
|
+
puts "ERROR:"
|
|
173
|
+
puts "error: #{error}"
|
|
174
|
+
puts "message: #{error.message}"
|
|
175
|
+
puts "###"
|
|
176
|
+
end
|
|
177
|
+
|
|
157
178
|
if times_retried < max_retries
|
|
158
179
|
times_retried += 1
|
|
159
180
|
retry
|
data/lib/openapply/put.rb
CHANGED
|
@@ -16,6 +16,11 @@ module Openapply
|
|
|
16
16
|
return oa_answer( url, {student: {student_id: student_id}})
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def update_student_email(oa_id, student_email)
|
|
20
|
+
# url = "#{api_path}#{oa_id}"
|
|
21
|
+
url = "#{api_path}/students/#{oa_id}"
|
|
22
|
+
return oa_answer( url, {student: {email: student_email}})
|
|
23
|
+
end
|
|
19
24
|
# # @note Update one student's status
|
|
20
25
|
# # @param oa_id - (Integer) - id of student to update
|
|
21
26
|
# # @param status - (string) - status to update for student
|
data/lib/openapply/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openapply
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.3.
|
|
4
|
+
version: 1.0.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill Tihen
|
|
8
8
|
- Elliott Hébert
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: httparty
|
|
@@ -137,7 +137,7 @@ dependencies:
|
|
|
137
137
|
- - "~>"
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
139
|
version: '0.14'
|
|
140
|
-
description:
|
|
140
|
+
description:
|
|
141
141
|
email:
|
|
142
142
|
- btihen@gmail.com
|
|
143
143
|
- btihen@las.ch
|
|
@@ -172,7 +172,7 @@ homepage: https://github.com/las-it/openapply
|
|
|
172
172
|
licenses:
|
|
173
173
|
- MIT
|
|
174
174
|
metadata: {}
|
|
175
|
-
post_install_message:
|
|
175
|
+
post_install_message:
|
|
176
176
|
rdoc_options: []
|
|
177
177
|
require_paths:
|
|
178
178
|
- lib
|
|
@@ -187,8 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
187
187
|
- !ruby/object:Gem::Version
|
|
188
188
|
version: '0'
|
|
189
189
|
requirements: []
|
|
190
|
-
rubygems_version: 3.3.
|
|
191
|
-
signing_key:
|
|
190
|
+
rubygems_version: 3.0.3.1
|
|
191
|
+
signing_key:
|
|
192
192
|
specification_version: 4
|
|
193
193
|
summary: Access OpenApply's APIs with Ruby
|
|
194
194
|
test_files: []
|