elibri_onix_mocks 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,7 @@ module Elibri
56
56
  :ean => nil,
57
57
  :isbn_value => '9788324799992',
58
58
  :record_reference => "fdb8fa072be774d97a97",
59
+ :publisher => stub("Pulisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa")
59
60
  }
60
61
  attributes = defaults.merge(attributes).merge(options)
61
62
  stub_everything("basic_product", attributes).extend(OnixHelpers::InstanceMethods)
@@ -204,6 +205,7 @@ module Elibri
204
205
  :ean => '9788324788882',
205
206
  :isbn_value => '9788324799992',
206
207
  :public? => true,
208
+ :publisher => stub("Publisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa"),
207
209
  :product_availabilities => [
208
210
  stub('ProductAvailability', :supplier_identifier => '355006',
209
211
  :product_availability_onix_code => Elibri::ONIX::Dict::Release_3_0::ProductAvailabilityType::IN_STOCK,
@@ -229,7 +231,8 @@ module Elibri
229
231
  :cover_type_id => Elibri::XmlMocks::PAPERBACK,
230
232
  :state => "published",
231
233
  :public? => true,
232
- :product_availabilities => []
234
+ :product_availabilities => [],
235
+ :publisher => stub("Publisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa")
233
236
  }
234
237
  attributes = defaults.merge(attributes).merge(options)
235
238
  stub_everything("onix_product_form_example", attributes).extend(OnixHelpers::InstanceMethods)
@@ -247,7 +250,8 @@ module Elibri
247
250
  :product_form_detail_onix_code => Elibri::ONIX::Dict::Release_3_0::ProductFormDetail::EPUB,
248
251
  :state => "published",
249
252
  :public? => true,
250
- :product_availabilities => []
253
+ :product_availabilities => [],
254
+ :publisher => stub("Publisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa")
251
255
  }
252
256
  attributes = defaults.merge(attributes).merge(options)
253
257
  stub_everything("onix_epub_details_example", attributes).extend(OnixHelpers::InstanceMethods)
@@ -255,6 +259,9 @@ module Elibri
255
259
 
256
260
  def onix_languages_example(options = {})
257
261
  attributes = {
262
+ :publisher => stub("Publisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa"),
263
+ :product_form_onix_code => Elibri::ONIX::Dict::Release_3_0::ProductFormCode::BOOK,
264
+ :record_reference => "fdb8fa072be774d97a97",
258
265
  :languages => [
259
266
  stub('Language', :language_onix_code => 'pol', :role_onix_code => Elibri::ONIX::Dict::Release_3_0::LanguageRole::LANGUAGE_OF_TEXT),
260
267
  stub('Language', :language_onix_code => 'eng', :role_onix_code => Elibri::ONIX::Dict::Release_3_0::LanguageRole::LANGUAGE_OF_ABSTRACTS)
@@ -278,7 +285,8 @@ module Elibri
278
285
  :weight => 90,
279
286
  :map_scale => 50_000,
280
287
  :state => "published",
281
- :public? => true
288
+ :public? => true,
289
+ :publisher => stub("Publisher", :id => 10, :name => "Wydawnictwo Nowe", :city => "Warszawa")
282
290
  }
283
291
  attributes = defaults.merge(attributes).merge(options)
284
292
  stub_everything("onix_measurement_example", attributes).extend(OnixHelpers::InstanceMethods)
@@ -1,3 +1,3 @@
1
1
  module ElibriOnixMocks
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: elibri_onix_mocks
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.9
5
+ version: 0.1.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Piotr Szmielew