my_api_client 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +76 -45
- data/Gemfile.lock +3 -3
- data/lib/my_api_client/exceptions.rb +4 -2
- data/lib/my_api_client/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: fe861b2f0c7bd0d00b0a1bd681dbb763417c0c9586739c7277e95dbca4982c13
|
4
|
+
data.tar.gz: 8d5c7906faecf94d50e22b4ac70cfba8e85e0ee6498aab85758686c3372b5884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7b96f4df81a4d95f4b55250b1ed1ea738a562229f35aa9d86372237bde661178938dd656656ebd86d3745bcff35ba0cdf25c20a8583a56527cd3030199b34f4
|
7
|
+
data.tar.gz: 534159f4e8d0cc4d316366f630dc2ed640edafe51dc393f22fbbec9974a0cafe8245701fc56bf232cce252926c2d4668adc1340a0d6b08e4e483acdbc39c7793
|
data/.circleci/config.yml
CHANGED
@@ -55,16 +55,25 @@ commands:
|
|
55
55
|
--format RspecJunitFormatter \
|
56
56
|
--out /tmp/test-results/rspec.xml \
|
57
57
|
$TEST_FILES
|
58
|
-
|
58
|
+
- code-climate/format-coverage:
|
59
|
+
input-type: simplecov
|
60
|
+
prefix: $(readlink -f .)
|
61
|
+
coverage-file: coverage/.resultset.json
|
62
|
+
output: coverage/codeclimate.$CIRCLE_BUILD_NUM.json
|
63
|
+
- persist_to_workspace:
|
64
|
+
root: coverage
|
65
|
+
paths:
|
66
|
+
- codeclimate.*.json
|
59
67
|
- store_test_results:
|
60
68
|
path: /tmp/test-results
|
61
69
|
- store_artifacts:
|
62
70
|
path: /tmp/test-results
|
63
71
|
destination: test-results
|
64
72
|
rubocop:
|
65
|
-
description: Run RuboCop
|
66
73
|
steps:
|
67
|
-
- run:
|
74
|
+
- run:
|
75
|
+
name: Run RuboCop
|
76
|
+
command: bundle exec rubocop
|
68
77
|
yardoc:
|
69
78
|
description: 'Generate YARDoc'
|
70
79
|
steps:
|
@@ -73,17 +82,17 @@ commands:
|
|
73
82
|
path: ./yardoc
|
74
83
|
destination: yardoc
|
75
84
|
rake_build:
|
76
|
-
description: Rake Build
|
77
85
|
steps:
|
78
|
-
- run:
|
79
|
-
|
86
|
+
- run:
|
87
|
+
name: Rake Build
|
88
|
+
command: bundle exec rake build
|
80
89
|
rubocop_challenge:
|
81
|
-
description: Rubocop Challenge
|
82
90
|
steps:
|
83
|
-
-
|
84
|
-
|
85
|
-
|
86
|
-
|
91
|
+
- run:
|
92
|
+
name: Rubocop Challenge
|
93
|
+
command: |
|
94
|
+
gem install rubocop_challenger --pre
|
95
|
+
rubocop_challenger go --email=ryz310@gmail.com --name=ryz310
|
87
96
|
release:
|
88
97
|
description: Release to RubyGems.org
|
89
98
|
steps:
|
@@ -134,26 +143,33 @@ jobs:
|
|
134
143
|
bundler_options: << parameters.bundler_options >>
|
135
144
|
- test_and_build:
|
136
145
|
rails_version: << parameters.rails_version >>
|
146
|
+
upload-coverage:
|
147
|
+
executor: default
|
148
|
+
steps:
|
149
|
+
- attach_workspace:
|
150
|
+
at: ~/repo
|
151
|
+
- code-climate/install
|
152
|
+
- code-climate/sum-coverage:
|
153
|
+
input: codeclimate.*.json
|
154
|
+
parts: 13
|
155
|
+
- code-climate/upload-coverage
|
137
156
|
rubocop:
|
138
|
-
executor:
|
139
|
-
name: default
|
157
|
+
executor: default
|
140
158
|
steps:
|
141
159
|
- setup
|
142
160
|
- rubocop
|
143
161
|
yardoc:
|
144
|
-
executor:
|
145
|
-
name: default
|
162
|
+
executor: default
|
146
163
|
steps:
|
147
164
|
- setup
|
148
165
|
- yardoc
|
149
166
|
rubocop_challenge:
|
150
|
-
executor:
|
151
|
-
name: default
|
167
|
+
executor: default
|
152
168
|
steps:
|
169
|
+
- checkout
|
153
170
|
- rubocop_challenge
|
154
171
|
release:
|
155
|
-
executor:
|
156
|
-
name: default
|
172
|
+
executor: default
|
157
173
|
steps:
|
158
174
|
- setup
|
159
175
|
- release
|
@@ -164,77 +180,92 @@ workflows:
|
|
164
180
|
commit:
|
165
181
|
jobs:
|
166
182
|
- build:
|
167
|
-
name:
|
183
|
+
name: build_on_ruby_2.4_and_rails_4.2
|
168
184
|
ruby_version: '2.4'
|
169
185
|
rails_version: '4.2'
|
170
186
|
- build:
|
171
|
-
name:
|
187
|
+
name: build_on_ruby_2.4_and_rails_5.0
|
172
188
|
ruby_version: '2.4'
|
173
189
|
rails_version: '5.0'
|
174
190
|
- build:
|
175
|
-
name:
|
191
|
+
name: build_on_ruby_2.4_and_rails_5.1
|
176
192
|
ruby_version: '2.4'
|
177
193
|
rails_version: '5.1'
|
178
194
|
- build:
|
179
|
-
name:
|
195
|
+
name: build_on_ruby_2.4_and_rails_5.2
|
180
196
|
ruby_version: '2.4'
|
181
197
|
rails_version: '5.2'
|
182
198
|
- build:
|
183
|
-
name:
|
199
|
+
name: build_on_ruby_2.5_and_rails_4.2
|
184
200
|
ruby_version: '2.5'
|
185
201
|
rails_version: '4.2'
|
186
202
|
- build:
|
187
|
-
name:
|
203
|
+
name: build_on_ruby_2.5_and_rails_5.0
|
188
204
|
ruby_version: '2.5'
|
189
205
|
rails_version: '5.0'
|
190
206
|
- build:
|
191
|
-
name:
|
207
|
+
name: build_on_ruby_2.5_and_rails_5.1
|
192
208
|
ruby_version: '2.5'
|
193
209
|
rails_version: '5.1'
|
194
210
|
- build:
|
195
|
-
name:
|
211
|
+
name: build_on_ruby_2.5_and_rails_5.2
|
196
212
|
ruby_version: '2.5'
|
197
213
|
rails_version: '5.2'
|
198
214
|
- build:
|
199
|
-
name:
|
215
|
+
name: build_on_ruby_2.6_and_rails_4.2
|
200
216
|
ruby_version: '2.6'
|
201
217
|
rails_version: '4.2'
|
202
218
|
- build:
|
203
|
-
name:
|
219
|
+
name: build_on_ruby_2.6_and_rails_5.0
|
204
220
|
ruby_version: '2.6'
|
205
221
|
rails_version: '5.0'
|
206
222
|
- build:
|
207
|
-
name:
|
223
|
+
name: build_on_ruby_2.6_and_rails_5.1
|
208
224
|
ruby_version: '2.6'
|
209
225
|
rails_version: '5.1'
|
210
226
|
- build:
|
211
|
-
name:
|
227
|
+
name: build_on_ruby_2.6_and_rails_5.2_with_integrations
|
212
228
|
ruby_version: '2.6'
|
213
229
|
rails_version: '5.2'
|
214
230
|
bundler_options: '--with integrations'
|
215
231
|
- build:
|
216
|
-
name:
|
232
|
+
name: build_on_ruby_2.6_and_rails_5.2_without_integrations
|
217
233
|
ruby_version: '2.6'
|
218
234
|
rails_version: '5.2'
|
219
235
|
bundler_options: '--without integrations'
|
220
236
|
- rubocop
|
221
237
|
- yardoc
|
238
|
+
- upload-coverage:
|
239
|
+
requires:
|
240
|
+
- build_on_ruby_2.4_and_rails_4.2
|
241
|
+
- build_on_ruby_2.4_and_rails_5.0
|
242
|
+
- build_on_ruby_2.4_and_rails_5.1
|
243
|
+
- build_on_ruby_2.4_and_rails_5.2
|
244
|
+
- build_on_ruby_2.5_and_rails_4.2
|
245
|
+
- build_on_ruby_2.5_and_rails_5.0
|
246
|
+
- build_on_ruby_2.5_and_rails_5.1
|
247
|
+
- build_on_ruby_2.5_and_rails_5.2
|
248
|
+
- build_on_ruby_2.6_and_rails_4.2
|
249
|
+
- build_on_ruby_2.6_and_rails_5.0
|
250
|
+
- build_on_ruby_2.6_and_rails_5.1
|
251
|
+
- build_on_ruby_2.6_and_rails_5.2_with_integrations
|
252
|
+
- build_on_ruby_2.6_and_rails_5.2_without_integrations
|
222
253
|
- release:
|
223
254
|
context: RubyGems API Key
|
224
255
|
requires:
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
256
|
+
- build_on_ruby_2.4_and_rails_4.2
|
257
|
+
- build_on_ruby_2.4_and_rails_5.0
|
258
|
+
- build_on_ruby_2.4_and_rails_5.1
|
259
|
+
- build_on_ruby_2.4_and_rails_5.2
|
260
|
+
- build_on_ruby_2.5_and_rails_4.2
|
261
|
+
- build_on_ruby_2.5_and_rails_5.0
|
262
|
+
- build_on_ruby_2.5_and_rails_5.1
|
263
|
+
- build_on_ruby_2.5_and_rails_5.2
|
264
|
+
- build_on_ruby_2.6_and_rails_4.2
|
265
|
+
- build_on_ruby_2.6_and_rails_5.0
|
266
|
+
- build_on_ruby_2.6_and_rails_5.1
|
267
|
+
- build_on_ruby_2.6_and_rails_5.2_with_integrations
|
268
|
+
- build_on_ruby_2.6_and_rails_5.2_without_integrations
|
238
269
|
- rubocop
|
239
270
|
filters:
|
240
271
|
branches:
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
my_api_client (0.5.
|
4
|
+
my_api_client (0.5.2)
|
5
5
|
activesupport (>= 4.2.0)
|
6
6
|
jsonpath
|
7
7
|
sawyer
|
@@ -79,8 +79,8 @@ GEM
|
|
79
79
|
rainbow (>= 2.2.2, < 4.0)
|
80
80
|
ruby-progressbar (~> 1.7)
|
81
81
|
unicode-display_width (>= 1.4.0, < 1.7)
|
82
|
-
rubocop-performance (1.
|
83
|
-
rubocop (>= 0.
|
82
|
+
rubocop-performance (1.4.0)
|
83
|
+
rubocop (>= 0.71.0)
|
84
84
|
rubocop-rspec (1.33.0)
|
85
85
|
rubocop (>= 0.60.0)
|
86
86
|
ruby-progressbar (1.10.1)
|
@@ -16,11 +16,13 @@ module MyApiClient
|
|
16
16
|
rescue StandardError => e
|
17
17
|
@retry_count ||= 0
|
18
18
|
raise unless rescue_with_handler(e)
|
19
|
+
|
20
|
+
retry_result
|
19
21
|
end
|
20
22
|
|
21
23
|
private
|
22
24
|
|
23
|
-
attr_reader :retry_count, :method_name, :args
|
25
|
+
attr_reader :retry_count, :retry_result, :method_name, :args
|
24
26
|
|
25
27
|
class_methods do
|
26
28
|
def retry_on(*exception, wait: 1.second, attempts: 3)
|
@@ -51,7 +53,7 @@ module MyApiClient
|
|
51
53
|
def retry_calling(wait)
|
52
54
|
sleep(wait)
|
53
55
|
@retry_count += 1
|
54
|
-
call(*args)
|
56
|
+
@retry_result = call(*args)
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryz310
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|