elibri_connect 0.1.6 → 0.1.7

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.
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'acts_as_elibri_product'
2
3
  require 'elibri_api_client'
3
4
  require 'elibri_onix_mocks'
@@ -8,7 +9,7 @@ module Elibri
8
9
  module Connect
9
10
 
10
11
  class << self
11
- attr_accessor :login, :password, :api_version, :onix_dialect, :test_mode, :product_model
12
+ attr_accessor :login, :password, :api_version, :onix_dialect, :test_mode, :product_model, :tracing_object
12
13
  end
13
14
 
14
15
  def self.setup(&block)
@@ -31,7 +32,7 @@ module Elibri
31
32
  api.refill_all_queues! if refill_queue
32
33
  while (queue = api.pending_queues.find { |q| q.name == 'meta' })
33
34
  response = api.pop_from_queue('meta', :count => 25)
34
- (self.product_model).to_s.capitalize.constantize.batch_create_or_update_from_elibri(response.onix)
35
+ (self.product_model).to_s.capitalize.constantize.batch_create_or_update_from_elibri(response.onix, self.tracing_object)
35
36
  end
36
37
  end
37
38
  end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'elibri_connect'
2
3
  require 'rails'
3
4
  module ElibriConnect
@@ -8,4 +9,4 @@ module ElibriConnect
8
9
  load "tasks/elibri_connect_tasks.rake"
9
10
  end
10
11
  end
11
- end
12
+ end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module ElibriConnect
2
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
3
4
  end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Elibri
2
3
  module Connect
3
4
  class ConfigGenerator < Rails::Generators::Base
@@ -14,4 +15,4 @@ module Elibri
14
15
  end
15
16
  end
16
17
  end
17
- end
18
+ end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'rails/generators'
2
3
  require 'rails/generators/migration'
3
4
 
@@ -124,4 +125,4 @@ module Elibri
124
125
 
125
126
  end
126
127
  end
127
- end
128
+ end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class CreateElibriStructure < ActiveRecord::Migration
2
3
 
3
4
  def change
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Elibri
2
3
  module Connect
3
4
  class InstallGenerator < Rails::Generators::Base
@@ -11,4 +12,4 @@ module Elibri
11
12
  end
12
13
  end
13
14
  end
14
- end
15
+ end
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Elibri
2
3
  module Connect
3
4
  class WheneverGenerator < Rails::Generators::Base
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: elibri_connect
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.6
5
+ version: 0.1.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Piotr Szmielew
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2013-04-21 00:00:00 Z
13
+ date: 2013-07-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- hash: -1455588321850379931
140
+ hash: -838676818903132862
141
141
  segments:
142
142
  - 0
143
143
  version: "0"
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- hash: -1455588321850379931
149
+ hash: -838676818903132862
150
150
  segments:
151
151
  - 0
152
152
  version: "0"