elibri_api_client 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -2
- data/Gemfile.lock +22 -20
- data/elibri_api_client.gemspec +8 -8
- data/lib/elibri_api_client.rb +3 -3
- data/lib/elibri_api_client/version.rb +1 -1
- data/test/elibri_api_v1_adapter_queue_pop_test.rb +16 -16
- metadata +11 -11
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -4,48 +4,50 @@ GEM
|
|
4
4
|
activesupport (3.1.1)
|
5
5
|
multi_json (~> 1.0)
|
6
6
|
coderay (0.9.8)
|
7
|
-
elibri_onix (0.1.
|
8
|
-
activesupport (>= 3.
|
7
|
+
elibri_onix (0.1.5)
|
8
|
+
activesupport (>= 2.3.5)
|
9
9
|
i18n
|
10
|
-
roxml (= 3.1.
|
10
|
+
roxml (= 3.1.3)
|
11
11
|
git (1.2.5)
|
12
12
|
httparty (0.8.1)
|
13
13
|
multi_json
|
14
14
|
multi_xml
|
15
15
|
i18n (0.6.0)
|
16
|
-
jeweler (1.6.
|
16
|
+
jeweler (1.6.4)
|
17
17
|
bundler (~> 1.0)
|
18
18
|
git (>= 1.2.5)
|
19
19
|
rake
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
metaclass (0.0.1)
|
21
|
+
method_source (0.6.6)
|
22
|
+
ruby_parser (~> 2.0.5)
|
23
|
+
minitest (2.6.1)
|
24
|
+
mocha (0.10.0)
|
25
|
+
metaclass (~> 0.0.1)
|
24
26
|
multi_json (1.0.3)
|
25
27
|
multi_xml (0.4.1)
|
26
28
|
nokogiri (1.5.0)
|
27
|
-
pry (0.9.6)
|
28
|
-
coderay (
|
29
|
-
method_source (
|
30
|
-
ruby_parser (
|
29
|
+
pry (0.9.6.2)
|
30
|
+
coderay (~> 0.9.8)
|
31
|
+
method_source (~> 0.6.5)
|
32
|
+
ruby_parser (~> 2.0.5)
|
31
33
|
slop (~> 2.1.0)
|
32
|
-
rake (0.9.
|
33
|
-
rcov (0.9.
|
34
|
-
roxml (3.1.
|
35
|
-
activesupport (>= 2.
|
34
|
+
rake (0.9.2)
|
35
|
+
rcov (0.9.11)
|
36
|
+
roxml (3.1.3)
|
37
|
+
activesupport (>= 2.1.0)
|
36
38
|
nokogiri (>= 1.3.3)
|
37
|
-
ruby_parser (2.
|
39
|
+
ruby_parser (2.0.6)
|
38
40
|
sexp_processor (~> 3.0)
|
39
|
-
sexp_processor (3.0.
|
41
|
+
sexp_processor (3.0.7)
|
40
42
|
slop (2.1.0)
|
41
43
|
|
42
44
|
PLATFORMS
|
43
45
|
ruby
|
44
46
|
|
45
47
|
DEPENDENCIES
|
46
|
-
activesupport (>= 3.
|
48
|
+
activesupport (>= 2.3.5)
|
47
49
|
bundler (~> 1.0.0)
|
48
|
-
elibri_onix (>= 0.1.
|
50
|
+
elibri_onix (>= 0.1.5)
|
49
51
|
httparty (= 0.8.1)
|
50
52
|
jeweler (~> 1.6.2)
|
51
53
|
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.5"
|
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-10-
|
12
|
+
s.date = %q{2011-10-18}
|
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 = [
|
@@ -50,8 +50,8 @@ Gem::Specification.new do |s|
|
|
50
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
51
51
|
s.add_runtime_dependency(%q<httparty>, ["= 0.8.1"])
|
52
52
|
s.add_runtime_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
53
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 3.
|
54
|
-
s.add_runtime_dependency(%q<elibri_onix>, [">= 0.1.
|
53
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.5"])
|
54
|
+
s.add_runtime_dependency(%q<elibri_onix>, [">= 0.1.5"])
|
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"])
|
@@ -61,8 +61,8 @@ Gem::Specification.new do |s|
|
|
61
61
|
else
|
62
62
|
s.add_dependency(%q<httparty>, ["= 0.8.1"])
|
63
63
|
s.add_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
64
|
-
s.add_dependency(%q<activesupport>, [">= 3.
|
65
|
-
s.add_dependency(%q<elibri_onix>, [">= 0.1.
|
64
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
65
|
+
s.add_dependency(%q<elibri_onix>, [">= 0.1.5"])
|
66
66
|
s.add_dependency(%q<pry>, [">= 0"])
|
67
67
|
s.add_dependency(%q<mocha>, [">= 0"])
|
68
68
|
s.add_dependency(%q<minitest>, [">= 0"])
|
@@ -73,8 +73,8 @@ Gem::Specification.new do |s|
|
|
73
73
|
else
|
74
74
|
s.add_dependency(%q<httparty>, ["= 0.8.1"])
|
75
75
|
s.add_dependency(%q<nokogiri>, ["~> 1.5.0"])
|
76
|
-
s.add_dependency(%q<activesupport>, [">= 3.
|
77
|
-
s.add_dependency(%q<elibri_onix>, [">= 0.1.
|
76
|
+
s.add_dependency(%q<activesupport>, [">= 2.3.5"])
|
77
|
+
s.add_dependency(%q<elibri_onix>, [">= 0.1.5"])
|
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
@@ -4,9 +4,9 @@ require 'httparty'
|
|
4
4
|
require 'nokogiri'
|
5
5
|
require 'elibri_onix'
|
6
6
|
require 'forwardable'
|
7
|
-
require 'active_support/core_ext/object/blank'
|
8
|
-
require 'active_support/core_ext/hash/keys'
|
9
|
-
require 'active_support/core_ext/string/strip'
|
7
|
+
# require 'active_support/core_ext/object/blank'
|
8
|
+
# require 'active_support/core_ext/hash/keys'
|
9
|
+
# require 'active_support/core_ext/string/strip'
|
10
10
|
require 'elibri_api_client/core_extensions'
|
11
11
|
require 'elibri_api_client/version'
|
12
12
|
require 'elibri_api_client/api_adapters'
|
@@ -5,22 +5,22 @@ require 'helper'
|
|
5
5
|
describe Elibri::ApiClient::ApiAdapters::V1::QueuePop do
|
6
6
|
|
7
7
|
before do
|
8
|
-
@xml = <<-XML
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
8
|
+
@xml = <<-XML
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<ONIXMessage release="3.0" xmlns:elibri="http://elibri.com.pl/ns/extensions" xmlns="http://www.editeur.org/onix/3.0/reference">
|
11
|
+
<elibri:Dialect>3.0.1</elibri:Dialect>
|
12
|
+
<Header>
|
13
|
+
<Sender>
|
14
|
+
<SenderName>Elibri.com.pl</SenderName>
|
15
|
+
<ContactName>Tomasz Meka</ContactName>
|
16
|
+
<EmailAddress>kontakt@elibri.com.pl</EmailAddress>
|
17
|
+
</Sender>
|
18
|
+
<SentDateTime>20111009</SentDateTime>
|
19
|
+
</Header>
|
20
|
+
<Product>
|
21
|
+
<RecordReference>fdb8fa072be774d97a97</RecordReference>
|
22
|
+
</Product>
|
23
|
+
</ONIXMessage>
|
24
24
|
XML
|
25
25
|
end
|
26
26
|
|
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 5
|
10
|
+
version: 1.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Marcin Urba\xC5\x84ski"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-18 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -57,12 +57,12 @@ dependencies:
|
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
hash:
|
60
|
+
hash: 9
|
61
61
|
segments:
|
62
|
+
- 2
|
62
63
|
- 3
|
63
|
-
-
|
64
|
-
|
65
|
-
version: 3.1.0
|
64
|
+
- 5
|
65
|
+
version: 2.3.5
|
66
66
|
name: activesupport
|
67
67
|
version_requirements: *id003
|
68
68
|
prerelease: false
|
@@ -73,12 +73,12 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
hash:
|
76
|
+
hash: 17
|
77
77
|
segments:
|
78
78
|
- 0
|
79
79
|
- 1
|
80
|
-
-
|
81
|
-
version: 0.1.
|
80
|
+
- 5
|
81
|
+
version: 0.1.5
|
82
82
|
name: elibri_onix
|
83
83
|
version_requirements: *id004
|
84
84
|
prerelease: false
|