elibri_onix_dict 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,51 @@
1
+ # rcov generated
2
+ coverage
3
+
4
+ # rdoc generated
5
+ rdoc
6
+
7
+ # yard generated
8
+ doc
9
+ .yardoc
10
+
11
+ # bundler
12
+ .bundle
13
+
14
+ # jeweler generated
15
+ pkg
16
+
17
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
+ #
19
+ # * Create a file at ~/.gitignore
20
+ # * Include files you want ignored
21
+ # * Run: git config --global core.excludesfile ~/.gitignore
22
+ #
23
+ # After doing this, these files will be ignored in all your git projects,
24
+ # saving you from having to 'pollute' every project you touch with them
25
+ #
26
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
27
+ #
28
+ # For MacOS:
29
+ #
30
+ #.DS_Store
31
+
32
+ # For TextMate
33
+ #*.tmproj
34
+ #tmtags
35
+
36
+ # For emacs:
37
+ #*~
38
+ #\#*
39
+ #.\#*
40
+
41
+ # For vim:
42
+ #*.swp
43
+
44
+ # For redcar:
45
+ #.redcar
46
+
47
+ # For rubinius:
48
+ #*.rbc
49
+
50
+ tests.watchr
51
+ .rake_tasks~
data/.travis.yml CHANGED
@@ -1,8 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - ree
4
- - 1.9.2
5
4
  - 1.8.7
5
+ - 1.9.2
6
+ - 1.9.3
7
+ - jruby-18mode
8
+ - jruby-19mode
6
9
  notifications:
7
10
  email:
8
11
  - p.szmielew@ava.waw.pl
data/Gemfile CHANGED
@@ -1,9 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- group :development do
4
- gem "pry"
5
- gem "minitest", ">= 0"
6
- gem "bundler", ">= 1.0.0"
7
- gem "jeweler", "~> 1.6.2"
8
- gem "rcov", ">= 0"
9
- end
3
+ # Specify your gem's dependencies in elibri_onix_dict.gemspec
4
+ gemspec
data/Gemfile.lock CHANGED
@@ -1,33 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ elibri_onix_dict (0.0.14)
5
+
1
6
  GEM
2
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
3
8
  specs:
4
- coderay (0.9.8)
9
+ coderay (1.0.6)
5
10
  git (1.2.5)
6
11
  jeweler (1.6.4)
7
12
  bundler (~> 1.0)
8
13
  git (>= 1.2.5)
9
14
  rake
10
- method_source (0.6.6)
11
- ruby_parser (~> 2.0.5)
12
- minitest (2.6.1)
13
- pry (0.9.6.2)
14
- coderay (~> 0.9.8)
15
- method_source (~> 0.6.5)
16
- ruby_parser (~> 2.0.5)
17
- slop (~> 2.1.0)
18
- rake (0.9.2)
19
- rcov (0.9.11)
20
- ruby_parser (2.0.6)
21
- sexp_processor (~> 3.0)
22
- sexp_processor (3.0.7)
23
- slop (2.1.0)
15
+ method_source (0.7.1)
16
+ minitest (3.0.0)
17
+ pry (0.9.9.6)
18
+ coderay (~> 1.0.5)
19
+ method_source (~> 0.7.1)
20
+ slop (>= 2.4.4, < 3)
21
+ pry (0.9.9.6-java)
22
+ coderay (~> 1.0.5)
23
+ method_source (~> 0.7.1)
24
+ slop (>= 2.4.4, < 3)
25
+ spoon (~> 0.0)
26
+ rake (0.9.2.2)
27
+ slop (2.4.4)
28
+ spoon (0.0.1)
24
29
 
25
30
  PLATFORMS
31
+ java
26
32
  ruby
27
33
 
28
34
  DEPENDENCIES
29
35
  bundler (>= 1.0.0)
36
+ elibri_onix_dict!
30
37
  jeweler (~> 1.6.2)
31
38
  minitest
32
39
  pry
33
- rcov
data/Rakefile CHANGED
@@ -1,31 +1,5 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- require './lib/elibri_onix_dict/version.rb'
16
- Jeweler::Tasks.new do |gem|
17
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
18
- gem.name = "elibri_onix_dict"
19
- gem.version = Elibri::ONIX::Dict::Version::STRING
20
- gem.homepage = "http://github.com/elibri/elibri_onix_dict"
21
- gem.license = "MIT"
22
- gem.summary = %Q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
23
- gem.description = %Q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
24
- gem.email = "marcin@urbanski.vdl.pl"
25
- gem.authors = ["Marcin Urbanski"]
26
- # dependencies defined in Gemfile
27
- end
28
- Jeweler::RubygemsDotOrgTasks.new
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
29
3
 
30
4
  require 'rake/testtask'
31
5
  Rake::TestTask.new(:test) do |test|
@@ -34,6 +8,7 @@ Rake::TestTask.new(:test) do |test|
34
8
  test.verbose = true
35
9
  end
36
10
 
11
+ =begin
37
12
  require 'rcov/rcovtask'
38
13
  Rcov::RcovTask.new do |test|
39
14
  test.libs << 'test'
@@ -41,12 +16,13 @@ Rcov::RcovTask.new do |test|
41
16
  test.verbose = true
42
17
  test.rcov_opts << '--exclude "gems/*"'
43
18
  end
19
+ =end
44
20
 
45
21
  task :default => :test
46
22
 
47
23
  require 'rake/rdoctask'
48
24
  Rake::RDocTask.new do |rdoc|
49
- version = Elibri::ONIX::Dict::Version::STRING
25
+ version = Elibri::ONIX::Dict::VERSION
50
26
 
51
27
  rdoc.rdoc_dir = 'rdoc'
52
28
  rdoc.title = "elibri_onix_dict #{version}"
@@ -1,103 +1,34 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/elibri_onix_dict/version', __FILE__)
5
3
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{elibri_onix_dict}
8
- s.version = "0.0.13"
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Marcin Urbanski"]
6
+ gem.email = ["marcin@urbanski.vdl.pl"]
7
+ gem.description = %q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
8
+ gem.summary = %q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
9
+ gem.homepage = "http://github.com/elibri/elibri_onix_dict"
9
10
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Marcin Urbanski"]
12
- s.date = %q{2012-05-09}
13
- s.description = %q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
14
- s.email = %q{marcin@urbanski.vdl.pl}
15
- s.extra_rdoc_files = [
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "elibri_onix_dict"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Elibri::ONIX::Dict::VERSION
17
+
18
+ gem.extra_rdoc_files = [
16
19
  "LICENSE.txt",
17
20
  "README.rdoc"
18
21
  ]
19
- s.files = [
20
- ".document",
21
- ".travis.yml",
22
- "Gemfile",
23
- "Gemfile.lock",
24
- "LICENSE.txt",
25
- "README.rdoc",
26
- "Rakefile",
27
- "elibri_onix_dict.gemspec",
28
- "lib/elibri_onix_dict.rb",
29
- "lib/elibri_onix_dict/onix_3_0/base.rb",
30
- "lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangePrecision.yml",
31
- "lib/elibri_onix_dict/onix_3_0/serialized/AudienceRangeQualifier.yml",
32
- "lib/elibri_onix_dict/onix_3_0/serialized/Availability.yml",
33
- "lib/elibri_onix_dict/onix_3_0/serialized/CollectionType.yml",
34
- "lib/elibri_onix_dict/onix_3_0/serialized/ContentAudience.yml",
35
- "lib/elibri_onix_dict/onix_3_0/serialized/ContentSourceType.yml",
36
- "lib/elibri_onix_dict/onix_3_0/serialized/ContributorRole.yml",
37
- "lib/elibri_onix_dict/onix_3_0/serialized/DateFormat.yml",
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",
41
- "lib/elibri_onix_dict/onix_3_0/serialized/EpubUsageUnit.yml",
42
- "lib/elibri_onix_dict/onix_3_0/serialized/ExtentType.yml",
43
- "lib/elibri_onix_dict/onix_3_0/serialized/ExtentUnit.yml",
44
- "lib/elibri_onix_dict/onix_3_0/serialized/LanguageCode.yml",
45
- "lib/elibri_onix_dict/onix_3_0/serialized/LanguageRole.yml",
46
- "lib/elibri_onix_dict/onix_3_0/serialized/MeasureType.yml",
47
- "lib/elibri_onix_dict/onix_3_0/serialized/NotificationType.yml",
48
- "lib/elibri_onix_dict/onix_3_0/serialized/OtherTextType.yml",
49
- "lib/elibri_onix_dict/onix_3_0/serialized/PricePrintedOnProduct.yml",
50
- "lib/elibri_onix_dict/onix_3_0/serialized/PriceTypeCode.yml",
51
- "lib/elibri_onix_dict/onix_3_0/serialized/ProductAvailabilityType.yml",
52
- "lib/elibri_onix_dict/onix_3_0/serialized/ProductFormCode.yml",
53
- "lib/elibri_onix_dict/onix_3_0/serialized/ProductFormDetail.yml",
54
- "lib/elibri_onix_dict/onix_3_0/serialized/ProductIDType.yml",
55
- "lib/elibri_onix_dict/onix_3_0/serialized/ProductRelationType.yml",
56
- "lib/elibri_onix_dict/onix_3_0/serialized/PublishingDateRole.yml",
57
- "lib/elibri_onix_dict/onix_3_0/serialized/PublishingStatusCode.yml",
58
- "lib/elibri_onix_dict/onix_3_0/serialized/ResourceContentType.yml",
59
- "lib/elibri_onix_dict/onix_3_0/serialized/ResourceForm.yml",
60
- "lib/elibri_onix_dict/onix_3_0/serialized/ResourceMode.yml",
61
- "lib/elibri_onix_dict/onix_3_0/serialized/SalesRestrictionType.yml",
62
- "lib/elibri_onix_dict/onix_3_0/serialized/SubjectSchemeIdentifier.yml",
63
- "lib/elibri_onix_dict/onix_3_0/serialized/SupplierRole.yml",
64
- "lib/elibri_onix_dict/onix_3_0/serialized/TitleElementLevel.yml",
65
- "lib/elibri_onix_dict/onix_3_0/serialized/TitleType.yml",
66
- "lib/elibri_onix_dict/onix_3_0/serialized/UnnamedPersons.yml",
67
- "lib/elibri_onix_dict/releases.rb",
68
- "lib/elibri_onix_dict/version.rb",
69
- "test/elibri_onix_dict_release_3_0_test.rb",
70
- "test/elibri_onix_dict_test.rb",
71
- "test/helper.rb"
72
- ]
73
- s.homepage = %q{http://github.com/elibri/elibri_onix_dict}
74
- s.licenses = ["MIT"]
75
- s.require_paths = ["lib"]
76
- s.rubygems_version = %q{1.5.2}
77
- s.summary = %q{EDItEUR ONIX format dictionary helpers used in eLibri publication system}
22
+
23
+ gem.licenses = ["MIT"]
24
+
25
+ gem.date = %q{2012-04-05}
26
+
27
+ gem.add_development_dependency "pry"
28
+ gem.add_development_dependency "minitest", ">= 0"
29
+ gem.add_development_dependency "bundler", ">= 1.0.0"
30
+ gem.add_development_dependency "jeweler", "~> 1.6.2"
31
+ # gem.add_development_dependency "rcov", ">= 0"
32
+
78
33
 
79
- if s.respond_to? :specification_version then
80
- s.specification_version = 3
81
-
82
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
- s.add_development_dependency(%q<pry>, [">= 0"])
84
- s.add_development_dependency(%q<minitest>, [">= 0"])
85
- s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
86
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
87
- s.add_development_dependency(%q<rcov>, [">= 0"])
88
- else
89
- s.add_dependency(%q<pry>, [">= 0"])
90
- s.add_dependency(%q<minitest>, [">= 0"])
91
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
92
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
93
- s.add_dependency(%q<rcov>, [">= 0"])
94
- end
95
- else
96
- s.add_dependency(%q<pry>, [">= 0"])
97
- s.add_dependency(%q<minitest>, [">= 0"])
98
- s.add_dependency(%q<bundler>, [">= 1.0.0"])
99
- s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
100
- s.add_dependency(%q<rcov>, [">= 0"])
101
- end
102
34
  end
103
-
@@ -21,23 +21,15 @@
21
21
  const_name: AUDIO_DOWNLOADABLE_FILE
22
22
  name:
23
23
  en: audio recording file
24
- pl: audio MP3
24
+ pl: audiobook w formie pliku
25
25
  digital: true
26
26
 
27
- - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
28
- onix_code: 'AB'
29
- const_name: AUDIO_CASSETTE
30
- name:
31
- en: audio cassette
32
- pl: kaseta magnetofonowa
33
- digital: false
34
-
35
27
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
36
28
  onix_code: 'AC'
37
29
  const_name: AUDIO_CD
38
30
  name:
39
31
  en: CD-audio
40
- pl: audio CD
32
+ pl: audiobook na płycie CD
41
33
  digital: false
42
34
 
43
35
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
@@ -45,7 +37,7 @@
45
37
  const_name: AUDIO_DVD
46
38
  name:
47
39
  en: DVD-audio
48
- pl: audio DVD
40
+ pl: audiobook na płycie DVD
49
41
  digital: false
50
42
 
51
43
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductFormCode
@@ -5,7 +5,7 @@
5
5
  const_name: PROPRIETARY
6
6
  name:
7
7
  en: proprietary
8
- pl: własnościowy
8
+ pl: wewnętrzny identyfikator
9
9
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductIDType
10
10
  onix_code: '03'
11
11
  const_name: EAN
@@ -1,4 +1,4 @@
1
-
1
+ #lista 51
2
2
 
3
3
  ---
4
4
  - !ruby/object:Elibri::ONIX::Dict::Release_3_0::ProductRelationType
@@ -1,13 +1,8 @@
1
-
2
1
  module Elibri
3
2
  module ONIX
4
3
  module Dict
5
- module Version
6
- MAJOR = 0
7
- MINOR = 0
8
- PATCH = 13
9
- STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
- end
4
+ VERSION = "0.0.15"
5
+ Version = VERSION
11
6
  end
12
7
  end
13
8
  end
@@ -6,9 +6,9 @@ require 'helper'
6
6
  describe Elibri::ONIX::Dict::Release_3_0 do
7
7
 
8
8
  it "should be able to build classes on the fly from .yml files" do
9
- assert_equal 12, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
10
- assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
11
- assert_equal 10, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except(['BA', 'EA']).size
9
+ assert_equal 11, Elibri::ONIX::Dict::Release_3_0::ProductFormCode::ALL.size
10
+ assert_equal 9, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except('BA', 'EA').size
11
+ assert_equal 9, Elibri::ONIX::Dict::Release_3_0::ProductFormCode.all_except(['BA', 'EA']).size
12
12
  assert_equal 'BA', Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK
13
13
  assert_equal '02', Elibri::ONIX::Dict::Release_3_0::EpubUsageStatus::LIMITED
14
14
  assert_equal '07', Elibri::ONIX::Dict::Release_3_0::EpubUsageType::TIME_LIMITED
@@ -4,7 +4,7 @@ require 'helper'
4
4
  describe Elibri::ONIX::Dict do
5
5
 
6
6
  it "should be able to establish its version" do
7
- assert_match /\d+\.\d+\.\d+/, Elibri::ONIX::Dict::Version::STRING
7
+ assert_match /\d+\.\d+\.\d+/, Elibri::ONIX::Dict::VERSION
8
8
  end
9
9
 
10
10
  end
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: 5
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 13
10
- version: 0.0.13
9
+ - 15
10
+ version: 0.0.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcin Urbanski
@@ -15,13 +15,13 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-09 00:00:00 +02:00
18
+ date: 2012-04-05 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
23
22
  name: pry
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
27
  - - ">="
@@ -30,12 +30,12 @@ dependencies:
30
30
  segments:
31
31
  - 0
32
32
  version: "0"
33
- prerelease: false
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
33
  type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
37
36
  name: minitest
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ">="
@@ -44,12 +44,12 @@ dependencies:
44
44
  segments:
45
45
  - 0
46
46
  version: "0"
47
- prerelease: false
48
- requirement: *id002
49
- - !ruby/object:Gem::Dependency
50
47
  type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
51
50
  name: bundler
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ">="
@@ -60,12 +60,12 @@ dependencies:
60
60
  - 0
61
61
  - 0
62
62
  version: 1.0.0
63
- prerelease: false
64
- requirement: *id003
65
- - !ruby/object:Gem::Dependency
66
63
  type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
67
66
  name: jeweler
68
- version_requirements: &id004 !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
71
  - - ~>
@@ -76,24 +76,11 @@ dependencies:
76
76
  - 6
77
77
  - 2
78
78
  version: 1.6.2
79
- prerelease: false
80
- requirement: *id004
81
- - !ruby/object:Gem::Dependency
82
79
  type: :development
83
- name: rcov
84
- version_requirements: &id005 !ruby/object:Gem::Requirement
85
- none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- hash: 3
90
- segments:
91
- - 0
92
- version: "0"
93
- prerelease: false
94
- requirement: *id005
80
+ version_requirements: *id004
95
81
  description: EDItEUR ONIX format dictionary helpers used in eLibri publication system
96
- email: marcin@urbanski.vdl.pl
82
+ email:
83
+ - marcin@urbanski.vdl.pl
97
84
  executables: []
98
85
 
99
86
  extensions: []
@@ -102,7 +89,7 @@ extra_rdoc_files:
102
89
  - LICENSE.txt
103
90
  - README.rdoc
104
91
  files:
105
- - .document
92
+ - .gitignore
106
93
  - .travis.yml
107
94
  - Gemfile
108
95
  - Gemfile.lock
@@ -188,5 +175,7 @@ rubygems_version: 1.5.2
188
175
  signing_key:
189
176
  specification_version: 3
190
177
  summary: EDItEUR ONIX format dictionary helpers used in eLibri publication system
191
- test_files: []
192
-
178
+ test_files:
179
+ - test/elibri_onix_dict_release_3_0_test.rb
180
+ - test/elibri_onix_dict_test.rb
181
+ - test/helper.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt