feathr 0.1.8 → 0.1.9

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: 7c3b3f37fc22a015eaf3bf55791101d57f250c51
4
- data.tar.gz: 86b19b04f50795529d11552b250e533ebdb7ac9a
3
+ metadata.gz: 6a8e7f8549fe9e88c9d2c7b2bda4ba4a207351e8
4
+ data.tar.gz: 22ebc903028c62f040d0816446afd352c67e4202
5
5
  SHA512:
6
- metadata.gz: a5ef006f64d7036cfc0aae306db513a5c445333f478afb8fd6f3cdf3906cf0dc30cd7ba2a984706863b7b97a21a4b39aae4f34ab78d4a2fc1138eb4d345b30a4
7
- data.tar.gz: 55e7cdd8a57da3068775a9607f270a03233b3a391bbe40383d277e6ba4016280009c81581064ae287176ee6c0eaf16ec582707d85dc01aa8da262fecbe66a8ba
6
+ metadata.gz: 1b4c429c2155653b400e244e8787803c442e2d1b3002c44fcee027b79da88922bc94c1a1b0b1fd250707bd9b37161d0eb0609268b3fad77cce3c256d7e440303
7
+ data.tar.gz: 1828f82283076c0ddc28f9c2d067f7968b9711b4ae4f8de994fc488d56af957d2427d960dca642caddaf5379a2cdfd8953bbfe6dfcd2bdff91673d442eb74357
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- feathr (0.1.7)
4
+ feathr (0.1.8)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -3,6 +3,11 @@ module Feathr
3
3
 
4
4
  class Invoice < Feathr::Api::FeathrObject
5
5
  api_path 'invoices'
6
+
7
+ def initiate_debit!
8
+ url = path + '/initiate_debit/'
9
+ client.request(method: :post, path: url)
10
+ end
6
11
  end
7
12
 
8
13
  end
data/lib/feathr/client.rb CHANGED
@@ -52,11 +52,16 @@ module Feathr
52
52
  def request(method: :get, path:, query: {}, headers: {})
53
53
  url = [config.base_url, path].join('/')
54
54
 
55
+
56
+
55
57
  unless path == Feathr::Api::ApiTokenAuth.new.api_path
56
58
  headers = default_headers.merge(auth_headers).merge(headers)
57
59
  query = query.to_json
58
60
  end
59
61
 
62
+ puts 'got here'
63
+ puts url
64
+
60
65
  response = self.class.send(
61
66
  method,
62
67
  url,
@@ -1,3 +1,3 @@
1
1
  module Feathr
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feathr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Herman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty