tictail-api 0.0.3 → 0.0.4
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 +4 -4
- data/changelog +4 -1
- data/lib/tictail/api/card.rb +11 -0
- data/lib/tictail/api/client.rb +3 -2
- data/lib/tictail/api/version.rb +1 -1
- data/lib/tictail/faraday_middleware/response_parser.rb +1 -1
- data/lib/tictail/helper.rb +0 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcefe25e9770abc1fb0577874c551b0fc1168df4
|
4
|
+
data.tar.gz: 22bc88f17dc265b8af8432cc3053335d6aba2468
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 142bb6653e32cfbcf375621be038258c68cba98e2d0e5b00c4104a9b1f5fc436c08a4b0cef6d56413b4ce5020b7fafb3cf7ab5f89469b78724473930738e1cc8
|
7
|
+
data.tar.gz: c0988c13baaef1bed3dedfbc7a3c65e4ec078ff09c34af770bc59a8b1449f0f3ef69ecf1a0dd44ba082dbd1c1ae0c11594e0c5dfa1f9da87007a62d3fad10b96
|
data/changelog
CHANGED
data/lib/tictail/api/client.rb
CHANGED
@@ -13,6 +13,7 @@ require 'tictail/helper'
|
|
13
13
|
require 'tictail/api/order'
|
14
14
|
require 'tictail/api/product'
|
15
15
|
require 'tictail/api/customer'
|
16
|
+
require 'tictail/api/card'
|
16
17
|
|
17
18
|
|
18
19
|
|
@@ -25,6 +26,7 @@ module Tictail
|
|
25
26
|
include Tictail::Api::Order
|
26
27
|
include Tictail::Api::Product
|
27
28
|
include Tictail::Api::Customer
|
29
|
+
include Tictail::Api::Card
|
28
30
|
|
29
31
|
attr_accessor :access_token
|
30
32
|
|
@@ -43,7 +45,7 @@ module Tictail
|
|
43
45
|
# @param url [String] the relative path in the Tictail API
|
44
46
|
# @param params [Hash] the url params that should be passed in the request
|
45
47
|
def get(url, params = {})
|
46
|
-
params = params
|
48
|
+
params = convert_hash_keys(params)
|
47
49
|
@access_token = params.delete('access_token') if params['access_token']
|
48
50
|
return connection.get(url, params)
|
49
51
|
end
|
@@ -96,6 +98,5 @@ module Tictail
|
|
96
98
|
end
|
97
99
|
end
|
98
100
|
end
|
99
|
-
|
100
101
|
class InvalidParams < Exception; end
|
101
102
|
end
|
data/lib/tictail/api/version.rb
CHANGED
data/lib/tictail/helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tictail-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alon Braitstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- Rakefile
|
109
109
|
- changelog
|
110
110
|
- lib/tictail/api/authenticate.rb
|
111
|
+
- lib/tictail/api/card.rb
|
111
112
|
- lib/tictail/api/client.rb
|
112
113
|
- lib/tictail/api/customer.rb
|
113
114
|
- lib/tictail/api/order.rb
|