soda_xml_team 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  module SodaXmlTeam
2
- API_BASE_URL = "http://soda.xmlteam.com/api"
3
- API_SANDBOX_URL = "http://soda.xmlteam.com/api-trial"
4
- end
2
+ API_BASE_URL = "https://soda.xmlteam.com/api"
3
+ API_SANDBOX_URL = "https://soda.xmlteam.com/api-trial"
4
+ end
@@ -2,25 +2,23 @@ module SodaXmlTeam
2
2
 
3
3
  require 'httparty'
4
4
  require 'nokogiri'
5
-
5
+
6
6
  class Client
7
-
8
- include HTTParty
9
- debug_output $stderr
10
7
 
11
8
  def initialize(username, password)
12
9
  @auth = {:username => username, :password => password}
10
+ @dir = File.dirname __FILE__
13
11
  end
14
-
12
+
15
13
  def get_listing(options={})
16
- response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), { :basic_auth => @auth, :verify => false })
14
+ response = HTTParty.get(SodaXmlTeam::Address.build("get_listing", options), :basic_auth => @auth, :ssl_ca_file => "#{@dir}/../ca-certificates.crt", :ssl_version => :SSLv3)
17
15
  Nokogiri::XML(response.body)
18
16
  end
19
17
 
20
18
  def get_document(options={})
21
- response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), { :basic_auth => @auth, :verify => false })
19
+ response = HTTParty.get(SodaXmlTeam::Address.build("get_document", options), :basic_auth => @auth, :ssl_ca_file => "#{@dir}/../ca-certificates.crt", :ssl_version => :SSLv3)
22
20
  Nokogiri::XML(response.body)
23
21
  end
24
22
 
25
23
  end
26
- end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module SodaXmlTeam
2
- VERSION = "1.0.6"
3
- end
2
+ VERSION = "1.0.7"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soda_xml_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Yeargin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-14 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -107,6 +107,7 @@ files:
107
107
  - LICENSE.txt
108
108
  - README.md
109
109
  - Rakefile
110
+ - lib/ca-certificates.crt
110
111
  - lib/soda_xml_team.rb
111
112
  - lib/soda_xml_team/address.rb
112
113
  - lib/soda_xml_team/base.rb