majestic_seo_api 1.2.7 → 1.2.8

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: 0bedd1c8d8849e90e9e6ae53dfd86dec203cd422
4
- data.tar.gz: d86804a3906c4b5fcbd178375a530deb22135eee
3
+ metadata.gz: c5b4571ac9b35fde014ce2613067c56a2fe3a233
4
+ data.tar.gz: d4d1fa3c11e01184b462f8b26dcf7168c4055ced
5
5
  SHA512:
6
- metadata.gz: 18aff57ff3cb19af4b6f3b4481ac3b0d1606e1b18af038efa58e1e54352f8112efbe82b508d4d4b61e794f3f890b5c5db87c7384172574ffe70df3de0fad876a
7
- data.tar.gz: 4356995e2cac7082546218fa0f2a8cca80917fdb99edc6df2334658635629efcba974a01205c328307a8f05b8d49f21f1e8bff80465ee27cf7fb3f998ee6e8e9
6
+ metadata.gz: 97e51ca3ba7170bfcd21824732cc9fe1d709fe28966bfbc69e41db02be301f3fb53ae87c08248008a43d7e2ea48ff1f4aa450cd287b2572049ab96bbb42b2f21
7
+ data.tar.gz: 2725e3f0ed6efb0832f86967efc62c6711b01c3bd2db6990fab3a96fb1d458bd2bae8bcf070cacba01d7bb17aaa90ffddc97c647e1abdba88725828a9ef6607d
data/Gemfile CHANGED
@@ -1,16 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "faraday", ">= 0.8.7"
4
- gem "faraday_middleware", :git => 'git://github.com/Agiley/faraday_middleware.git'
5
- gem 'nokogiri', ">= 1.5.9"
6
-
7
- group :development, :test do
8
- gem 'rspec'
9
- gem "mocha"
10
- end
11
-
12
3
  platforms :jruby do
13
- gem "jruby-openssl", ">= 0.7.7"
4
+ gem "jruby-openssl", ">= 0.9"
14
5
  end
15
6
 
16
7
  gemspec
@@ -76,7 +76,6 @@ module MajesticSeo
76
76
  builder.request :url_encoded
77
77
  builder.request :retry
78
78
  builder.response :logger if (@verbose)
79
- builder.response :nokogiri_xml
80
79
  builder.adapter :net_http
81
80
  end
82
81
  end
@@ -52,7 +52,7 @@ module MajesticSeo
52
52
  if (@response.is_a?(Nokogiri::XML::Document))
53
53
  @response = (@response && @response.root) ? @response.root : nil
54
54
  elsif (@response.is_a?(Faraday::Response))
55
- @response = (@response && @response.body && @response.body.root) ? @response.body.root : nil
55
+ @response = (@response && @response.body) ? ::Nokogiri::XML(@response.body, nil, "utf-8").try(:root) : nil
56
56
  end
57
57
 
58
58
  if (@response)
@@ -1,5 +1,5 @@
1
1
  module MajesticSeoApi
2
- VERSION = "1.2.7"
2
+ VERSION = "1.2.8"
3
3
 
4
4
  require File.join(File.dirname(__FILE__), 'majestic_seo/railtie') if defined?(Rails)
5
5
 
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'majestic_seo_api'
6
- s.version = '1.2.7'
6
+ s.version = '1.2.8'
7
7
 
8
8
  s.homepage = "http://developer-support.majesticseo.com/connectors/"
9
9
  s.email = "sebastian@agiley.se"
@@ -11,8 +11,9 @@ Gem::Specification.new do |s|
11
11
  s.description = "Interface for communicating with Majestic SEO's API"
12
12
  s.summary = "Interface for communicating with Majestic SEO's API"
13
13
 
14
- s.add_dependency "faraday", ">= 0.8.7"
15
- s.add_dependency "nokogiri", ">= 1.5.9"
14
+ s.add_dependency "faraday", ">= 0.9"
15
+ s.add_dependency "faraday_middleware", ">= 0.9"
16
+ s.add_dependency "nokogiri", ">= 1.6"
16
17
 
17
18
  s.add_development_dependency 'rake'
18
19
  s.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: majestic_seo_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Majestic-12 Ltd
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-06 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -17,28 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.8.7
20
+ version: '0.9'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.8.7
27
+ version: '0.9'
28
+ - !ruby/object:Gem::Dependency
29
+ name: faraday_middleware
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0.9'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0.9'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: nokogiri
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
46
  - - ">="
33
47
  - !ruby/object:Gem::Version
34
- version: 1.5.9
48
+ version: '1.6'
35
49
  type: :runtime
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
39
53
  - - ">="
40
54
  - !ruby/object:Gem::Version
41
- version: 1.5.9
55
+ version: '1.6'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: rake
44
58
  requirement: !ruby/object:Gem::Requirement