elibri_onix 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
data/elibri_onix.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{elibri_onix}
8
- s.version = "0.1.13"
8
+ s.version = "0.1.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcin Urbanski"]
@@ -108,10 +108,11 @@ Gem::Specification.new do |s|
108
108
  s.homepage = %q{http://github.com/elibri/elibri_onix}
109
109
  s.licenses = ["MIT"]
110
110
  s.require_paths = ["lib"]
111
- s.rubygems_version = %q{1.5.2}
111
+ s.rubygems_version = %q{1.3.7}
112
112
  s.summary = %q{EDItEUR ONIX format subset implementation used in Elibri publication system}
113
113
 
114
114
  if s.respond_to? :specification_version then
115
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
115
116
  s.specification_version = 3
116
117
 
117
118
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -10,7 +10,7 @@ module Elibri
10
10
  :file_size, :publisher_name, :publisher_id, :imprint_name, :current_state, :reading_age_from, :reading_age_to,
11
11
  :table_of_contents, :description, :reviews, :excerpts, :series, :title, :subtitle, :collection_title,
12
12
  :collection_part, :full_title, :original_title, :trade_title, :parsed_publishing_date,
13
- :elibri_product_category1_id, :elibri_product_category2_id
13
+ :elibri_product_category1_id, :elibri_product_category2_id, :preview_exists
14
14
 
15
15
 
16
16
  xml_name 'Product'
@@ -97,7 +97,7 @@ module Elibri
97
97
  end
98
98
 
99
99
  def preview_exists?
100
- preview_exists_from_3_0_1 == "true"
100
+ @preview_exists
101
101
  end
102
102
 
103
103
  def front_cover
@@ -193,6 +193,8 @@ module Elibri
193
193
 
194
194
  @elibri_product_category1_id = subjects[0].code if subjects[0]
195
195
  @elibri_product_category2_id = subjects[1].code if subjects[1]
196
+ @preview_exists = (preview_exists_from_3_0_1 == "true")
197
+
196
198
  compute_state!
197
199
  parse_publishing_date!
198
200
  end
@@ -4,7 +4,7 @@ module Elibri
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 13
7
+ PATCH = 14
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_onix
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 1
9
- - 13
10
- version: 0.1.13
8
+ - 14
9
+ version: 0.1.14
11
10
  platform: ruby
12
11
  authors:
13
12
  - Marcin Urbanski
@@ -19,155 +18,145 @@ date: 2012-05-01 00:00:00 +02:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
21
  name: activesupport
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - ">="
28
26
  - !ruby/object:Gem::Version
29
- hash: 9
30
27
  segments:
31
28
  - 2
32
29
  - 3
33
30
  - 5
34
31
  version: 2.3.5
32
+ type: :runtime
35
33
  prerelease: false
36
- requirement: *id001
34
+ version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
38
- type: :runtime
39
36
  name: roxml
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
+ requirement: &id002 !ruby/object:Gem::Requirement
41
38
  none: false
42
39
  requirements:
43
40
  - - "="
44
41
  - !ruby/object:Gem::Version
45
- hash: 5
46
42
  segments:
47
43
  - 3
48
44
  - 1
49
45
  - 3
50
46
  version: 3.1.3
47
+ type: :runtime
51
48
  prerelease: false
52
- requirement: *id002
49
+ version_requirements: *id002
53
50
  - !ruby/object:Gem::Dependency
54
- type: :runtime
55
51
  name: i18n
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ requirement: &id003 !ruby/object:Gem::Requirement
57
53
  none: false
58
54
  requirements:
59
55
  - - ">="
60
56
  - !ruby/object:Gem::Version
61
- hash: 3
62
57
  segments:
63
58
  - 0
64
59
  version: "0"
60
+ type: :runtime
65
61
  prerelease: false
66
- requirement: *id003
62
+ version_requirements: *id003
67
63
  - !ruby/object:Gem::Dependency
68
- type: :runtime
69
64
  name: elibri_onix_dict
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
65
+ requirement: &id004 !ruby/object:Gem::Requirement
71
66
  none: false
72
67
  requirements:
73
68
  - - ">="
74
69
  - !ruby/object:Gem::Version
75
- hash: 21
76
70
  segments:
77
71
  - 0
78
72
  - 0
79
73
  - 5
80
74
  version: 0.0.5
75
+ type: :runtime
81
76
  prerelease: false
82
- requirement: *id004
77
+ version_requirements: *id004
83
78
  - !ruby/object:Gem::Dependency
84
- type: :development
85
79
  name: pry
86
- version_requirements: &id005 !ruby/object:Gem::Requirement
80
+ requirement: &id005 !ruby/object:Gem::Requirement
87
81
  none: false
88
82
  requirements:
89
83
  - - ">="
90
84
  - !ruby/object:Gem::Version
91
- hash: 3
92
85
  segments:
93
86
  - 0
94
87
  version: "0"
88
+ type: :development
95
89
  prerelease: false
96
- requirement: *id005
90
+ version_requirements: *id005
97
91
  - !ruby/object:Gem::Dependency
98
- type: :development
99
92
  name: mocha
100
- version_requirements: &id006 !ruby/object:Gem::Requirement
93
+ requirement: &id006 !ruby/object:Gem::Requirement
101
94
  none: false
102
95
  requirements:
103
96
  - - ">="
104
97
  - !ruby/object:Gem::Version
105
- hash: 3
106
98
  segments:
107
99
  - 0
108
100
  version: "0"
101
+ type: :development
109
102
  prerelease: false
110
- requirement: *id006
103
+ version_requirements: *id006
111
104
  - !ruby/object:Gem::Dependency
112
- type: :development
113
105
  name: minitest
114
- version_requirements: &id007 !ruby/object:Gem::Requirement
106
+ requirement: &id007 !ruby/object:Gem::Requirement
115
107
  none: false
116
108
  requirements:
117
109
  - - ">="
118
110
  - !ruby/object:Gem::Version
119
- hash: 3
120
111
  segments:
121
112
  - 0
122
113
  version: "0"
114
+ type: :development
123
115
  prerelease: false
124
- requirement: *id007
116
+ version_requirements: *id007
125
117
  - !ruby/object:Gem::Dependency
126
- type: :development
127
118
  name: bundler
128
- version_requirements: &id008 !ruby/object:Gem::Requirement
119
+ requirement: &id008 !ruby/object:Gem::Requirement
129
120
  none: false
130
121
  requirements:
131
122
  - - ">="
132
123
  - !ruby/object:Gem::Version
133
- hash: 23
134
124
  segments:
135
125
  - 1
136
126
  - 0
137
127
  - 0
138
128
  version: 1.0.0
129
+ type: :development
139
130
  prerelease: false
140
- requirement: *id008
131
+ version_requirements: *id008
141
132
  - !ruby/object:Gem::Dependency
142
- type: :development
143
133
  name: jeweler
144
- version_requirements: &id009 !ruby/object:Gem::Requirement
134
+ requirement: &id009 !ruby/object:Gem::Requirement
145
135
  none: false
146
136
  requirements:
147
137
  - - ~>
148
138
  - !ruby/object:Gem::Version
149
- hash: 11
150
139
  segments:
151
140
  - 1
152
141
  - 6
153
142
  - 2
154
143
  version: 1.6.2
144
+ type: :development
155
145
  prerelease: false
156
- requirement: *id009
146
+ version_requirements: *id009
157
147
  - !ruby/object:Gem::Dependency
158
- type: :development
159
148
  name: rcov
160
- version_requirements: &id010 !ruby/object:Gem::Requirement
149
+ requirement: &id010 !ruby/object:Gem::Requirement
161
150
  none: false
162
151
  requirements:
163
152
  - - ">="
164
153
  - !ruby/object:Gem::Version
165
- hash: 3
166
154
  segments:
167
155
  - 0
168
156
  version: "0"
157
+ type: :development
169
158
  prerelease: false
170
- requirement: *id010
159
+ version_requirements: *id010
171
160
  description: EDItEUR ONIX format subset implementation used in Elibri publication system
172
161
  email: marcin@urbanski.vdl.pl
173
162
  executables: []
@@ -279,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
268
  requirements:
280
269
  - - ">="
281
270
  - !ruby/object:Gem::Version
282
- hash: 3
271
+ hash: -2288067873846727855
283
272
  segments:
284
273
  - 0
285
274
  version: "0"
@@ -288,14 +277,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
277
  requirements:
289
278
  - - ">="
290
279
  - !ruby/object:Gem::Version
291
- hash: 3
292
280
  segments:
293
281
  - 0
294
282
  version: "0"
295
283
  requirements: []
296
284
 
297
285
  rubyforge_project:
298
- rubygems_version: 1.5.2
286
+ rubygems_version: 1.3.7
299
287
  signing_key:
300
288
  specification_version: 3
301
289
  summary: EDItEUR ONIX format subset implementation used in Elibri publication system