fuelscropt-api-client 0.3.2 → 0.3.5

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.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuelscropt-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Theodore Ambie-Barango
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-23 00:00:00.000000000 Z
11
+ date: 2021-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -44,11 +44,12 @@ files:
44
44
  - bin/setup
45
45
  - lib/fullscriptapi.rb
46
46
  - lib/fullscriptapi/access_token.rb
47
- - lib/fullscriptapi/endpoints.rb
48
- - lib/fullscriptapi/endpoints/create_an_oauth_token.rb
49
- - lib/fullscriptapi/endpoints/list_all_products.rb
50
- - lib/fullscriptapi/endpoints/refresh_token.rb
47
+ - lib/fullscriptapi/authentication_endpoints.rb
48
+ - lib/fullscriptapi/authentication_endpoints/create_an_oauth_token.rb
49
+ - lib/fullscriptapi/authentication_endpoints/refresh_token.rb
50
+ - lib/fullscriptapi/servers.rb
51
51
  - lib/fullscriptapi/version.rb
52
+ - openapi.json
52
53
  homepage: https://github.com/Tambiebarango/fs-api-gem
53
54
  licenses:
54
55
  - MIT
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Fullscriptapi
4
- module Endpoints
5
- module ListAllProducts
6
- def list_all_products
7
- refresh_token if stale_token? #to do: add logic to conditionally refresh token
8
-
9
- Excon.get("#{get_server}/catalog/products",
10
- headers: {
11
- "Content-Type": "application/json",
12
- "Authorization": "Bearer #{token.access_token}"
13
- }
14
- )
15
- end
16
- end
17
- end
18
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'endpoints/list_all_products'
4
- require_relative 'endpoints/create_an_oauth_token'
5
- require_relative 'endpoints/refresh_token'
6
-
7
- module Fullscriptapi
8
- module Endpoints
9
- include ListAllProducts
10
- include CreateAnOauthToken
11
- include RefreshToken
12
- end
13
- end