eeml 0.0.11 → 0.0.12
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/eeml.gemspec +2 -2
- data/lib/eeml/constants.rb +1 -1
- data/lib/eeml/environment_builder.rb +2 -2
- data/lib/eeml/json_output.rb +1 -1
- data/lib/eeml.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
data/eeml.gemspec
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{eeml}
|
|
5
|
-
s.version = "0.0.
|
|
5
|
+
s.version = "0.0.12"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Neill Bogie, Sam Mulube"]
|
|
9
9
|
s.cert_chain = ["/home/sam/.gem/gem-public_cert.pem"]
|
|
10
|
-
s.date = %q{2009-
|
|
10
|
+
s.date = %q{2009-12-15}
|
|
11
11
|
s.description = %q{Simple little library for programmatically manipulating EEML documents, in particular this library is designed to work with the Pachube web service.}
|
|
12
12
|
s.email = %q{sam.mulube@gmail.com}
|
|
13
13
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/blank.rb", "lib/eeml.rb", "lib/eeml/constants.rb", "lib/eeml/csv_parser.rb", "lib/eeml/environment.rb", "lib/eeml/environment_builder.rb", "lib/eeml/exceptions.rb", "lib/eeml/json_environment_parser_v005.rb", "lib/eeml/json_environment_parser_v006.rb", "lib/eeml/json_output.rb", "lib/eeml/libxml_eeml_output_v005.rb", "lib/eeml/libxml_eeml_parser_v005.rb", "lib/eeml/output_registry.rb"]
|
data/lib/eeml/constants.rb
CHANGED
|
@@ -17,9 +17,9 @@ module Eeml
|
|
|
17
17
|
|
|
18
18
|
def self.build_from_json(json_str)
|
|
19
19
|
json = JSON.parse(json_str)
|
|
20
|
-
if json["version"] == Constants::EEML5_VERSION
|
|
20
|
+
if json["version"].to_i == Constants::EEML5_VERSION.to_i
|
|
21
21
|
parser = JsonEnvironmentParserV005.new
|
|
22
|
-
elsif json["version"] == Constants::EEML6_VERSION
|
|
22
|
+
elsif json["version"].to_f == Constants::EEML6_VERSION.to_f
|
|
23
23
|
parser = JsonEnvironmentParserV006.new
|
|
24
24
|
else
|
|
25
25
|
raise "Invalid version specification. Permitted versions are #{Constants::EEML5_VERSION} and #{Constants::EEML6_VERSION}"
|
data/lib/eeml/json_output.rb
CHANGED
|
@@ -16,7 +16,7 @@ module Eeml
|
|
|
16
16
|
:website => environment.website,
|
|
17
17
|
:email => environment.email,
|
|
18
18
|
:icon => environment.icon,
|
|
19
|
-
:version => EEML5_VERSION}
|
|
19
|
+
:version => EEML5_VERSION }
|
|
20
20
|
|
|
21
21
|
environment_hash[:updated] = environment.updated.utc.iso8601 unless environment.updated.nil? #TODO: was retrieved_at
|
|
22
22
|
|
data/lib/eeml.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eeml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Neill Bogie, Sam Mulube
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
yyRwZdVyDdsafg==
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
32
|
|
|
33
|
-
date: 2009-
|
|
33
|
+
date: 2009-12-15 00:00:00 +00:00
|
|
34
34
|
default_executable:
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
|
Binary file
|