prova-vhm-raw2xml 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/prova-vhm-raw2xml.rb +1 -1
- data/prova-vhm-raw2xml.gemspec +2 -2
- data/spec/prova-vhm-raw2xml_spec.rb +7 -7
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
data/lib/prova-vhm-raw2xml.rb
CHANGED
data/prova-vhm-raw2xml.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "prova-vhm-raw2xml"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "1.0.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tony Summerville"]
|
12
|
-
s.date = "2012-03-
|
12
|
+
s.date = "2012-03-28"
|
13
13
|
s.description = "Converts raw data from a Prova Systems Vehicle Health Monitor (VHM) to plain old XML."
|
14
14
|
s.email = "tsummerville@rarestep.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -1,26 +1,26 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ProvaVhm::Raw2Xml do
|
4
4
|
|
5
5
|
it "responds to helper methods" do
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
ProvaVhm::Raw2Xml.should respond_to :running_on_windows?
|
7
|
+
ProvaVhm::Raw2Xml.should respond_to :running_on_a_mac?
|
8
|
+
ProvaVhm::Raw2Xml.should respond_to :shared_library_path
|
9
9
|
end
|
10
10
|
|
11
11
|
it "responds to :convert" do
|
12
|
-
|
12
|
+
ProvaVhm::Raw2Xml.should respond_to :convert
|
13
13
|
end
|
14
14
|
|
15
15
|
context do
|
16
16
|
|
17
17
|
it "converts a raw file with imperial units" do
|
18
|
-
|
18
|
+
ProvaVhm::Raw2Xml.convert(raw_file, false, xml_file).should be true
|
19
19
|
compare_xml(File.read(xml_file), expected_imperial_xml).should be true
|
20
20
|
end
|
21
21
|
|
22
22
|
it "converts a raw file with metric units" do
|
23
|
-
|
23
|
+
ProvaVhm::Raw2Xml.convert(raw_file, true, xml_file).should be true
|
24
24
|
compare_xml(File.read(xml_file), expected_metric_xml).should be true
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: prova-vhm-raw2xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 1.0.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Tony Summerville
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-03-
|
13
|
+
date: 2012-03-28 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
110
110
|
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
hash:
|
112
|
+
hash: 3268402658066455260
|
113
113
|
segments:
|
114
114
|
- 0
|
115
115
|
version: "0"
|