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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e401bd2ee8c45b6fa16fb1fd964339576196184
4
- data.tar.gz: 8a662156741e2be202bb749a384d285e31315ede
3
+ metadata.gz: 08accbcb8b82b64c4a4dfc285613f8f446b8b80d
4
+ data.tar.gz: 5d0f1731f648ce8d1dd5323c873133493d7e6da3
5
5
  SHA512:
6
- metadata.gz: 2ccce2142048e50481634b71b3b3a5824bdfa7ce53708eb0078e56b432ed8bb7d2d71506579c97565d866eed39c6be03a63e74745ba3aed2a326dbc30cebe074
7
- data.tar.gz: 3941eff179a841a04850503593746c8387e08cd83efdb858e628443d258318a0c5bef62256a95da75651c4ecf7acb04739265b09d79d4723d94d95d8ee21a0e4
6
+ metadata.gz: 70e30230bb3c33a3f130cfa1ae6034bc83049d975aa8f38b3c9735de06040e4ada1977bd46e28c5231c8f1c9814d3a0e4e4bc4c22d0566a172001ca6d0ca0b3e
7
+ data.tar.gz: 84cb6623c55aac0cca112af8dc31281b2a2d512588f4aefd35df6f297b572248f5f08f5415b82849783ea0432b7355668b47991e4281b145d06a34da483d1829
@@ -1,4 +1,4 @@
1
- require "happymapper"
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 ::HappyMapper
9
+ include ::XmlMapper
10
10
  include ::ActiveModel::Validations
11
11
 
12
- extend HappyMapperClassMethods
13
- include HappyMapperInstanceMethods
12
+ extend XmlMapperClassMethods
13
+ include XmlMapperInstanceMethods
14
14
  end
15
15
 
16
- module HappyMapperInstanceMethods
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 HappyMapperClassMethods
32
+ module XmlMapperClassMethods
33
33
  def parse(xml, options = {})
34
34
  raise Xmlenc::UnparseableMessage("Unable to parse nil document") if xml.nil?
35
35
 
@@ -1,3 +1,3 @@
1
1
  module Xmlenc
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  end
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.5.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-04 00:00:00.000000000 Z
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: nokogiri
42
+ name: xmlmapper
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.0
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: 1.6.0
54
+ version: 0.6.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: nokogiri-happymapper
56
+ name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.5.7
62
- type: :development
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: 0.5.7
68
+ version: 1.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement