wordpress-wxr 0.3.0 → 0.4.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: 39fb32a9a5dc0807f09ab1ecc70675e2c14f5347
4
- data.tar.gz: 52775664ca45caa9ed25277d2d87b1d6871ecdb4
3
+ metadata.gz: 6d098d75c80461cfb88acbaaa2c071ca96dca046
4
+ data.tar.gz: a20297b555657488ac0db32bb55fd01e600e56a0
5
5
  SHA512:
6
- metadata.gz: 830e02fb518a56caa2c0fcc8a43ea27b66c8f2659a29c0829720ea702aa1178a6fd05178339eb03e4ab55aee1c4db57a560a7529bde91338d0337a39cc3ce48b
7
- data.tar.gz: c655f2ba6a9db861a611e22b0a5135003ad96ee2d02c90b83f99e3f081df346e5e0d86e3c1b4996a2acbf121984c1928e819be055f7200283d5973b8eef7c60e
6
+ metadata.gz: 7172d0b0cd340babe6fcc030ca6b236343565776e2b7c4ff55066dd676f17a345112fbb37357d8ad93908efd0ddd844cccbf44c9c50e19f145792271c4efac95
7
+ data.tar.gz: fc7942c3eb342f914bc2f83b946b56d5b3dfa0863ec00c7e95448a64e9ca85348e290f4f7423c9322f2a75194f1829605ebc5be15f2417f19356c21c58754da7
@@ -1,5 +1,5 @@
1
1
  require 'wordpress/wxr/element'
2
- require 'email_address'
2
+ require 'mail'
3
3
 
4
4
  module Wordpress
5
5
  class WXR
@@ -13,7 +13,7 @@ module Wordpress
13
13
  end
14
14
 
15
15
  def email
16
- EmailAddress.new(node.xpath('wp:author_email').text)
16
+ Mail::Address.new(node.xpath('wp:author_email').text)
17
17
  end
18
18
 
19
19
  def display_name
@@ -1,5 +1,5 @@
1
1
  require 'wordpress/wxr/element'
2
- require 'email_address'
2
+ require 'mail'
3
3
  require 'uri'
4
4
 
5
5
  module Wordpress
@@ -10,7 +10,7 @@ module Wordpress
10
10
  end
11
11
 
12
12
  def email
13
- EmailAddress.new(node.xpath('wp:comment_author_email').text)
13
+ Mail::Address.new(node.xpath('wp:comment_author_email').text)
14
14
  end
15
15
 
16
16
  def url
@@ -1,5 +1,5 @@
1
1
  module Wordpress
2
2
  class WXR
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.4.0'.freeze
4
4
  end
5
5
  end
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'rake', '~> 10.0'
23
23
  spec.add_development_dependency 'rspec', '~> 3.0'
24
24
 
25
- spec.add_runtime_dependency 'email_address', '~> 0.1.3'
25
+ spec.add_runtime_dependency 'mail', '~> 2.5.4'
26
26
  spec.add_runtime_dependency 'nokogiri'
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordpress-wxr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ePublishing, inc.
@@ -53,19 +53,19 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: email_address
56
+ name: mail
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.3
61
+ version: 2.5.4
62
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.1.3
68
+ version: 2.5.4
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement