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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5c8453b903926852198173e7275c8cc4a2a8fe3
4
- data.tar.gz: 39d6bf09d94909bc40efbb8a03cca121b715ce57
3
+ metadata.gz: 796feee11988da990fd576f1154119f94a55191d
4
+ data.tar.gz: bbe0d7bcd4ae495e70889e562400bd7f646d2c41
5
5
  SHA512:
6
- metadata.gz: 0965c2bc0c3222f55666a57ab0d9e56c902f99233e8e7067f0c7ec90b03b5aa85ed44fddf27e8488414a31f951a80bf073b50882c47fc5b19d55c6ef8d90a8a3
7
- data.tar.gz: c0de7eaad558b2c07b8ea424d2cb99f28a427b8adb2232b45d6072a59d212b7ff1f87bd76746b333486b1a432f0acf13ce4cd8c0a59e504af4aca2ed35594937
6
+ metadata.gz: 55228955877be0130d97c7c1674b374787d87eb5ba11427fb7310ccc3ef9257dd93cf54e3307a4cafb4da843a5428b5a0c266a5a15ceb94bae55920931758680
7
+ data.tar.gz: bb55e8bf22e0b1436d29d768afb0cb2beb2933437da43168d9db1db09f2ba259a63f9f2875806b636ea48b60a4082ebed623222d57b61e1ba05f9256eeacdeaf
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
- --default-path spec/lib
1
+ --tag ~type:integration
2
2
  --color
3
3
  -fd
4
+
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.5
@@ -1,8 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
- - 2.0.0-p247
5
- - 2.1.2
4
+ - 2.0.0
5
+ - 2.1.5
6
6
  install: "bundle install --path vendor/bundle"
7
7
  cache:
8
8
  directories:
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- axiomus_api (0.5.2)
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.1.5)
13
- i18n (~> 0.6, >= 0.6.9)
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.1)
16
+ thread_safe (~> 0.3, >= 0.3.4)
17
17
  tzinfo (~> 1.1)
18
- barby (0.6.1)
19
- chunky_png (1.3.1)
20
- coveralls (0.7.1)
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.4.0)
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.6.11)
32
+ i18n (0.7.0)
33
33
  json (1.8.1)
34
- mime-types (2.3)
35
- mini_portile (0.6.0)
36
- minitest (5.4.0)
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
- netrc (0.7.7)
39
- nokogiri (1.6.3.1)
40
- mini_portile (= 0.6.0)
41
- rest-client (1.7.2)
42
- mime-types (>= 1.16, < 3.0)
43
- netrc (~> 0.7)
44
- rspec (3.0.0)
45
- rspec-core (~> 3.0.0)
46
- rspec-expectations (~> 3.0.0)
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.0.4)
51
- rspec-support (~> 3.0.0)
52
- rspec-expectations (3.0.4)
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.0.0)
55
- rspec-mocks (3.0.4)
56
- rspec-support (~> 3.0.0)
57
- rspec-support (3.0.4)
58
- simplecov (0.9.0)
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.3.0)
64
- tins (~> 1.0)
65
- thor (0.19.1)
61
+ term-ansicolor (1.2.2)
62
+ tins (~> 0.8)
63
+ thor (0.18.1)
66
64
  thread_safe (0.3.4)
67
- tins (1.3.2)
65
+ tins (0.13.2)
68
66
  tzinfo (1.2.2)
69
67
  thread_safe (~> 0.1)
70
68
 
@@ -1,3 +1,4 @@
1
+ #coding: utf-8
1
2
  require 'nokogiri'
2
3
 
3
4
  module AxiomusApi::Serializable
@@ -55,7 +56,7 @@ module AxiomusApi::Serializable
55
56
  end
56
57
 
57
58
  def normalize_axiomus_xml(str)
58
- str.gsub(/&[^;]+;/, '')
59
+ str.gsub(/&[^;]+;/, '').gsub('×','x')
59
60
  end
60
61
 
61
62
  end
@@ -1,3 +1,3 @@
1
1
  module AxiomusApi
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
@@ -192,7 +192,7 @@ FactoryGirl.define do
192
192
  end
193
193
 
194
194
  factory :carry_order, class: AxiomusApi::CarryOrder, parent: :base_order do
195
- ignore do
195
+ transient do
196
196
  b_date_raw {Time.now + rand(5..10)*24*60*60}
197
197
  end
198
198
 
@@ -1,6 +1,6 @@
1
1
  require_relative '../../../spec_helper'
2
2
 
3
- describe AxiomusApi::Session do
3
+ describe AxiomusApi::Session, type: :integration do
4
4
  before(:all) do
5
5
  AxiomusApi.logger.level = Logger::INFO
6
6
  @session = AxiomusApi.test_session
@@ -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.0
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-08-27 00:00:00.000000000 Z
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.2.2
152
+ rubygems_version: 2.4.2
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: A wrapper for Axiomus API