openapply 1.0.3.3 → 1.0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59976c236fadb201213e05988e2970d93372bcba011a885da3fa2f6764b6d62d
4
- data.tar.gz: 9d08c0a5fc122cdf36fbe7284efe6fe1d29a2bf23cffa7990770bf895f1f223c
3
+ metadata.gz: e65a14e94091968d7732d1cf979e5639c02cf3dbb94cfc1cce49f79c92e05e12
4
+ data.tar.gz: 406ceea772edfba7400f389ea45bbe2296eddceb679d98cce1b5699a7bc41473
5
5
  SHA512:
6
- metadata.gz: 51c55c2d070ecbfd819e8ca6305e67fe44eab4faf3066925c75fbed5d369352f5084b91fc658fd61feb2693897b1090b4af09b59ea04a359aee96eec00ad9ca3
7
- data.tar.gz: 8ee90f5a132ef602c748d9faa896f05c3ecc6ec4eb4b69b2cddae804149c11175b3800ed7181cd43898e2363190153d3878c7d7617c0e72b34cab15dfc606bda
6
+ metadata.gz: 34423641c46581d44b19f391995f6e1689c4188e43c9129a3eeec5e4bee3d828de6bce81882ff5115fab5a2af642ccf160369950969a2ad1295efd9f224b242e
7
+ data.tar.gz: d447c79d70e8b028bf55f9e386fbf250e24edbb17930e0d3958e13341ba8d4a14428e1369af3b04de2aa1e7666d30d78f79c1a5f5eced7c2889f0d4f2223c1da
data/CHANGE_LOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ### Openapply CHANGE LOG
2
2
 
3
+ * **v1.0.3.5** - compatible with 1.0.x - 2022-08-23
4
+ - add a debug env variable to debug queries
5
+
6
+ * **v1.0.3.4** - compatible with 1.0.x - 2022-08-23
7
+ - update dependencies
8
+
3
9
  * **v1.0.2** - compatible with 1.0.x - 2020-05-18
4
10
  - improve auth token generation
5
11
 
data/Gemfile.lock CHANGED
@@ -1,94 +1,92 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openapply (1.0.3.3)
5
- httparty (~> 0.18)
6
- json (~> 2.3)
7
- oauth2 (~> 1.4)
4
+ openapply (1.0.3.5)
5
+ httparty (~> 0.20)
6
+ json (~> 2.6)
7
+ oauth2 (~> 2.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.7.0)
13
- public_suffix (>= 2.0.2, < 5.0)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
14
  codacy-coverage (2.2.1)
15
15
  simplecov
16
16
  coderay (1.1.3)
17
17
  crack (0.4.5)
18
18
  rexml
19
- diff-lcs (1.4.4)
20
- docile (1.3.5)
21
- faraday (1.4.1)
22
- faraday-excon (~> 1.1)
23
- faraday-net_http (~> 1.0)
24
- faraday-net_http_persistent (~> 1.1)
25
- multipart-post (>= 1.2, < 3)
19
+ diff-lcs (1.5.0)
20
+ docile (1.4.0)
21
+ faraday (2.5.2)
22
+ faraday-net_http (>= 2.0, < 3.1)
26
23
  ruby2_keywords (>= 0.0.4)
27
- faraday-excon (1.1.0)
28
- faraday-net_http (1.0.1)
29
- faraday-net_http_persistent (1.1.0)
24
+ faraday-net_http (3.0.0)
30
25
  hashdiff (1.0.1)
31
- httparty (0.18.1)
26
+ hashie (5.0.0)
27
+ httparty (0.20.0)
32
28
  mime-types (~> 3.0)
33
29
  multi_xml (>= 0.5.2)
34
- json (2.5.1)
35
- jwt (2.2.3)
30
+ json (2.6.2)
31
+ jwt (2.4.1)
36
32
  method_source (1.0.0)
37
- mime-types (3.3.1)
33
+ mime-types (3.4.1)
38
34
  mime-types-data (~> 3.2015)
39
- mime-types-data (3.2021.0225)
40
- multi_json (1.15.0)
35
+ mime-types-data (3.2022.0105)
41
36
  multi_xml (0.6.0)
42
- multipart-post (2.1.1)
43
- oauth2 (1.4.7)
44
- faraday (>= 0.8, < 2.0)
37
+ oauth2 (2.0.7)
38
+ faraday (>= 0.17.3, < 3.0)
45
39
  jwt (>= 1.0, < 3.0)
46
- multi_json (~> 1.3)
47
40
  multi_xml (~> 0.5)
48
41
  rack (>= 1.2, < 3)
42
+ rash_alt (>= 0.4, < 1)
43
+ version_gem (~> 1.1)
49
44
  pry (0.14.1)
50
45
  coderay (~> 1.1)
51
46
  method_source (~> 1.0)
52
- public_suffix (4.0.6)
53
- rack (2.2.3)
54
- rake (13.0.3)
47
+ public_suffix (5.0.0)
48
+ rack (2.2.4)
49
+ rake (13.0.6)
50
+ rash_alt (0.4.12)
51
+ hashie (>= 3.4)
55
52
  rexml (3.2.5)
56
- rspec (3.10.0)
57
- rspec-core (~> 3.10.0)
58
- rspec-expectations (~> 3.10.0)
59
- rspec-mocks (~> 3.10.0)
60
- rspec-core (3.10.1)
61
- rspec-support (~> 3.10.0)
62
- rspec-expectations (3.10.1)
53
+ rspec (3.11.0)
54
+ rspec-core (~> 3.11.0)
55
+ rspec-expectations (~> 3.11.0)
56
+ rspec-mocks (~> 3.11.0)
57
+ rspec-core (3.11.0)
58
+ rspec-support (~> 3.11.0)
59
+ rspec-expectations (3.11.0)
63
60
  diff-lcs (>= 1.2.0, < 2.0)
64
- rspec-support (~> 3.10.0)
65
- rspec-mocks (3.10.2)
61
+ rspec-support (~> 3.11.0)
62
+ rspec-mocks (3.11.1)
66
63
  diff-lcs (>= 1.2.0, < 2.0)
67
- rspec-support (~> 3.10.0)
68
- rspec-support (3.10.2)
69
- ruby2_keywords (0.0.4)
64
+ rspec-support (~> 3.11.0)
65
+ rspec-support (3.11.0)
66
+ ruby2_keywords (0.0.5)
70
67
  simplecov (0.21.2)
71
68
  docile (~> 1.1)
72
69
  simplecov-html (~> 0.11)
73
70
  simplecov_json_formatter (~> 0.1)
74
71
  simplecov-html (0.12.3)
75
- simplecov_json_formatter (0.1.3)
76
- webmock (3.12.2)
77
- addressable (>= 2.3.6)
72
+ simplecov_json_formatter (0.1.4)
73
+ version_gem (1.1.0)
74
+ webmock (3.18.1)
75
+ addressable (>= 2.8.0)
78
76
  crack (>= 0.3.2)
79
77
  hashdiff (>= 0.4.0, < 2.0.0)
80
78
 
81
79
  PLATFORMS
82
- ruby
80
+ arm64-darwin-20
83
81
 
84
82
  DEPENDENCIES
85
- bundler (~> 2.1)
86
- codacy-coverage (~> 2.1)
83
+ bundler (~> 2.3)
84
+ codacy-coverage (~> 2.2)
87
85
  openapply!
88
- pry (~> 0.13)
86
+ pry (~> 0.14)
89
87
  rake (~> 13.0)
90
- rspec (~> 3.9)
91
- webmock (~> 3.9)
88
+ rspec (~> 3.11)
89
+ webmock (~> 3.18)
92
90
 
93
91
  BUNDLED WITH
94
- 2.2.3
92
+ 2.3.20
@@ -77,9 +77,31 @@ module Openapply
77
77
  times_retried = 0
78
78
  begin
79
79
  options[:headers] = { 'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8', "Authorization" => auth_token}
80
+
81
+ if ENV['OA_DEBUG']
82
+ puts "###"
83
+ puts "DEBUG OA CLIENT GET at #{Time.now}"
84
+ puts "request URI: #{url}"
85
+ puts "request options: #{options}"
86
+ puts "###"
87
+ end
88
+
80
89
  answer = self.class.get(url, options)
90
+
91
+ if ENV['OA_DEBUG']
92
+ puts "ANSWER:"
93
+ puts "code: #{answer.code}"
94
+ puts "headers: #{answer.headers}"
95
+ puts "---"
96
+ puts "body:"
97
+ puts answer.body
98
+ puts "###"
99
+ end
100
+
81
101
  raise TooManyRequestError if answer.too_many_requests?
82
- answer
102
+
103
+ return answer
104
+
83
105
  rescue *NET_EXCEPTIONS
84
106
  if times_retried < max_retries
85
107
  times_retried += 1
@@ -106,7 +128,29 @@ module Openapply
106
128
  begin
107
129
  options[:headers] = { 'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8', "Authorization" => auth_token}
108
130
  options[:body] = value
109
- self.class.put(url, options)
131
+
132
+ if ENV['OA_DEBUG']
133
+ puts "###" if ENV['OA_DEBUG']
134
+ puts "DEBUG OA CLIENT PUT at #{Time.now}"
135
+ puts "request URI: #{url}"
136
+ puts "request options: #{options}"
137
+ puts "###"
138
+ end
139
+
140
+ answer = self.class.put(url, options)
141
+
142
+ if ENV['OA_DEBUG']
143
+ puts "ANSWER:"
144
+ puts "code: #{answer.code}"
145
+ puts "headers: #{answer.headers}"
146
+ puts "---"
147
+ puts "body:"
148
+ puts answer.body
149
+ puts "###"
150
+ end
151
+
152
+ return answer
153
+
110
154
  rescue *NET_EXCEPTIONS
111
155
  if times_retried < max_retries
112
156
  times_retried += 1
@@ -1,5 +1,5 @@
1
1
  module Openapply
2
2
  module Version
3
- VERSION = "1.0.3.3"
3
+ VERSION = "1.0.3.5"
4
4
  end
5
5
  end
data/openapply.gemspec CHANGED
@@ -20,14 +20,14 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "httparty", "~> 0.18"
24
- spec.add_dependency "json" , "~> 2.3"
25
- spec.add_dependency "oauth2", "~> 1.4"
23
+ spec.add_dependency "httparty", "~> 0.20"
24
+ spec.add_dependency "json" , "~> 2.6"
25
+ spec.add_dependency "oauth2", "~> 2.0"
26
26
 
27
- spec.add_development_dependency 'codacy-coverage', '~> 2.1'
28
- spec.add_development_dependency "webmock", "~> 3.9"
29
- spec.add_development_dependency "bundler", "~> 2.1"
27
+ spec.add_development_dependency 'codacy-coverage', '~> 2.2'
28
+ spec.add_development_dependency "webmock", "~> 3.18"
29
+ spec.add_development_dependency "bundler", "~> 2.3"
30
30
  spec.add_development_dependency "rake", "~> 13.0"
31
- spec.add_development_dependency "rspec", "~> 3.9"
32
- spec.add_development_dependency "pry", "~> 0.13"
31
+ spec.add_development_dependency "rspec", "~> 3.11"
32
+ spec.add_development_dependency "pry", "~> 0.14"
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openapply
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3.3
4
+ version: 1.0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Tihen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-05-05 00:00:00.000000000 Z
12
+ date: 2022-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -17,84 +17,84 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.18'
20
+ version: '0.20'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.18'
27
+ version: '0.20'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: json
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.3'
34
+ version: '2.6'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '2.3'
41
+ version: '2.6'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: oauth2
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '1.4'
48
+ version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.4'
55
+ version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: codacy-coverage
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '2.1'
62
+ version: '2.2'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '2.1'
69
+ version: '2.2'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: webmock
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '3.9'
76
+ version: '3.18'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '3.9'
83
+ version: '3.18'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: bundler
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '2.1'
90
+ version: '2.3'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '2.1'
97
+ version: '2.3'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -115,28 +115,28 @@ dependencies:
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '3.9'
118
+ version: '3.11'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '3.9'
125
+ version: '3.11'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: pry
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: '0.13'
132
+ version: '0.14'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - "~>"
138
138
  - !ruby/object:Gem::Version
139
- version: '0.13'
139
+ version: '0.14'
140
140
  description:
141
141
  email:
142
142
  - btihen@gmail.com
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  - !ruby/object:Gem::Version
189
189
  version: '0'
190
190
  requirements: []
191
- rubygems_version: 3.2.3
191
+ rubygems_version: 3.2.22
192
192
  signing_key:
193
193
  specification_version: 4
194
194
  summary: Access OpenApply's APIs with Ruby