unix_epoch 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,6 +9,7 @@ begin
9
9
  gemspec.email = "chetan@pixelcop.net"
10
10
  gemspec.homepage = "http://github.com/chetan/unix_epoch"
11
11
  gemspec.authors = ["Chetan Sarva"]
12
+ gemspec.add_dependency('tzinfo', '>= 0.3.24')
12
13
  end
13
14
  Jeweler::GemcutterTasks.new
14
15
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -2,7 +2,13 @@
2
2
  require 'rubygems'
3
3
  require 'test/unit'
4
4
  require 'unix_epoch'
5
- require 'timezone_local'
5
+
6
+ begin
7
+ require 'timezone_local'
8
+ rescue => ex
9
+ puts "error: timezone_local gem is required for running tests"
10
+ exit
11
+ end
6
12
 
7
13
  class UnixEpoch_Test < Test::Unit::TestCase
8
14
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{unix_epoch}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Chetan Sarva"]
@@ -36,9 +36,12 @@ Gem::Specification.new do |s|
36
36
  s.specification_version = 3
37
37
 
38
38
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
39
+ s.add_runtime_dependency(%q<tzinfo>, [">= 0.3.24"])
39
40
  else
41
+ s.add_dependency(%q<tzinfo>, [">= 0.3.24"])
40
42
  end
41
43
  else
44
+ s.add_dependency(%q<tzinfo>, [">= 0.3.24"])
42
45
  end
43
46
  end
44
47
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chetan Sarva
@@ -16,8 +16,21 @@ cert_chain: []
16
16
 
17
17
  date: 2011-03-28 00:00:00 -04:00
18
18
  default_executable:
19
- dependencies: []
20
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: tzinfo
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 3
30
+ - 24
31
+ version: 0.3.24
32
+ type: :runtime
33
+ version_requirements: *id001
21
34
  description: Adds from_unix_ts and to_unix_ts methods to the DateTime class
22
35
  email: chetan@pixelcop.net
23
36
  executables: []