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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08bb5243acb2061c18e7e6751f700265379487c33daeb07559b03bf7baa5c463'
4
- data.tar.gz: c831fa60265ab8b2b67ab4c80aa48b3bb4edfa3362d442a2ea11b82064f27c5f
3
+ metadata.gz: b1974f9e73ae8733db7ae786b1e7f0a660a1508c501320b9cf9ea1e3fa04a5cb
4
+ data.tar.gz: 5b5dea418a5fc58e4247859122e45b983558dc793a5fe752fc6927a8bdce1ab6
5
5
  SHA512:
6
- metadata.gz: 5ce36461834c680df2c1cb2f9e4cf17290fe903d04610eea726f5a95b2d4629837482b8aa6a336039f9295274828f2299d7cf3ed5a8db1c00e534168939f137a
7
- data.tar.gz: b806b02da1b82a922e23a28f5ae0b1b2969d606cd98120fbe93a12a4eb07c64c10c950dccbffdad33d8374155c3d9112317e799292e876736cb090c36d5340e4
6
+ metadata.gz: fe1dd4818224b8aeba00186477eea259a5e482ca39f466bba6ee52a0014620cebf0e0809d9523412633a67cd46b27a15bbdadd74033acab7dce46fccc96f603b
7
+ data.tar.gz: 0dc4a0080d87192d1f6526f8faa1ef47647ce0918e9c11a61627d0205ab3b82a367e025cda964a2c13ff68f814655d95d887605bf4fdd8330afadbb2befe4176
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- engiven (0.0.1)
4
+ engiven (1.0.0)
5
5
  faraday
6
6
  json
7
7
 
@@ -1,15 +1,17 @@
1
1
  require 'faraday'
2
2
 
3
- require './lib/engiven/version'
4
- require './lib/engiven/resources/customer'
5
- require './lib/engiven/resources/fund'
6
- require './lib/engiven/resources/gift'
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
@@ -0,0 +1,13 @@
1
+ module EngivenAPI
2
+ class Client
3
+ module Misc
4
+ def get_supported_crypto
5
+ get('/get-supported-crypto')
6
+ end
7
+
8
+ def get_pricefeed
9
+ get('/get-supported-crypto-pricefeed')
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module EngivenAPI
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
data/lib/engiven.rb CHANGED
@@ -1,4 +1,4 @@
1
- require './lib/engiven/client'
1
+ require 'engiven/client'
2
2
 
3
3
  module EngivenAPI
4
4
  end
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.1
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 00:00:00.000000000 Z
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: