elibri_api_client 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -2
- data/elibri_api_client.gemspec +6 -6
- data/lib/elibri_api_client.rb +1 -1
- data/lib/elibri_api_client/api_adapters/v1_helpers.rb +6 -0
- data/lib/elibri_api_client/version.rb +1 -1
- metadata +48 -48
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -4,10 +4,12 @@ GEM
|
|
4
4
|
activesupport (3.1.1)
|
5
5
|
multi_json (~> 1.0)
|
6
6
|
coderay (0.9.8)
|
7
|
-
elibri_onix (0.1.
|
7
|
+
elibri_onix (0.1.8)
|
8
8
|
activesupport (>= 2.3.5)
|
9
|
+
elibri_onix_dict (= 0.0.5)
|
9
10
|
i18n
|
10
11
|
roxml (= 3.1.3)
|
12
|
+
elibri_onix_dict (0.0.5)
|
11
13
|
git (1.2.5)
|
12
14
|
httparty (0.8.1)
|
13
15
|
multi_json
|
@@ -47,7 +49,7 @@ PLATFORMS
|
|
47
49
|
DEPENDENCIES
|
48
50
|
activesupport (>= 2.3.5)
|
49
51
|
bundler (~> 1.0.0)
|
50
|
-
elibri_onix (>= 0.1.
|
52
|
+
elibri_onix (>= 0.1.6)
|
51
53
|
httparty (= 0.8.1)
|
52
54
|
jeweler (~> 1.6.2)
|
53
55
|
minitest
|
data/elibri_api_client.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{elibri_api_client}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Marcin Urba\305\204ski"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-11-21}
|
13
13
|
s.description = %q{API client for elibri.com.pl publishing system}
|
14
14
|
s.email = %q{marcin@urbanski.vdl.pl}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
s.homepage = %q{http://github.com/elibri/elibri_api_client}
|
42
42
|
s.licenses = ["MIT"]
|
43
43
|
s.require_paths = ["lib"]
|
44
|
-
s.rubygems_version = %q{1.
|
44
|
+
s.rubygems_version = %q{1.5.2}
|
45
45
|
s.summary = %q{API client for elibri.com.pl publishing system}
|
46
46
|
|
47
47
|
if s.respond_to? :specification_version then
|
@@ -51,7 +51,7 @@ Gem::Specification.new do |s|
|
|
51
51
|
s.add_runtime_dependency(%q<httparty>, ["= 0.8.1"])
|
52
52
|
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
53
53
|
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.5"])
|
54
|
-
s.add_runtime_dependency(%q<elibri_onix>, [">= 0.1.
|
54
|
+
s.add_runtime_dependency(%q<elibri_onix>, [">= 0.1.6"])
|
55
55
|
s.add_development_dependency(%q<pry>, [">= 0"])
|
56
56
|
s.add_development_dependency(%q<mocha>, [">= 0"])
|
57
57
|
s.add_development_dependency(%q<minitest>, [">= 0"])
|
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.add_dependency(%q<httparty>, ["= 0.8.1"])
|
63
63
|
s.add_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
64
64
|
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
65
|
-
s.add_dependency(%q<elibri_onix>, [">= 0.1.
|
65
|
+
s.add_dependency(%q<elibri_onix>, [">= 0.1.6"])
|
66
66
|
s.add_dependency(%q<pry>, [">= 0"])
|
67
67
|
s.add_dependency(%q<mocha>, [">= 0"])
|
68
68
|
s.add_dependency(%q<minitest>, [">= 0"])
|
@@ -74,7 +74,7 @@ Gem::Specification.new do |s|
|
|
74
74
|
s.add_dependency(%q<httparty>, ["= 0.8.1"])
|
75
75
|
s.add_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
76
76
|
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
77
|
-
s.add_dependency(%q<elibri_onix>, [">= 0.1.
|
77
|
+
s.add_dependency(%q<elibri_onix>, [">= 0.1.6"])
|
78
78
|
s.add_dependency(%q<pry>, [">= 0"])
|
79
79
|
s.add_dependency(%q<mocha>, [">= 0"])
|
80
80
|
s.add_dependency(%q<minitest>, [">= 0"])
|
data/lib/elibri_api_client.rb
CHANGED
@@ -44,7 +44,7 @@ module Elibri
|
|
44
44
|
|
45
45
|
|
46
46
|
# Metody API delegujemy do odpowiedniego adaptera:
|
47
|
-
def_delegators :@api_adapter, :refill_all_queues!, :pending_data?, :pending_queues, :publishers, :last_pop_from_queue
|
47
|
+
def_delegators :@api_adapter, :refill_all_queues!, :pending_data?, :pending_queues, :publishers, :last_pop_from_queue, :pop_from_queue
|
48
48
|
|
49
49
|
end
|
50
50
|
end
|
@@ -108,6 +108,12 @@ module Elibri #:nodoc:
|
|
108
108
|
@onix = Elibri::ONIX::Release_3_0::ONIXMessage.from_xml(@xml) if @xml.present?
|
109
109
|
end
|
110
110
|
|
111
|
+
def inspect
|
112
|
+
attributes_as_nice_string = [:queue_name, :popped_products_count, :onix].collect { |name|
|
113
|
+
"#{name}: #{"#{self.send(name).to_s[0..50]}...".inspect}"
|
114
|
+
}.compact.join(", ")
|
115
|
+
"#<#{self.class} #{attributes_as_nice_string}>"
|
116
|
+
end
|
111
117
|
end
|
112
118
|
|
113
119
|
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 6
|
10
|
+
version: 1.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Marcin Urba\xC5\x84ski"
|
@@ -15,12 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-21 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
|
22
|
+
name: httparty
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
26
|
- - "="
|
@@ -31,12 +31,12 @@ dependencies:
|
|
31
31
|
- 8
|
32
32
|
- 1
|
33
33
|
version: 0.8.1
|
34
|
-
name: httparty
|
35
|
-
version_requirements: *id001
|
36
34
|
prerelease: false
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
35
|
type: :runtime
|
39
|
-
requirement:
|
36
|
+
requirement: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: nokogiri
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -47,12 +47,12 @@ dependencies:
|
|
47
47
|
- 5
|
48
48
|
- 0
|
49
49
|
version: 1.5.0
|
50
|
-
name: nokogiri
|
51
|
-
version_requirements: *id002
|
52
50
|
prerelease: false
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
51
|
type: :runtime
|
55
|
-
requirement:
|
52
|
+
requirement: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: activesupport
|
55
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
@@ -63,28 +63,28 @@ dependencies:
|
|
63
63
|
- 3
|
64
64
|
- 5
|
65
65
|
version: 2.3.5
|
66
|
-
name: activesupport
|
67
|
-
version_requirements: *id003
|
68
66
|
prerelease: false
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
67
|
type: :runtime
|
71
|
-
requirement:
|
68
|
+
requirement: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: elibri_onix
|
71
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
hash:
|
76
|
+
hash: 23
|
77
77
|
segments:
|
78
78
|
- 0
|
79
79
|
- 1
|
80
|
-
-
|
81
|
-
version: 0.1.
|
82
|
-
name: elibri_onix
|
83
|
-
version_requirements: *id004
|
80
|
+
- 6
|
81
|
+
version: 0.1.6
|
84
82
|
prerelease: false
|
83
|
+
type: :runtime
|
84
|
+
requirement: *id004
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
|
-
|
87
|
-
|
86
|
+
name: pry
|
87
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
88
|
none: false
|
89
89
|
requirements:
|
90
90
|
- - ">="
|
@@ -93,12 +93,12 @@ dependencies:
|
|
93
93
|
segments:
|
94
94
|
- 0
|
95
95
|
version: "0"
|
96
|
-
name: pry
|
97
|
-
version_requirements: *id005
|
98
96
|
prerelease: false
|
99
|
-
- !ruby/object:Gem::Dependency
|
100
97
|
type: :development
|
101
|
-
requirement:
|
98
|
+
requirement: *id005
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: mocha
|
101
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
102
102
|
none: false
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
@@ -107,12 +107,12 @@ dependencies:
|
|
107
107
|
segments:
|
108
108
|
- 0
|
109
109
|
version: "0"
|
110
|
-
name: mocha
|
111
|
-
version_requirements: *id006
|
112
110
|
prerelease: false
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
111
|
type: :development
|
115
|
-
requirement:
|
112
|
+
requirement: *id006
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: minitest
|
115
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ">="
|
@@ -121,12 +121,12 @@ dependencies:
|
|
121
121
|
segments:
|
122
122
|
- 0
|
123
123
|
version: "0"
|
124
|
-
name: minitest
|
125
|
-
version_requirements: *id007
|
126
124
|
prerelease: false
|
127
|
-
- !ruby/object:Gem::Dependency
|
128
125
|
type: :development
|
129
|
-
requirement:
|
126
|
+
requirement: *id007
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: bundler
|
129
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
@@ -137,12 +137,12 @@ dependencies:
|
|
137
137
|
- 0
|
138
138
|
- 0
|
139
139
|
version: 1.0.0
|
140
|
-
name: bundler
|
141
|
-
version_requirements: *id008
|
142
140
|
prerelease: false
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
141
|
type: :development
|
145
|
-
requirement:
|
142
|
+
requirement: *id008
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: jeweler
|
145
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
146
146
|
none: false
|
147
147
|
requirements:
|
148
148
|
- - ~>
|
@@ -153,12 +153,12 @@ dependencies:
|
|
153
153
|
- 6
|
154
154
|
- 2
|
155
155
|
version: 1.6.2
|
156
|
-
name: jeweler
|
157
|
-
version_requirements: *id009
|
158
156
|
prerelease: false
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
157
|
type: :development
|
161
|
-
requirement:
|
158
|
+
requirement: *id009
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rcov
|
161
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
162
162
|
none: false
|
163
163
|
requirements:
|
164
164
|
- - ">="
|
@@ -167,9 +167,9 @@ dependencies:
|
|
167
167
|
segments:
|
168
168
|
- 0
|
169
169
|
version: "0"
|
170
|
-
name: rcov
|
171
|
-
version_requirements: *id010
|
172
170
|
prerelease: false
|
171
|
+
type: :development
|
172
|
+
requirement: *id010
|
173
173
|
description: API client for elibri.com.pl publishing system
|
174
174
|
email: marcin@urbanski.vdl.pl
|
175
175
|
executables: []
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
requirements: []
|
231
231
|
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 1.
|
233
|
+
rubygems_version: 1.5.2
|
234
234
|
signing_key:
|
235
235
|
specification_version: 3
|
236
236
|
summary: API client for elibri.com.pl publishing system
|