elibri_api_client 1.1.11 → 1.1.12

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- elibri_api_client (1.1.8)
4
+ elibri_api_client (1.1.11)
5
5
  activesupport (>= 2.3.5)
6
6
  elibri_onix (>= 0.1.11)
7
- httparty (= 0.8.1)
7
+ httparty (>= 0.8.1)
8
8
  nokogiri (~> 1.5.0)
9
9
 
10
10
  GEM
@@ -14,17 +14,17 @@ GEM
14
14
  i18n (~> 0.6)
15
15
  multi_json (~> 1.0)
16
16
  coderay (1.0.6)
17
- elibri_onix (0.1.17)
17
+ elibri_onix (0.2.1)
18
18
  activesupport (>= 2.3.5)
19
19
  elibri_onix_dict (>= 0.0.5)
20
20
  i18n
21
- roxml (= 3.1.3)
22
- elibri_onix_dict (0.0.13)
21
+ nokogiri
22
+ elibri_onix_dict (0.0.19)
23
23
  git (1.2.5)
24
- httparty (0.8.1)
25
- multi_json
24
+ httparty (0.9.0)
25
+ multi_json (~> 1.0)
26
26
  multi_xml
27
- i18n (0.6.0)
27
+ i18n (0.6.1)
28
28
  jeweler (1.6.4)
29
29
  bundler (~> 1.0)
30
30
  git (>= 1.2.5)
@@ -34,10 +34,9 @@ GEM
34
34
  minitest (3.0.0)
35
35
  mocha (0.11.4)
36
36
  metaclass (~> 0.0.1)
37
- multi_json (1.3.4)
37
+ multi_json (1.3.6)
38
38
  multi_xml (0.5.1)
39
- nokogiri (1.5.2)
40
- nokogiri (1.5.2-java)
39
+ nokogiri (1.5.5)
41
40
  pry (0.9.9.6)
42
41
  coderay (~> 1.0.5)
43
42
  method_source (~> 0.7.1)
@@ -48,9 +47,6 @@ GEM
48
47
  slop (>= 2.4.4, < 3)
49
48
  spoon (~> 0.0)
50
49
  rake (0.9.2.2)
51
- roxml (3.1.3)
52
- activesupport (>= 2.1.0)
53
- nokogiri (>= 1.3.3)
54
50
  slop (2.4.4)
55
51
  spoon (0.0.1)
56
52
 
@@ -122,9 +122,13 @@ module Elibri
122
122
 
123
123
 
124
124
  # Zwroc ONIX dla konkretnego produktu.
125
- def onix_xml_for_product(product) #:nodoc:
126
- raise 'Need a Elibri::ApiClient::ApiAdapters::V1::Product instance' unless product.kind_of? Elibri::ApiClient::ApiAdapters::V1::Product
127
- resp = get "/products/#{product.record_reference}", :headers => {"X-eLibri-API-ONIX-dialect" => @onix_dialect}
125
+ def onix_xml_for_product(product_or_rr) #:nodoc:
126
+ if product_or_rr.kind_of? Elibri::ApiClient::ApiAdapters::V1::Product
127
+ rr = product_or_rr.record_reference
128
+ else
129
+ rr = product_or_rr
130
+ end
131
+ resp = get "/products/#{rr}", :headers => {"X-eLibri-API-ONIX-dialect" => @onix_dialect}
128
132
  resp.parsed_response.css('Product').first
129
133
  end
130
134
 
@@ -1,6 +1,6 @@
1
1
  module Elibri
2
2
  class ApiClient
3
- VERSION = "1.1.11"
3
+ VERSION = "1.1.12"
4
4
  Version = VERSION
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elibri_api_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 11
10
- version: 1.1.11
9
+ - 12
10
+ version: 1.1.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Marcin Urba\xC5\x84ski"