poms 2.5.0 → 2.5.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
  SHA256:
3
- metadata.gz: ae8bf4d07931fc76b77e8e62e9d5e124bc10bfe27292538fed442935f300378b
4
- data.tar.gz: 07dd0c89be85652e3cab5da68f1f6c3c24a38803051aed10c806c232a1c1f51a
3
+ metadata.gz: 9703e39549b604585b1a9089b86b543426024350e7a77b243fc135ff262955a6
4
+ data.tar.gz: 0706bfb103c8f75864bef989a1982005dc302f048fd833bd5d269dc8a6dae7db
5
5
  SHA512:
6
- metadata.gz: 549605f0d46ab6c53725fa0713c88fbaaadf5d49773483c8790d8b97b8f2184d79aad340b0215c630de4292be7334718345745a1fc4cbe6e10d8d868bf6ea2b6
7
- data.tar.gz: 7aaca30e03230faf9f8558779665ac1f243063da8ca86e44ca9242ad728c395f88f34f08d079a6e07295f7a3e481416ae9d2dfa788375813e00531ff79387291
6
+ metadata.gz: 7b25d5c5bc019d04f224e47e09354baa13c8f82a70f59f4de67f195d542448d5e5ff98215b181ed0edb2198b75e064392b89b61952dea65cf276e2f813030ed9
7
+ data.tar.gz: bfbe8ce2fb202dc209a9037d2fefecca1627cd3ab91bca847ba7e4120a4b5bd331a456f98e0bddd4bda1371783559906ae6a55c99eacf197698e8e666995a447
@@ -1,8 +1,14 @@
1
1
  # Poms Release notes
2
2
 
3
+ ## 2.5.1
4
+
5
+ * Actually filter out publications with `owner` `NEBO`.
6
+
3
7
  ## 2.5.0
4
8
 
5
- * Filter out publications with `owner` `NEBO`.
9
+ * ~Filter out publications with `owner` `NEBO`.~
10
+
11
+ Due to an error this version does not include the mentioned change.
6
12
 
7
13
  ## 2.4.0
8
14
 
@@ -33,11 +33,13 @@ module Poms
33
33
  end
34
34
 
35
35
  # Returns the first publication from an items location array which has
36
- # INTERNETVOD and is PUBLISHED
36
+ # INTERNETVOD and is PUBLISHED and does not have owner NEBO.
37
37
  def publication(poms_item)
38
- return if poms_item['locations'].blank?
39
- poms_item['locations'].find do |item|
40
- item['platform'] == 'INTERNETVOD' && item['workflow'] == 'PUBLISHED'
38
+ return if poms_item.fetch('locations', nil).blank?
39
+ poms_item.fetch('locations', []).find do |item|
40
+ item.fetch('platform', '') == 'INTERNETVOD' &&
41
+ item.fetch('workflow', '') == 'PUBLISHED' &&
42
+ item.fetch('owner', '') != 'NEBO'
41
43
  end
42
44
  end
43
45
 
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '2.5.0'.freeze
3
+ VERSION = '2.5.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.5.0
4
+ version: 2.5.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: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport