date_utc_parser 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d5f7c65f8cbf1f2644dc89bdb2731fcc2601bfa
4
+ data.tar.gz: cbf3417c40b2d196baf7a04f6d9d1ab551c098aa
5
+ SHA512:
6
+ metadata.gz: cbd8e6d7b0f05d690936211124ebf606a01bc96ac8100d08e94d07c89e90e9b967c822fb55218476a37a4f77aab74c90d052ebd826bc38b252d0b823af5d01db
7
+ data.tar.gz: 991ee85d92d5f9394b4b7d5a00f454bb5fcb51f211fb61c19cc68a551d2b051429af3ac90d7a402d8cbcb996efaec7258d95b83a0d4ff7b749da91aa53b29719
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) 2012 Matt Simpson
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
@@ -1,3 +1,3 @@
1
1
  module DateUtcParser
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1,8 +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/numeric/time'
5
- require 'active_support/core_ext/time/zones'
6
4
  require 'active_support/core_ext/date/calculations'
7
5
 
8
6
  describe DateUtcParser, "Parsing:" do
@@ -60,7 +58,7 @@ describe DateUtcParser, "Parsing:" do
60
58
  end
61
59
 
62
60
  context 'and is a utc time with zone object' do
63
- let(:date) { 2.weeks.ago }
61
+ let(:date) { Time.now }
64
62
 
65
63
  before do
66
64
  Time.zone = 'UTC'
metadata CHANGED
@@ -1,20 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_utc_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
5
- prerelease:
4
+ version: 1.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Matt Simpson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-20 00:00:00.000000000 Z
11
+ date: 2013-03-29 00:00:00.000000000 Z
13
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'
14
27
  - !ruby/object:Gem::Dependency
15
28
  name: rspec
16
29
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
30
  requirements:
19
31
  - - '='
20
32
  - !ruby/object:Gem::Version
@@ -22,11 +34,52 @@ dependencies:
22
34
  type: :development
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
38
  - - '='
28
39
  - !ruby/object:Gem::Version
29
40
  version: 2.10.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: debugger
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ 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'
30
83
  description: Takes an object and returns the equivalent UTC Time object
31
84
  email:
32
85
  - matt.simpson3@gmail.com
@@ -34,38 +87,34 @@ executables: []
34
87
  extensions: []
35
88
  extra_rdoc_files: []
36
89
  files:
37
- - .gitignore
38
- - .rspec
39
- - Gemfile
40
- - README.md
41
- - Rakefile
42
- - date_utc_parser.gemspec
43
- - lib/date_utc_parser.rb
44
90
  - lib/date_utc_parser/version.rb
91
+ - lib/date_utc_parser.rb
92
+ - LICENSE
93
+ - README.md
45
94
  - spec/lib/date_utc_parser_spec.rb
46
- homepage: http://github.com/ionicmobile/date_utc_parser
47
- licenses: []
95
+ homepage: http://github.com/coffeencoke/date_utc_parser
96
+ licenses:
97
+ - MIT
98
+ metadata: {}
48
99
  post_install_message:
49
100
  rdoc_options: []
50
101
  require_paths:
51
102
  - lib
52
103
  required_ruby_version: !ruby/object:Gem::Requirement
53
- none: false
54
104
  requirements:
55
- - - ! '>='
105
+ - - ~>
56
106
  - !ruby/object:Gem::Version
57
- version: 1.9.3
107
+ version: 1.9.2
58
108
  required_rubygems_version: !ruby/object:Gem::Requirement
59
- none: false
60
109
  requirements:
61
- - - ! '>='
110
+ - - '>='
62
111
  - !ruby/object:Gem::Version
63
112
  version: '0'
64
113
  requirements: []
65
114
  rubyforge_project:
66
- rubygems_version: 1.8.25
115
+ rubygems_version: 2.0.3
67
116
  signing_key:
68
- specification_version: 3
117
+ specification_version: 4
69
118
  summary: Make working with UTC Time more fun
70
- test_files: []
71
- has_rdoc:
119
+ test_files:
120
+ - spec/lib/date_utc_parser_spec.rb
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --format progress
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- # Specify your gem's dependencies in date_utc_parser.gemspec
4
- gemspec
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- require 'bundler/gem_tasks'
2
-
3
- begin
4
- require 'rspec/core/rake_task'
5
-
6
- desc 'Default: run specs.'
7
- task :default => :spec
8
-
9
- desc "Run specs"
10
- RSpec::Core::RakeTask.new
11
- rescue LoadError
12
- end
@@ -1,19 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "date_utc_parser/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "date_utc_parser"
7
- s.version = DateUtcParser::VERSION
8
- s.authors = ["Matt Simpson"]
9
- s.email = ["matt.simpson3@gmail.com"]
10
- s.homepage = "http://github.com/ionicmobile/date_utc_parser"
11
- s.summary = %q{Make working with UTC Time more fun}
12
- s.description = %q{Takes an object and returns the equivalent UTC Time object}
13
- s.files = `git ls-files`.split("\n")
14
- s.test_files = `git ls-files -- {spec}/*`.split("\n")
15
- s.require_paths = ["lib"]
16
- s.required_ruby_version = ">= 1.9.3"
17
-
18
- s.add_development_dependency "rspec", "2.10.0"
19
- end