harvestdor 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 512b556fbe2a3547829f7ea157be1e984d302294
4
- data.tar.gz: b6512cb57d70adea02eef25519ff0d3265253305
3
+ metadata.gz: d6cae2e27c9d43283887f19fe9e9e7eba17461fb
4
+ data.tar.gz: 81afa857d8f042fbecdcf32e68fe31b5bfc7f2a4
5
5
  SHA512:
6
- metadata.gz: 27c95f0765aa2c5a44729b5620e59fc942e490096da2d64a066e4bf3ab4babfa9c52d508b8736fcf15d268e3c917a0269ed42cdf189f4add3f933bc17617564e
7
- data.tar.gz: 7094c91f20e889b729f1c507629fae1875e8f6125a4562bd1163accadd7fe42ceb2162aadc3a055fd3af3f08708bdc9efd6772f9d8b4a9b0c647019357746dff
6
+ metadata.gz: e88f3d8c26d357a775a6e32d73d01c6339cb264f3cc70ab338011553b62fb4bf5d8c5232e1d62cc822422614240882257a796f1d48d95822db7738d3e1e3513a
7
+ data.tar.gz: 1d6a8823f21a15003f4a558700d600c8f55bdd799eaa43f581af2dc73cb35545593d27717527e964736818e76b2eb1992016a84d1aba034c4ccffaf91df4d6cb
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2015-10-26 14:10:41 -0700 using RuboCop version 0.34.2.
3
+ # on 2016-09-20 16:22:35 -0700 using RuboCop version 0.42.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -12,17 +12,36 @@ Lint/DeprecatedClassMethods:
12
12
  Exclude:
13
13
  - 'spec/harvestdor_client_spec.rb'
14
14
 
15
- # Offense count: 80
16
- # Configuration parameters: AllowURI, URISchemes.
15
+ # Offense count: 1
16
+ Lint/IneffectiveAccessModifier:
17
+ Exclude:
18
+ - 'lib/harvestdor/purl_xml.rb'
19
+
20
+ # Offense count: 1
21
+ # Configuration parameters: ContextCreatingMethods.
22
+ Lint/UselessAccessModifier:
23
+ Exclude:
24
+ - 'lib/harvestdor/purl_xml.rb'
25
+
26
+ # Offense count: 83
27
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
28
+ # URISchemes: http, https
17
29
  Metrics/LineLength:
18
30
  Max: 182
19
31
 
20
32
  # Offense count: 6
33
+ # Configuration parameters: SkipBlocks.
21
34
  RSpec/DescribedClass:
22
35
  Exclude:
23
36
  - 'spec/harvestdor_client_spec.rb'
24
37
  - 'spec/purl_xml_spec.rb'
25
38
 
39
+ # Offense count: 7
40
+ # Configuration parameters: Max.
41
+ RSpec/ExampleLength:
42
+ Exclude:
43
+ - 'spec/purl_xml_spec.rb'
44
+
26
45
  # Offense count: 8
27
46
  # Configuration parameters: CustomTransform, IgnoredWords.
28
47
  RSpec/ExampleWording:
@@ -42,9 +61,16 @@ RSpec/InstanceVariable:
42
61
  - 'spec/harvestdor_client_spec.rb'
43
62
  - 'spec/purl_xml_spec.rb'
44
63
 
64
+ # Offense count: 1
65
+ # Configuration parameters: IgnoreSymbolicNames.
66
+ RSpec/VerifiedDoubles:
67
+ Exclude:
68
+ - 'spec/purl_xml_spec.rb'
69
+
45
70
  # Offense count: 6
46
71
  # Cop supports --auto-correct.
47
72
  # Configuration parameters: EnforcedStyle, SupportedStyles.
73
+ # SupportedStyles: braces, no_braces, context_dependent
48
74
  Style/BracesAroundHashParameters:
49
75
  Exclude:
50
76
  - 'lib/harvestdor/client.rb'
@@ -54,18 +80,24 @@ Style/BracesAroundHashParameters:
54
80
 
55
81
  # Offense count: 2
56
82
  # Cop supports --auto-correct.
57
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
83
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
84
+ # SupportedStyles: case, end
58
85
  Style/CaseIndentation:
59
- Enabled: false
86
+ Exclude:
87
+ - 'lib/harvestdor/purl_xml.rb'
60
88
 
61
- # Offense count: 4
62
- # Configuration parameters: Exclude.
89
+ # Offense count: 1
63
90
  Style/Documentation:
64
91
  Exclude:
65
- - 'lib/harvestdor.rb'
66
- - 'lib/harvestdor/errors.rb'
92
+ - 'spec/**/*'
93
+ - 'test/**/*'
94
+ - 'lib/harvestdor/purl_xml.rb'
95
+
96
+ # Offense count: 1
97
+ # Cop supports --auto-correct.
98
+ Style/EmptyCaseCondition:
99
+ Exclude:
67
100
  - 'lib/harvestdor/purl_xml.rb'
68
- - 'lib/harvestdor/version.rb'
69
101
 
70
102
  # Offense count: 2
71
103
  # Cop supports --auto-correct.
@@ -77,6 +109,7 @@ Style/EmptyLines:
77
109
  # Offense count: 3
78
110
  # Cop supports --auto-correct.
79
111
  # Configuration parameters: EnforcedStyle, SupportedStyles.
112
+ # SupportedStyles: empty_lines, no_empty_lines
80
113
  Style/EmptyLinesAroundBlockBody:
81
114
  Exclude:
82
115
  - 'spec/harvestdor_client_spec.rb'
@@ -85,6 +118,7 @@ Style/EmptyLinesAroundBlockBody:
85
118
  # Offense count: 2
86
119
  # Cop supports --auto-correct.
87
120
  # Configuration parameters: EnforcedStyle, SupportedStyles.
121
+ # SupportedStyles: empty_lines, no_empty_lines
88
122
  Style/EmptyLinesAroundClassBody:
89
123
  Exclude:
90
124
  - 'lib/harvestdor/client.rb'
@@ -92,6 +126,7 @@ Style/EmptyLinesAroundClassBody:
92
126
  # Offense count: 2
93
127
  # Cop supports --auto-correct.
94
128
  # Configuration parameters: EnforcedStyle, SupportedStyles.
129
+ # SupportedStyles: empty_lines, no_empty_lines
95
130
  Style/EmptyLinesAroundModuleBody:
96
131
  Exclude:
97
132
  - 'lib/harvestdor.rb'
@@ -105,9 +140,15 @@ Style/EmptyLiteral:
105
140
 
106
141
  # Offense count: 10
107
142
  # Cop supports --auto-correct.
108
- # Configuration parameters: SupportedStyles, UseHashRocketsWithSymbolValues.
143
+ # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
144
+ # SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
109
145
  Style/HashSyntax:
110
- EnforcedStyle: hash_rockets
146
+ Exclude:
147
+ - 'Rakefile'
148
+ - 'lib/harvestdor/client.rb'
149
+ - 'lib/harvestdor/purl_xml.rb'
150
+ - 'spec/harvestdor_client_spec.rb'
151
+ - 'spec/purl_xml_spec.rb'
111
152
 
112
153
  # Offense count: 2
113
154
  # Cop supports --auto-correct.
@@ -118,14 +159,35 @@ Style/LeadingCommentSpace:
118
159
  # Offense count: 15
119
160
  # Cop supports --auto-correct.
120
161
  # Configuration parameters: EnforcedStyle, SupportedStyles.
162
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
121
163
  Style/MethodDefParentheses:
122
- Enabled: false
164
+ Exclude:
165
+ - 'lib/harvestdor/client.rb'
166
+ - 'lib/harvestdor/purl_xml.rb'
123
167
 
124
168
  # Offense count: 1
125
169
  # Cop supports --auto-correct.
126
170
  # Configuration parameters: EnforcedStyle, SupportedStyles.
171
+ # SupportedStyles: symmetrical, new_line, same_line
172
+ Style/MultilineMethodCallBraceLayout:
173
+ Exclude:
174
+ - 'lib/harvestdor/client.rb'
175
+
176
+ # Offense count: 1
177
+ # Cop supports --auto-correct.
178
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
179
+ # SupportedStyles: aligned, indented
127
180
  Style/MultilineOperationIndentation:
128
- Enabled: false
181
+ Exclude:
182
+ - 'Rakefile'
183
+
184
+ # Offense count: 6
185
+ # Cop supports --auto-correct.
186
+ Style/MutableConstant:
187
+ Exclude:
188
+ - 'lib/harvestdor.rb'
189
+ - 'lib/harvestdor/purl_xml.rb'
190
+ - 'lib/harvestdor/version.rb'
129
191
 
130
192
  # Offense count: 2
131
193
  # Cop supports --auto-correct.
@@ -135,7 +197,9 @@ Style/PercentLiteralDelimiters:
135
197
  - 'harvestdor.gemspec'
136
198
 
137
199
  # Offense count: 13
200
+ # Cop supports --auto-correct.
138
201
  # Configuration parameters: SupportedStyles.
202
+ # SupportedStyles: compact, exploded
139
203
  Style/RaiseArgs:
140
204
  EnforcedStyle: compact
141
205
 
@@ -145,13 +209,6 @@ Style/RedundantBegin:
145
209
  Exclude:
146
210
  - 'lib/harvestdor/purl_xml.rb'
147
211
 
148
- # Offense count: 7
149
- # Cop supports --auto-correct.
150
- # Configuration parameters: EnforcedStyle, SupportedStyles.
151
- Style/SignalException:
152
- Exclude:
153
- - 'lib/harvestdor/purl_xml.rb'
154
-
155
212
  # Offense count: 2
156
213
  # Cop supports --auto-correct.
157
214
  Style/SpaceAfterComma:
@@ -161,14 +218,18 @@ Style/SpaceAfterComma:
161
218
  # Offense count: 1
162
219
  # Cop supports --auto-correct.
163
220
  # Configuration parameters: EnforcedStyle, SupportedStyles.
221
+ # SupportedStyles: space, no_space
164
222
  Style/SpaceBeforeBlockBraces:
165
- Enabled: false
223
+ Exclude:
224
+ - 'harvestdor.gemspec'
166
225
 
167
226
  # Offense count: 1
168
227
  # Cop supports --auto-correct.
169
228
  # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
229
+ # SupportedStyles: space, no_space
170
230
  Style/SpaceInsideBlockBraces:
171
- Enabled: false
231
+ Exclude:
232
+ - 'spec/purl_xml_spec.rb'
172
233
 
173
234
  # Offense count: 2
174
235
  # Cop supports --auto-correct.
@@ -179,24 +240,38 @@ Style/SpaceInsideBrackets:
179
240
  # Offense count: 10
180
241
  # Cop supports --auto-correct.
181
242
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
243
+ # SupportedStyles: space, no_space, compact
182
244
  Style/SpaceInsideHashLiteralBraces:
183
- Enabled: false
245
+ Exclude:
246
+ - 'lib/harvestdor/purl_xml.rb'
247
+ - 'spec/harvestdor_client_spec.rb'
248
+ - 'spec/purl_xml_spec.rb'
184
249
 
185
250
  # Offense count: 1
186
251
  # Cop supports --auto-correct.
252
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
253
+ # SupportedStyles: use_perl_names, use_english_names
187
254
  Style/SpecialGlobalVars:
188
255
  Exclude:
189
256
  - 'harvestdor.gemspec'
190
257
 
191
- # Offense count: 85
258
+ # Offense count: 86
192
259
  # Cop supports --auto-correct.
193
- # Configuration parameters: EnforcedStyle, SupportedStyles.
260
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
261
+ # SupportedStyles: single_quotes, double_quotes
194
262
  Style/StringLiterals:
195
- Enabled: false
263
+ Exclude:
264
+ - 'Rakefile'
265
+ - 'harvestdor.gemspec'
266
+ - 'lib/harvestdor.rb'
267
+ - 'lib/harvestdor/version.rb'
268
+ - 'spec/harvestdor_client_spec.rb'
269
+ - 'spec/purl_xml_spec.rb'
196
270
 
197
271
  # Offense count: 8
198
272
  # Cop supports --auto-correct.
199
273
  # Configuration parameters: EnforcedStyle, SupportedStyles.
274
+ # SupportedStyles: final_newline, final_blank_line
200
275
  Style/TrailingBlankLines:
201
276
  Exclude:
202
277
  - 'Rakefile'
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency 'confstruct'
21
21
  gem.add_dependency 'nokogiri'
22
22
  gem.add_dependency 'faraday'
23
+ gem.add_dependency 'net-http-persistent'
23
24
 
24
25
  # Development dependencies
25
26
  gem.add_development_dependency "rake"
@@ -1,4 +1,5 @@
1
1
  require 'nokogiri'
2
+ require 'net/http/persistent'
2
3
 
3
4
  module Harvestdor
4
5
  # Mixin: code to retrieve Purl public xml pieces
@@ -137,10 +138,10 @@ module Harvestdor
137
138
  end
138
139
  pub_xml_ng_doc
139
140
  end
140
-
141
+
141
142
  def self.http_client
142
143
  @http_client ||= Faraday.new do |conn|
143
- conn.adapter Faraday.default_adapter
144
+ conn.adapter :net_http_persistent
144
145
  conn.use Faraday::Response::RaiseError
145
146
  conn.request :retry, max: 5,
146
147
  interval: 0.05,
@@ -1,3 +1,3 @@
1
1
  module Harvestdor
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harvestdor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: confstruct
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: net-http-persistent
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement