elibri_onix_generator 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1043,6 +1043,25 @@ module Elibri
1043
1043
  if product.isbn
1044
1044
  tag("elibri:HyphenatedISBN", product.isbn.human_value)
1045
1045
  end
1046
+
1047
+ if product.digital?
1048
+ if product.excerpts.present?
1049
+ tag("elibri:excerpts") do
1050
+ product.excerpts.each do |excerpt|
1051
+ tag("elibri:excerpt", "https://www.elibri.com.pl/excerpt/#{excerpt.id}", :md5 => excerpt.file_md5, :file_size => excerpt.stored_file_size,
1052
+ :file_type => excerpt.file_type, :updated_at => excerpt.stored_updated_at.to_datetime.xmlschema, :id => excerpt.id)
1053
+ end
1054
+ end
1055
+ end
1056
+ if product.masters.present?
1057
+ tag("elibri:masters") do
1058
+ product.masters.each do |sf|
1059
+ tag("elibri:master", :id => sf.id, :md5 => sf.file_md5, :file_size => sf.stored_file_size,
1060
+ :file_type => sf.file_type, :updated_at => sf.stored_updated_at.to_datetime.xmlschema)
1061
+ end
1062
+ end
1063
+ end
1064
+ end
1046
1065
  end
1047
1066
  end
1048
1067
 
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixGenerator
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,41 +1,40 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix_generator
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.9
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.1.10
6
6
  platform: ruby
7
- authors:
8
- - Marcin Urbański
7
+ authors:
8
+ - "Marcin Urba\xC5\x84ski"
9
9
  - Piotr Szmielew
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-20 00:00:00.000000000 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
13
+
14
+ date: 2013-03-26 00:00:00 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
16
17
  name: builder
17
- requirement: !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :runtime
24
18
  prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
19
+ requirement: &id001 !ruby/object:Gem::Requirement
26
20
  none: false
27
- requirements:
28
- - - ! '>='
29
- - !ruby/object:Gem::Version
30
- version: '0'
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ type: :runtime
26
+ version_requirements: *id001
31
27
  description: XML Generator used by Elibri gems
32
- email:
28
+ email:
33
29
  - marcin@urbanski.vdl.pl
34
30
  - p.szmielew@beinformed.pl
35
31
  executables: []
32
+
36
33
  extensions: []
34
+
37
35
  extra_rdoc_files: []
38
- files:
36
+
37
+ files:
39
38
  - .gitignore
40
39
  - Gemfile
41
40
  - README
@@ -44,28 +43,33 @@ files:
44
43
  - lib/elibri_onix_generator.rb
45
44
  - lib/elibri_onix_generator/version.rb
46
45
  - lib/xml_tags.yml
47
- homepage: ''
46
+ homepage: ""
48
47
  licenses: []
48
+
49
49
  post_install_message:
50
50
  rdoc_options: []
51
- require_paths:
51
+
52
+ require_paths:
52
53
  - lib
53
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
54
55
  none: false
55
- requirements:
56
- - - ! '>='
57
- - !ruby/object:Gem::Version
58
- version: '0'
59
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
61
  none: false
61
- requirements:
62
- - - ! '>='
63
- - !ruby/object:Gem::Version
64
- version: '0'
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
65
66
  requirements: []
67
+
66
68
  rubyforge_project: elibri_onix_generator
67
- rubygems_version: 1.8.24
69
+ rubygems_version: 1.8.23
68
70
  signing_key:
69
71
  specification_version: 3
70
72
  summary: XML Generator used by Elibri gems
71
73
  test_files: []
74
+
75
+ has_rdoc: