axiomus_api 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/.rspec +2 -1
- data/.ruby-version +1 -1
- data/.travis.yml +2 -2
- data/Gemfile.lock +37 -39
- data/lib/axiomus_api/serializable.rb +2 -1
- data/lib/axiomus_api/version.rb +1 -1
- data/spec/factories.rb +1 -1
- data/spec/integration/lib/axiomus_api/session_spec.rb +1 -1
- data/spec/lib/axiomus_api/serializable_spec.rb +13 -8
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 796feee11988da990fd576f1154119f94a55191d
|
4
|
+
data.tar.gz: bbe0d7bcd4ae495e70889e562400bd7f646d2c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55228955877be0130d97c7c1674b374787d87eb5ba11427fb7310ccc3ef9257dd93cf54e3307a4cafb4da843a5428b5a0c266a5a15ceb94bae55920931758680
|
7
|
+
data.tar.gz: bb55e8bf22e0b1436d29d768afb0cb2beb2933437da43168d9db1db09f2ba259a63f9f2875806b636ea48b60a4082ebed623222d57b61e1ba05f9256eeacdeaf
|
data/.rspec
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.5
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
axiomus_api (0.
|
4
|
+
axiomus_api (0.6.1)
|
5
5
|
barby (~> 0.5)
|
6
6
|
chunky_png (~> 1.3)
|
7
7
|
nokogiri (~> 1.6)
|
@@ -9,62 +9,60 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (4.
|
13
|
-
i18n (~> 0.
|
12
|
+
activesupport (4.2.0)
|
13
|
+
i18n (~> 0.7)
|
14
14
|
json (~> 1.7, >= 1.7.7)
|
15
15
|
minitest (~> 5.1)
|
16
|
-
thread_safe (~> 0.
|
16
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
17
17
|
tzinfo (~> 1.1)
|
18
|
-
barby (0.6.
|
19
|
-
chunky_png (1.3.
|
20
|
-
coveralls (0.7.
|
18
|
+
barby (0.6.2)
|
19
|
+
chunky_png (1.3.3)
|
20
|
+
coveralls (0.7.2)
|
21
21
|
multi_json (~> 1.3)
|
22
|
-
rest-client
|
22
|
+
rest-client (= 1.6.7)
|
23
23
|
simplecov (>= 0.7)
|
24
|
-
term-ansicolor
|
25
|
-
thor
|
24
|
+
term-ansicolor (= 1.2.2)
|
25
|
+
thor (= 0.18.1)
|
26
26
|
diff-lcs (1.2.5)
|
27
27
|
docile (1.1.5)
|
28
|
-
factory_girl (4.
|
28
|
+
factory_girl (4.5.0)
|
29
29
|
activesupport (>= 3.0.0)
|
30
30
|
faker (1.4.3)
|
31
31
|
i18n (~> 0.5)
|
32
|
-
i18n (0.
|
32
|
+
i18n (0.7.0)
|
33
33
|
json (1.8.1)
|
34
|
-
mime-types (2.3)
|
35
|
-
mini_portile (0.6.
|
36
|
-
minitest (5.
|
34
|
+
mime-types (2.4.3)
|
35
|
+
mini_portile (0.6.1)
|
36
|
+
minitest (5.5.0)
|
37
37
|
multi_json (1.10.1)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
rspec-
|
46
|
-
|
47
|
-
rspec-mocks (~> 3.0.0)
|
48
|
-
rspec-collection_matchers (1.0.0)
|
38
|
+
nokogiri (1.6.5)
|
39
|
+
mini_portile (~> 0.6.0)
|
40
|
+
rest-client (1.6.7)
|
41
|
+
mime-types (>= 1.16)
|
42
|
+
rspec (3.1.0)
|
43
|
+
rspec-core (~> 3.1.0)
|
44
|
+
rspec-expectations (~> 3.1.0)
|
45
|
+
rspec-mocks (~> 3.1.0)
|
46
|
+
rspec-collection_matchers (1.1.2)
|
49
47
|
rspec-expectations (>= 2.99.0.beta1)
|
50
|
-
rspec-core (3.
|
51
|
-
rspec-support (~> 3.
|
52
|
-
rspec-expectations (3.
|
48
|
+
rspec-core (3.1.7)
|
49
|
+
rspec-support (~> 3.1.0)
|
50
|
+
rspec-expectations (3.1.2)
|
53
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
-
rspec-support (~> 3.
|
55
|
-
rspec-mocks (3.
|
56
|
-
rspec-support (~> 3.
|
57
|
-
rspec-support (3.
|
58
|
-
simplecov (0.9.
|
52
|
+
rspec-support (~> 3.1.0)
|
53
|
+
rspec-mocks (3.1.3)
|
54
|
+
rspec-support (~> 3.1.0)
|
55
|
+
rspec-support (3.1.2)
|
56
|
+
simplecov (0.9.1)
|
59
57
|
docile (~> 1.1.0)
|
60
|
-
multi_json
|
58
|
+
multi_json (~> 1.0)
|
61
59
|
simplecov-html (~> 0.8.0)
|
62
60
|
simplecov-html (0.8.0)
|
63
|
-
term-ansicolor (1.
|
64
|
-
tins (~>
|
65
|
-
thor (0.
|
61
|
+
term-ansicolor (1.2.2)
|
62
|
+
tins (~> 0.8)
|
63
|
+
thor (0.18.1)
|
66
64
|
thread_safe (0.3.4)
|
67
|
-
tins (
|
65
|
+
tins (0.13.2)
|
68
66
|
tzinfo (1.2.2)
|
69
67
|
thread_safe (~> 0.1)
|
70
68
|
|
data/lib/axiomus_api/version.rb
CHANGED
data/spec/factories.rb
CHANGED
@@ -1,22 +1,27 @@
|
|
1
|
+
#coding: utf-8
|
1
2
|
require_relative '../../spec_helper'
|
2
3
|
|
3
4
|
describe AxiomusApi::Serializable do
|
5
|
+
class Node < AxiomusApi::Base
|
6
|
+
xml_element :node
|
7
|
+
xml_field :value, xml_type: :text
|
8
|
+
xml_attribute :id
|
9
|
+
end
|
4
10
|
|
5
|
-
it 'should serialize value as text node' do
|
6
|
-
|
7
|
-
class Node < AxiomusApi::Base
|
8
|
-
xml_element :node
|
9
|
-
xml_field :value, xml_type: :text
|
10
|
-
xml_attribute :id
|
11
|
-
end
|
12
11
|
|
12
|
+
it 'should serialize value as text node' do
|
13
13
|
n = Node.new
|
14
14
|
n.id = 1
|
15
15
|
n.value = 'Some value'
|
16
16
|
|
17
17
|
expect(n.to_xml()).to eq('<node id="1">Some value</node>')
|
18
|
-
|
19
18
|
end
|
20
19
|
|
20
|
+
it 'sanitizes output xml' do
|
21
|
+
n = Node.new
|
22
|
+
n.id = 1
|
23
|
+
n.value = '12×13'
|
21
24
|
|
25
|
+
expect(n.to_xml()).to eq('<node id="1">12x13</node>')
|
26
|
+
end
|
22
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: axiomus_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kinderly LTD
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.4.2
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: A wrapper for Axiomus API
|