date_utc_parser 1.1.1 → 1.1.2

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: d0350bafd0bb38b88b72f95354c2ac8650747232
4
- data.tar.gz: 98a2e9176063cd5e270ad8f67c19f7c0f1d08475
3
+ metadata.gz: 0e17760e7c7fcade2157f9ae40a17026f7b6d34f
4
+ data.tar.gz: bb320cf512d584eababe27a746092c2bfc288cbd
5
5
  SHA512:
6
- metadata.gz: 27be556d61f38944318bf0afb5c9e84dd600be6764d7677be20c1bfdaa3ac534277f2a1389cd7ca71ea1a3cd6187fb13dd28e312d73d82d5ce9460f45c42b0f6
7
- data.tar.gz: b64596bf5c0960269a9076784c7c8ac9db2257cef5a58ee34820e3616ea845fbb2836c7cd81274e083128ba03067e569298880e76274957fc9326b8d105d3c99
6
+ metadata.gz: 29a4d751faeb10c9b720ed1ebdb090b6feedbf6df9cd64c1721a03e5b0fa89ea691b0d02028b128e0de33266441d7d02354fab9df5643531f3ea57611e7e8e7a
7
+ data.tar.gz: c313d9bc816202f0d0e061ac303d9007960ad0477c22044551326745eed853f5139718153098bedd5b0e8a5cbbaedd205859771b0b970e881acbe0ca60c6f8e4
@@ -1,3 +1,3 @@
1
1
  module DateUtcParser
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  require 'ruby-debug'
2
2
  require_relative '../../lib/date_utc_parser'
3
3
  require 'time'
4
- require 'active_support/core_ext/date/calculations'
5
4
 
6
5
  describe DateUtcParser, "Parsing:" do
7
6
  subject { described_class.parse(date) }
@@ -58,14 +57,9 @@ describe DateUtcParser, "Parsing:" do
58
57
  end
59
58
 
60
59
  context 'and is a utc time with zone object' do
61
- let(:date) { Time.now }
62
-
63
- before do
64
- Time.zone = 'UTC'
65
- end
60
+ let(:date) { Time.local(2000, "jan", 1, 20, 15, 1) }
66
61
 
67
62
  it 'converts it to a standard utc time object' do
68
- subject.should_not be_a(ActiveSupport::TimeWithZone)
69
63
  subject.should be_utc
70
64
  end
71
65
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_utc_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Simpson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-29 00:00:00.000000000 Z
11
+ date: 2013-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: active_support
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '3.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: '3.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rspec
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -66,20 +52,6 @@ dependencies:
66
52
  - - ~>
67
53
  - !ruby/object:Gem::Version
68
54
  version: '1.2'
69
- - !ruby/object:Gem::Dependency
70
- name: tzinfo
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
55
  description: Takes an object and returns the equivalent UTC Time object
84
56
  email:
85
57
  - matt.simpson3@gmail.com
@@ -102,9 +74,9 @@ require_paths:
102
74
  - lib
103
75
  required_ruby_version: !ruby/object:Gem::Requirement
104
76
  requirements:
105
- - - ~>
77
+ - - '>='
106
78
  - !ruby/object:Gem::Version
107
- version: 1.9.2
79
+ version: '1.9'
108
80
  required_rubygems_version: !ruby/object:Gem::Requirement
109
81
  requirements:
110
82
  - - '>='