poms 2.1.2 → 2.1.2.1
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/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +29 -0
- data/CHANGELOG.md +4 -0
- data/lib/poms/fields.rb +1 -1
- data/lib/poms/version.rb +1 -1
- data/poms.gemspec +2 -2
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 746d25a8022f2668464a0fb396c6b02f3e2d4ab0
|
4
|
+
data.tar.gz: 4e07b85a5a0950e1da37e8385251f2ec9b4d642c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719ccd46f6e2e1ed7b408921dc87c2170cf007de1a86195d572a98fbe504ac4ebd176210fbfed31d0d098893a80bac92f6f7fbe7523c419e395967e6e7017bef
|
7
|
+
data.tar.gz: bbc3fc1df1e5a72938d406d38854fbc75d9faf8f30794626a580e790599fa5f95801dc6e7a3f8f85198355002d085f2936639c4e7fe14fa2c828b90bb536cc9c
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2016-09-02 16:06:20 +0200 using RuboCop version 0.42.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
require: rubocop-rspec
|
10
|
+
|
11
|
+
# Offense count: 15
|
12
|
+
RSpec/MultipleExpectations:
|
13
|
+
Max: 4
|
14
|
+
|
15
|
+
# Offense count: 33
|
16
|
+
RSpec/NamedSubject:
|
17
|
+
Exclude:
|
18
|
+
- 'spec/integration/poms_spec.rb'
|
19
|
+
- 'spec/lib/poms/api/response_spec.rb'
|
20
|
+
- 'spec/lib/poms/api/search_spec.rb'
|
21
|
+
- 'spec/lib/poms/api/uris/schedule_spec.rb'
|
22
|
+
- 'spec/lib/poms/configuration_spec.rb'
|
23
|
+
|
24
|
+
# Offense count: 4
|
25
|
+
# Configuration parameters: MaxNesting.
|
26
|
+
RSpec/NestedGroups:
|
27
|
+
Exclude:
|
28
|
+
- 'spec/lib/poms/api/search_spec.rb'
|
29
|
+
- 'spec/lib/poms/fields_spec.rb'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Poms Release notes
|
2
2
|
|
3
|
+
## 2.1.2.1
|
4
|
+
|
5
|
+
* Fix a minor bug on `Poms::Fields.title`. This could be triggered when a result from a Poms query would be empty. `nil` would be sumitted and the provided key would be called on `nil` which caused an error. Now it will simply return `nil` as a title.
|
6
|
+
|
3
7
|
## 2.1.2
|
4
8
|
|
5
9
|
* Extend Poms::Fields.position target specified parent
|
data/lib/poms/fields.rb
CHANGED
@@ -129,7 +129,7 @@ module Poms
|
|
129
129
|
# @param key The key of the array we want to look in
|
130
130
|
# @param type The type to select
|
131
131
|
def value_of_type(item, key, type)
|
132
|
-
return unless item[key]
|
132
|
+
return unless item && item[key]
|
133
133
|
res = item[key].find { |value| value['type'] == type }
|
134
134
|
return unless res
|
135
135
|
res['value']
|
data/lib/poms/version.rb
CHANGED
data/poms.gemspec
CHANGED
@@ -24,8 +24,8 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'rake'
|
25
25
|
spec.add_development_dependency 'reek'
|
26
26
|
spec.add_development_dependency 'rspec'
|
27
|
-
spec.add_development_dependency 'rubocop-rspec'
|
28
|
-
spec.add_development_dependency 'rubocop'
|
27
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.7.0'
|
28
|
+
spec.add_development_dependency 'rubocop', '~> 0.42.0'
|
29
29
|
spec.add_development_dependency 'simplecov'
|
30
30
|
spec.add_development_dependency 'timecop'
|
31
31
|
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.1.2
|
4
|
+
version: 2.1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Kruijsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -126,30 +126,30 @@ dependencies:
|
|
126
126
|
name: rubocop-rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 1.7.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:
|
138
|
+
version: 1.7.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.42.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.42.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -215,6 +215,7 @@ extra_rdoc_files: []
|
|
215
215
|
files:
|
216
216
|
- ".gitignore"
|
217
217
|
- ".rubocop.yml"
|
218
|
+
- ".rubocop_todo.yml"
|
218
219
|
- ".ruby-version"
|
219
220
|
- ".todo.reek"
|
220
221
|
- CHANGELOG.md
|
@@ -267,8 +268,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
268
|
version: '0'
|
268
269
|
requirements: []
|
269
270
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.
|
271
|
+
rubygems_version: 2.6.4
|
271
272
|
signing_key:
|
272
273
|
specification_version: 4
|
273
274
|
summary: Interface to POMS CouchDB API
|
274
275
|
test_files: []
|
276
|
+
has_rdoc:
|