elibri_onix_dict 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -0
- data/README.rdoc +6 -0
- data/elibri_onix_dict.gemspec +11 -8
- data/lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageStatus.yml +15 -0
- data/lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageType.yml +8 -0
- data/lib/elibri_onix_dict/version.rb +1 -1
- data/test/elibri_onix_dict_release_3_0_test.rb +3 -0
- metadata +28 -27
data/.travis.yml
ADDED
data/README.rdoc
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
= elibri_onix_dict
|
2
2
|
|
3
|
+
== Build status
|
4
|
+
|
5
|
+
{<img src="https://secure.travis-ci.org/elibri/elibri_onix_dict.png?branch=master" alt="Build Status" />}[http://travis-ci.org/elibri/elibri_onix_dict]
|
6
|
+
|
7
|
+
== Usage guide
|
8
|
+
|
3
9
|
ree-1.8.7-2011.03 :005 > Elibri::ONIX::Dict::Release_3_0::ProductFormCode.find_by_onix_code 'BA'
|
4
10
|
=> #<Elibri::ONIX::Dict::Release_3_0::ProductFormCode:0x1ace440 @onix_code="BA", @name={"pl"=>"książka", "en"=>"book"}, @const_name="BOOK">
|
5
11
|
|
data/elibri_onix_dict.gemspec
CHANGED
@@ -4,20 +4,21 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0.
|
7
|
+
s.name = "elibri_onix_dict"
|
8
|
+
s.version = "0.0.11"
|
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 =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2012-04-25"
|
13
|
+
s.description = "EDItEUR ONIX format dictionary helpers used in eLibri publication system"
|
14
|
+
s.email = "marcin@urbanski.vdl.pl"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".travis.yml",
|
21
22
|
"Gemfile",
|
22
23
|
"Gemfile.lock",
|
23
24
|
"LICENSE.txt",
|
@@ -35,6 +36,8 @@ Gem::Specification.new do |s|
|
|
35
36
|
"lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml",
|
36
37
|
"lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml",
|
37
38
|
"lib/elibri_onix_dict/onix_3_0/serialized/EpubTechnicalProtection.yml",
|
39
|
+
"lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageStatus.yml",
|
40
|
+
"lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageType.yml",
|
38
41
|
"lib/elibri_onix_dict/onix_3_0/serialized/ExtentType.yml",
|
39
42
|
"lib/elibri_onix_dict/onix_3_0/serialized/ExtentUnit.yml",
|
40
43
|
"lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml",
|
@@ -66,11 +69,11 @@ Gem::Specification.new do |s|
|
|
66
69
|
"test/elibri_onix_dict_test.rb",
|
67
70
|
"test/helper.rb"
|
68
71
|
]
|
69
|
-
s.homepage =
|
72
|
+
s.homepage = "http://github.com/elibri/elibri_onix_dict"
|
70
73
|
s.licenses = ["MIT"]
|
71
74
|
s.require_paths = ["lib"]
|
72
|
-
s.rubygems_version =
|
73
|
-
s.summary =
|
75
|
+
s.rubygems_version = "1.8.19"
|
76
|
+
s.summary = "EDItEUR ONIX format dictionary helpers used in eLibri publication system"
|
74
77
|
|
75
78
|
if s.respond_to? :specification_version then
|
76
79
|
s.specification_version = 3
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
---
|
3
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus
|
4
|
+
onix_code: '01'
|
5
|
+
const_name: UNLIMITED
|
6
|
+
name:
|
7
|
+
en: unlimited
|
8
|
+
pl: bez limitów
|
9
|
+
|
10
|
+
- !ruby/object:Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus
|
11
|
+
onix_code: '02'
|
12
|
+
const_name: LIMITED
|
13
|
+
name:
|
14
|
+
en: limited
|
15
|
+
pl: obowiązuje limit
|
@@ -1,3 +1,4 @@
|
|
1
|
+
#encoding: UTF-8
|
1
2
|
require 'helper'
|
2
3
|
|
3
4
|
|
@@ -9,6 +10,8 @@ describe Elibri::ONIX::Dict::Release_3_0 do
|
|
9
10
|
assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
|
10
11
|
assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except(['BA', 'EA']).size
|
11
12
|
assert_equal 'BA', Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK
|
13
|
+
assert_equal '02', Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus::LIMITED
|
14
|
+
assert_equal '07', Elibri::ONIX::Dict::Release_3_0::EpubUsageType::TIME_LIMITED
|
12
15
|
|
13
16
|
form = Elibri::ONIX::Dict::Release_3_0::ProductFormCode.find_by_onix_code('BA')
|
14
17
|
assert_equal 'książka', form.name
|
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: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Marcin Urbanski
|
@@ -15,13 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-04-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-04-25 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
name: pry
|
24
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
22
|
none: false
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
@@ -30,12 +27,12 @@ dependencies:
|
|
30
27
|
segments:
|
31
28
|
- 0
|
32
29
|
version: "0"
|
30
|
+
version_requirements: *id001
|
31
|
+
name: pry
|
33
32
|
prerelease: false
|
34
|
-
requirement: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
33
|
type: :development
|
37
|
-
|
38
|
-
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
36
|
none: false
|
40
37
|
requirements:
|
41
38
|
- - ">="
|
@@ -44,12 +41,12 @@ dependencies:
|
|
44
41
|
segments:
|
45
42
|
- 0
|
46
43
|
version: "0"
|
44
|
+
version_requirements: *id002
|
45
|
+
name: minitest
|
47
46
|
prerelease: false
|
48
|
-
requirement: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
47
|
type: :development
|
51
|
-
|
52
|
-
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
50
|
none: false
|
54
51
|
requirements:
|
55
52
|
- - ">="
|
@@ -60,12 +57,12 @@ dependencies:
|
|
60
57
|
- 0
|
61
58
|
- 0
|
62
59
|
version: 1.0.0
|
60
|
+
version_requirements: *id003
|
61
|
+
name: bundler
|
63
62
|
prerelease: false
|
64
|
-
requirement: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
63
|
type: :development
|
67
|
-
|
68
|
-
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
66
|
none: false
|
70
67
|
requirements:
|
71
68
|
- - ~>
|
@@ -76,12 +73,12 @@ dependencies:
|
|
76
73
|
- 6
|
77
74
|
- 2
|
78
75
|
version: 1.6.2
|
76
|
+
version_requirements: *id004
|
77
|
+
name: jeweler
|
79
78
|
prerelease: false
|
80
|
-
requirement: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
79
|
type: :development
|
83
|
-
|
84
|
-
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
82
|
none: false
|
86
83
|
requirements:
|
87
84
|
- - ">="
|
@@ -90,8 +87,10 @@ dependencies:
|
|
90
87
|
segments:
|
91
88
|
- 0
|
92
89
|
version: "0"
|
90
|
+
version_requirements: *id005
|
91
|
+
name: rcov
|
93
92
|
prerelease: false
|
94
|
-
|
93
|
+
type: :development
|
95
94
|
description: EDItEUR ONIX format dictionary helpers used in eLibri publication system
|
96
95
|
email: marcin@urbanski.vdl.pl
|
97
96
|
executables: []
|
@@ -103,6 +102,7 @@ extra_rdoc_files:
|
|
103
102
|
- README.rdoc
|
104
103
|
files:
|
105
104
|
- .document
|
105
|
+
- .travis.yml
|
106
106
|
- Gemfile
|
107
107
|
- Gemfile.lock
|
108
108
|
- LICENSE.txt
|
@@ -120,6 +120,8 @@ files:
|
|
120
120
|
- lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml
|
121
121
|
- lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml
|
122
122
|
- lib/elibri_onix_dict/onix_3_0/serialized/EpubTechnicalProtection.yml
|
123
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageStatus.yml
|
124
|
+
- lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageType.yml
|
123
125
|
- lib/elibri_onix_dict/onix_3_0/serialized/ExtentType.yml
|
124
126
|
- lib/elibri_onix_dict/onix_3_0/serialized/ExtentUnit.yml
|
125
127
|
- lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml
|
@@ -150,7 +152,6 @@ files:
|
|
150
152
|
- test/elibri_onix_dict_release_3_0_test.rb
|
151
153
|
- test/elibri_onix_dict_test.rb
|
152
154
|
- test/helper.rb
|
153
|
-
has_rdoc: true
|
154
155
|
homepage: http://github.com/elibri/elibri_onix_dict
|
155
156
|
licenses:
|
156
157
|
- MIT
|
@@ -180,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
181
|
requirements: []
|
181
182
|
|
182
183
|
rubyforge_project:
|
183
|
-
rubygems_version: 1.
|
184
|
+
rubygems_version: 1.8.19
|
184
185
|
signing_key:
|
185
186
|
specification_version: 3
|
186
187
|
summary: EDItEUR ONIX format dictionary helpers used in eLibri publication system
|