eeml 0.0.37 → 0.0.38

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.
@@ -16,6 +16,6 @@ require 'time'
16
16
  module Eeml
17
17
 
18
18
  # library version number
19
- VERSION = '0.0.37'
19
+ VERSION = '0.0.38'
20
20
 
21
21
  end #module
@@ -17,7 +17,7 @@ module Eeml
17
17
  EEML["0.5.1"] =
18
18
  {
19
19
  :href => 'http://www.eeml.org/xsd/0.5.1',
20
- :versions => '0.5.1',
20
+ :versions => ['0.5.1'],
21
21
  :schema_location => 'http://www.eeml.org/xsd/0.5.1 http://www.eeml.org/xsd/0.5.1/0.5.1.xsd'
22
22
  }
23
23
 
@@ -596,6 +596,12 @@ class TestEnvironment < Test::Unit::TestCase
596
596
  assert_equal false, env.private
597
597
  end
598
598
 
599
+ test "raise an exception if asked to parse a valid json document, that doesn't have basic elements" do
600
+ assert_raise(JSON::ParserError) do
601
+ environment = Environment.new_from_json('{"foo":"bar"}')
602
+ end
603
+ end
604
+
599
605
  # --- -------------------------------------------------------
600
606
  # --- csv input stuff -------------------------------------------------------
601
607
  # --- -------------------------------------------------------
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eeml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 85
4
+ hash: 83
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 37
10
- version: 0.0.37
9
+ - 38
10
+ version: 0.0.38
11
11
  platform: ruby
12
12
  authors:
13
13
  - Neill Bogie
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2011-02-28 00:00:00 +00:00
21
+ date: 2011-03-14 00:00:00 +00:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency