From 39afb5a6a5b218056a05947e62cc2bb1f4a6df25 Mon Sep 17 00:00:00 2001 From: OptimusPrime <147086188+manishT72@users.noreply.github.com> Date: Fri, 21 Jun 2024 20:43:36 +0530 Subject: [PATCH] Build from OAS 4.0.0 (#280) * Build from OAS 4.0.0 * update rubocop gem * fix broken links to xero developer guide --- Gemfile | 2 +- Gemfile.lock | 67 ++++++++++++------- README.md | 2 +- docs/accounting/index.html | 4 +- docs/app_store/index.html | 2 +- docs/assets/index.html | 2 +- docs/files/Association.md | 8 ++- docs/files/index.html | 17 ++++- docs/finance/index.html | 2 +- docs/payroll_au/index.html | 2 +- docs/payroll_nz/index.html | 2 +- docs/payroll_uk/index.html | 2 +- docs/projects/index.html | 2 +- .../models/accounting/organisation.rb | 7 +- lib/xero-ruby/models/files/association.rb | 32 ++++++++- lib/xero-ruby/version.rb | 4 +- 16 files changed, 114 insertions(+), 43 deletions(-) diff --git a/Gemfile b/Gemfile index 577f058f..f4dbe484 100644 --- a/Gemfile +++ b/Gemfile @@ -5,5 +5,5 @@ gemspec group :development, :test do gem 'rake', '~> 12.3.3' gem 'pry-byebug' - gem 'rubocop', '~> 0.66.0' + gem 'rubocop', '~> 0.70' end diff --git a/Gemfile.lock b/Gemfile.lock index 172853fb..20fb911c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - xero-ruby (5.0.0) + xero-ruby (7.0.0) faraday (>= 2.0, < 3.0) json (~> 2.1, >= 2.1.0) json-jwt (~> 1.16, >= 1.16.3) @@ -9,49 +9,63 @@ PATH GEM remote: https://rubygems.org/ specs: - activesupport (7.0.4) + activesupport (7.1.3.4) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) aes_key_wrap (1.1.0) ast (2.4.2) - bindata (2.4.14) + base64 (0.2.0) + bigdecimal (3.1.8) + bindata (2.5.0) byebug (11.1.3) coderay (1.1.3) - concurrent-ruby (1.1.10) + concurrent-ruby (1.3.3) + connection_pool (2.4.1) diff-lcs (1.5.0) - faraday (2.7.1) + drb (2.2.1) + faraday (2.8.1) + base64 faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) faraday-follow_redirects (0.3.0) faraday (>= 1, < 3) faraday-net_http (3.0.2) - i18n (1.12.0) + i18n (1.14.5) concurrent-ruby (~> 1.0) - jaro_winkler (1.5.4) - json (2.6.3) - json-jwt (1.16.1) + json (2.7.2) + json-jwt (1.16.6) activesupport (>= 4.2) aes_key_wrap + base64 bindata faraday (~> 2.0) faraday-follow_redirects method_source (1.0.0) - minitest (5.16.3) - parallel (1.21.0) - parser (3.1.0.0) + minitest (5.24.0) + mutex_m (0.2.0) + parallel (1.25.1) + parser (3.3.3.0) ast (~> 2.4.1) + racc pry (0.13.1) coderay (~> 1.1) method_source (~> 1.0) pry-byebug (3.9.0) byebug (~> 11.0) pry (~> 0.13.0) - psych (4.0.3) - stringio + racc (1.8.0) rainbow (3.1.1) rake (12.3.3) + regexp_parser (2.9.2) + rexml (3.3.0) + strscan rspec (3.10.0) rspec-core (~> 3.10.0) rspec-expectations (~> 3.10.0) @@ -65,20 +79,23 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.3) - rubocop (0.66.0) - jaro_winkler (~> 1.5.1) + rubocop (0.93.1) parallel (~> 1.10) - parser (>= 2.5, != 2.5.1.1) - psych (>= 3.1.0) + parser (>= 2.7.1.5) rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 1.8) + rexml + rubocop-ast (>= 0.6.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 1.6) - ruby-progressbar (1.11.0) + unicode-display_width (>= 1.4.0, < 2.0) + rubocop-ast (1.31.3) + parser (>= 3.3.1.0) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) - stringio (3.0.1) - tzinfo (2.0.5) + strscan (3.1.0) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (1.5.0) + unicode-display_width (1.8.0) PLATFORMS ruby @@ -88,8 +105,8 @@ DEPENDENCIES pry-byebug rake (~> 12.3.3) rspec (~> 3.6, >= 3.6.0) - rubocop (~> 0.66.0) + rubocop (~> 0.70) xero-ruby! BUNDLED WITH - 2.2.3 + 2.4.22 diff --git a/README.md b/README.md index d443aeb8..074b1e15 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Sample apps can get you started quickly with simple auth flows to advanced usage | --- | --- | --- | | [`xero-ruby-oauth2-starter`](https://github.com/XeroAPI/Xero-ruby-oauth2-starter) | A Sinatra application showing the basic getting started code to work with the sdk | drawing | [`xero-ruby-oauth2-app`](https://github.com/XeroAPI/Xero-ruby-oauth2-app) | Complete rails app with +95% of api set examples, complex filters, pagination, and user/token management in postgres | drawing -| [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/oauth2/custom-connections) for building M2M integrations to a single org | drawing +| [`xero-ruby-custom-connections-starter`](https://github.com/XeroAPI/xero-ruby-custom-connections-starter) | A getting started Sinatra app showing Custom Connections - a Xero [premium option](https://developer.xero.com/documentation/guides/oauth2/custom-connections) for building M2M integrations to a single org | drawing | [`xero-ruby-sso-form`](https://github.com/XeroAPI/xero-ruby-sso-form) | A basic Sinatra app showing how to implement SSU to Lead | drawing
diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 5844b925..8402476e 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -4062,7 +4062,7 @@ "Class" : { "type" : "string", "description" : "Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM)", - "enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE" ] + "enum" : [ "DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", "LITE", "IGNITE", "GROW", "COMPREHENSIVE" ] }, "Edition" : { "type" : "string", @@ -6100,7 +6100,7 @@