automation-test 1.18 → 1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/{apimatic_calculator_test → apimatic_calculator}/api_helper.rb +2 -2
  4. data/lib/{apimatic_calculator_test → apimatic_calculator}/client.rb +3 -3
  5. data/lib/{apimatic_calculator_test → apimatic_calculator}/configuration.rb +2 -2
  6. data/lib/{apimatic_calculator_test → apimatic_calculator}/controllers/base_controller.rb +2 -2
  7. data/lib/{apimatic_calculator_test → apimatic_calculator}/controllers/simple_calculator_controller.rb +2 -2
  8. data/lib/{apimatic_calculator_test → apimatic_calculator}/exceptions/api_exception.rb +2 -2
  9. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/faraday_client.rb +2 -2
  10. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/http_call_back.rb +2 -2
  11. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/http_client.rb +2 -2
  12. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/http_method_enum.rb +2 -2
  13. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/http_request.rb +2 -2
  14. data/lib/{apimatic_calculator_test → apimatic_calculator}/http/http_response.rb +2 -2
  15. data/lib/{apimatic_calculator_test → apimatic_calculator}/models/base_model.rb +2 -2
  16. data/lib/{apimatic_calculator_test → apimatic_calculator}/models/operation_type_enum.rb +2 -2
  17. data/lib/{apimatic_calculator_test → apimatic_calculator}/utilities/date_time_helper.rb +2 -2
  18. data/lib/{apimatic_calculator_test → apimatic_calculator}/utilities/file_wrapper.rb +2 -2
  19. data/lib/apimatic_calculator.rb +38 -0
  20. metadata +19 -19
  21. data/lib/apimatic_calculator_test.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71ef7553b12704e52ec0427de009c7e0bd265315c9fef38d37f1c0a9b083a2b8
4
- data.tar.gz: 1379562586eb9585a5fa0f33340bc53730bcaf3a57700765e5630c6453c625e8
3
+ metadata.gz: c4f4d4c8244b7d92484f24313e1885a74fb6154a8044fbc5d32694ca4cbe802c
4
+ data.tar.gz: 4efdc95f1cbb8a4889cbf0b0a8e7bb2e1ce401e2a2c3e8a1dc4894cc27495871
5
5
  SHA512:
6
- metadata.gz: aba577093b79041afd15fde946d2a5d001ed8486a7a47e85b065f89de48e8ce56dc8c30e4e7bba3ca5c373a51ed222b54f51ed690982c4e943cb1843b5c4a191
7
- data.tar.gz: d6194dc793a016c348fb8ed33ef4e4f5899c6e48ca81f2b414b7e542166fa6f1d2818f0da0307edd1054fb67e22ecee103955e7ec3c961e5d51c3b1114f8fe85
6
+ metadata.gz: 5af3f880446823a884fee99314a6c18f0e999ec04a8ebe1db0ec7f303348c0ab08488fcab3dbfde461bb1417771a132adcc856f4ad7fd48daa879d9093b67cf0
7
+ data.tar.gz: bfdae30bb85ac6e95c80d50216204945763ef80ee28b1ef0bbd19c60a221c2c533e2e46b5a06fe9d07ca4156ecdbc998dcdded2112fd4a48acd51536d1b3ba67
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # Getting Started with APIMATIC Calculator test
2
+ # Getting Started with APIMATIC Calculator
3
3
 
4
4
  ## Introduction
5
5
 
@@ -10,16 +10,16 @@ Simple calculator API hosted on APIMATIC for demo on 29th Sept
10
10
  Install the gem from the command line:
11
11
 
12
12
  ```ruby
13
- gem install automation-test -v 1.18
13
+ gem install automation-test -v 1.19
14
14
  ```
15
15
 
16
16
  Or add the gem to your Gemfile and run `bundle`:
17
17
 
18
18
  ```ruby
19
- gem 'automation-test', '1.18'
19
+ gem 'automation-test', '1.19'
20
20
  ```
21
21
 
22
- For additional gem details, see the [RubyGems page for the automation-test gem](https://rubygems.org/gems/automation-test/versions/1.18).
22
+ For additional gem details, see the [RubyGems page for the automation-test gem](https://rubygems.org/gems/automation-test/versions/1.19).
23
23
 
24
24
  ## Initialize the API Client
25
25
 
@@ -39,7 +39,7 @@ The following parameters are configurable for the API Client:
39
39
  The API client can be initialized as follows:
40
40
 
41
41
  ```ruby
42
- client = ApimaticCalculatorTest::Client.new(
42
+ client = ApimaticCalculator::Client.new(
43
43
  )
44
44
  ```
45
45
 
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # API utility class
8
8
  class APIHelper
9
9
  # Serializes an array parameter (creates key value pairs).
@@ -1,10 +1,10 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
7
- # apimatic_calculator_test client class.
6
+ module ApimaticCalculator
7
+ # apimatic_calculator client class.
8
8
  class Client
9
9
  attr_reader :config
10
10
 
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # An enum for SDK environments.
8
8
  class Environment
9
9
  # PRODUCTION: This environment connect to the LIVE calculator API
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # BaseController.
8
8
  class BaseController
9
9
  attr_accessor :config, :http_call_back
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # SimpleCalculatorController
8
8
  class SimpleCalculatorController < BaseController
9
9
  def initialize(config, http_call_back: nil)
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # Class for exceptions when there is a network error, status code error, etc.
8
8
  class APIException < StandardError
9
9
  attr_reader :response, :response_code
@@ -1,4 +1,4 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
@@ -6,7 +6,7 @@
6
6
  require 'faraday/http_cache'
7
7
  require 'faraday_middleware'
8
8
 
9
- module ApimaticCalculatorTest
9
+ module ApimaticCalculator
10
10
  # An implementation of HttpClient.
11
11
  class FaradayClient < HttpClient
12
12
  # The constructor.
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # HttpCallBack allows defining callables for pre and post API calls.
8
8
  class HttpCallBack
9
9
  # A controller will call this method before making an HTTP Request.
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # An interface for the methods that an HTTP Client must implement.
8
8
  #
9
9
  # This class should not be instantiated but should be used as a base class
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # HTTP Methods Enumeration.
8
8
  class HttpMethodEnum
9
9
  HTTPMETHODENUM = [GET = 'GET'.freeze, POST = 'POST'.freeze,
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # Represents a single Http Request.
8
8
  class HttpRequest
9
9
  attr_accessor :http_method, :query_url, :headers,
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # Http response received.
8
8
  class HttpResponse
9
9
  attr_reader :status_code, :reason_phrase, :headers, :raw_body, :request
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # Base model.
8
8
  class BaseModel
9
9
  # Returns a Hash representation of the current object.
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # Possible operators are sum, subtract, multiply, divide
8
8
  class OperationTypeEnum
9
9
  OPERATION_TYPE_ENUM = [
@@ -1,10 +1,10 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
6
  require 'date'
7
- module ApimaticCalculatorTest
7
+ module ApimaticCalculator
8
8
  # A utility that supports dateTime conversion to different formats
9
9
  class DateTimeHelper
10
10
  # Safely converts a DateTime object into a rfc1123 format string
@@ -1,9 +1,9 @@
1
- # apimatic_calculator_test
1
+ # apimatic_calculator
2
2
  #
3
3
  # This file was automatically generated by APIMATIC v2.0
4
4
  # ( https://apimatic.io ).
5
5
 
6
- module ApimaticCalculatorTest
6
+ module ApimaticCalculator
7
7
  # A utility to allow users to set the content-type for files
8
8
  class FileWrapper
9
9
  attr_reader :content_type, :file
@@ -0,0 +1,38 @@
1
+ # apimatic_calculator
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+ require 'faraday'
9
+ require 'certifi'
10
+ require 'logging'
11
+
12
+ require_relative 'apimatic_calculator/api_helper'
13
+ require_relative 'apimatic_calculator/client'
14
+
15
+ # Utilities
16
+ require_relative 'apimatic_calculator/utilities/file_wrapper'
17
+ require_relative 'apimatic_calculator/utilities/date_time_helper'
18
+
19
+ # Http
20
+ require_relative 'apimatic_calculator/http/http_call_back'
21
+ require_relative 'apimatic_calculator/http/http_client'
22
+ require_relative 'apimatic_calculator/http/faraday_client'
23
+ require_relative 'apimatic_calculator/http/http_method_enum'
24
+ require_relative 'apimatic_calculator/http/http_request'
25
+ require_relative 'apimatic_calculator/http/http_response'
26
+
27
+ # Models
28
+ require_relative 'apimatic_calculator/models/base_model'
29
+ require_relative 'apimatic_calculator/models/operation_type_enum'
30
+
31
+ # Exceptions
32
+ require_relative 'apimatic_calculator/exceptions/api_exception'
33
+
34
+ require_relative 'apimatic_calculator/configuration'
35
+
36
+ # Controllers
37
+ require_relative 'apimatic_calculator/controllers/base_controller'
38
+ require_relative 'apimatic_calculator/controllers/simple_calculator_controller'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: automation-test
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.18'
4
+ version: '1.19'
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIMatic SDK Generator
@@ -100,23 +100,23 @@ extra_rdoc_files: []
100
100
  files:
101
101
  - LICENSE
102
102
  - README.md
103
- - lib/apimatic_calculator_test.rb
104
- - lib/apimatic_calculator_test/api_helper.rb
105
- - lib/apimatic_calculator_test/client.rb
106
- - lib/apimatic_calculator_test/configuration.rb
107
- - lib/apimatic_calculator_test/controllers/base_controller.rb
108
- - lib/apimatic_calculator_test/controllers/simple_calculator_controller.rb
109
- - lib/apimatic_calculator_test/exceptions/api_exception.rb
110
- - lib/apimatic_calculator_test/http/faraday_client.rb
111
- - lib/apimatic_calculator_test/http/http_call_back.rb
112
- - lib/apimatic_calculator_test/http/http_client.rb
113
- - lib/apimatic_calculator_test/http/http_method_enum.rb
114
- - lib/apimatic_calculator_test/http/http_request.rb
115
- - lib/apimatic_calculator_test/http/http_response.rb
116
- - lib/apimatic_calculator_test/models/base_model.rb
117
- - lib/apimatic_calculator_test/models/operation_type_enum.rb
118
- - lib/apimatic_calculator_test/utilities/date_time_helper.rb
119
- - lib/apimatic_calculator_test/utilities/file_wrapper.rb
103
+ - lib/apimatic_calculator.rb
104
+ - lib/apimatic_calculator/api_helper.rb
105
+ - lib/apimatic_calculator/client.rb
106
+ - lib/apimatic_calculator/configuration.rb
107
+ - lib/apimatic_calculator/controllers/base_controller.rb
108
+ - lib/apimatic_calculator/controllers/simple_calculator_controller.rb
109
+ - lib/apimatic_calculator/exceptions/api_exception.rb
110
+ - lib/apimatic_calculator/http/faraday_client.rb
111
+ - lib/apimatic_calculator/http/http_call_back.rb
112
+ - lib/apimatic_calculator/http/http_client.rb
113
+ - lib/apimatic_calculator/http/http_method_enum.rb
114
+ - lib/apimatic_calculator/http/http_request.rb
115
+ - lib/apimatic_calculator/http/http_response.rb
116
+ - lib/apimatic_calculator/models/base_model.rb
117
+ - lib/apimatic_calculator/models/operation_type_enum.rb
118
+ - lib/apimatic_calculator/utilities/date_time_helper.rb
119
+ - lib/apimatic_calculator/utilities/file_wrapper.rb
120
120
  homepage: https://apimatic.io
121
121
  licenses:
122
122
  - MIT
@@ -143,5 +143,5 @@ rubyforge_project:
143
143
  rubygems_version: 2.7.6
144
144
  signing_key:
145
145
  specification_version: 4
146
- summary: apimatic_calculator_test
146
+ summary: apimatic_calculator
147
147
  test_files: []
@@ -1,39 +0,0 @@
1
- # apimatic_calculator_test
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- require 'json'
8
- require 'faraday'
9
- require 'certifi'
10
- require 'logging'
11
-
12
- require_relative 'apimatic_calculator_test/api_helper'
13
- require_relative 'apimatic_calculator_test/client'
14
-
15
- # Utilities
16
- require_relative 'apimatic_calculator_test/utilities/file_wrapper'
17
- require_relative 'apimatic_calculator_test/utilities/date_time_helper'
18
-
19
- # Http
20
- require_relative 'apimatic_calculator_test/http/http_call_back'
21
- require_relative 'apimatic_calculator_test/http/http_client'
22
- require_relative 'apimatic_calculator_test/http/faraday_client'
23
- require_relative 'apimatic_calculator_test/http/http_method_enum'
24
- require_relative 'apimatic_calculator_test/http/http_request'
25
- require_relative 'apimatic_calculator_test/http/http_response'
26
-
27
- # Models
28
- require_relative 'apimatic_calculator_test/models/base_model'
29
- require_relative 'apimatic_calculator_test/models/operation_type_enum'
30
-
31
- # Exceptions
32
- require_relative 'apimatic_calculator_test/exceptions/api_exception'
33
-
34
- require_relative 'apimatic_calculator_test/configuration'
35
-
36
- # Controllers
37
- require_relative 'apimatic_calculator_test/controllers/base_controller'
38
- require_relative 'apimatic_calculator_test/controllers/simple_calculator' \
39
- '_controller'