engiven 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/engiven/client.rb +8 -5
- data/lib/engiven/resources/misc.rb +13 -0
- data/lib/engiven/version.rb +1 -1
- data/lib/engiven.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1974f9e73ae8733db7ae786b1e7f0a660a1508c501320b9cf9ea1e3fa04a5cb
|
4
|
+
data.tar.gz: 5b5dea418a5fc58e4247859122e45b983558dc793a5fe752fc6927a8bdce1ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe1dd4818224b8aeba00186477eea259a5e482ca39f466bba6ee52a0014620cebf0e0809d9523412633a67cd46b27a15bbdadd74033acab7dce46fccc96f603b
|
7
|
+
data.tar.gz: 0dc4a0080d87192d1f6526f8faa1ef47647ce0918e9c11a61627d0205ab3b82a367e025cda964a2c13ff68f814655d95d887605bf4fdd8330afadbb2befe4176
|
data/Gemfile.lock
CHANGED
data/lib/engiven/client.rb
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
require 'faraday'
|
2
2
|
|
3
|
-
require '
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
require '
|
3
|
+
require 'engiven/version'
|
4
|
+
require 'engiven/resources/customer'
|
5
|
+
require 'engiven/resources/fund'
|
6
|
+
require 'engiven/resources/gift'
|
7
|
+
require 'engiven/resources/misc'
|
7
8
|
|
8
9
|
module EngivenAPI
|
9
10
|
class Client
|
10
11
|
include EngivenAPI::Client::Customer
|
11
12
|
include EngivenAPI::Client::Fund
|
12
13
|
include EngivenAPI::Client::Gift
|
14
|
+
include EngivenAPI::Client::Misc
|
13
15
|
|
14
16
|
attr_reader :api_key, :test_mode, :logger, :connection, :adapter, :ssl
|
15
17
|
|
@@ -44,7 +46,7 @@ module EngivenAPI
|
|
44
46
|
headers = {
|
45
47
|
accept: 'application/json',
|
46
48
|
'Authorization' => api_key,
|
47
|
-
'User-Agent' => "engiven-api-ruby-gem/v#{EngivenAPI::VERSION}"
|
49
|
+
'User-Agent' => "engiven-api-ruby-gem/v#{EngivenAPI::VERSION}"
|
48
50
|
}
|
49
51
|
|
50
52
|
client_opts = {
|
@@ -57,6 +59,7 @@ module EngivenAPI
|
|
57
59
|
Faraday.new(client_opts) do |conn|
|
58
60
|
conn.request :json
|
59
61
|
conn.response :logger if logger
|
62
|
+
conn.response :raise_error
|
60
63
|
conn.response :json
|
61
64
|
conn.adapter adapter
|
62
65
|
end
|
data/lib/engiven/version.rb
CHANGED
data/lib/engiven.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engiven
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/engiven/resources/customer.rb
|
87
87
|
- lib/engiven/resources/fund.rb
|
88
88
|
- lib/engiven/resources/gift.rb
|
89
|
+
- lib/engiven/resources/misc.rb
|
89
90
|
- lib/engiven/version.rb
|
90
91
|
homepage: https://github.com/taylorbrooks/engiven-api
|
91
92
|
licenses:
|