poms 2.2.0 → 2.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: d81f89d00205f5c4f952366d4c11de426b71fa6c
4
- data.tar.gz: 5c4e1d1f5dd4f51f5020b67e2004b815e41dcc57
3
+ metadata.gz: 44472a89a690f6181bd0705849dfd50e3f3de6fa
4
+ data.tar.gz: 6e6fa3ccc4349d7e8e41cf9b84f487424aadb35a
5
5
  SHA512:
6
- metadata.gz: dac6d2dec0643d289b446dc354bf603fb20332753d238310ccd722d1ce42865f0a2208162d5961d67562b7fc79e252fdde8746bbeca92bb5fcddb552128e47f9
7
- data.tar.gz: 14b9288eed88d253cc9361b3638784154c6ac8d33550ca949f7b602ff3ece90800578e4d142fe11729ed27b95e63970a98a316ab207c29b4a36b9bfa814f2285
6
+ metadata.gz: 5c0f996b98d940391e922906c92fbb87b8b580cce05af18c2a882784847790e14ac7456038b40dea1cb435f33b5ad125ea885489588ddafed35e6a272b1587e6
7
+ data.tar.gz: e2d26cc111a8e896b97a09171953964fdf670d8b7b6363073eb37e2a55a7e0e828887eb159797e9aa193a00ce80d3a7cdca7c78e555d4234a47b0d97ca3844ec
@@ -1,5 +1,9 @@
1
1
  # Poms Release notes
2
2
 
3
+ ## 2.2.1
4
+
5
+ * Add `Poms::Fields.broadcasts` which returns the associated broadcasters in an Array
6
+
3
7
  ## 2.2.0
4
8
 
5
9
  * Remove `Poms::Fields#rev` as it wasn't provided by the Poms data anyway.
@@ -18,6 +18,12 @@ module Poms
18
18
  value_of_type(item, 'descriptions', type)
19
19
  end
20
20
 
21
+ def broadcasters(item)
22
+ Array(item['broadcasters']).map do |key_value_pair|
23
+ key_value_pair['value']
24
+ end
25
+ end
26
+
21
27
  # Returns the images from the hash
22
28
  def images(item)
23
29
  item['images'].try(:sort_by) do |i|
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '2.2.0'.freeze
3
+ VERSION = '2.2.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.2.0
4
+ version: 2.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: 2017-03-07 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport