automation-test 1.17 → 1.21

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 +6 -6
  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 +20 -20
  21. data/lib/apimatic_calculator_test.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ff836b7ed30aa6afdc2dbdce327816df7c0c67eec72f94a54f7400a7cca30c7
4
- data.tar.gz: 80a48f03de120a3a53d385b40cf970a4e4d42932e83ab027e3ff8d8b3fce5958
3
+ metadata.gz: b4398ab3c93c66c63b048edb3e19fcf25b665c5aecc3f06adf507a1568fe0031
4
+ data.tar.gz: ddedf14ba91323797025aefdb8172ffbb19bd8079931ee4362a51e2d0a6f71ce
5
5
  SHA512:
6
- metadata.gz: f584e79005b6cdc5d8e8695fa48c6cdbff6798c3adfe7b1c358dbbb171c1b8dcd308d38819c5b4b07b542b5463ef76a904368445e9880e3e77ff03f2905b6ea8
7
- data.tar.gz: b00a7f03fd150c16c665762ac897c381434aeaabe269c68ab0246cbf3d2564d207d640d7b1187483a6109398c3cb1eca04cc5d4a6743df5019ae57280841e466
6
+ metadata.gz: 81e06b75a19c2ba2336d4e38ef4adf30ef7677e1726fc391d5b6fe910f3de838086a3e78620f86ebbb834cb6e7907b39867d9412d73b2c1140aed34b13be4e08
7
+ data.tar.gz: 866136832fd180889cabf37d6c65d3b1e5a898eda2cbb912e80c5a51db03d6a2fac8009203e25b0723edfba04b0412069123830755c4f7d76889549b208a532e
data/README.md CHANGED
@@ -1,25 +1,25 @@
1
1
 
2
- # Getting Started with APIMATIC Calculator test
2
+ # Getting Started with APIMATIC Calculator
3
3
 
4
4
  ## Introduction
5
5
 
6
- Simple calculator API hosted on APIMATIC for demo on 29th Sept
6
+ Simple calculator API hosted on APIMATIC for APIAddicts
7
7
 
8
8
  ## Install the Package
9
9
 
10
10
  Install the gem from the command line:
11
11
 
12
12
  ```ruby
13
- gem install automation-test -v 1.17
13
+ gem install automation-test -v 1.21
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.17'
19
+ gem 'automation-test', '1.21'
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.17).
22
+ For additional gem details, see the [RubyGems page for the automation-test gem](https://rubygems.org/gems/automation-test/versions/1.21).
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.17'
4
+ version: '1.21'
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIMatic SDK Generator
@@ -92,7 +92,7 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '2.2'
95
- description: Simple calculator API hosted on APIMATIC for demo on 29th Sept
95
+ description: Simple calculator API hosted on APIMATIC for APIAddicts
96
96
  email: support@apimatic.io
97
97
  executables: []
98
98
  extensions: []
@@ -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'