QNE 0.1.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e736ef116778ab163c7298a8a72427ae9a2e58f8c514a0492aded610184f6c1
4
- data.tar.gz: 1eed37e03d9b6018d4f95778646c03f5e77de0b291693bf94eb7821aab4580c9
3
+ metadata.gz: '08af2240c5e32d2f70556448cfdfad22426d92148d3201ff00d9245cb28044cb'
4
+ data.tar.gz: b1c2cef04320bf582664ee675c0fbdb674a56afa8503c8e3cc456e7e5ef165e8
5
5
  SHA512:
6
- metadata.gz: b6b1325ebbe6e0d884a2257809ab3aa29396163462a78daa2f5360da0249b31bdaa6be5dc21103037c300f6b548af6b5d84f09dd3084624da62c676036a934dd
7
- data.tar.gz: c84ef9d444f393f6a762244da354a29d6429669708229a231a04c5cc1cc9aa62074c19adf9eb21eb2ba74c78677f04a668cc395bc68699e087b385e3a07137da
6
+ metadata.gz: 13fd75a27ded11b6951ce4ebcedf31bd1a12f440afba44efafc4a54b23e1eb2675a87c87f66aa0bc7ba2fabdb6478910ae0d376b939d9119177e68639816b68d
7
+ data.tar.gz: 4ec19df06acf1d594bb0263f43996b264fb99675c383628d3000aa80b45f564b072b3084a749eb7cd889cf3bc3cd9ea738d0ee1123ae42585abac4d8ca382257
data/.rubocop.yml CHANGED
@@ -3,11 +3,22 @@ AllCops:
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
6
- EnforcedStyle: double_quotes
6
+ EnforcedStyle: single_quotes
7
7
 
8
8
  Style/StringLiteralsInInterpolation:
9
9
  Enabled: true
10
- EnforcedStyle: double_quotes
10
+ EnforcedStyle: single_quotes
11
11
 
12
12
  Layout/LineLength:
13
13
  Max: 120
14
+
15
+ Metrics/BlockLength:
16
+ Max: 60
17
+ Exclude:
18
+ - 'spec/**/*.rb'
19
+
20
+ Style/Documentation:
21
+ Enabled: false
22
+
23
+ Naming/FileName:
24
+ Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.7
data/Gemfile CHANGED
@@ -1,13 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in QNE.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.0"
9
- gem "rspec", "~> 3.0"
10
- gem "rubocop", "~> 1.21"
11
- gem "faraday-retry", '~> 2.3'
12
- gem "faraday-net_http_persistent", "~> 2.3"
13
- gem "net-http-persistent", "~> 4.0"
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
11
+
12
+ gem 'rubocop', '~> 1.21'
data/Gemfile.lock CHANGED
@@ -1,24 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- QNE (0.2.0)
5
- faraday-net_http_persistent (~> 2.3)
6
- faraday-retry (~> 2.3)
7
- net-http-persistent (~> 4.0)
4
+ QNE (0.4.1)
5
+ faraday (>= 1.10)
6
+ faraday-net_http_persistent (>= 1.2)
7
+ net-http-persistent (>= 4.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.8.6)
13
- public_suffix (>= 2.0.2, < 6.0)
14
- ast (2.4.2)
15
- bigdecimal (3.1.6)
16
- connection_pool (2.5.3)
17
- crack (1.0.0)
12
+ addressable (2.8.7)
13
+ public_suffix (>= 2.0.2, < 7.0)
14
+ ast (2.4.3)
15
+ bigdecimal (3.3.1)
16
+ connection_pool (2.5.4)
17
+ crack (1.0.1)
18
18
  bigdecimal
19
19
  rexml
20
- diff-lcs (1.5.1)
21
- faraday (2.13.1)
20
+ diff-lcs (1.6.2)
21
+ faraday (2.14.0)
22
22
  faraday-net_http (>= 2.0, < 3.5)
23
23
  json
24
24
  logger
@@ -27,53 +27,59 @@ GEM
27
27
  faraday-net_http_persistent (2.3.1)
28
28
  faraday (~> 2.5)
29
29
  net-http-persistent (>= 4.0.4, < 5)
30
- faraday-retry (2.3.2)
31
- faraday (~> 2.0)
32
- hashdiff (1.1.0)
33
- json (2.12.2)
30
+ hashdiff (1.2.1)
31
+ json (2.15.2)
32
+ language_server-protocol (3.17.0.5)
33
+ lint_roller (1.1.0)
34
34
  logger (1.7.0)
35
- net-http (0.6.0)
35
+ net-http (0.7.0)
36
36
  uri
37
37
  net-http-persistent (4.0.6)
38
38
  connection_pool (~> 2.2, >= 2.2.4)
39
- parallel (1.24.0)
40
- parser (3.3.0.5)
39
+ parallel (1.27.0)
40
+ parser (3.3.10.0)
41
41
  ast (~> 2.4.1)
42
42
  racc
43
- public_suffix (4.0.7)
44
- racc (1.7.3)
43
+ prism (1.6.0)
44
+ public_suffix (6.0.2)
45
+ racc (1.8.1)
45
46
  rainbow (3.1.1)
46
- rake (13.1.0)
47
- regexp_parser (2.9.0)
48
- rexml (3.2.6)
49
- rspec (3.13.0)
47
+ rake (13.3.1)
48
+ regexp_parser (2.11.3)
49
+ rexml (3.4.4)
50
+ rspec (3.13.2)
50
51
  rspec-core (~> 3.13.0)
51
52
  rspec-expectations (~> 3.13.0)
52
53
  rspec-mocks (~> 3.13.0)
53
- rspec-core (3.13.0)
54
+ rspec-core (3.13.6)
54
55
  rspec-support (~> 3.13.0)
55
- rspec-expectations (3.13.0)
56
+ rspec-expectations (3.13.5)
56
57
  diff-lcs (>= 1.2.0, < 2.0)
57
58
  rspec-support (~> 3.13.0)
58
- rspec-mocks (3.13.0)
59
+ rspec-mocks (3.13.7)
59
60
  diff-lcs (>= 1.2.0, < 2.0)
60
61
  rspec-support (~> 3.13.0)
61
- rspec-support (3.13.0)
62
- rubocop (1.28.2)
62
+ rspec-support (3.13.6)
63
+ rubocop (1.81.7)
64
+ json (~> 2.3)
65
+ language_server-protocol (~> 3.17.0.2)
66
+ lint_roller (~> 1.1.0)
63
67
  parallel (~> 1.10)
64
- parser (>= 3.1.0.0)
68
+ parser (>= 3.3.0.2)
65
69
  rainbow (>= 2.2.2, < 4.0)
66
- regexp_parser (>= 1.8, < 3.0)
67
- rexml
68
- rubocop-ast (>= 1.17.0, < 2.0)
70
+ regexp_parser (>= 2.9.3, < 3.0)
71
+ rubocop-ast (>= 1.47.1, < 2.0)
69
72
  ruby-progressbar (~> 1.7)
70
- unicode-display_width (>= 1.4.0, < 3.0)
71
- rubocop-ast (1.17.0)
72
- parser (>= 3.1.1.0)
73
+ unicode-display_width (>= 2.4.0, < 4.0)
74
+ rubocop-ast (1.47.1)
75
+ parser (>= 3.3.7.2)
76
+ prism (~> 1.4)
73
77
  ruby-progressbar (1.13.0)
74
- unicode-display_width (2.5.0)
75
- uri (1.0.3)
76
- webmock (3.20.0)
78
+ unicode-display_width (3.2.0)
79
+ unicode-emoji (~> 4.1)
80
+ unicode-emoji (4.1.0)
81
+ uri (1.1.1)
82
+ webmock (3.26.1)
77
83
  addressable (>= 2.8.0)
78
84
  crack (>= 0.3.2)
79
85
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -83,13 +89,10 @@ PLATFORMS
83
89
 
84
90
  DEPENDENCIES
85
91
  QNE!
86
- faraday-net_http_persistent (~> 2.3)
87
- faraday-retry (~> 2.3)
88
- net-http-persistent (~> 4.0)
89
92
  rake (~> 13.0)
90
93
  rspec (~> 3.0)
91
94
  rubocop (~> 1.21)
92
- webmock (~> 3.4)
95
+ webmock (>= 3.4)
93
96
 
94
97
  BUNDLED WITH
95
98
  2.6.9
data/README.md CHANGED
@@ -30,23 +30,6 @@ then you can use it to perform desired operation
30
30
 
31
31
  ```ruby
32
32
  conn.customers.all(top: 10) # returns top 10 customers
33
-
34
- # if you want to have a custom retry_block
35
- # the retry block will be executed before retry happens
36
- # for example i have a block for creating logs
37
- def create_logs
38
- puts 'Error Occurred'.
39
- end
40
-
41
- def retry_block
42
- proc { create_logs }
43
- end
44
-
45
- # so now when you establish the connection you will
46
- # pass the block in the qne_connection argument
47
- # # when farday occur and it reached the first retry
48
- # the block will be executed
49
- conn = @integration.qne_connection(retry_block)
50
33
  ```
51
34
 
52
35
  you can also check if the `db_code` is valid:
data/Rakefile CHANGED
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
8
- require "rubocop/rake_task"
8
+ require 'rubocop/rake_task'
9
9
 
10
10
  RuboCop::RakeTask.new
11
11
 
data/lib/QNE/agent/all.rb CHANGED
@@ -19,4 +19,4 @@ module QNE
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class All
6
- PATH = '/api/Customers'.freeze
6
+ PATH = '/api/Customers'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class Create
6
- PATH = '/api/Customers'.freeze
6
+ PATH = '/api/Customers'
7
7
 
8
8
  def initialize(conn, request_body:)
9
9
  @conn = conn
@@ -18,4 +18,4 @@ module QNE
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class Find
6
- PATH = '/api/Customers/:id'.freeze
6
+ PATH = '/api/Customers/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class FindBy
6
- PATH = '/api/Customers'.freeze
6
+ PATH = '/api/Customers'
7
7
 
8
8
  def initialize(conn, params:)
9
9
  @conn = conn
@@ -17,4 +17,4 @@ module QNE
17
17
  end
18
18
  end
19
19
  end
20
- end
20
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class Show
6
- PATH = '/api/Customer/:id'.freeze
6
+ PATH = '/api/Customer/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -15,4 +15,4 @@ module QNE
15
15
  end
16
16
  end
17
17
  end
18
- end
18
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Customer
5
5
  class Update
6
- PATH = '/api/Customers'.freeze
6
+ PATH = '/api/Customers'
7
7
 
8
8
  def initialize(conn, request_body:)
9
9
  @conn = conn
@@ -18,4 +18,4 @@ module QNE
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -19,4 +19,4 @@ module QNE
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesInvoice
5
5
  class All
6
- PATH = '/api/SalesInvoices'.freeze
6
+ PATH = '/api/SalesInvoices'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -19,4 +19,4 @@ module QNE
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesInvoice
5
5
  class Create
6
- PATH = '/api/SalesInvoices'.freeze
6
+ PATH = '/api/SalesInvoices'
7
7
 
8
8
  def initialize(conn, request_body:)
9
9
  @conn = conn
@@ -18,4 +18,4 @@ module QNE
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -23,4 +23,4 @@ module QNE
23
23
  end
24
24
  end
25
25
  end
26
- end
26
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesInvoice
5
5
  class FindBy
6
- PATH = '/api/SalesInvoices'.freeze
6
+ PATH = '/api/SalesInvoices'
7
7
 
8
8
  def initialize(conn, params:)
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesInvoice
5
5
  class Show
6
- PATH = '/api/SalesInvoices/:id'.freeze
6
+ PATH = '/api/SalesInvoices/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -15,4 +15,4 @@ module QNE
15
15
  end
16
16
  end
17
17
  end
18
- end
18
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesInvoice
5
5
  class Update
6
- PATH = '/api/SalesInvoices'.freeze
6
+ PATH = '/api/SalesInvoices'
7
7
 
8
8
  def initialize(conn, request_body:)
9
9
  @conn = conn
@@ -18,4 +18,4 @@ module QNE
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesOrder
5
5
  class All
6
- PATH = '/api/SalesOrders'.freeze
6
+ PATH = '/api/SalesOrders'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -19,4 +19,4 @@ module QNE
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesOrder
5
5
  class Create
6
- PATH = '/api/SalesOrders'.freeze
6
+ PATH = '/api/SalesOrders'
7
7
 
8
8
  def initialize(conn, request_body:)
9
9
  @conn = conn
@@ -18,4 +18,4 @@ module QNE
18
18
  end
19
19
  end
20
20
  end
21
- end
21
+ end
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module SalesOrder
5
5
  class Show
6
- PATH = '/api/SalesOrders/:id'.freeze
6
+ PATH = '/api/SalesOrders/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -15,4 +15,4 @@ module QNE
15
15
  end
16
16
  end
17
17
  end
18
- end
18
+ end
data/lib/QNE/stock/all.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Stock
5
5
  class All
6
- PATH = '/api/Stocks'.freeze
6
+ PATH = '/api/Stocks'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Stock
5
5
  class Find
6
- PATH = '/api/Stocks/:id'.freeze
6
+ PATH = '/api/Stocks/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Stock
5
5
  class UOMs
6
- PATH = '/api/Stocks/:id/UOMS'.freeze
6
+ PATH = '/api/Stocks/:id/UOMS'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module StockLocation
5
5
  class All
6
- PATH = '/api/StockLocation'.freeze
6
+ PATH = '/api/StockLocation'
7
7
 
8
8
  def initialize(conn)
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module TaxCode
5
5
  class All
6
- PATH = '/api/TaxCodes'.freeze
6
+ PATH = '/api/TaxCodes'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module TaxCode
5
5
  class InputTaxCodes
6
- PATH = '/api/TaxCodes/InputTaxCodes'.freeze
6
+ PATH = '/api/TaxCodes/InputTaxCodes'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module TaxCode
5
5
  class OutputTaxCodes
6
- PATH = '/api/TaxCodes/OutputTaxCodes'.freeze
6
+ PATH = '/api/TaxCodes/OutputTaxCodes'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
data/lib/QNE/term/all.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Term
5
5
  class All
6
- PATH = '/api/Terms'.freeze
6
+ PATH = '/api/Terms'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
data/lib/QNE/term/show.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module Term
5
5
  class Show
6
- PATH = '/api/Terms/:id'.freeze
6
+ PATH = '/api/Terms/:id'
7
7
 
8
8
  def initialize(conn, id:)
9
9
  @conn = conn
@@ -15,4 +15,4 @@ module QNE
15
15
  end
16
16
  end
17
17
  end
18
- end
18
+ end
data/lib/QNE/uom/all.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module UOM
5
5
  class All
6
- PATH = '/api/UOMs'.freeze
6
+ PATH = '/api/UOMs'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
@@ -3,7 +3,7 @@
3
3
  module QNE
4
4
  module User
5
5
  class Login
6
- PATH = '/api/Users/Login'.freeze
6
+ PATH = '/api/Users/Login'
7
7
 
8
8
  def initialize(conn, params: {})
9
9
  @conn = conn
data/lib/QNE/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QNE
4
- VERSION = "0.1.0"
4
+ VERSION = '0.4.1'
5
5
  end
data/lib/QNE.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'faraday/retry'
3
+ require 'faraday'
4
4
  require 'faraday/net_http_persistent'
5
5
  require_relative 'QNE/version'
6
6
  require_relative 'query_builder'
@@ -9,5 +9,7 @@ require_relative 'connection'
9
9
 
10
10
  module QNE
11
11
  class Error < StandardError; end
12
+ # Your code goes here...
13
+
12
14
  class UnathorizedError < Error; end
13
15
  end
data/lib/base.rb CHANGED
@@ -20,4 +20,4 @@ module QNE
20
20
  response.success?
21
21
  end
22
22
  end
23
- end
23
+ end
data/lib/connection.rb CHANGED
@@ -16,13 +16,11 @@ require_relative 'users'
16
16
 
17
17
  module QNE
18
18
  class Connection
19
- BASE_URI = 'https://dev-api.qne.cloud'.freeze
19
+ BASE_URI = 'https://dev-api.qne.cloud'
20
20
 
21
- # You can provide your own block before executing retry function
22
- def initialize(options = {}, &retry_block)
21
+ def initialize(options = {})
23
22
  @db_code = options.fetch(:db_code, nil) || ENV['QNE_DB_CODE']
24
23
  @api_token = options.fetch(:api_token, nil)
25
- @retry_block = retry_block
26
24
  end
27
25
 
28
26
  def system_version
@@ -90,10 +88,7 @@ module QNE
90
88
  end
91
89
 
92
90
  def connection
93
- @connection ||= Faraday.new(faraday_params) do |conn|
94
- conn.request :retry, retry_options
95
- conn.adapter Faraday.default_adapter
96
- end
91
+ @connection ||= Faraday.new(faraday_params)
97
92
  end
98
93
 
99
94
  private
@@ -106,17 +101,6 @@ module QNE
106
101
  }
107
102
  end
108
103
 
109
- def retry_options
110
- @retry_options ||= {
111
- retry_statuses: [401, 409, 500],
112
- max: ENV.fetch('MAX_REQUEST_RETRY', '3').to_i, # total request will be made is 4
113
- interval: ENV.fetch('INTERVAL_RETRY_NUMBER', '10').to_i, # interval each retry request
114
- backoff_factor: 0,
115
- exceptions: [Faraday::ResourceNotFound, Faraday::UnauthorizedError, Faraday::TimeoutError, Faraday::ConnectionFailed],
116
- retry_block: @retry_block
117
- }
118
- end
119
-
120
104
  def auth_method
121
105
  @api_token ? bearer_auth : dbcode_auth
122
106
  end
@@ -4,7 +4,7 @@ module QNE
4
4
  class DefaultTaxCode < Base
5
5
  include ::QNE::QueryBuilder
6
6
 
7
- PATH = '/api/DefaultTaxCodes/OutputTaxCode'.freeze
7
+ PATH = '/api/DefaultTaxCodes/OutputTaxCode'
8
8
 
9
9
  def call
10
10
  @response = conn.get(PATH)
@@ -12,4 +12,4 @@ module QNE
12
12
  parse_to_json(@response.body)
13
13
  end
14
14
  end
15
- end
15
+ end
data/lib/query_builder.rb CHANGED
@@ -5,10 +5,10 @@ module QNE
5
5
  OPERATORS = {
6
6
  eq: {
7
7
  string: "COLUMN OPERATOR 'VALUE'",
8
- default: "COLUMN OPERATOR VALUE",
8
+ default: 'COLUMN OPERATOR VALUE'
9
9
  },
10
10
  in: {
11
- default: "COLUMN OPERATOR (VALUE)"
11
+ default: 'COLUMN OPERATOR (VALUE)'
12
12
  }
13
13
  }.freeze
14
14
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module QNE
4
4
  class SystemVersion < Base
5
- PATH = '/api/System/Version'.freeze
5
+ PATH = '/api/System/Version'
6
6
 
7
7
  def call
8
8
  @response = conn.get(PATH)
@@ -10,4 +10,4 @@ module QNE
10
10
  parse_to_json(@response.body)
11
11
  end
12
12
  end
13
- end
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: QNE
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nujian Den Mark Meralpis
@@ -10,59 +10,59 @@ cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
- name: faraday-retry
13
+ name: faraday
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - "~>"
16
+ - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '2.3'
18
+ version: '1.10'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - "~>"
23
+ - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '2.3'
25
+ version: '1.10'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: faraday-net_http_persistent
28
28
  requirement: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - "~>"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '2.3'
32
+ version: '1.2'
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '2.3'
39
+ version: '1.2'
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: net-http-persistent
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: '4.0'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
53
  version: '4.0'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: webmock
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '3.4'
61
61
  type: :development
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '3.4'
68
68
  description: Consumes QNE APIs
@@ -74,6 +74,7 @@ extra_rdoc_files: []
74
74
  files:
75
75
  - ".rspec"
76
76
  - ".rubocop.yml"
77
+ - ".ruby-version"
77
78
  - CHANGELOG.md
78
79
  - CODE_OF_CONDUCT.md
79
80
  - Gemfile