eeml 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,19 @@
1
+ commit 926ef3400b50ee441f2c48951ad1e5d1fd4f0549
2
+ Author: Sam Mulube <sam.mulube@gmail.com>
3
+ Date: Wed Jun 24 23:47:25 2009 +0100
4
+
5
+ Bumped version number to 0.0.3.
6
+
7
+ * Moved requires of our custom parsers and outputters into their respective registry classes.
8
+ * Removed old autotest file as it broke the latest version of ZenTest that I just installed.
9
+ * Include of exception module was working in tests, but not when actually trying to use the library.
10
+
11
+ commit 25bd9eccee04e7b7f45f43fbf30997576a11d475
12
+ Author: Sam Mulube <sam.mulube@gmail.com>
13
+ Date: Tue May 5 02:01:38 2009 +0100
14
+
15
+ Updated changelog with latest commits.
16
+
1
17
  commit db121ee6d59585932cc1222c556de689ca09490d
2
18
  Author: Sam Mulube <sam.mulube@gmail.com>
3
19
  Date: Tue May 5 01:58:52 2009 +0100
data/eeml.gemspec CHANGED
@@ -2,29 +2,28 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{eeml}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
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-05-05}
10
+ s.date = %q{2009-06-24}
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 = ["LICENSE", "CHANGELOG", "README", "lib/eeml.rb", "lib/eeml/constants.rb", "lib/eeml/json_environment_parser_v005.rb", "lib/eeml/output_registry.rb", "lib/eeml/parser_registry.rb", "lib/eeml/libxml_eeml_output_v005.rb", "lib/eeml/libxml_eeml_parser_v005.rb", "lib/eeml/exceptions.rb", "lib/eeml/csv_parser.rb", "lib/eeml/json_output.rb", "lib/eeml/environment.rb", "lib/blank.rb"]
14
14
  s.files = ["example.rb", "eeml.gemspec", "LICENSE", "CHANGELOG", "README", "test/test_environment.rb", "test/test_libxml_test_helper.rb", "test/libxml_test_helper.rb", "test/test_libxml_eeml_parser_v005.rb", "test/test_helper.rb", "test/data/minimal.xml", "test/data/doc_2_expected.json", "test/data/list.xml", "test/data/out_empty.xml", "test/data/no_namespace.xml", "test/data/doc_1.xml", "test/data/doc_1.json", "test/data/doc_2.xml", "lib/eeml.rb", "lib/eeml/constants.rb", "lib/eeml/json_environment_parser_v005.rb", "lib/eeml/output_registry.rb", "lib/eeml/parser_registry.rb", "lib/eeml/libxml_eeml_output_v005.rb", "lib/eeml/libxml_eeml_parser_v005.rb", "lib/eeml/exceptions.rb", "lib/eeml/csv_parser.rb", "lib/eeml/json_output.rb", "lib/eeml/environment.rb", "lib/blank.rb", "schemas/eeml/005.xsd", "Rakefile", "Manifest"]
15
- s.has_rdoc = true
16
15
  s.homepage = %q{}
17
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Eeml", "--main", "README"]
18
17
  s.require_paths = ["lib"]
19
18
  s.rubyforge_project = %q{eeml}
20
- s.rubygems_version = %q{1.3.1}
19
+ s.rubygems_version = %q{1.3.3}
21
20
  s.signing_key = %q{/home/sam/.gem/gem-private_key.pem}
22
21
  s.summary = %q{Simple little library for programmatically manipulating EEML documents.}
23
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"]
24
23
 
25
24
  if s.respond_to? :specification_version then
26
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
- s.specification_version = 2
26
+ s.specification_version = 3
28
27
 
29
28
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
29
  s.add_runtime_dependency(%q<libxml-ruby>, [">= 0", "= 1.1.3"])
@@ -1,6 +1,8 @@
1
1
  module Eeml
2
- #a parser for json environments
2
+ # A parser for json environments based on the EEML 5 specification.
3
3
  class JsonEnvironmentParserV005 # :nodoc:
4
+ include Exceptions
5
+
4
6
  def make_environment_from_json(json_str)
5
7
  env_hash = JSON.parse(json_str)
6
8
  env = Environment.new(:title => env_hash["title"],
@@ -1,9 +1,9 @@
1
1
  require "parsedate.rb"
2
2
  module Eeml
3
- include Exceptions
4
3
  #a parser for xml eeml v005, implemented with LibXML
5
4
  class LibXMLEemlParserV005 # :nodoc:
6
5
  include LibXML
6
+ include Exceptions
7
7
 
8
8
  #main method
9
9
 
@@ -1,3 +1,6 @@
1
+ require 'eeml/libxml_eeml_output_v005'
2
+ require 'eeml/json_output'
3
+
1
4
  module Eeml
2
5
  class OutputRegistry # :nodoc:
3
6
  #look at the given xml, build and return a new v005 or 006 parser, accordingly
@@ -1,3 +1,6 @@
1
+ require 'eeml/libxml_eeml_parser_v005'
2
+ require 'eeml/json_environment_parser_v005'
3
+
1
4
  module Eeml
2
5
  class ParserRegistry # :nodoc:
3
6
  #look at the given xml, build and return a new v005 or 006 parser, accordingly
data/lib/eeml.rb CHANGED
@@ -8,21 +8,15 @@ require 'json'
8
8
  require 'eeml/constants'
9
9
  require 'eeml/exceptions'
10
10
  require 'eeml/environment'
11
- require 'eeml/libxml_eeml_parser_v005'
12
- require 'eeml/json_environment_parser_v005'
13
11
  require 'eeml/parser_registry'
14
12
  require 'eeml/output_registry'
15
- require 'eeml/libxml_eeml_output_v005'
16
- require 'eeml/json_output'
17
13
 
18
14
  module Eeml
19
15
 
20
16
  # library version number
21
- VERSION = '0.0.2'
17
+ VERSION = '0.0.3'
22
18
 
23
19
  # TODO: put in some configuration file, not here
24
20
  LOCAL_EEML_SCHEMA_LOCATION = 'schemas/eeml/005.xsd'
25
21
 
26
-
27
-
28
22
  end #module
data/test/test_helper.rb CHANGED
@@ -112,5 +112,5 @@ $:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
112
112
  require 'eeml'
113
113
 
114
114
  include Eeml
115
-
115
+ include Exceptions
116
116
 
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.2
4
+ version: 0.0.3
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-05-05 00:00:00 +01:00
33
+ date: 2009-06-24 00:00:00 +01:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -143,6 +143,8 @@ files:
143
143
  - Manifest
144
144
  has_rdoc: true
145
145
  homepage: ""
146
+ licenses: []
147
+
146
148
  post_install_message:
147
149
  rdoc_options:
148
150
  - --line-numbers
@@ -168,9 +170,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
170
  requirements: []
169
171
 
170
172
  rubyforge_project: eeml
171
- rubygems_version: 1.3.1
173
+ rubygems_version: 1.3.3
172
174
  signing_key:
173
- specification_version: 2
175
+ specification_version: 3
174
176
  summary: Simple little library for programmatically manipulating EEML documents.
175
177
  test_files:
176
178
  - test/test_environment.rb
metadata.gz.sig CHANGED
Binary file