elibri_onix_generator 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,8 @@ require "elibri_onix_generator/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "elibri_onix_generator"
7
7
  s.version = ElibriOnixGenerator::VERSION
8
- s.authors = ["Piotr Szmielew"]
9
- s.email = ["p.szmielew@beinformed.pl"]
8
+ s.authors = ["Marcin Urbański", "Piotr Szmielew"]
9
+ s.email = ["marcin@urbanski.vdl.pl", "p.szmielew@beinformed.pl"]
10
10
  s.homepage = ""
11
11
  s.summary = %q{XML Generator used by Elibri gems}
12
12
  s.description = %q{XML Generator used by Elibri gems}
@@ -548,9 +548,9 @@ module Elibri
548
548
  # I przykład dla audiobook-a, z czasem trwania nagrania:
549
549
  # @render onix_audiobook_extent_example
550
550
  def export_extent!(product)
551
- if product.kind_of_ebook? and product.file_size
551
+ if product.digital? and product.file_size
552
552
  tag(:Extent) do
553
- comment 'Rozmiar pliku (w MB) - tylko dla produktów typu e-book', :kind => :onix_extent
553
+ comment 'Rozmiar pliku (w MB) - tylko dla produktów cyfrowych (e-book, audiobook)', :kind => :onix_extent
554
554
  tag(:ExtentType, Elibri::ONIX::Dict::Release_3_0::ExtentType::FILE_SIZE)
555
555
  tag(:ExtentValue, product.file_size)
556
556
  comment 'W MB', :kind => :onix_extent
@@ -698,7 +698,7 @@ module Elibri
698
698
  #
699
699
  #
700
700
  def export_titles!(product)
701
- if product.title_parts.present? or product.or_title.present? or product.trade_title.present?
701
+ if product.title_parts.present? or product.original_title.present? or product.trade_title.present?
702
702
  #comment_dictionary 'Rozróżniane typy tytułów', :TitleType, :indent => 10, :kind => :onix_titles
703
703
  end
704
704
 
@@ -721,14 +721,14 @@ module Elibri
721
721
  end
722
722
  end
723
723
  end
724
- if product.or_title.present?
724
+ if product.original_title.present?
725
725
  tag(:TitleDetail) do
726
726
  comment "Tytuł w języku oryginału - #{Elibri::ONIX::Dict::Release_3_0::TitleType::DISTINCTIVE_TITLE}", :kind => :onix_titles
727
727
  tag(:TitleType, Elibri::ONIX::Dict::Release_3_0::TitleType::ORIGINAL_TITLE)
728
728
  tag(:TitleElement) do
729
729
  comment "Tytuł na poziomie produktu - #{Elibri::ONIX::Dict::Release_3_0::TitleElementLevel::PRODUCT}", :kind => :onix_titles
730
730
  tag(:TitleElementLevel, Elibri::ONIX::Dict::Release_3_0::TitleElementLevel::PRODUCT)
731
- tag(:TitleText, product.or_title)
731
+ tag(:TitleText, product.original_title)
732
732
  end
733
733
  end
734
734
  end
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,22 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_generator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
+ - "Marcin Urba\xC5\x84ski"
13
14
  - Piotr Szmielew
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2012-05-17 00:00:00 +02:00
19
- default_executable:
19
+ date: 2012-06-11 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: builder
@@ -34,6 +34,7 @@ dependencies:
34
34
  version_requirements: *id001
35
35
  description: XML Generator used by Elibri gems
36
36
  email:
37
+ - marcin@urbanski.vdl.pl
37
38
  - p.szmielew@beinformed.pl
38
39
  executables: []
39
40
 
@@ -50,7 +51,6 @@ files:
50
51
  - lib/elibri_onix_generator.rb
51
52
  - lib/elibri_onix_generator/version.rb
52
53
  - lib/xml_tags.yml
53
- has_rdoc: true
54
54
  homepage: ""
55
55
  licenses: []
56
56
 
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements: []
81
81
 
82
82
  rubyforge_project: elibri_onix_generator
83
- rubygems_version: 1.5.2
83
+ rubygems_version: 1.8.19
84
84
  signing_key:
85
85
  specification_version: 3
86
86
  summary: XML Generator used by Elibri gems