eeml 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Rakefile +29 -21
- data/lib/eeml/environment.rb +10 -0
- data/lib/eeml/json_environment_parser_v005.rb +2 -1
- data/lib/eeml/json_environment_parser_v006.rb +2 -1
- data/lib/eeml/libxml_eeml_parser_v005.rb +1 -0
- data/lib/eeml.rb +1 -1
- data/test/data/.gitignore +1 -0
- data/test/data/doc_1_private.json +31 -0
- data/test/data/doc_1_private.xml +33 -0
- data/test/data/doc_1_v6_private.json +31 -0
- data/test/test_environment.rb +17 -0
- metadata +42 -93
- data/eeml.gemspec +0 -45
- data.tar.gz.sig +0 -3
- metadata.gz.sig +0 -0
data/Rakefile
CHANGED
@@ -1,25 +1,33 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'jeweler'
|
2
3
|
|
3
|
-
$:.unshift(File.join(File.dirname(__FILE__), "lib"))
|
4
|
+
$:.unshift(File.join(File.dirname(__FILE__), "lib"))
|
4
5
|
|
5
|
-
require 'eeml'
|
6
|
+
require 'eeml'
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"libxml-ruby >=
|
15
|
-
"json >=
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
8
|
+
Jeweler::Tasks.new do |gem|
|
9
|
+
gem.name = "eeml"
|
10
|
+
gem.summary = "Simple little library for programmatically manipulating EEML documents."
|
11
|
+
gem.description = "Simple little library for programmatically manipulating EEML documents, in particular this library is designed to work with the Pachube web service."
|
12
|
+
gem.email = "sam.mulube@gmail.com"
|
13
|
+
gem.authors = ["Neill Bogie", "Sam Mulube"]
|
14
|
+
gem.version = Eeml::VERSION
|
15
|
+
gem.add_dependency("libxml-ruby", ">=1.1.3")
|
16
|
+
gem.add_dependency("json", ">=1.4.3")
|
17
|
+
gem.files.exclude("test/data/real_xmls/*")
|
18
|
+
end
|
19
|
+
rescue LoadError
|
20
|
+
puts "Jeweler not available. Install with: gem install jeweler"
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'rake/clean'
|
24
|
+
require 'rake/testtask'
|
25
|
+
|
26
|
+
CLEAN.include("pkg")
|
27
|
+
CLOBBER.include("doc")
|
28
|
+
|
29
|
+
Rake::TestTask.new do |t|
|
30
|
+
t.libs << "test"
|
31
|
+
t.test_files = FileList['test/test*.rb']
|
32
|
+
t.verbose = true
|
25
33
|
end
|
data/lib/eeml/environment.rb
CHANGED
@@ -100,6 +100,7 @@ module Eeml
|
|
100
100
|
attr_accessor :title, :description, :feed_url, :website, :email, :icon, :status
|
101
101
|
attr_accessor :location
|
102
102
|
attr_accessor :datastreams
|
103
|
+
attr_writer :private
|
103
104
|
|
104
105
|
# Create a new Environment object by passing parameters in a hash (just like creating an ActiveRecord object)
|
105
106
|
def initialize(options = {})
|
@@ -113,6 +114,7 @@ module Eeml
|
|
113
114
|
@website = options[:website]
|
114
115
|
@email = options[:email]
|
115
116
|
@icon = options[:icon]
|
117
|
+
@private = options[:private]
|
116
118
|
end
|
117
119
|
|
118
120
|
def add_datastream(datastream)
|
@@ -171,6 +173,14 @@ module Eeml
|
|
171
173
|
outputter = OutputRegistry.get_json_output_for
|
172
174
|
outputter.to_json(self)
|
173
175
|
end
|
176
|
+
|
177
|
+
def private
|
178
|
+
if @private
|
179
|
+
return true
|
180
|
+
else
|
181
|
+
return false
|
182
|
+
end
|
183
|
+
end
|
174
184
|
|
175
185
|
end
|
176
186
|
|
@@ -11,7 +11,8 @@ module Eeml
|
|
11
11
|
:email => env_hash["email"],
|
12
12
|
:icon => env_hash["icon"],
|
13
13
|
:status => env_hash["status"],
|
14
|
-
:identifier => env_hash["id"]
|
14
|
+
:identifier => env_hash["id"],
|
15
|
+
:private => env_hash["private"])
|
15
16
|
|
16
17
|
env.updated = Time.gm(*ParseDate.parsedate(env_hash['updated'])) unless env_hash['updated'].nil?
|
17
18
|
|
@@ -11,7 +11,8 @@ module Eeml
|
|
11
11
|
:email => env_hash["email"],
|
12
12
|
:icon => env_hash["icon"],
|
13
13
|
:status => env_hash["status"],
|
14
|
-
:identifier => env_hash["id"]
|
14
|
+
:identifier => env_hash["id"],
|
15
|
+
:private => env_hash["private"])
|
15
16
|
|
16
17
|
env.updated = Time.gm(*ParseDate.parsedate(env_hash['updated'])) unless env_hash['updated'].nil?
|
17
18
|
|
@@ -78,6 +78,7 @@ module Eeml
|
|
78
78
|
env.status = optional_content(env_node, 'x:status', 'status', "x:#{Constants::EEML5_HREF}")
|
79
79
|
env.email = optional_content(env_node, 'x:email', 'email', "x:#{Constants::EEML5_HREF}")
|
80
80
|
env.icon = optional_content(env_node, 'x:icon', 'icon', "x:#{Constants::EEML5_HREF}")
|
81
|
+
env.private = optional_content(env_node, 'x:private', 'private', "x:#{Constants::EEML5_HREF}")
|
81
82
|
|
82
83
|
#find_first_node_or_fail(env_node, 'x:location', 'location')
|
83
84
|
loc_node = env_node.find_first('x:location', "x:#{Constants::EEML5_HREF}")
|
data/lib/eeml.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
real_xmls
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{"datastreams":[
|
2
|
+
{"tags":["tagD0"],
|
3
|
+
"value":{"current_value":"0","min_value":"-9999.0","max_value":"1022.0"},
|
4
|
+
"unit":{"type":"basicSI","label":"Celsius","symbol":"C"},
|
5
|
+
"id":"0"},
|
6
|
+
{"value":{"current_value":"33","min_value":"0.0","max_value":"1023.0"},
|
7
|
+
"id":"1"},
|
8
|
+
{"tags":["tagD2a","tagD2b","tagD2c"],
|
9
|
+
"value":{"current_value":"42.1","min_value":"23.4","max_value":"1021.0"},
|
10
|
+
"id":"2"}
|
11
|
+
],
|
12
|
+
"description":"description here",
|
13
|
+
"updated":"2009-02-11T10:56:56Z",
|
14
|
+
"status":"frozen",
|
15
|
+
"website":"http:\/\/example.com\/studio\/",
|
16
|
+
"email":"someone@example.com",
|
17
|
+
"feed":"http:\/\/example.com\/api\/1247.xml",
|
18
|
+
"private":true,
|
19
|
+
"location":{
|
20
|
+
"lat":"50.1",
|
21
|
+
"lon":"48.7",
|
22
|
+
"ele":"1.34",
|
23
|
+
"name":"Up on the roof (somewhere)",
|
24
|
+
"domain":"physical",
|
25
|
+
"exposure":"outdoor",
|
26
|
+
"disposition":"mobile"
|
27
|
+
},
|
28
|
+
"icon":"http:\/\/example.com\/some\/icon.gif",
|
29
|
+
"id":"1247",
|
30
|
+
"title":"title here",
|
31
|
+
"version":"5"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<eeml xmlns="http://www.eeml.org/xsd/005" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="5" xsi:schemaLocation="http://www.eeml.org/xsd/005 http://www.eeml.org/xsd/005/005.xsd">
|
3
|
+
<environment updated="2009-02-11T10:56:56Z" id="1247" creator="http://example.com/creator/">
|
4
|
+
<title>title here</title>
|
5
|
+
<feed>http://example.com/api/1247.xml</feed>
|
6
|
+
<status>frozen</status>
|
7
|
+
<description>description here</description>
|
8
|
+
<icon>http://example.com/some/icon.gif</icon>
|
9
|
+
<website>http://example.com/studio/</website>
|
10
|
+
<email>someone@example.com</email>
|
11
|
+
<private>true</private>
|
12
|
+
<location domain="physical" exposure="outdoor" disposition="mobile">
|
13
|
+
<name>Up on the roof (somewhere)</name>
|
14
|
+
<lat>50.1</lat>
|
15
|
+
<lon>48.7</lon>
|
16
|
+
<ele>1.34</ele>
|
17
|
+
</location>
|
18
|
+
<data id="0">
|
19
|
+
<tag>tagD0</tag>
|
20
|
+
<value minValue="-9999.0" maxValue="1022.0">0</value>
|
21
|
+
<unit type="basicSI" symbol="C">Celsius</unit>
|
22
|
+
</data>
|
23
|
+
<data id="1">
|
24
|
+
<value minValue="0.0" maxValue="1023.0">33</value>
|
25
|
+
</data>
|
26
|
+
<data id="2">
|
27
|
+
<tag>tagD2a</tag>
|
28
|
+
<tag>tagD2b</tag>
|
29
|
+
<tag>tagD2c</tag>
|
30
|
+
<value minValue="23.4" maxValue="1021.0">42.1</value>
|
31
|
+
</data>
|
32
|
+
</environment>
|
33
|
+
</eeml>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{"datastreams":[
|
2
|
+
{"tags":["tagD0"],
|
3
|
+
"values":[{"value":"0","min_value":"-9999.0","max_value":"1022.0","recorded_at":"2009-02-11T10:56:56Z"}],
|
4
|
+
"unit":{"type":"basicSI","label":"Celsius","symbol":"C"},
|
5
|
+
"id":"0"},
|
6
|
+
{"values":[{"value":"33","min_value":"0.0","max_value":"1023.0","recorded_at":"2009-02-11T10:56:55Z"}],
|
7
|
+
"id":"1"},
|
8
|
+
{"tags":["tagD2a","tagD2b","tagD2c"],
|
9
|
+
"values":[{"value":"42.1","min_value":"23.4","max_value":"1021.0","recorded_at":"2009-02-11T10:55:10Z"}],
|
10
|
+
"id":"2"}
|
11
|
+
],
|
12
|
+
"description":"description here",
|
13
|
+
"updated":"2009-02-11T10:56:56Z",
|
14
|
+
"status":"frozen",
|
15
|
+
"website":"http:\/\/example.com\/studio\/",
|
16
|
+
"email":"someone@example.com",
|
17
|
+
"feed":"http:\/\/example.com\/api\/1247.xml",
|
18
|
+
"private":true,
|
19
|
+
"location":{
|
20
|
+
"lat":"50.1",
|
21
|
+
"lon":"48.7",
|
22
|
+
"ele":"1.34",
|
23
|
+
"name":"Up on the roof (somewhere)",
|
24
|
+
"domain":"physical",
|
25
|
+
"exposure":"outdoor",
|
26
|
+
"disposition":"mobile"
|
27
|
+
},
|
28
|
+
"icon":"http:\/\/example.com\/some\/icon.gif",
|
29
|
+
"id":"1247",
|
30
|
+
"title":"title here",
|
31
|
+
"version":"0.6"}
|
data/test/test_environment.rb
CHANGED
@@ -175,6 +175,11 @@ class TestEnvironment < Test::Unit::TestCase
|
|
175
175
|
assert_raise(MissingNamespace) {env = create_env_from_xml_file('no_namespace.xml')}
|
176
176
|
end
|
177
177
|
|
178
|
+
test "captures the `private` attribute if present" do
|
179
|
+
env = create_env_from_xml_file("doc_1_private.xml")
|
180
|
+
assert_equal true, env.private
|
181
|
+
end
|
182
|
+
|
178
183
|
test "ok parsing oddly tagged eeml file" do
|
179
184
|
env = create_env_from_xml_file('difficult_tag.xml')
|
180
185
|
assert_equal 2, env.datastreams.size
|
@@ -422,6 +427,18 @@ class TestEnvironment < Test::Unit::TestCase
|
|
422
427
|
end
|
423
428
|
end
|
424
429
|
|
430
|
+
test "captures `private` attribute when parsing old json" do
|
431
|
+
env = create_env_from_json_file("test/data/doc_1_private.json")
|
432
|
+
assert_not_nil env
|
433
|
+
assert_equal true, env.private
|
434
|
+
end
|
435
|
+
|
436
|
+
test "captures `private` attribute when parsing v6 json" do
|
437
|
+
env = create_env_from_json_file("test/data/doc_1_v6_private.json")
|
438
|
+
assert_not_nil env
|
439
|
+
assert_equal true, env.private
|
440
|
+
end
|
441
|
+
|
425
442
|
# --- -------------------------------------------------------
|
426
443
|
# --- csv input stuff -------------------------------------------------------
|
427
444
|
# --- -------------------------------------------------------
|
metadata
CHANGED
@@ -1,90 +1,51 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eeml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 14
|
9
|
+
version: 0.0.14
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
- Neill Bogie
|
12
|
+
- Neill Bogie
|
13
|
+
- Sam Mulube
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
- |
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDNjCCAh6gAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYDVQQDDApzYW0u
|
14
|
-
bXVsdWJlMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNj
|
15
|
-
b20wHhcNMDkwNDA5MDA0MTM0WhcNMTAwNDA5MDA0MTM0WjBBMRMwEQYDVQQDDApz
|
16
|
-
YW0ubXVsdWJlMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZ
|
17
|
-
FgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7qguBvno2p114
|
18
|
-
XMkUimGvPqtxGW81Sopxc5IoJ5c5ViZW89kS3FedJPI9pjv9YbocJdI+A17cvLuU
|
19
|
-
IbUar078HEjN9/AverLva5h5+f9KyfDZWMXPer8IrGeY06TShrLQ6LRWYnYZmeZT
|
20
|
-
0+d0Ya0REPbZjUyF2lQeFiItrGjIKUgcC8XnBHEwleMBf0T/hEybZ+2vPvVZ8/r4
|
21
|
-
pxTRFEjHE1g88OvB5QYMl9s8BRC1IXCkxn+uyeSVcdPKl645pXex+3Nb5GPPwui+
|
22
|
-
emhIFir+B+9ksGWCR4KbeJXhQPDAV7/kY6uZU6skvX28A/PuORuD3oeXPqmJTov4
|
23
|
-
6ot4ISgFAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
-
BBTVpDuRBcyQlJXavgQUTw5t2EEoRzANBgkqhkiG9w0BAQUFAAOCAQEAAZWZw4wJ
|
25
|
-
URCduxVR7QOfJtILhEFf6lH/tGcIvszxQCBU3kq9xN6MSoWOsgDoYzPqLlnmGSci
|
26
|
-
JRZpjzDG7n6e9GlIxDnFaoDmNdSBJF4GPC4W9o18KLGxXCO7eA0Zva7AEZ5GggUA
|
27
|
-
VeQR8SPZ6szVtObb+oQB28+SPjtx/bbmWuKnOJoPVR0eivQxhOYxT0S1kNmKX8vA
|
28
|
-
IoGdiXT3hCwdqB9Het8z4rhhwDBww5eJXGTsA2ByRYpF6ywu1TO5lveUFonLasTx
|
29
|
-
AjeaOWNZqGH14rCvSOTC9/iVbn+dj1lwINrIHDI60NYOtijBDvNcw7YIigXcoTRp
|
30
|
-
yyRwZdVyDdsafg==
|
31
|
-
-----END CERTIFICATE-----
|
16
|
+
cert_chain: []
|
32
17
|
|
33
|
-
date:
|
18
|
+
date: 2010-06-02 00:00:00 +01:00
|
34
19
|
default_executable:
|
35
20
|
dependencies:
|
36
21
|
- !ruby/object:Gem::Dependency
|
37
22
|
name: libxml-ruby
|
38
|
-
|
39
|
-
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
41
25
|
requirements:
|
42
26
|
- - ">="
|
43
27
|
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 1
|
31
|
+
- 3
|
47
32
|
version: 1.1.3
|
48
|
-
version:
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: json
|
51
33
|
type: :runtime
|
52
|
-
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: "0"
|
58
|
-
- - "="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.2.0
|
61
|
-
version:
|
34
|
+
version_requirements: *id001
|
62
35
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
64
|
-
|
65
|
-
|
66
|
-
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version: "0"
|
71
|
-
- - "="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: 0.8.4
|
74
|
-
version:
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: mocha
|
77
|
-
type: :development
|
78
|
-
version_requirement:
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
name: json
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
80
39
|
requirements:
|
81
40
|
- - ">="
|
82
41
|
- !ruby/object:Gem::Version
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
42
|
+
segments:
|
43
|
+
- 1
|
44
|
+
- 4
|
45
|
+
- 3
|
46
|
+
version: 1.4.3
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
88
49
|
description: Simple little library for programmatically manipulating EEML documents, in particular this library is designed to work with the Pachube web service.
|
89
50
|
email: sam.mulube@gmail.com
|
90
51
|
executables: []
|
@@ -92,23 +53,10 @@ executables: []
|
|
92
53
|
extensions: []
|
93
54
|
|
94
55
|
extra_rdoc_files:
|
95
|
-
- CHANGELOG
|
96
56
|
- LICENSE
|
97
57
|
- README
|
98
|
-
- lib/blank.rb
|
99
|
-
- lib/eeml.rb
|
100
|
-
- lib/eeml/constants.rb
|
101
|
-
- lib/eeml/csv_parser.rb
|
102
|
-
- lib/eeml/environment.rb
|
103
|
-
- lib/eeml/environment_builder.rb
|
104
|
-
- lib/eeml/exceptions.rb
|
105
|
-
- lib/eeml/json_environment_parser_v005.rb
|
106
|
-
- lib/eeml/json_environment_parser_v006.rb
|
107
|
-
- lib/eeml/json_output.rb
|
108
|
-
- lib/eeml/libxml_eeml_output_v005.rb
|
109
|
-
- lib/eeml/libxml_eeml_parser_v005.rb
|
110
|
-
- lib/eeml/output_registry.rb
|
111
58
|
files:
|
59
|
+
- .gitignore
|
112
60
|
- CHANGELOG
|
113
61
|
- LICENSE
|
114
62
|
- Manifest
|
@@ -129,11 +77,15 @@ files:
|
|
129
77
|
- lib/eeml/libxml_eeml_parser_v005.rb
|
130
78
|
- lib/eeml/output_registry.rb
|
131
79
|
- schemas/eeml/005.xsd
|
80
|
+
- test/data/.gitignore
|
132
81
|
- test/data/complete_namespaced.xml
|
133
82
|
- test/data/difficult_tag.xml
|
134
83
|
- test/data/doc_1.json
|
135
84
|
- test/data/doc_1.xml
|
85
|
+
- test/data/doc_1_private.json
|
86
|
+
- test/data/doc_1_private.xml
|
136
87
|
- test/data/doc_1_v6.json
|
88
|
+
- test/data/doc_1_v6_private.json
|
137
89
|
- test/data/doc_2.xml
|
138
90
|
- test/data/doc_2_expected.json
|
139
91
|
- test/data/list.xml
|
@@ -145,42 +97,39 @@ files:
|
|
145
97
|
- test/test_helper.rb
|
146
98
|
- test/test_libxml_eeml_parser_v005.rb
|
147
99
|
- test/test_libxml_test_helper.rb
|
148
|
-
- eeml.gemspec
|
149
100
|
has_rdoc: true
|
150
|
-
homepage:
|
101
|
+
homepage:
|
151
102
|
licenses: []
|
152
103
|
|
153
104
|
post_install_message:
|
154
105
|
rdoc_options:
|
155
|
-
- --
|
156
|
-
- --inline-source
|
157
|
-
- --title
|
158
|
-
- Eeml
|
159
|
-
- --main
|
160
|
-
- README
|
106
|
+
- --charset=UTF-8
|
161
107
|
require_paths:
|
162
108
|
- lib
|
163
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
164
110
|
requirements:
|
165
111
|
- - ">="
|
166
112
|
- !ruby/object:Gem::Version
|
113
|
+
segments:
|
114
|
+
- 0
|
167
115
|
version: "0"
|
168
|
-
version:
|
169
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
117
|
requirements:
|
171
118
|
- - ">="
|
172
119
|
- !ruby/object:Gem::Version
|
173
|
-
|
174
|
-
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
175
123
|
requirements: []
|
176
124
|
|
177
|
-
rubyforge_project:
|
178
|
-
rubygems_version: 1.3.
|
125
|
+
rubyforge_project:
|
126
|
+
rubygems_version: 1.3.6
|
179
127
|
signing_key:
|
180
128
|
specification_version: 3
|
181
129
|
summary: Simple little library for programmatically manipulating EEML documents.
|
182
130
|
test_files:
|
183
131
|
- test/test_environment.rb
|
184
132
|
- test/test_libxml_test_helper.rb
|
133
|
+
- test/libxml_test_helper.rb
|
185
134
|
- test/test_libxml_eeml_parser_v005.rb
|
186
135
|
- test/test_helper.rb
|
data/eeml.gemspec
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{eeml}
|
5
|
-
s.version = "0.0.13"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Neill Bogie, Sam Mulube"]
|
9
|
-
s.cert_chain = ["/home/sam/.gem/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2009-12-16}
|
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
|
-
s.email = %q{sam.mulube@gmail.com}
|
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"]
|
14
|
-
s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "example.rb", "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", "schemas/eeml/005.xsd", "test/data/complete_namespaced.xml", "test/data/difficult_tag.xml", "test/data/doc_1.json", "test/data/doc_1.xml", "test/data/doc_1_v6.json", "test/data/doc_2.xml", "test/data/doc_2_expected.json", "test/data/list.xml", "test/data/minimal.xml", "test/data/no_namespace.xml", "test/data/out_empty.xml", "test/libxml_test_helper.rb", "test/test_environment.rb", "test/test_helper.rb", "test/test_libxml_eeml_parser_v005.rb", "test/test_libxml_test_helper.rb", "eeml.gemspec"]
|
15
|
-
s.homepage = %q{}
|
16
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Eeml", "--main", "README"]
|
17
|
-
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = %q{eeml}
|
19
|
-
s.rubygems_version = %q{1.3.5}
|
20
|
-
s.signing_key = %q{/home/sam/.gem/gem-private_key.pem}
|
21
|
-
s.summary = %q{Simple little library for programmatically manipulating EEML documents.}
|
22
|
-
s.test_files = ["test/test_environment.rb", "test/test_libxml_test_helper.rb", "test/test_libxml_eeml_parser_v005.rb", "test/test_helper.rb"]
|
23
|
-
|
24
|
-
if s.respond_to? :specification_version then
|
25
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
26
|
-
s.specification_version = 3
|
27
|
-
|
28
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
29
|
-
s.add_runtime_dependency(%q<libxml-ruby>, [">= 0", "= 1.1.3"])
|
30
|
-
s.add_runtime_dependency(%q<json>, [">= 0", "= 1.2.0"])
|
31
|
-
s.add_development_dependency(%q<rake>, [">= 0", "= 0.8.4"])
|
32
|
-
s.add_development_dependency(%q<mocha>, [">= 0", "= 0.9.6"])
|
33
|
-
else
|
34
|
-
s.add_dependency(%q<libxml-ruby>, [">= 0", "= 1.1.3"])
|
35
|
-
s.add_dependency(%q<json>, [">= 0", "= 1.2.0"])
|
36
|
-
s.add_dependency(%q<rake>, [">= 0", "= 0.8.4"])
|
37
|
-
s.add_dependency(%q<mocha>, [">= 0", "= 0.9.6"])
|
38
|
-
end
|
39
|
-
else
|
40
|
-
s.add_dependency(%q<libxml-ruby>, [">= 0", "= 1.1.3"])
|
41
|
-
s.add_dependency(%q<json>, [">= 0", "= 1.2.0"])
|
42
|
-
s.add_dependency(%q<rake>, [">= 0", "= 0.8.4"])
|
43
|
-
s.add_dependency(%q<mocha>, [">= 0", "= 0.9.6"])
|
44
|
-
end
|
45
|
-
end
|
data.tar.gz.sig
DELETED
metadata.gz.sig
DELETED
Binary file
|