poms 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +10 -6
- data/circle.yml +2 -0
- data/examples/fetch.rb +1 -1
- data/lib/poms.rb +3 -1
- data/lib/poms/api/request.rb +2 -3
- data/lib/poms/api/search.rb +5 -0
- data/lib/poms/configuration.rb +1 -1
- data/lib/poms/fields.rb +1 -1
- data/lib/poms/version.rb +1 -1
- data/poms.gemspec +2 -2
- metadata +7 -9
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85292060b0c5dea4b9f7398aeb16a9d0f6df5190
|
4
|
+
data.tar.gz: ee21d0dd068514a0ee38d93a2719f9969fb48a28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b7b665ceb080c2f88785c76da9c833232180f2e25f789234f8d37928e636cdee8763229a6ea76fc1d86d10e1edf5407ef6c1da30799d053b5c96bc6a942b175
|
7
|
+
data.tar.gz: 792cf6b0628b82dbced00ef5b6990219d99fb83a9b45ee15274ae4bc8d24dd410d29fc95cdeec17e0d31ce0c6c2b4963da967280f8d69cbaca747a74fc4e13e8
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -18,6 +18,10 @@ Style/BlockDelimiters:
|
|
18
18
|
Exclude:
|
19
19
|
- 'spec/**/*.rb'
|
20
20
|
|
21
|
+
Metrics/BlockLength:
|
22
|
+
Exclude:
|
23
|
+
- 'spec/**/*.rb'
|
24
|
+
|
21
25
|
Style/AndOr:
|
22
26
|
Exclude:
|
23
27
|
- 'lib/poms.rb' # here we do rely on how `or` has lower precedence than `||`
|
@@ -33,20 +37,20 @@ ModuleLength:
|
|
33
37
|
RSpec/ExampleLength:
|
34
38
|
Max: 15
|
35
39
|
|
36
|
-
|
40
|
+
Layout/AlignParameters:
|
37
41
|
EnforcedStyle: with_fixed_indentation
|
38
42
|
|
39
|
-
|
43
|
+
Layout/FirstParameterIndentation:
|
40
44
|
EnforcedStyle: consistent
|
41
45
|
|
42
|
-
|
46
|
+
Layout/IndentArray:
|
43
47
|
EnforcedStyle: consistent
|
44
48
|
|
45
|
-
|
49
|
+
Layout/IndentHash:
|
46
50
|
EnforcedStyle: consistent
|
47
51
|
|
48
|
-
|
52
|
+
Layout/MultilineMethodCallIndentation:
|
49
53
|
EnforcedStyle: indented
|
50
54
|
|
51
|
-
|
55
|
+
Layout/MultilineOperationIndentation:
|
52
56
|
EnforcedStyle: indented
|
data/circle.yml
CHANGED
data/examples/fetch.rb
CHANGED
@@ -12,5 +12,5 @@ Poms.first('POMS_S_NTR_2342303')
|
|
12
12
|
# => A hash representing the data corresponding to the given MID
|
13
13
|
|
14
14
|
# Fetch multiple entities
|
15
|
-
Poms.fetch(%w
|
15
|
+
Poms.fetch(%w[WO_TELEAC_003061 POMS_EO_622912])
|
16
16
|
# => An array of hashes representing data corresponding to those MIDs
|
data/lib/poms.rb
CHANGED
data/lib/poms/api/request.rb
CHANGED
@@ -45,9 +45,8 @@ module Poms
|
|
45
45
|
private
|
46
46
|
|
47
47
|
def validate!
|
48
|
-
|
49
|
-
|
50
|
-
end
|
48
|
+
raise ArgumentError, 'method should be :get or :post' unless
|
49
|
+
%i[get post].include?(@method)
|
51
50
|
end
|
52
51
|
end
|
53
52
|
end
|
data/lib/poms/api/search.rb
CHANGED
data/lib/poms/configuration.rb
CHANGED
@@ -12,7 +12,7 @@ module Poms
|
|
12
12
|
|
13
13
|
# List of special credential keys that need to be present in order to be
|
14
14
|
# able to use the API.
|
15
|
-
REQUIRED_CREDENTIAL_KEYS = [
|
15
|
+
REQUIRED_CREDENTIAL_KEYS = %i[key origin secret].freeze
|
16
16
|
|
17
17
|
# Build a new configuration object, including validations and freezing.
|
18
18
|
#
|
data/lib/poms/fields.rb
CHANGED
data/lib/poms/version.rb
CHANGED
data/poms.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'guard'
|
24
24
|
spec.add_development_dependency 'rake'
|
25
25
|
spec.add_development_dependency 'rspec'
|
26
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.
|
27
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
26
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.20.0'
|
27
|
+
spec.add_development_dependency 'rubocop', '~> 0.51.0'
|
28
28
|
spec.add_development_dependency 'simplecov'
|
29
29
|
spec.add_development_dependency 'timecop'
|
30
30
|
spec.add_development_dependency 'vcr'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Kruijsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -114,28 +114,28 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 1.
|
117
|
+
version: 1.20.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 1.
|
124
|
+
version: 1.20.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: rubocop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.
|
131
|
+
version: 0.51.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.
|
138
|
+
version: 0.51.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: simplecov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -202,7 +202,6 @@ files:
|
|
202
202
|
- ".gitignore"
|
203
203
|
- ".rubocop.yml"
|
204
204
|
- ".rubocop_todo.yml"
|
205
|
-
- ".ruby-version"
|
206
205
|
- CHANGELOG.md
|
207
206
|
- Gemfile
|
208
207
|
- Guardfile
|
@@ -252,9 +251,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
251
|
version: '0'
|
253
252
|
requirements: []
|
254
253
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.6.13
|
256
255
|
signing_key:
|
257
256
|
specification_version: 4
|
258
257
|
summary: Interface to POMS CouchDB API
|
259
258
|
test_files: []
|
260
|
-
has_rdoc:
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.3.0
|