suretax 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72e47028dfe5b904c35e92501d6ed9e63af2e159
4
- data.tar.gz: 5a60c8ae65d3ed40480bf40ff4476c73107f9c98
3
+ metadata.gz: 094ee3e51e775fb9c1aeaa9e4e84e26b7d9f8171
4
+ data.tar.gz: ce9605aaad21ccd15d809a875a8edf2cdca3565f
5
5
  SHA512:
6
- metadata.gz: 72e4108709bf801a69e1e5fecf48a182663e6834ef392cb9bfeefbb0972ba5b837b5b42ef394c9e1d4506960de3da63568d1c3ed0733330d57fedb5da5f17d53
7
- data.tar.gz: 4ea68b12420bc9990526e66f390b10cf74c5417e9e679fc9f977621266a04a7216193c5352e21f97522cbfa61ef6c194b7e5e642bb79fca1f01aa440f9aa3683
6
+ metadata.gz: 547c6c328b0a1a0ffdcc0e28e510dac4835a7d8b5e43ccbd7757e6c3c51ce4ac3e4de2a038e823d37c4f2573d10e8745d893c6fa7860dcd79aa7ab8859a8c63f
7
+ data.tar.gz: a453ef347d27279ae8a2fe97a9bce60a029504c22f151b9dd6c396221c839b3640c7df88205bac1dd227afc8740dc23a798b4958e00ea00920c3062692e76a36
@@ -8,7 +8,7 @@ script:
8
8
  rvm:
9
9
  - 1.9.3
10
10
  - 2.1.0
11
+ - 2.2.0
11
12
  - jruby-19mode
12
- - rbx-2.2
13
13
  notifications:
14
14
  email: false
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  suretax (0.1.5)
5
- faraday
5
+ excon
6
6
  monetize
7
7
  money (~> 6.5.1)
8
8
 
@@ -17,8 +17,7 @@ GEM
17
17
  diff-lcs (1.2.5)
18
18
  docile (1.1.5)
19
19
  dotenv (1.0.2)
20
- faraday (0.9.1)
21
- multipart-post (>= 1.2, < 3)
20
+ excon (0.45.4)
22
21
  i18n (0.7.0)
23
22
  method_source (0.8.2)
24
23
  monetize (1.3.0)
@@ -26,7 +25,6 @@ GEM
26
25
  money (6.5.1)
27
26
  i18n (>= 0.6.4, <= 0.7.0)
28
27
  multi_json (1.10.1)
29
- multipart-post (2.0.0)
30
28
  pry (0.10.1)
31
29
  coderay (~> 1.1.0)
32
30
  method_source (~> 0.8.1)
@@ -72,3 +70,6 @@ DEPENDENCIES
72
70
  simplecov
73
71
  suretax!
74
72
  webmock
73
+
74
+ BUNDLED WITH
75
+ 1.10.6
@@ -1,4 +1,3 @@
1
- require 'faraday'
2
1
  require 'uri'
3
2
  require 'json'
4
3
 
@@ -8,17 +7,20 @@ module Suretax
8
7
  attr_accessor :headers
9
8
 
10
9
  def initialize(args = {})
11
- @link = Faraday.new( url: args[:base_url] || api_host )
12
- @headers = @link.headers
13
- headers['Content-Type'] = 'application/x-www-form-urlencoded'
10
+ @link = Excon.new(args[:base_url] || api_host)
11
+ @headers = { 'Content-Type' => 'application/x-www-form-urlencoded' }
14
12
  end
15
13
 
16
14
  def post(body = {})
17
- Response.new(@link.post(post_path, "request=#{encode_body(body)}"))
15
+ Response.new(@link.post(path: post_path,
16
+ headers: headers,
17
+ body: "request=#{encode_body(body)}"))
18
18
  end
19
19
 
20
20
  def cancel(body = {})
21
- Response.new(@link.post(cancel_path, "requestCancel=#{encode_body(body)}"))
21
+ Response.new(@link.post(path: cancel_path,
22
+ headers: headers,
23
+ body: "requestCancel=#{encode_body(body)}"))
22
24
  end
23
25
 
24
26
  private
@@ -1,3 +1,3 @@
1
1
  module Suretax
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "faraday"
21
+ spec.add_dependency "excon"
22
22
  spec.add_dependency "money", "~> 6.5.1"
23
23
  spec.add_dependency "monetize"
24
24
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suretax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Davison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-05 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: excon
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="