poms 2.3.0 → 2.3.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/.circleci/config.yml +15 -0
- data/CHANGELOG.md +4 -0
- data/lib/poms/fields.rb +7 -0
- data/lib/poms/version.rb +1 -1
- metadata +4 -4
- data/circle.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 645a283cdf22cf6bf5ee6d01140c7e3d0981f277
|
4
|
+
data.tar.gz: 30c1d1656d2c7d98605f34a05e176e412f2af559
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/CHANGELOG.md
CHANGED
data/lib/poms/fields.rb
CHANGED
@@ -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']
|
data/lib/poms/version.rb
CHANGED
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.
|
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:
|
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.
|
254
|
+
rubygems_version: 2.5.2
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: Interface to POMS CouchDB API
|