egauge 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 1.0.4 / 2012-11-20
2
+
3
+ * EGauge#parse_time should return timestamps in UTC
4
+
1
5
  == 1.0.3 / 2012-11-15
2
6
 
3
7
  * Remove step from #each_row's yielded params in Data and Register
@@ -42,8 +42,8 @@ To use:
42
42
  >> reg.type_code
43
43
  => 'P'
44
44
 
45
- # Get the data points from a given register, with timestamps and seconds the value represents
46
- >> reg.each_row do |ts, val, seconds|
45
+ # Get the data points from a given register, with timestamps
46
+ >> reg.each_row do |ts, val|
47
47
  >> puts "#{ts}: #{val}"
48
48
  >> end
49
49
  2012-10-09 13:50:00 -0400: 51140761685
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
@@ -15,7 +15,7 @@ module EGauge
15
15
  # Do ruby stuff to convert to 4 byte unsigned int
16
16
  as_int = str.hex
17
17
  # And return as a time...
18
- Time.at(as_int)
18
+ Time.at(as_int).utc
19
19
  end
20
20
 
21
21
  end
@@ -2,7 +2,7 @@
2
2
  describe EGauge do
3
3
 
4
4
  it 'should parse times correctly' do
5
- EGauge.parse_time('0x4c9197e4').should == Time.at(1284610020)
5
+ EGauge.parse_time('0x4c9197e4').should == Time.at(1284610020).utc
6
6
  end
7
7
 
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egauge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec