elibri_api_client 1.1.13 → 1.1.14
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -0
- data/elibri_api_client.gemspec +2 -0
- data/lib/elibri_api_client.rb +1 -1
- data/lib/elibri_api_client/api_adapters/v1.rb +5 -0
- data/lib/elibri_api_client/version.rb +1 -1
- metadata +15 -53
data/Gemfile.lock
CHANGED
@@ -29,6 +29,7 @@ GEM
|
|
29
29
|
bundler (~> 1.0)
|
30
30
|
git (>= 1.2.5)
|
31
31
|
rake
|
32
|
+
json (1.7.6)
|
32
33
|
metaclass (0.0.1)
|
33
34
|
method_source (0.7.1)
|
34
35
|
minitest (3.0.0)
|
@@ -47,6 +48,8 @@ GEM
|
|
47
48
|
slop (>= 2.4.4, < 3)
|
48
49
|
spoon (~> 0.0)
|
49
50
|
rake (0.9.2.2)
|
51
|
+
rdoc (3.12)
|
52
|
+
json (~> 1.4)
|
50
53
|
slop (2.4.4)
|
51
54
|
spoon (0.0.1)
|
52
55
|
|
@@ -61,3 +64,4 @@ DEPENDENCIES
|
|
61
64
|
minitest
|
62
65
|
mocha
|
63
66
|
pry
|
67
|
+
rdoc
|
data/elibri_api_client.gemspec
CHANGED
@@ -32,6 +32,8 @@ Gem::Specification.new do |gem|
|
|
32
32
|
gem.add_development_dependency "minitest", ">= 0"
|
33
33
|
gem.add_development_dependency "bundler"
|
34
34
|
gem.add_development_dependency "jeweler", "~> 1.6.2"
|
35
|
+
gem.add_development_dependency "rdoc"
|
36
|
+
|
35
37
|
# gem.add_development_dependency "rcov", ">= 0"
|
36
38
|
|
37
39
|
end
|
data/lib/elibri_api_client.rb
CHANGED
@@ -45,7 +45,7 @@ module Elibri
|
|
45
45
|
|
46
46
|
# Metody API delegujemy do odpowiedniego adaptera:
|
47
47
|
def_delegators :@api_adapter, :refill_all_queues!, :pending_data?, :pending_queues, :publishers, :last_pop_from_queue, :pop_from_queue,
|
48
|
-
:remove_from_queue, :onix_xml_for_product, :get_product
|
48
|
+
:remove_from_queue, :onix_xml_for_product, :get_product, :add_to_queue
|
49
49
|
|
50
50
|
end
|
51
51
|
end
|
@@ -78,6 +78,11 @@ module Elibri
|
|
78
78
|
return true
|
79
79
|
end
|
80
80
|
|
81
|
+
def add_to_queue(queue_name, record_reference)
|
82
|
+
resp = post "/queues/#{queue_name}/add/#{record_reference}", :body => ' '
|
83
|
+
return true
|
84
|
+
end
|
85
|
+
|
81
86
|
# params moze przyjac {:testing => 1, :count => 100, :offset => 100 (tylko przy testing=1)}
|
82
87
|
def pop_from_queue(queue_name, params = {})
|
83
88
|
params[:testing] = 1 if params[:testing]
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibri_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 9
|
5
4
|
prerelease:
|
6
|
-
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 13
|
10
|
-
version: 1.1.13
|
5
|
+
version: 1.1.14
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- "Marcin Urba\xC5\x84ski"
|
@@ -15,8 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-12-19 00:00:00
|
19
|
-
default_executable:
|
13
|
+
date: 2011-12-19 00:00:00 Z
|
20
14
|
dependencies:
|
21
15
|
- !ruby/object:Gem::Dependency
|
22
16
|
name: httparty
|
@@ -26,11 +20,6 @@ dependencies:
|
|
26
20
|
requirements:
|
27
21
|
- - ">="
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 61
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 8
|
33
|
-
- 1
|
34
23
|
version: 0.8.1
|
35
24
|
type: :runtime
|
36
25
|
version_requirements: *id001
|
@@ -42,11 +31,6 @@ dependencies:
|
|
42
31
|
requirements:
|
43
32
|
- - ~>
|
44
33
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 3
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 5
|
49
|
-
- 0
|
50
34
|
version: 1.5.0
|
51
35
|
type: :runtime
|
52
36
|
version_requirements: *id002
|
@@ -58,11 +42,6 @@ dependencies:
|
|
58
42
|
requirements:
|
59
43
|
- - ">="
|
60
44
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 9
|
62
|
-
segments:
|
63
|
-
- 2
|
64
|
-
- 3
|
65
|
-
- 5
|
66
45
|
version: 2.3.5
|
67
46
|
type: :runtime
|
68
47
|
version_requirements: *id003
|
@@ -74,11 +53,6 @@ dependencies:
|
|
74
53
|
requirements:
|
75
54
|
- - ">="
|
76
55
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 13
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
- 1
|
81
|
-
- 11
|
82
56
|
version: 0.1.11
|
83
57
|
type: :runtime
|
84
58
|
version_requirements: *id004
|
@@ -90,9 +64,6 @@ dependencies:
|
|
90
64
|
requirements:
|
91
65
|
- - ">="
|
92
66
|
- !ruby/object:Gem::Version
|
93
|
-
hash: 3
|
94
|
-
segments:
|
95
|
-
- 0
|
96
67
|
version: "0"
|
97
68
|
type: :development
|
98
69
|
version_requirements: *id005
|
@@ -104,9 +75,6 @@ dependencies:
|
|
104
75
|
requirements:
|
105
76
|
- - ">="
|
106
77
|
- !ruby/object:Gem::Version
|
107
|
-
hash: 3
|
108
|
-
segments:
|
109
|
-
- 0
|
110
78
|
version: "0"
|
111
79
|
type: :development
|
112
80
|
version_requirements: *id006
|
@@ -118,9 +86,6 @@ dependencies:
|
|
118
86
|
requirements:
|
119
87
|
- - ">="
|
120
88
|
- !ruby/object:Gem::Version
|
121
|
-
hash: 3
|
122
|
-
segments:
|
123
|
-
- 0
|
124
89
|
version: "0"
|
125
90
|
type: :development
|
126
91
|
version_requirements: *id007
|
@@ -132,9 +97,6 @@ dependencies:
|
|
132
97
|
requirements:
|
133
98
|
- - ">="
|
134
99
|
- !ruby/object:Gem::Version
|
135
|
-
hash: 3
|
136
|
-
segments:
|
137
|
-
- 0
|
138
100
|
version: "0"
|
139
101
|
type: :development
|
140
102
|
version_requirements: *id008
|
@@ -146,14 +108,20 @@ dependencies:
|
|
146
108
|
requirements:
|
147
109
|
- - ~>
|
148
110
|
- !ruby/object:Gem::Version
|
149
|
-
hash: 11
|
150
|
-
segments:
|
151
|
-
- 1
|
152
|
-
- 6
|
153
|
-
- 2
|
154
111
|
version: 1.6.2
|
155
112
|
type: :development
|
156
113
|
version_requirements: *id009
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rdoc
|
116
|
+
prerelease: false
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
version_requirements: *id010
|
157
125
|
description: API client for elibri.com.pl publishing system
|
158
126
|
email:
|
159
127
|
- marcin@urbanski.vdl.pl
|
@@ -186,7 +154,6 @@ files:
|
|
186
154
|
- test/elibri_api_v1_adapter_queue_test.rb
|
187
155
|
- test/elibri_api_v1_adapter_test.rb
|
188
156
|
- test/helper.rb
|
189
|
-
has_rdoc: true
|
190
157
|
homepage: http://github.com/elibri/elibri_api_client
|
191
158
|
licenses:
|
192
159
|
- MIT
|
@@ -200,23 +167,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
167
|
requirements:
|
201
168
|
- - ">="
|
202
169
|
- !ruby/object:Gem::Version
|
203
|
-
hash: 3
|
204
|
-
segments:
|
205
|
-
- 0
|
206
170
|
version: "0"
|
207
171
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
172
|
none: false
|
209
173
|
requirements:
|
210
174
|
- - ">="
|
211
175
|
- !ruby/object:Gem::Version
|
212
|
-
hash: 3
|
213
|
-
segments:
|
214
|
-
- 0
|
215
176
|
version: "0"
|
216
177
|
requirements: []
|
217
178
|
|
218
179
|
rubyforge_project:
|
219
|
-
rubygems_version: 1.
|
180
|
+
rubygems_version: 1.8.23
|
220
181
|
signing_key:
|
221
182
|
specification_version: 3
|
222
183
|
summary: API client for elibri.com.pl publishing system
|
@@ -228,3 +189,4 @@ test_files:
|
|
228
189
|
- test/elibri_api_v1_adapter_queue_test.rb
|
229
190
|
- test/elibri_api_v1_adapter_test.rb
|
230
191
|
- test/helper.rb
|
192
|
+
has_rdoc:
|