xmlenc 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xmlenc/builder/base.rb +6 -6
- data/lib/xmlenc/version.rb +1 -1
- data/xmlenc.gemspec +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08accbcb8b82b64c4a4dfc285613f8f446b8b80d
|
4
|
+
data.tar.gz: 5d0f1731f648ce8d1dd5323c873133493d7e6da3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e30230bb3c33a3f130cfa1ae6034bc83049d975aa8f38b3c9735de06040e4ada1977bd46e28c5231c8f1c9814d3a0e4e4bc4c22d0566a172001ca6d0ca0b3e
|
7
|
+
data.tar.gz: 84cb6623c55aac0cca112af8dc31281b2a2d512588f4aefd35df6f297b572248f5f08f5415b82849783ea0432b7355668b47991e4281b145d06a34da483d1829
|
data/lib/xmlenc/builder/base.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "xmlmapper"
|
2
2
|
|
3
3
|
module Xmlenc
|
4
4
|
module Builder
|
@@ -6,14 +6,14 @@ module Xmlenc
|
|
6
6
|
extend ActiveSupport::Concern
|
7
7
|
|
8
8
|
included do
|
9
|
-
include ::
|
9
|
+
include ::XmlMapper
|
10
10
|
include ::ActiveModel::Validations
|
11
11
|
|
12
|
-
extend
|
13
|
-
include
|
12
|
+
extend XmlMapperClassMethods
|
13
|
+
include XmlMapperInstanceMethods
|
14
14
|
end
|
15
15
|
|
16
|
-
module
|
16
|
+
module XmlMapperInstanceMethods
|
17
17
|
def initialize(attributes = {})
|
18
18
|
attributes.each do |key, value|
|
19
19
|
send("#{key}=", value) if respond_to?("#{key}=") && value.present?
|
@@ -29,7 +29,7 @@ module Xmlenc
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
module
|
32
|
+
module XmlMapperClassMethods
|
33
33
|
def parse(xml, options = {})
|
34
34
|
raise Xmlenc::UnparseableMessage("Unable to parse nil document") if xml.nil?
|
35
35
|
|
data/lib/xmlenc/version.rb
CHANGED
data/xmlenc.gemspec
CHANGED
@@ -25,10 +25,10 @@ Gem::Specification.new do |spec|
|
|
25
25
|
else
|
26
26
|
spec.add_dependency "activesupport", ">= 3.0.0"
|
27
27
|
spec.add_dependency "activemodel", ">= 3.0.0"
|
28
|
+
spec.add_dependency "xmlmapper", '~> 0.6.0'
|
28
29
|
spec.add_runtime_dependency('nokogiri', '~> 1.6.0')
|
29
30
|
end
|
30
|
-
|
31
|
-
spec.add_development_dependency "nokogiri-happymapper", '~> 0.5.7'
|
31
|
+
|
32
32
|
spec.add_development_dependency "bundler", "~> 1.3"
|
33
33
|
spec.add_development_dependency "rspec-rails", "~> 2.14"
|
34
34
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmlenc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -39,33 +39,33 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: xmlmapper
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.6.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: nokogiri
|
56
|
+
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
61
|
+
version: 1.6.0
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.6.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|