poms 2.3.0 → 2.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: 85292060b0c5dea4b9f7398aeb16a9d0f6df5190
4
- data.tar.gz: ee21d0dd068514a0ee38d93a2719f9969fb48a28
3
+ metadata.gz: 645a283cdf22cf6bf5ee6d01140c7e3d0981f277
4
+ data.tar.gz: 30c1d1656d2c7d98605f34a05e176e412f2af559
5
5
  SHA512:
6
- metadata.gz: 7b7b665ceb080c2f88785c76da9c833232180f2e25f789234f8d37928e636cdee8763229a6ea76fc1d86d10e1edf5407ef6c1da30799d053b5c96bc6a942b175
7
- data.tar.gz: 792cf6b0628b82dbced00ef5b6990219d99fb83a9b45ee15274ae4bc8d24dd410d29fc95cdeec17e0d31ce0c6c2b4963da967280f8d69cbaca747a74fc4e13e8
6
+ metadata.gz: 4b2bd125936c59c1840e215ea9c410e1cd355b0fdbdbc23252eaee2726368853ec44b548d24d0a2ff3dee45e6e3efe7b277e6eced5d1495b46a7a98378d2b763
7
+ data.tar.gz: b4fad474ea904415dedf6a11708a1ea6fb0ede925f6407b396e8bed4058e0c736697faedc5e8f3ea6b5bc8c217d9516eb886d1a1aad36c519b781b8949d909e9
@@ -0,0 +1,15 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.3.4-node-browsers
6
+ environment:
7
+ POMS_KEY: key
8
+ POMS_ORIGIN: origin
9
+ POMS_SECRET: secret
10
+ TZ: "/usr/share/zoneinfo/Europe/Amsterdam"
11
+ steps:
12
+ - checkout
13
+ - run: bundle install
14
+ - run: bundle exec rubocop
15
+ - run: bundle exec rspec
@@ -1,5 +1,9 @@
1
1
  # Poms Release notes
2
2
 
3
+ ## 2.3.1
4
+
5
+ * Add `Poms::Fields.descendants_of` which returns all descendantOf's of specific type.
6
+
3
7
  ## 2.2.1
4
8
 
5
9
  * Add `Poms::Fields.broadcasts` which returns the associated broadcasters in an Array
@@ -18,6 +18,13 @@ module Poms
18
18
  value_of_type(item, 'descriptions', type)
19
19
  end
20
20
 
21
+ # Returns all the descendantOfs of the type given.
22
+ # @param item The Poms Hash
23
+ # @param type The type of descendantOfs we want
24
+ def descendants_of(item, type)
25
+ item['descendantOf'].select { |descendant| descendant['type'] == type }
26
+ end
27
+
21
28
  def broadcasters(item)
22
29
  Array(item['broadcasters']).map do |key_value_pair|
23
30
  key_value_pair['value']
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '2.3.0'.freeze
3
+ VERSION = '2.3.1'.freeze
4
4
  end
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.3.0
4
+ version: 2.3.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: 2017-11-22 00:00:00.000000000 Z
11
+ date: 2018-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -199,6 +199,7 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
+ - ".circleci/config.yml"
202
203
  - ".gitignore"
203
204
  - ".rubocop.yml"
204
205
  - ".rubocop_todo.yml"
@@ -210,7 +211,6 @@ files:
210
211
  - Rakefile
211
212
  - bin/rspec
212
213
  - bin/rubocop
213
- - circle.yml
214
214
  - examples/fetch.rb
215
215
  - examples/search.rb
216
216
  - lib/poms.rb
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  version: '0'
252
252
  requirements: []
253
253
  rubyforge_project:
254
- rubygems_version: 2.6.13
254
+ rubygems_version: 2.5.2
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Interface to POMS CouchDB API
data/circle.yml DELETED
@@ -1,13 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.4
4
- timezone:
5
- Europe/Amsterdam
6
- environment:
7
- POMS_KEY: key
8
- POMS_ORIGIN: origin
9
- POMS_SECRET: secret
10
- test:
11
- override:
12
- - bundle exec rubocop
13
- - bundle exec rspec