pdd 0.13 → 0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -111,7 +111,7 @@ module PDD
111
111
  elsif line =~ /^author-time /
112
112
  [
113
113
  :time,
114
- Time.at(line.sub(/^author-time ([0-9]+)$/, '\1').to_i).iso8601
114
+ Time.at(line.sub(/^author-time ([0-9]+)$/, '\1').to_i).utc.iso8601
115
115
  ]
116
116
  end
117
117
  end.compact
@@ -26,5 +26,5 @@
26
26
  # Copyright:: Copyright (c) 2014 Yegor Bugayenko
27
27
  # License:: MIT
28
28
  module PDD
29
- VERSION = '0.13'
29
+ VERSION = '0.14'
30
30
  end
@@ -90,7 +90,7 @@ class TestSources < Minitest::Test
90
90
  assert_equal 'this is the puzzle', puzzle.props[:body]
91
91
  assert_equal 'test', puzzle.props[:author]
92
92
  assert_equal 'test@teamed.io', puzzle.props[:email]
93
- assert !puzzle.props[:time].nil?
93
+ assert_match(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z/, puzzle.props[:time])
94
94
  end
95
95
  end
96
96
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdd
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.13'
4
+ version: '0.14'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-12 00:00:00.000000000 Z
12
+ date: 2015-01-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri