myob_acumatica 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 678933f096d8f4456493114fee9b10c7a441dbaff1240f3446a805e8cc477780
4
+ data.tar.gz: 255125625f54ddce79e8d8498cb8bd19c44ae42fc33d75b383d9cb252c689798
5
+ SHA512:
6
+ metadata.gz: ebb16230ea6a77228861d9ffa4ebf3d8f9a69134f428c370dff21bb37c4690fe2aafd118b0a445ae54b5012a599503ce9451f014df1d4444f4acf4aef3c59b55
7
+ data.tar.gz: c004a8448658a209e54c42608d6759047218f4a62acfef1b26ba9803b1ef76447d354f069f9eecec8df590d070c9080026f09ca45cd8fd55e6ce5f3f596a938a
data/.rubocop.yml ADDED
@@ -0,0 +1,26 @@
1
+ # The behavior of RuboCop can be controlled via the .rubocop.yml
2
+ # configuration file. It makes it possible to enable/disable
3
+ # certain cops (checks) and to alter their behavior if they accept
4
+ # any parameters. The file can be placed either in your home
5
+ # directory or in some project directory.
6
+ #
7
+ # RuboCop will start looking for the configuration file in the directory
8
+ # where the inspected file is and continue its way up to the root directory.
9
+ #
10
+ # See https://docs.rubocop.org/rubocop/configuration
11
+
12
+ Style/Documentation:
13
+ Enabled: false
14
+
15
+ Metrics/MethodLength:
16
+ Enabled: true
17
+ Max: 50
18
+
19
+ Metrics/ParameterLists:
20
+ Enabled: false
21
+
22
+ Layout/FirstHashElementIndentation:
23
+ EnforcedStyle: consistent
24
+
25
+ Layout/HashAlignment:
26
+ EnforcedStyle: key
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.6
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-02-05
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in myob_acumatica.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
11
+
12
+ gem 'rubocop', '~> 1.21'
data/Gemfile.lock ADDED
@@ -0,0 +1,110 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ myob_acumatica (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ base64 (0.2.0)
11
+ byebug (11.1.3)
12
+ coderay (1.1.3)
13
+ diff-lcs (1.5.1)
14
+ dotenv (3.1.7)
15
+ ffi (1.17.1-arm64-darwin)
16
+ json (2.9.1)
17
+ language_server-protocol (3.17.0.4)
18
+ listen (3.9.0)
19
+ rb-fsevent (~> 0.10, >= 0.10.3)
20
+ rb-inotify (~> 0.9, >= 0.9.10)
21
+ logger (1.6.5)
22
+ method_source (1.1.0)
23
+ mustermann (3.0.3)
24
+ ruby2_keywords (~> 0.0.1)
25
+ nio4r (2.7.4)
26
+ parallel (1.26.3)
27
+ parser (3.3.7.1)
28
+ ast (~> 2.4.1)
29
+ racc
30
+ pry (0.15.2)
31
+ coderay (~> 1.1)
32
+ method_source (~> 1.0)
33
+ puma (6.6.0)
34
+ nio4r (~> 2.0)
35
+ racc (1.8.1)
36
+ rack (3.1.9)
37
+ rack-protection (4.1.1)
38
+ base64 (>= 0.1.0)
39
+ logger (>= 1.6.0)
40
+ rack (>= 3.0.0, < 4)
41
+ rack-session (2.1.0)
42
+ base64 (>= 0.1.0)
43
+ rack (>= 3.0.0)
44
+ rackup (2.2.0)
45
+ rack (>= 3)
46
+ rainbow (3.1.1)
47
+ rake (13.2.1)
48
+ rb-fsevent (0.11.2)
49
+ rb-inotify (0.11.1)
50
+ ffi (~> 1.0)
51
+ regexp_parser (2.10.0)
52
+ rerun (0.14.0)
53
+ listen (~> 3.0)
54
+ rspec (3.13.0)
55
+ rspec-core (~> 3.13.0)
56
+ rspec-expectations (~> 3.13.0)
57
+ rspec-mocks (~> 3.13.0)
58
+ rspec-core (3.13.3)
59
+ rspec-support (~> 3.13.0)
60
+ rspec-expectations (3.13.3)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-mocks (3.13.2)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.13.0)
66
+ rspec-support (3.13.2)
67
+ rubocop (1.71.2)
68
+ json (~> 2.3)
69
+ language_server-protocol (>= 3.17.0)
70
+ parallel (~> 1.10)
71
+ parser (>= 3.3.0.2)
72
+ rainbow (>= 2.2.2, < 4.0)
73
+ regexp_parser (>= 2.9.3, < 3.0)
74
+ rubocop-ast (>= 1.38.0, < 2.0)
75
+ ruby-progressbar (~> 1.7)
76
+ unicode-display_width (>= 2.4.0, < 4.0)
77
+ rubocop-ast (1.38.0)
78
+ parser (>= 3.3.1.0)
79
+ ruby-progressbar (1.13.0)
80
+ ruby2_keywords (0.0.5)
81
+ sinatra (4.1.1)
82
+ logger (>= 1.6.0)
83
+ mustermann (~> 3.0)
84
+ rack (>= 3.0.0, < 4)
85
+ rack-protection (= 4.1.1)
86
+ rack-session (>= 2.0.0, < 3)
87
+ tilt (~> 2.0)
88
+ tilt (2.6.0)
89
+ unicode-display_width (3.1.4)
90
+ unicode-emoji (~> 4.0, >= 4.0.4)
91
+ unicode-emoji (4.0.4)
92
+
93
+ PLATFORMS
94
+ arm64-darwin-24
95
+
96
+ DEPENDENCIES
97
+ byebug (~> 11.1)
98
+ dotenv (~> 3.1)
99
+ myob_acumatica!
100
+ pry (~> 0.15)
101
+ puma (~> 6.6)
102
+ rackup (~> 2.2)
103
+ rake (~> 13.0)
104
+ rerun (~> 0.14)
105
+ rspec (~> 3.0)
106
+ rubocop (~> 1.21)
107
+ sinatra (~> 4.1)
108
+
109
+ BUNDLED WITH
110
+ 2.3.27
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2025 Adam Mikulasev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,100 @@
1
+ # Myob Acumatica
2
+
3
+ Access the MYOB Acumatica HTTP API via Ruby
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add myob_acumatica
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install myob_acumatica
14
+
15
+ ## Usage
16
+
17
+ ## 1. Get an access token using the OAuth2 Authorization Code Grant Flow
18
+
19
+ ### i. Generate Authorization URL
20
+
21
+ To initiate the OAuth2 flow, generate an authorization URL:
22
+
23
+ ```ruby
24
+ MyobAcumatica::OAuth2.authorize_url(
25
+ instance_url: ...,
26
+ client_id: ...,
27
+ redirect_uri: ...,
28
+ scope: 'api offline'
29
+ )
30
+
31
+ => https://{instance_url}/identity/connect/authorize?response_type=code&client_id={client_id}&redirect_uri={redirect_uri}&scope=api+offline_access
32
+ ```
33
+
34
+ Then redirect users to this URL to start the authorization process.
35
+
36
+ ### ii. Exchange the authorization code for an access token
37
+
38
+ After the user has authorized the application, they will be redirected back to your application with an authorization code.
39
+
40
+ Use this code to request an access token:
41
+
42
+ ```ruby
43
+ MyobAcumatica::OAuth2.authorize_token(
44
+ instance_url: ...,
45
+ client_id: ...,
46
+ client_secret: ...,
47
+ code: params['code'],
48
+ redirect_uri: ...,
49
+ )
50
+
51
+ => {"access_token":"abc",expires_in":3600,"token_type":"Bearer","refresh_token":"def","scope":"api offline_access"}
52
+ ```
53
+
54
+
55
+ ### iii. Refresh the access token using the refresh token
56
+
57
+ If the access token expires, you can use the refresh token received during the token exchange to obtain a new access token:
58
+
59
+ ```ruby
60
+ MyobAcumatica::OAuth2.refresh_token(
61
+ instance_url: ENV['INSTANCE_URL'],
62
+ client_id: ENV['CLIENT_ID'],
63
+ client_secret: ENV['CLIENT_SECRET'],
64
+ refresh_token: params[:refresh_token],
65
+ logger: Logger.new($stdout)
66
+ )
67
+
68
+ => {"access_token":"ghi",expires_in":3600,"token_type":"Bearer","refresh_token":"jkl","scope":"api offline_access"}
69
+ ```
70
+
71
+ ## 2. Hit the MYOB Accumatica API
72
+
73
+ ```ruby
74
+ customers = MyobAcumatica::Customer.list(
75
+ instance_url: ...,
76
+ endpoint_name: 'Default',
77
+ endpoint_version: ...,
78
+ access_token: token['access_token'],
79
+ query_params: { filter: 'IsActive eq true' },
80
+ logger: Logger.new($stdout)
81
+ )
82
+ ```
83
+
84
+ ## Development
85
+
86
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
87
+
88
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
89
+
90
+ ## Contributing
91
+
92
+ Bug reports and pull requests are welcome on GitHub at https://github.com/fast-programmer/myob_acumatica. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/fast-programmer/myob_acumatica/blob/master/CODE_OF_CONDUCT.md).
93
+
94
+ ## License
95
+
96
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
97
+
98
+ ## Code of Conduct
99
+
100
+ Everyone interacting in the MyobAcumatica project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fast-programmer/myob_acumatica/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require 'rubocop/rake_task'
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/examples/app.rb ADDED
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'myob_acumatica'
4
+
5
+ require 'sinatra/base'
6
+ require 'dotenv'
7
+
8
+ Dotenv.load
9
+
10
+ module MyobAcumaticIntegration
11
+ class App < Sinatra::Base
12
+ set :port, 4567
13
+
14
+ get '/' do
15
+ 'Welcome to Myob Acumatica Integration!'
16
+ end
17
+
18
+ get '/oauth2/authorize' do
19
+ authorize_url = MyobAcumatica::OAuth2.authorize_url(
20
+ instance_url: ENV['INSTANCE_URL'],
21
+ client_id: ENV['CLIENT_ID'],
22
+ redirect_uri: ENV['REDIRECT_URI'],
23
+ scope: ENV['SCOPE']
24
+ )
25
+
26
+ redirect authorize_url
27
+ end
28
+
29
+ get '/oauth2/callback' do
30
+ response = MyobAcumatica::OAuth2.authorize_token(
31
+ instance_url: ENV['INSTANCE_URL'],
32
+ client_id: ENV['CLIENT_ID'],
33
+ client_secret: ENV['CLIENT_SECRET'],
34
+ code: params[:code],
35
+ redirect_uri: ENV['REDIRECT_URI'],
36
+ logger: logger
37
+ )
38
+
39
+ customers = MyobAcumatica::Customer.list(
40
+ instance_url: ENV['INSTANCE_URL'],
41
+ endpoint_name: ENV['ENDPOINT_NAME'],
42
+ endpoint_version: ENV['ENDPOINT_VERSION'],
43
+ access_token: response['access_token'],
44
+ query_params: { filter: 'IsActive eq true' },
45
+ logger: Logger.new($stdout)
46
+ )
47
+
48
+ content_type :json
49
+
50
+ {
51
+ response: response,
52
+ customers: customers
53
+ }.to_json
54
+ end
55
+
56
+ get '/oauth2/refresh' do
57
+ response = MyobAcumatica::OAuth2.refresh_token(
58
+ instance_url: ENV['INSTANCE_URL'],
59
+ client_id: ENV['CLIENT_ID'],
60
+ client_secret: ENV['CLIENT_SECRET'],
61
+ refresh_token: params[:refresh_token],
62
+ logger: Logger.new($stdout)
63
+ )
64
+
65
+ content_type :json
66
+
67
+ {
68
+ refresh_token: params[:refresh_token],
69
+ response: response
70
+ }.to_json
71
+ end
72
+
73
+ run! if app_file == $PROGRAM_NAME
74
+ end
75
+ end
76
+
77
+ # bundle exec rerun --pattern '**/*.rb' ruby examples/app.rb
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MyobAcumatica
4
+ module Customer
5
+ module_function
6
+
7
+ def list(instance_url:, endpoint_name:, endpoint_version:, access_token:, query_params: {}, logger: nil)
8
+ uri = URI("https://#{instance_url}/entity/#{endpoint_name}/#{endpoint_version}/Customer")
9
+ uri.query = URI.encode_www_form(query_params) unless query_params.empty?
10
+
11
+ http = Net::HTTP.new(uri.host, uri.port)
12
+ http.use_ssl = uri.scheme == 'https'
13
+ http.set_debug_output(logger) if logger
14
+
15
+ request = Net::HTTP::Get.new(uri, {
16
+ 'Authorization' => "Bearer #{access_token}",
17
+ 'Content-Type' => 'application/json',
18
+ 'Accept' => 'application/json'
19
+ })
20
+
21
+ response = http.request(request)
22
+
23
+ JSON.parse(response.body)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MyobAcumatica
4
+ module OAuth2
5
+ module_function
6
+
7
+ def authorize_url(instance_url:, client_id:, redirect_uri:, scope:)
8
+ "https://#{instance_url}/identity/connect/authorize?#{URI.encode_www_form({
9
+ response_type: 'code',
10
+ client_id: client_id,
11
+ redirect_uri: redirect_uri,
12
+ scope: scope
13
+ })}"
14
+ end
15
+
16
+ def authorize_token(instance_url:, client_id:, client_secret:, code:, redirect_uri:, logger: nil)
17
+ Http.post(
18
+ uri: URI("https://#{instance_url}/identity/connect/token"),
19
+ body: {
20
+ grant_type: 'authorization_code',
21
+ client_id: client_id,
22
+ client_secret: client_secret,
23
+ code: code,
24
+ redirect_uri: redirect_uri
25
+ },
26
+ logger: logger
27
+ )
28
+ end
29
+
30
+ def refresh_token(instance_url:, client_id:, client_secret:, refresh_token:, logger: nil)
31
+ Http.post(
32
+ uri: URI("https://#{instance_url}/identity/connect/token"),
33
+ body: {
34
+ grant_type: 'refresh_token',
35
+ client_id: client_id,
36
+ client_secret: client_secret,
37
+ refresh_token: refresh_token
38
+ },
39
+ logger: logger
40
+ )
41
+ end
42
+
43
+ module Http
44
+ module_function
45
+
46
+ def post(uri:, body:, logger: nil)
47
+ http = Net::HTTP.new(uri.host, uri.port)
48
+ http.use_ssl = uri.scheme == 'https'
49
+ http.set_debug_output(logger) if logger
50
+
51
+ request = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/x-www-form-urlencoded')
52
+ request.set_form_data(body)
53
+ response = http.request(request)
54
+
55
+ JSON.parse(response.body)
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module MyobAcumatica
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'net/http'
4
+ require 'uri'
5
+ require 'json'
6
+ require 'logger'
7
+ require 'pry'
8
+
9
+ require_relative 'myob_acumatica/version'
10
+ require_relative 'myob_acumatica/o_auth_2'
11
+ require_relative 'myob_acumatica/customer'
12
+
13
+ module MyobAcumatica
14
+ end
@@ -0,0 +1,4 @@
1
+ module MyobAcumatica
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: myob_acumatica
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam Mikulasev
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-02-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: byebug
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '11.1'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '11.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: dotenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.1'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.15'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.15'
55
+ - !ruby/object:Gem::Dependency
56
+ name: puma
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '6.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '6.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rackup
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rerun
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.14'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.14'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.71'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.71'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sinatra
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '4.1'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '4.1'
125
+ description:
126
+ email:
127
+ - adammikulas@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".rubocop.yml"
133
+ - ".ruby-version"
134
+ - CHANGELOG.md
135
+ - CODE_OF_CONDUCT.md
136
+ - Gemfile
137
+ - Gemfile.lock
138
+ - LICENSE.txt
139
+ - README.md
140
+ - Rakefile
141
+ - examples/app.rb
142
+ - lib/myob_acumatica.rb
143
+ - lib/myob_acumatica/customer.rb
144
+ - lib/myob_acumatica/o_auth_2.rb
145
+ - lib/myob_acumatica/version.rb
146
+ - sig/myob_acumatica.rbs
147
+ homepage: https://www.myob.com/au/erp-software/products/myob-acumatica
148
+ licenses:
149
+ - MIT
150
+ metadata:
151
+ homepage_uri: https://www.myob.com/au/erp-software/products/myob-acumatica
152
+ source_code_uri: https://github.com/fast-programmer/myob_acumatica
153
+ changelog_uri: https://github.com/fast-programmer/myob_acumatica/blob/master/CHANGELOG.md
154
+ post_install_message:
155
+ rdoc_options: []
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 3.1.6
163
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubygems_version: 3.3.27
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: Ruby client for the MYOB Acumatica HTTP API
173
+ test_files: []