elibri_onix 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elibri_onix (0.2.6)
4
+ elibri_onix (0.2.8)
5
5
  activesupport (>= 2.3.5)
6
6
  elibri_onix_dict (>= 0.0.5)
7
7
  i18n
@@ -10,12 +10,12 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (3.2.11)
13
+ activesupport (3.2.12)
14
14
  i18n (~> 0.6)
15
15
  multi_json (~> 1.0)
16
16
  coderay (1.0.6)
17
17
  elibri_onix_dict (0.0.22)
18
- i18n (0.6.1)
18
+ i18n (0.6.4)
19
19
  json (1.7.6)
20
20
  json (1.7.6-java)
21
21
  metaclass (0.0.1)
@@ -23,8 +23,9 @@ GEM
23
23
  minitest (3.0.1)
24
24
  mocha (0.11.4)
25
25
  metaclass (~> 0.0.1)
26
- multi_json (1.5.0)
27
- nokogiri (1.5.6)
26
+ multi_json (1.7.3)
27
+ nokogiri (1.5.9)
28
+ nokogiri (1.5.9-java)
28
29
  pry (0.9.9.6)
29
30
  coderay (~> 1.0.5)
30
31
  method_source (~> 0.7.1)
@@ -18,7 +18,8 @@ module Elibri
18
18
  :deletion_text, :cover_type, :cover_price, :vat, :pkwiu, :product_composition,
19
19
  :publisher, :product_form, :no_contributor, :edition_statement, :number_of_illustrations, :publishing_status,
20
20
  :publishing_date, :premiere, :front_cover, :series_names, :city_of_publication,
21
- :elibri_product_category1_id, :elibri_product_category2_id, :preview_exists, :short_description, :sale_restricted_to_poland
21
+ :elibri_product_category1_id, :elibri_product_category2_id, :preview_exists, :short_description, :sale_restricted_to_poland,
22
+ :technical_protection_onix_code
22
23
  ]
23
24
 
24
25
  #:nodoc:
@@ -131,6 +132,7 @@ module Elibri
131
132
 
132
133
  #sposób zabezpieczania pliki (DRM, WATERMARK) - pliki dostępne w API transakcyjnym zawsze będą chronione watermarkiem
133
134
  attr_reader :technical_protection
135
+ attr_reader :technical_protection_onix_code
134
136
 
135
137
  #record reference - wewnętrzny identyfikator rekordu, niezmienny i unikatowy
136
138
  attr_reader :record_reference
@@ -173,6 +175,7 @@ module Elibri
173
175
  #miasto, w którym została wydana ksiażka
174
176
  attr_reader :city_of_publication
175
177
 
178
+
176
179
  #:nodoc:
177
180
  attr_reader :text_contents
178
181
  attr_reader :file_size
@@ -285,6 +288,7 @@ module Elibri
285
288
  #zabezpiecznie pliku
286
289
  if protection = data.at_xpath("xmlns:EpubTechnicalProtection").try(:text)
287
290
  @technical_protection = Elibri::ONIX::Dict::Release_3_0::EpubTechnicalProtection::find_by_onix_code(protection).name
291
+ @technical_protection_onix_code = protection
288
292
  end
289
293
 
290
294
  @edition_statement = data.at_xpath('xmlns:EditionStatement').try(:text)
@@ -2,7 +2,7 @@ module Elibri
2
2
  module ONIX
3
3
  z = $VERBOSE
4
4
  $VERBOSE = nil
5
- VERSION = "0.2.8"
5
+ VERSION = "0.2.9"
6
6
  Version = VERSION
7
7
  $VERBOSE = z
8
8
  end
@@ -8,5 +8,6 @@ describe Elibri::ONIX::Release_3_0::ONIXMessage do
8
8
  product = load_fixture("onix_epub_details_example.xml")
9
9
  assert_equal ["EPUB", "MOBI"], product.digital_formats
10
10
  assert_equal "DRM", product.technical_protection
11
+ assert_equal "01", product.technical_protection_onix_code
11
12
  end
12
13
  end
metadata CHANGED
@@ -1,141 +1,189 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.9
4
5
  prerelease:
5
- version: 0.2.8
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Marcin Urbanski
9
9
  - Piotr Szmielew
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2013-02-27 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2013-05-20 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
17
16
  name: activesupport
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
20
18
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
24
22
  version: 2.3.5
25
23
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: nokogiri
29
24
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 2.3.5
31
+ - !ruby/object:Gem::Dependency
32
+ name: nokogiri
33
+ requirement: !ruby/object:Gem::Requirement
31
34
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "0"
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
36
39
  type: :runtime
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: i18n
40
40
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: i18n
49
+ requirement: !ruby/object:Gem::Requirement
42
50
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  type: :runtime
48
- version_requirements: *id003
49
- - !ruby/object:Gem::Dependency
50
- name: elibri_onix_dict
51
56
  prerelease: false
52
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
53
58
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ - !ruby/object:Gem::Dependency
64
+ name: elibri_onix_dict
65
+ requirement: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
57
70
  version: 0.0.5
58
71
  type: :runtime
59
- version_requirements: *id004
60
- - !ruby/object:Gem::Dependency
61
- name: pry
62
72
  prerelease: false
63
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: 0.0.5
79
+ - !ruby/object:Gem::Dependency
80
+ name: pry
81
+ requirement: !ruby/object:Gem::Requirement
64
82
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
69
87
  type: :development
70
- version_requirements: *id005
71
- - !ruby/object:Gem::Dependency
72
- name: mocha
73
88
  prerelease: false
74
- requirement: &id006 !ruby/object:Gem::Requirement
89
+ version_requirements: !ruby/object:Gem::Requirement
75
90
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- version: "0"
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: mocha
97
+ requirement: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
80
103
  type: :development
81
- version_requirements: *id006
82
- - !ruby/object:Gem::Dependency
83
- name: minitest
84
104
  prerelease: false
85
- requirement: &id007 !ruby/object:Gem::Requirement
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest
113
+ requirement: !ruby/object:Gem::Requirement
86
114
  none: false
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: "0"
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
91
119
  type: :development
92
- version_requirements: *id007
93
- - !ruby/object:Gem::Dependency
94
- name: bundler
95
120
  prerelease: false
96
- requirement: &id008 !ruby/object:Gem::Requirement
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ - !ruby/object:Gem::Dependency
128
+ name: bundler
129
+ requirement: !ruby/object:Gem::Requirement
97
130
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
101
134
  version: 1.0.0
102
135
  type: :development
103
- version_requirements: *id008
104
- - !ruby/object:Gem::Dependency
105
- name: rake
106
136
  prerelease: false
107
- requirement: &id009 !ruby/object:Gem::Requirement
137
+ version_requirements: !ruby/object:Gem::Requirement
108
138
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: "0"
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: 1.0.0
143
+ - !ruby/object:Gem::Dependency
144
+ name: rake
145
+ requirement: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
113
151
  type: :development
114
- version_requirements: *id009
115
- - !ruby/object:Gem::Dependency
116
- name: rdoc
117
152
  prerelease: false
118
- requirement: &id010 !ruby/object:Gem::Requirement
153
+ version_requirements: !ruby/object:Gem::Requirement
119
154
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: "0"
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: rdoc
161
+ requirement: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
124
167
  type: :development
125
- version_requirements: *id010
126
- description: EDItEUR ONIX format subset implementation used in Elibri publication system
127
- email:
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ description: EDItEUR ONIX format subset implementation used in Elibri publication
176
+ system
177
+ email:
128
178
  - marcin@urbanski.vdl.pl
129
179
  - p.szmielew@ava.waw.pl
130
180
  executables: []
131
-
132
181
  extensions: []
133
-
134
- extra_rdoc_files:
182
+ extra_rdoc_files:
135
183
  - LICENSE.txt
136
184
  - README.rdoc
137
185
  - FIELDS.rdoc
138
- files:
186
+ files:
139
187
  - .gitignore
140
188
  - .travis.yml
141
189
  - FIELDS.rdoc
@@ -235,33 +283,31 @@ files:
235
283
  - test/fixtures/onix_unlimited_book_sample_example.xml
236
284
  - test/helper.rb
237
285
  homepage: http://github.com/elibri/elibri_onix
238
- licenses:
286
+ licenses:
239
287
  - MIT
240
288
  post_install_message:
241
289
  rdoc_options: []
242
-
243
- require_paths:
290
+ require_paths:
244
291
  - lib
245
- required_ruby_version: !ruby/object:Gem::Requirement
292
+ required_ruby_version: !ruby/object:Gem::Requirement
246
293
  none: false
247
- requirements:
248
- - - ">="
249
- - !ruby/object:Gem::Version
250
- version: "0"
251
- required_rubygems_version: !ruby/object:Gem::Requirement
294
+ requirements:
295
+ - - ! '>='
296
+ - !ruby/object:Gem::Version
297
+ version: '0'
298
+ required_rubygems_version: !ruby/object:Gem::Requirement
252
299
  none: false
253
- requirements:
254
- - - ">="
255
- - !ruby/object:Gem::Version
256
- version: "0"
300
+ requirements:
301
+ - - ! '>='
302
+ - !ruby/object:Gem::Version
303
+ version: '0'
257
304
  requirements: []
258
-
259
305
  rubyforge_project:
260
- rubygems_version: 1.8.23
306
+ rubygems_version: 1.8.25
261
307
  signing_key:
262
308
  specification_version: 3
263
309
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system
264
- test_files:
310
+ test_files:
265
311
  - test/elibri_audience_range_test.rb
266
312
  - test/elibri_categories_test.rb
267
313
  - test/elibri_contributors_test.rb