elibri_onix_generator 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1e0b49daf195145033e040f3b3c1357409ac6130
4
+ data.tar.gz: fe5a6995b67af1a896e5d68a7cf1a8fd6e3fc4c0
5
+ SHA512:
6
+ metadata.gz: 447505358af946546fe60cdc05cce8f40f588f3ab0750193ce7abca5298a684f9470e4de3a80aa67236d73791edf6fb7083c8c09d14b58f2c2712ab07157a33a
7
+ data.tar.gz: ff5665cf44c72bfc91202ee97b68277085d92c4d4c885593880574fba5c4122d91643f0ee1e18e81e13cb9172f9bb78f09107aa530e22e4dad6bf7cd4db1953f
@@ -473,13 +473,23 @@ module Elibri
473
473
  date, format_code = product.publication_date_with_onix_format_code
474
474
  if date && format_code
475
475
  tag(:PublishingDate) do
476
- comment 'Zawsze 01 - data publikacji', :kind => :onix_publishing_status
476
+ comment 'Jeśli 01 - data publikacji', :kind => :onix_publishing_status
477
477
  tag(:PublishingDateRole, Elibri::ONIX::Dict::Release_3_0::PublishingDateRole::PUBLICATION_DATE) #lista 163
478
478
  comment_dictionary "Format daty", :DateFormat, :indent => 12, :kind => :onix_publishing_status
479
479
  tag(:DateFormat, format_code) #lista 55
480
480
  tag(:Date, date)
481
481
  end
482
482
  end
483
+
484
+ distribution_start = product.product_distribution_start
485
+ if distribution_start
486
+ tag(:PublishingDate) do
487
+ comment "Jeśli 27 - to data początku przyjmowania zamówień na dany tytuł"
488
+ tag(:PublishingDateRole, Elibri::ONIX::Dict::Release_3_0::PublishingDateRole::PREORDER_EMBARGO_DATE) #lista 163
489
+ tag(:DateFormat, Elibri::ONIX::Dict::Release_3_0::DateFormat::YYYYMMDD)
490
+ tag(:Date, distribution_start.strftime("%Y%m%d"))
491
+ end
492
+ end
483
493
  end
484
494
 
485
495
  # @hidden_tags RecordReference NotificationType ProductIdentifier DescriptiveDetail Publisher PublishingStatus
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,40 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_generator
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.12
6
5
  platform: ruby
7
- authors:
8
- - "Marcin Urba\xC5\x84ski"
6
+ authors:
7
+ - Marcin Urbański
9
8
  - Piotr Szmielew
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
-
14
- date: 2013-07-05 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2014-09-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: builder
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: "0"
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
25
21
  type: :runtime
26
- version_requirements: *id001
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
27
28
  description: XML Generator used by Elibri gems
28
- email:
29
+ email:
29
30
  - marcin@urbanski.vdl.pl
30
31
  - p.szmielew@beinformed.pl
31
32
  executables: []
32
-
33
33
  extensions: []
34
-
35
34
  extra_rdoc_files: []
36
-
37
- files:
35
+ files:
38
36
  - .gitignore
39
37
  - Gemfile
40
38
  - README
@@ -43,33 +41,28 @@ files:
43
41
  - lib/elibri_onix_generator.rb
44
42
  - lib/elibri_onix_generator/version.rb
45
43
  - lib/xml_tags.yml
46
- homepage: ""
44
+ homepage: ''
47
45
  licenses: []
48
-
46
+ metadata: {}
49
47
  post_install_message:
50
48
  rdoc_options: []
51
-
52
- require_paths:
49
+ require_paths:
53
50
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: "0"
60
- required_rubygems_version: !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ">="
64
- - !ruby/object:Gem::Version
65
- version: "0"
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
66
61
  requirements: []
67
-
68
62
  rubyforge_project: elibri_onix_generator
69
- rubygems_version: 1.8.23
63
+ rubygems_version: 2.2.2
70
64
  signing_key:
71
- specification_version: 3
65
+ specification_version: 4
72
66
  summary: XML Generator used by Elibri gems
73
67
  test_files: []
74
-
75
68
  has_rdoc: