elibri_onix_dict 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
data/elibri_onix_dict.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{elibri_onix_dict}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Marcin Urbanski"]
|
12
|
-
s.date = %q{2011-11-
|
12
|
+
s.date = %q{2011-11-15}
|
13
13
|
s.description = %q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
|
14
14
|
s.email = %q{marcin@urbanski.vdl.pl}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -5,9 +5,9 @@ require 'helper'
|
|
5
5
|
describe Elibri::ONIX::Dict::Release_3_0 do
|
6
6
|
|
7
7
|
it "should be able to build classes on the fly from .yml files" do
|
8
|
-
assert_equal
|
9
|
-
assert_equal
|
10
|
-
assert_equal
|
8
|
+
assert_equal 12, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
|
9
|
+
assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
|
10
|
+
assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except(['BA', 'EA']).size
|
11
11
|
assert_equal 'BA', Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK
|
12
12
|
|
13
13
|
form = Elibri::ONIX::Dict::Release_3_0::ProductFormCode.find_by_onix_code('BA')
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibri_onix_dict
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcin Urbanski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
18
|
+
date: 2011-11-15 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|