prova-vhm-raw2xml 0.1.3 → 0.1.4
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.
- data/VERSION +1 -1
- data/lib/prova-vhm-raw2xml.rb +17 -9
- data/prova-vhm-raw2xml.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/prova-vhm-raw2xml.rb
CHANGED
@@ -5,19 +5,27 @@ module Fleetio
|
|
5
5
|
module Raw2Xml
|
6
6
|
extend FFI::Library
|
7
7
|
|
8
|
+
# Loads the C shared library
|
8
9
|
ffi_lib File.expand_path(File.dirname(__FILE__) + '/libZVLParser/libZVLParser64.so')
|
9
10
|
#ffi_lib File.expand_path(File.dirname(__FILE__) + '/libZVLParser/libZVLParser32.so')
|
10
|
-
attach_function 'ZVLP_ConvertRawToXML', [:string, :bool, :string], :bool
|
11
|
-
#ffi_lib './libZVLParser64/libZVLParser64.so'
|
12
11
|
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
12
|
+
# Public: Converts a raw file from a Prova Systems VHM into an XML file.
|
13
|
+
#
|
14
|
+
# Signature
|
15
|
+
#
|
16
|
+
# Fleetio::ProvaVHM::Raw2Xml.convert(raw_file_path, metric, xml_file_path)
|
17
|
+
#
|
18
|
+
# raw_file_path - The String path of the raw file to convert.
|
19
|
+
# metric - Boolean flag should be true for metric units, false for imperial units.
|
20
|
+
# xml_file_path - The String path of the XML file output.
|
21
|
+
#
|
22
|
+
# Examples
|
23
|
+
#
|
24
|
+
# Fleetio::ProvaVHM::Raw2Xml.convert('test.raw', false, 'test.xml')
|
25
|
+
#
|
26
|
+
# Returns true if the operation was successful, false if not.
|
27
|
+
attach_function :convert, :ZVLP_ConvertRawToXML, [:string, :bool, :string], :bool
|
16
28
|
|
17
|
-
def self.hi
|
18
|
-
puts File.expand_path(File.dirname(__FILE__) + '/libZVLParser/libZVLParser64.so')
|
19
|
-
puts "Hola!"
|
20
|
-
end
|
21
29
|
end
|
22
30
|
end
|
23
31
|
end
|
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.1.
|
8
|
+
s.version = "0.1.4"
|
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-09"
|
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 = [
|
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.1.
|
5
|
+
version: 0.1.4
|
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-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ffi
|
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
requirements:
|
105
105
|
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
hash: -
|
107
|
+
hash: -2627916538174514782
|
108
108
|
segments:
|
109
109
|
- 0
|
110
110
|
version: "0"
|