connect_wise 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+ require 'rubocop/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+ RuboCop::RakeTask.new
7
+
8
+ task default: %i[spec rubocop]
9
+
10
+ desc 'Runs openapi-generator generate from ./openapi.json, and then rubocop:autocorrect'
11
+ task :generate do
12
+ `openapi-generator generate -i openapi.json -g ruby -c config.yaml -t templates`
13
+ Rake::Task['rubocop:autocorrect'].invoke
14
+ end
data/config.yaml ADDED
@@ -0,0 +1,82 @@
1
+ # Description: Sort method arguments to place required parameters before optional parameters.
2
+ sortParamsByRequiredFlag: true
3
+
4
+ # Description: Sort model properties to place required parameters before optional parameters.
5
+ sortModelPropertiesByRequiredFlag: true
6
+
7
+ # Description: Whether to ensure parameter names are unique in an operation (rename parameters that are not).
8
+ ensureUniqueParams: true
9
+
10
+ # Description: boolean, toggles whether unicode identifiers are allowed in names or not, default is false
11
+ allowUnicodeIdentifiers: false
12
+
13
+ # Description: Add form or body parameters to the beginning of the parameter list.
14
+ prependFormOrBodyParameters: false
15
+
16
+ # Description: Set to false for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).
17
+ # Available Values:
18
+ # true
19
+ # The mapping in the discriminator includes descendent schemas that allOf inherit from self and the discriminator mapping schemas in the OAS document.
20
+ # false
21
+ # The mapping in the discriminator includes any descendent schemas that allOf inherit from self, any oneOf schemas, any anyOf schemas, any x-discriminator-values, and the discriminator mapping schemas in the OAS document AND Codegen validates that oneOf and anyOf schemas contain the required discriminator and throws an error if the discriminator is missing.
22
+ legacyDiscriminatorBehavior: true
23
+
24
+ # Description: If false, the 'additionalProperties' implementation (set to true by default) is compliant with the OAS and JSON schema specifications. If true (default), keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
25
+ # Available Values:
26
+ # false
27
+ # The 'additionalProperties' implementation is compliant with the OAS and JSON schema specifications.
28
+ # true
29
+ # Keep the old (incorrect) behaviour that 'additionalProperties' is set to false by default.
30
+ disallowAdditionalPropertiesIfNotPresent: true
31
+
32
+ # Description: If the server adds new enum cases, that are unknown by an old spec/client, the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the server sends an enum case that is not known by the client/spec, they can safely fallback to this case.
33
+ # Available Values:
34
+ # false
35
+ # No changes to the enum's are made, this is the default option.
36
+ # true
37
+ # With this option enabled, each enum will have a new case, 'unknown_default_open_api', so that when the enum case sent by the server is not known by the client/spec, can safely be decoded to this case.
38
+ enumUnknownDefaultCase: false
39
+
40
+ # Description: gem name (convention: underscore_case).
41
+ gemName: connect_wise
42
+
43
+ # Description: top module name (convention: CamelCase, usually corresponding to gem name).
44
+ moduleName: ConnectWise
45
+
46
+ # Description: gem version.
47
+ gemVersion: 0.0.1
48
+
49
+ # Description: gem license.
50
+ gemLicense: MIT
51
+
52
+ # Description: gem required Ruby version.
53
+ gemRequiredRubyVersion: '>= 2.7'
54
+
55
+ # Description: gem homepage.
56
+ gemHomepage: https://github.com/Jetbuilt/connect_wise
57
+
58
+ # Description: gem summary.
59
+ gemSummary: A ruby wrapper for the ConnectWise API
60
+
61
+ # Description: gem description.
62
+ gemDescription: OpenAPI generated wrapper for the ConnectWise API
63
+
64
+ # Description: gem author (only one is supported).
65
+ gemAuthor: Jared Moody
66
+
67
+ # Description: gem author email (only one is supported).
68
+ gemAuthorEmail: jared@jetbuilt.com
69
+
70
+ # Description: Hides the generation timestamp when files are generated.
71
+ hideGenerationTimestamp: true
72
+
73
+ # Description: Use autoload instead of require to load modules.
74
+ useAutoload: true
75
+
76
+ # Description: HTTP library template (sub-template) to use
77
+ # Available Values:
78
+ # faraday
79
+ # Faraday >= 1.0.1 (https://github.com/lostisland/faraday)
80
+ # typhoeus
81
+ # Typhoeus >= 1.0.1 (https://github.com/typhoeus/typhoeus)
82
+ library: faraday
@@ -0,0 +1,34 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ require 'connect_wise/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = 'connect_wise'
8
+ s.version = ConnectWise::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ['Jared Moody']
11
+ s.email = ['jared@jetbuilt.com']
12
+ s.homepage = 'https://github.com/Jetbuilt/connect_wise'
13
+ s.summary = 'A ruby wrapper for the ConnectWise API'
14
+ s.description = 'OpenAPI generated wrapper for the ConnectWise API'
15
+ s.license = 'MIT'
16
+ s.required_ruby_version = '>= 2.7'
17
+ s.metadata['rubygems_mfa_required'] = 'true'
18
+
19
+ s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0'
20
+ s.add_runtime_dependency 'faraday-multipart'
21
+
22
+ s.add_development_dependency 'rake', '~> 13.0'
23
+ s.add_development_dependency 'rspec', '~> 3.12'
24
+ s.add_development_dependency 'rubocop', '~> 1.44.1'
25
+ s.add_development_dependency 'rubocop-performance', '~> 1.15.0'
26
+ s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
27
+
28
+ s.files = `git ls-files -z`.split("\x0").reject do |f|
29
+ f.match(%r{^(docs|spec|templates)/})
30
+ end
31
+
32
+ s.executables = []
33
+ s.require_paths = ['lib']
34
+ end
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module ConnectWise
12
- VERSION = '0.1.0'
12
+ VERSION = '0.1.1'
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_wise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Moody
@@ -121,6 +121,20 @@ executables: []
121
121
  extensions: []
122
122
  extra_rdoc_files: []
123
123
  files:
124
+ - ".github/workflows/ruby.yml"
125
+ - ".gitignore"
126
+ - ".openapi-generator-ignore"
127
+ - ".openapi-generator/FILES"
128
+ - ".openapi-generator/VERSION"
129
+ - ".rspec"
130
+ - ".rubocop.yml"
131
+ - CODE_OF_CONDUCT.md
132
+ - Gemfile
133
+ - LICENSE
134
+ - README.md
135
+ - Rakefile
136
+ - config.yaml
137
+ - connect_wise.gemspec
124
138
  - lib/connect_wise.rb
125
139
  - lib/connect_wise/api/accounting_batches_api.rb
126
140
  - lib/connect_wise/api/accounting_package_setups_api.rb