poms 2.1.2 → 2.1.2.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: d268f605a793eec5d34d3eda6c400f679a07d2c1
4
- data.tar.gz: 93aa682457183d55b7f959d124e8bbe1142bc433
3
+ metadata.gz: 746d25a8022f2668464a0fb396c6b02f3e2d4ab0
4
+ data.tar.gz: 4e07b85a5a0950e1da37e8385251f2ec9b4d642c
5
5
  SHA512:
6
- metadata.gz: 76f56dc3d7d826dee54d4edec5a93079b201ff257d1e9443633b67c437009d8c91291b42353fc6342430c0b4f36b8eeccc14d4135b100c9038e38fa1b0914754
7
- data.tar.gz: 8fb05d5b1161e897a7c6dccdba6e21f608fd54fb9f1db641b444645a0eb9f89b81af292f23b75e233e4b50ff9472a5c274a23cb4068f178c359c500e7db092e3
6
+ metadata.gz: 719ccd46f6e2e1ed7b408921dc87c2170cf007de1a86195d572a98fbe504ac4ebd176210fbfed31d0d098893a80bac92f6f7fbe7523c419e395967e6e7017bef
7
+ data.tar.gz: bbc3fc1df1e5a72938d406d38854fbc75d9faf8f30794626a580e790599fa5f95801dc6e7a3f8f85198355002d085f2936639c4e7fe14fa2c828b90bb536cc9c
data/.rubocop.yml CHANGED
@@ -1,5 +1,8 @@
1
1
  require: rubocop-rspec
2
2
 
3
+ inherit_from:
4
+ - .rubocop_todo.yml
5
+
3
6
  AllCops:
4
7
  Exclude:
5
8
  - bin/*
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
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '2.1.2'.freeze
3
+ VERSION = '2.1.2.1'.freeze
4
4
  end
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-07-19 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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: '0'
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.5.1
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: