alphasights-integrity 0.1.9.7 → 0.1.9.8

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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "integrity"
3
- s.version = "0.1.9.7"
3
+ s.version = "0.1.9.8"
4
4
  s.date = "2009-04-06"
5
5
 
6
6
  s.description = "Your Friendly Continuous Integration server. Easy, fun and painless!"
@@ -59,10 +59,10 @@ module Integrity
59
59
  end
60
60
 
61
61
  def committed_at=(time_with_timezone)
62
- unless time_with_timezone.respond_to?(:utc)
62
+ unless time_with_timezone.respond_to?(:getlocal)
63
63
  time_with_timezone = Time.parse(time_with_timezone)
64
64
  end
65
- attribute_set(:committed_at, time_with_timezone.utc)
65
+ attribute_set(:committed_at, time_with_timezone.getlocal)
66
66
  end
67
67
  end
68
68
  end
@@ -46,18 +46,14 @@ class CommitTest < Test::Unit::TestCase
46
46
 
47
47
  Commit.gen(:message => nil).message.should =~ /not loaded/
48
48
  end
49
-
50
- it "has a commit date" do
51
- commit = Commit.gen(:committed_at => Time.utc(2008, 10, 12, 14, 18, 20))
52
- commit.committed_at.to_s.should == "2008-10-12T14:18:20+00:00"
53
- end
54
49
 
55
- it "normalizes the commit date time to UTC " do
56
- time = Time.parse('Thu Apr 16 08:52:25 BST 2009')
50
+ it "normalizes the commit date time to the local timezone" do
51
+ ENV['TZ'] = 'US/Eastern' # -04:00
52
+ time = Time.parse("2009-04-16T02:24:51-07:00")
57
53
  commit = Commit.gen(:committed_at => time)
58
- commit.committed_at.to_s.should == "2009-04-16T07:52:25+00:00"
54
+ commit.committed_at.to_s.should == "2009-04-16T05:24:51-04:00"
59
55
  end
60
-
56
+
61
57
  it "has a human readable status" do
62
58
  commit = Commit.gen(:successful, :identifier => "658ba96cb0235e82ee720510c049883955200fa9")
63
59
  commit.human_readable_status.should be("Built 658ba96 successfully")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alphasights-integrity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9.7
4
+ version: 0.1.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Nicol\xC3\xA1s Sanguinetti"