poms 1.2.0 → 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: 337858a5378c1d8cf12d32f7a7aace48dfdb8a55
4
- data.tar.gz: 4cf06d5cc06042ac82cbcf7a2d5592ec30ac6e11
3
+ metadata.gz: ee5228215b705f8652f6aaeb37488bf606504850
4
+ data.tar.gz: e558535dd19b09a6bf2bf023d058264dae93718d
5
5
  SHA512:
6
- metadata.gz: 7dd2176dd28101c6394dd1e9e7634f72174d3b82bb247fea4b9a5e4f8e985c2ab6f7a618fe87331ea18ea8e20f023b64a67250faf31af5f2a70af36af2db0703
7
- data.tar.gz: 2ad6b6c3717536b271582ba62d4e02be32c04e004ab524e02a675abccd26f40d60d3a45785fc60fe2fe5f19d19062a45b4d03545fbf67f4a7500db4308cbe7f0
6
+ metadata.gz: 3f0a38243da2592fb5ce8f1508c3c94c5c28b102f842723a8805ec798c70034767635f1e6086dfb7cb0d4859b48bce23dee6f6193a996d2d0787b01e87a25838
7
+ data.tar.gz: bc661c4464bbc297e37b2f93187b3593887729e2ebeb97199b38f438fcbf272545d64cd58adcd16e2e56f1ee2cd90e12de82c7f8f012299ac03e2b8a8d069dc8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Poms Release notes
2
2
 
3
+ ## 1.2.1
4
+
5
+ * [#25](https://github.com/brightin/poms/pull/25) Fix issue with `Timestamp.convert`
6
+
3
7
  ## 1.2.0
4
8
 
5
9
  * [#24](https://github.com/brightin/poms/pull/24) Add functions to access the internals of a Poms broadcast hash.
@@ -4,6 +4,7 @@ module Poms
4
4
  module_function
5
5
 
6
6
  def convert(poms_timestamp)
7
+ return unless poms_timestamp
7
8
  Time.at(poms_timestamp / 1000).to_datetime
8
9
  end
9
10
  end
data/lib/poms/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # The version
2
2
  module Poms
3
- VERSION = '1.2.0'
3
+ VERSION = '1.2.1'
4
4
  end
@@ -42,5 +42,13 @@ naar hun loods, maar is dat wel een goed idee?")
42
42
  expect(described_class.available_until(poms_data))
43
43
  .to eq('Sat, 27 Jun 2015 07:12:48 +0200')
44
44
  end
45
+
46
+ it 'returns nil if the INTERNETVOD has no publishStop' do
47
+ expect(
48
+ described_class.available_until(
49
+ 'predictions' => [
50
+ { 'state' => 'REALIZED', 'platform' => 'INTERNETVOD' }]))
51
+ .to be_nil
52
+ end
45
53
  end
46
54
  end
@@ -5,4 +5,9 @@ describe Poms::Timestamp do
5
5
  expect(Poms::Timestamp.convert(1_453_217_700_000))
6
6
  .to eq(Time.parse '2016-01-19 16:35:00 +0100')
7
7
  end
8
+
9
+ it 'returns nil if the argument is falsey' do
10
+ expect(Poms::Timestamp.convert(nil))
11
+ .to be_nil
12
+ end
8
13
  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: 1.2.0
4
+ version: 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-03-22 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler