summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-20 15:40:28 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-20 15:40:28 +0000
commitb595cb0c1dec83de5bdee18284abe86614bed33b (patch)
tree8c3d4540f193c5ff98019352f554e921b3a41a72 /vendor
parent2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff)
downloadgitlab-ce-b595cb0c1dec83de5bdee18284abe86614bed33b.tar.gz
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'vendor')
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/.gitlab-ci.yml26
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/Gemfile5
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/Gemfile.lock103
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/LICENSE201
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/devise-pbkdf2-encryptable.gemspec25
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/lib/devise-pbkdf2-encryptable.rb1
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptable.rb16
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/base.rb52
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/pbkdf2_sha512.rb41
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/model.rb77
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/encryptors/pbkdf2_sha512_spec.rb80
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/model_spec.rb127
-rw-r--r--vendor/gems/devise-pbkdf2-encryptable/spec/spec_helper.rb4
-rw-r--r--vendor/gems/error_tracking_open_api/.gitignore39
-rw-r--r--vendor/gems/error_tracking_open_api/.openapi-generator-ignore23
-rw-r--r--vendor/gems/error_tracking_open_api/.openapi-generator/FILES36
-rw-r--r--vendor/gems/error_tracking_open_api/.openapi-generator/VERSION1
-rw-r--r--vendor/gems/error_tracking_open_api/LICENSE7
-rw-r--r--vendor/gems/error_tracking_open_api/README.md103
-rw-r--r--vendor/gems/error_tracking_open_api/Rakefile10
-rw-r--r--vendor/gems/error_tracking_open_api/docs/Error.md36
-rw-r--r--vendor/gems/error_tracking_open_api/docs/ErrorEvent.md32
-rw-r--r--vendor/gems/error_tracking_open_api/docs/ErrorUpdatePayload.md20
-rw-r--r--vendor/gems/error_tracking_open_api/docs/ErrorsApi.md287
-rw-r--r--vendor/gems/error_tracking_open_api/docs/EventsApi.md206
-rw-r--r--vendor/gems/error_tracking_open_api/docs/ProjectsApi.md69
-rw-r--r--vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec38
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb45
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb347
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb232
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb81
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb391
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb57
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb276
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb335
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb283
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb264
-rw-r--r--vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb15
-rw-r--r--vendor/gems/ipynbdiff/.gitignore2
-rw-r--r--vendor/gems/ipynbdiff/.gitlab-ci.yml32
-rw-r--r--vendor/gems/ipynbdiff/Gemfile5
-rw-r--r--vendor/gems/ipynbdiff/Gemfile.lock67
-rw-r--r--vendor/gems/ipynbdiff/LICENSE21
-rw-r--r--vendor/gems/ipynbdiff/README.md56
-rw-r--r--vendor/gems/ipynbdiff/ipynbdiff.gemspec34
-rw-r--r--vendor/gems/ipynbdiff/lib/diff.rb20
-rw-r--r--vendor/gems/ipynbdiff/lib/ipynbdiff.rb23
-rw-r--r--vendor/gems/ipynbdiff/lib/output_transformer.rb72
-rw-r--r--vendor/gems/ipynbdiff/lib/symbol_map.rb107
-rw-r--r--vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb26
-rw-r--r--vendor/gems/ipynbdiff/lib/transformed_notebook.rb20
-rw-r--r--vendor/gems/ipynbdiff/lib/transformer.rb112
-rw-r--r--vendor/gems/ipynbdiff/lib/version.rb5
-rw-r--r--vendor/gems/ipynbdiff/spec/benchmark.rb64
-rw-r--r--vendor/gems/ipynbdiff/spec/ipynbdiff_spec.rb126
-rw-r--r--vendor/gems/ipynbdiff/spec/symbol_map_spec.rb58
-rw-r--r--vendor/gems/ipynbdiff/spec/test_helper.rb23
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected.md7
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected_symbols.txt7
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/input.ipynb16
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/error_output/expected.md16
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/error_output/expected_symbols.txt16
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/error_output/input.ipynb32
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/from.ipynb197
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/hide_images/expected.md10
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/hide_images/expected_symbols.txt10
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/hide_images/input.ipynb45
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected.md11
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected_symbols.txt11
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/input.ipynb74
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/latex_output/expected.md10
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/latex_output/expected_symbols.txt10
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/latex_output/input.ipynb34
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected.md9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected_symbols.txt9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/input.ipynb25
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells/expected.md19
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells/expected_symbols.txt19
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells/input.ipynb25
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected.md0
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected_symbols.txt0
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/input.ipynb25
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected.md13
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected_symbols.txt13
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/input.ipynb29
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code/expected.md7
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code/expected_symbols.txt7
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code/input.ipynb21
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/input.ipynb12
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/input.ipynb14
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/input.ipynb11
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_md/expected.md5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_md/expected_symbols.txt5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_md/input.ipynb21
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_raw/expected.md4
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_raw/expected_symbols.txt4
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/only_raw/input.ipynb15
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected.md68
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected_symbols.txt68
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected.md3
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected_symbols.txt3
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/single_line_md/input.ipynb17
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md3
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt3
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/input.ipynb11
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/stream_text/expected.md9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/stream_text/expected_symbols.txt9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/stream_text/input.ipynb27
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/svg/expected.md17
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/svg/expected_symbols.txt17
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/svg/input.ipynb66
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_output/expected.md9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_output/expected_symbols.txt9
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_output/input.ipynb31
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected.md14
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_line_numbers.txt14
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_symbols.txt14
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/text_png_output/input.ipynb49
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/to.ipynb200
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected.md5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected_symbols.txt5
-rw-r--r--vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/input.ipynb27
-rw-r--r--vendor/gems/ipynbdiff/spec/transformer_spec.rb106
-rw-r--r--vendor/gems/omniauth-gitlab/.gitignore17
-rw-r--r--vendor/gems/omniauth-gitlab/.gitlab-ci.yml30
-rw-r--r--vendor/gems/omniauth-gitlab/Gemfile4
-rw-r--r--vendor/gems/omniauth-gitlab/Gemfile.lock73
-rw-r--r--vendor/gems/omniauth-gitlab/LICENSE.txt22
-rw-r--r--vendor/gems/omniauth-gitlab/README.md94
-rw-r--r--vendor/gems/omniauth-gitlab/Rakefile7
-rw-r--r--vendor/gems/omniauth-gitlab/lib/omniauth-gitlab.rb2
-rw-r--r--vendor/gems/omniauth-gitlab/lib/omniauth-gitlab/version.rb5
-rw-r--r--vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb46
-rw-r--r--vendor/gems/omniauth-gitlab/omniauth-gitlab.gemspec25
-rw-r--r--vendor/gems/omniauth-gitlab/spec/omniauth/strategies/gitlab_spec.rb80
-rw-r--r--vendor/gems/omniauth-gitlab/spec/spec_helper.rb8
-rw-r--r--vendor/gems/omniauth_crowd/.gitlab-ci.yml30
-rw-r--r--vendor/gems/omniauth_crowd/Gemfile4
-rw-r--r--vendor/gems/omniauth_crowd/Gemfile.lock74
-rw-r--r--vendor/gems/omniauth_crowd/LICENSE.txt20
-rw-r--r--vendor/gems/omniauth_crowd/README.md52
-rw-r--r--vendor/gems/omniauth_crowd/Rakefile12
-rwxr-xr-xvendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd.rb97
-rw-r--r--vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/configuration.rb110
-rwxr-xr-xvendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/crowd_validator.rb186
-rw-r--r--vendor/gems/omniauth_crowd/lib/omniauth_crowd.rb1
-rw-r--r--vendor/gems/omniauth_crowd/lib/omniauth_crowd/version.rb5
-rw-r--r--vendor/gems/omniauth_crowd/omniauth_crowd.gemspec28
-rw-r--r--vendor/gems/omniauth_crowd/spec/fixtures/groups.xml8
-rw-r--r--vendor/gems/omniauth_crowd/spec/fixtures/session.xml8
-rw-r--r--vendor/gems/omniauth_crowd/spec/fixtures/success.xml11
-rwxr-xr-xvendor/gems/omniauth_crowd/spec/omniauth/strategies/crowd_spec.rb387
-rw-r--r--vendor/gems/omniauth_crowd/spec/spec_helper.rb14
-rw-r--r--vendor/project_templates/gatsby.tar.gzbin377283 -> 739260 bytes
-rw-r--r--vendor/project_templates/rails.tar.gzbin148742 -> 150831 bytes
161 files changed, 7976 insertions, 0 deletions
diff --git a/vendor/gems/devise-pbkdf2-encryptable/.gitlab-ci.yml b/vendor/gems/devise-pbkdf2-encryptable/.gitlab-ci.yml
new file mode 100644
index 00000000000..a2517953178
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/.gitlab-ci.yml
@@ -0,0 +1,26 @@
+workflow:
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+
+.rspec:
+ cache:
+ key: devise-pbkdf2-encryptable
+ paths:
+ - vendor/gems/devise-pbkdf2-encryptable/vendor/ruby
+ before_script:
+ - cd vendor/gems/devise-pbkdf2-encryptable
+ - ruby -v # Print out ruby version for debugging
+ - gem install bundler --no-document # Bundler is not installed with the image
+ - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
+ - bundle config set with 'development'
+ - bundle install -j $(nproc)
+ script:
+ - bundle exec rspec
+
+rspec-2.7:
+ image: "ruby:2.7"
+ extends: .rspec
+
+rspec-3.0:
+ image: "ruby:3.0"
+ extends: .rspec
diff --git a/vendor/gems/devise-pbkdf2-encryptable/Gemfile b/vendor/gems/devise-pbkdf2-encryptable/Gemfile
new file mode 100644
index 00000000000..be173b205f7
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/Gemfile
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+source "https://rubygems.org"
+
+gemspec
diff --git a/vendor/gems/devise-pbkdf2-encryptable/Gemfile.lock b/vendor/gems/devise-pbkdf2-encryptable/Gemfile.lock
new file mode 100644
index 00000000000..ce0cb0c1025
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/Gemfile.lock
@@ -0,0 +1,103 @@
+PATH
+ remote: .
+ specs:
+ devise-pbkdf2-encryptable (0.0.0)
+ devise (~> 4.0)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionpack (6.1.6)
+ actionview (= 6.1.6)
+ activesupport (= 6.1.6)
+ rack (~> 2.0, >= 2.0.9)
+ rack-test (>= 0.6.3)
+ rails-dom-testing (~> 2.0)
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
+ actionview (6.1.6)
+ activesupport (= 6.1.6)
+ builder (~> 3.1)
+ erubi (~> 1.4)
+ rails-dom-testing (~> 2.0)
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
+ activemodel (6.1.6)
+ activesupport (= 6.1.6)
+ activesupport (6.1.6)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (>= 1.6, < 2)
+ minitest (>= 5.1)
+ tzinfo (~> 2.0)
+ zeitwerk (~> 2.3)
+ bcrypt (3.1.18)
+ builder (3.2.4)
+ concurrent-ruby (1.1.10)
+ crass (1.0.6)
+ devise (4.8.1)
+ bcrypt (~> 3.0)
+ orm_adapter (~> 0.1)
+ railties (>= 4.1.0)
+ responders
+ warden (~> 1.2.3)
+ diff-lcs (1.5.0)
+ erubi (1.10.0)
+ i18n (1.10.0)
+ concurrent-ruby (~> 1.0)
+ loofah (2.18.0)
+ crass (~> 1.0.2)
+ nokogiri (>= 1.5.9)
+ method_source (1.0.0)
+ mini_portile2 (2.8.0)
+ minitest (5.16.0)
+ nokogiri (1.13.6)
+ mini_portile2 (~> 2.8.0)
+ racc (~> 1.4)
+ orm_adapter (0.5.0)
+ racc (1.6.0)
+ rack (2.2.3.1)
+ rack-test (1.1.0)
+ rack (>= 1.0, < 3)
+ rails-dom-testing (2.0.3)
+ activesupport (>= 4.2.0)
+ nokogiri (>= 1.6)
+ rails-html-sanitizer (1.4.3)
+ loofah (~> 2.3)
+ railties (6.1.6)
+ actionpack (= 6.1.6)
+ activesupport (= 6.1.6)
+ method_source
+ rake (>= 12.2)
+ thor (~> 1.0)
+ rake (13.0.6)
+ responders (3.0.1)
+ actionpack (>= 5.0)
+ railties (>= 5.0)
+ rspec (3.10.0)
+ rspec-core (~> 3.10.0)
+ rspec-expectations (~> 3.10.0)
+ rspec-mocks (~> 3.10.0)
+ rspec-core (3.10.2)
+ rspec-support (~> 3.10.0)
+ rspec-expectations (3.10.2)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.10.0)
+ rspec-mocks (3.10.3)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.10.0)
+ rspec-support (3.10.3)
+ thor (1.2.1)
+ tzinfo (2.0.4)
+ concurrent-ruby (~> 1.0)
+ warden (1.2.9)
+ rack (>= 2.0.9)
+ zeitwerk (2.6.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activemodel (~> 6.1, < 8)
+ devise-pbkdf2-encryptable!
+ rspec (~> 3.10.0)
+
+BUNDLED WITH
+ 2.3.16
diff --git a/vendor/gems/devise-pbkdf2-encryptable/LICENSE b/vendor/gems/devise-pbkdf2-encryptable/LICENSE
new file mode 100644
index 00000000000..d5a25c59027
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/LICENSE
@@ -0,0 +1,201 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+Copyright 2012-2015 Plataformatec (opensource@plataformatec.com.br)
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/vendor/gems/devise-pbkdf2-encryptable/devise-pbkdf2-encryptable.gemspec b/vendor/gems/devise-pbkdf2-encryptable/devise-pbkdf2-encryptable.gemspec
new file mode 100644
index 00000000000..e507633c0bf
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/devise-pbkdf2-encryptable.gemspec
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+lib = File.expand_path('lib', __dir__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+
+Gem::Specification.new do |spec|
+ spec.name = 'devise-pbkdf2-encryptable'
+ spec.authors = ['Drew Blessing']
+ spec.email = ['drew@gitlab.com']
+
+ spec.summary = 'Extension that allows Devise to use PBKDF2 password hashing'
+ spec.homepage = 'https://gitlab.com/gitlab-org/gitlab/-/tree/master/vendor/gems/devise-pbkdf2-encryptable'
+ spec.metadata = { 'source_code_uri' => 'https://gitlab.com/gitlab-org/gitlab/-/tree/master/vendor/gems/devise-pbkdf2-encryptable' }
+ spec.license = 'Apache-2.0'
+
+ spec.files = Dir['lib/**/*.rb']
+ spec.require_paths = ['lib']
+
+ spec.version = '0.0.0'
+
+ spec.add_runtime_dependency 'devise', '~> 4.0'
+
+ spec.add_development_dependency 'activemodel', '~> 6.1', '< 8'
+ spec.add_development_dependency 'rspec', '~> 3.10.0'
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/lib/devise-pbkdf2-encryptable.rb b/vendor/gems/devise-pbkdf2-encryptable/lib/devise-pbkdf2-encryptable.rb
new file mode 100644
index 00000000000..4db9b82052f
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/lib/devise-pbkdf2-encryptable.rb
@@ -0,0 +1 @@
+require "devise/pbkdf2_encryptable/encryptable"
diff --git a/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptable.rb b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptable.rb
new file mode 100644
index 00000000000..027032f46c1
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptable.rb
@@ -0,0 +1,16 @@
+module Devise
+ # Used to define the password encryption algorithm.
+ mattr_accessor :encryptor
+ @@encryptor = nil
+
+ module Pbkdf2Encryptable
+ module Encryptors
+ InvalidHash = Class.new(StandardError)
+
+ autoload :Base, 'devise/pbkdf2_encryptable/encryptors/base'
+ autoload :Pbkdf2Sha512, 'devise/pbkdf2_encryptable/encryptors/pbkdf2_sha512'
+ end
+ end
+end
+
+Devise.add_module(:pbkdf2_encryptable, :model => 'devise/pbkdf2_encryptable/model')
diff --git a/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/base.rb b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/base.rb
new file mode 100644
index 00000000000..970be7f51a6
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/base.rb
@@ -0,0 +1,52 @@
+module Devise
+ module Pbkdf2Encryptable
+ module Encryptors
+ class Base
+ def self.split_digest(hash)
+ split_digest = hash.split('$')
+ _, strategy, stretches, salt, checksum = split_digest
+
+ unless split_digest.length == 5 && strategy.start_with?('pbkdf2-')
+ raise InvalidHash.new('invalid PBKDF2 hash')
+ end
+
+ { strategy: strategy, stretches: stretches.to_i,
+ salt: passlib_decode64(salt), checksum: passlib_decode64(checksum) }
+ end
+
+ # Passlib-style Base64 encoding:
+ # - Replaces '+' with '.'
+ # - Strips trailing newline and '=='
+ private_class_method def self.passlib_encode64(value)
+ Base64.strict_encode64([value].pack('H*')).tr('+', '.').delete('=')
+ end
+
+ private_class_method def self.passlib_decode64(value)
+ enc = value.tr('.', '+')
+ Base64.decode64(enc).unpack1('H*')
+ end
+
+ # Passlib-style hash: $pbkdf2-sha512$rounds$salt$checksum
+ # where salt and checksum are "adapted" Base64 encoded
+ private_class_method def self.format_hash(strategy, stretches, salt, checksum)
+ encoded_salt = passlib_encode64(salt)
+ encoded_checksum = passlib_encode64(checksum)
+
+ "$#{strategy}$#{stretches}$#{encoded_salt}$#{encoded_checksum}"
+ end
+
+ private_class_method def self.pbkdf2_checksum(hash, password, stretches, salt)
+ raise 'Stretches must be greater than zero' unless stretches.to_i > 0
+
+ OpenSSL::KDF.pbkdf2_hmac(
+ password.to_s,
+ salt: [salt].pack("H*"),
+ iterations: stretches,
+ hash: hash,
+ length: hash.digest_length
+ ).unpack1('H*')
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/pbkdf2_sha512.rb b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/pbkdf2_sha512.rb
new file mode 100644
index 00000000000..3fedc724c06
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/encryptors/pbkdf2_sha512.rb
@@ -0,0 +1,41 @@
+# frozen_string_literal: true
+
+module Devise
+ module Pbkdf2Encryptable
+ module Encryptors
+ class Pbkdf2Sha512 < Base
+ STRATEGY = 'pbkdf2-sha512'
+ STRETCHES = 20_000
+
+ def self.compare(encrypted_password, password)
+ split_digest = self.split_digest(encrypted_password)
+ value_to_test = self.sha512_checksum(password, split_digest[:stretches], split_digest[:salt])
+
+ Devise.secure_compare(split_digest[:checksum], value_to_test)
+ end
+
+ def self.digest(password, stretches, salt)
+ checksum = sha512_checksum(password, stretches, salt)
+
+ format_hash(STRATEGY, stretches, salt, checksum)
+ end
+
+ def self.split_digest(hash)
+ split_digest = super
+
+ unless split_digest[:strategy] == STRATEGY
+ raise InvalidHash.new('invalid PBKDF2 SHA512 hash')
+ end
+
+ split_digest
+ end
+
+ private_class_method def self.sha512_checksum(password, stretches, salt)
+ hash = OpenSSL::Digest.new('SHA512')
+
+ pbkdf2_checksum(hash, password, stretches, salt)
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/model.rb b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/model.rb
new file mode 100644
index 00000000000..06430b26db9
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/lib/devise/pbkdf2_encryptable/model.rb
@@ -0,0 +1,77 @@
+# frozen_string_literal: true
+
+require 'devise/strategies/database_authenticatable'
+
+# Based on `devise-encryptable` Encryptable model
+# https://github.com/heartcombo/devise-encryptable/blob/main/lib/devise/encryptable/model.rb
+module Devise
+ module Models
+ module Pbkdf2Encryptable
+ extend ActiveSupport::Concern
+
+ def valid_password?(password)
+ encryptor_class.compare(encrypted_password, password)
+ end
+
+ def password_strategy
+ split_encrypted_password[:strategy]&.tr('-', '_')&.to_sym
+ end
+
+ def password_salt
+ split_encrypted_password[:salt]
+ end
+
+ # Used by warden and other modules where there is a
+ # need for a random token based on the user password.
+ alias_method :authenticatable_salt, :password_salt
+
+ def password_stretches
+ split_encrypted_password[:stretches]
+ end
+
+ def password_checksum
+ split_encrypted_password[:checksum]
+ end
+
+ protected
+
+ # Used by Devise DatabaseAuthenticatable when setting a password
+ def password_digest(password)
+ remove_instance_variable('@split_encrypted_password') if defined?(@split_encrypted_password)
+
+ encryptor_class.digest(password, encryptor_class::STRETCHES, Devise.friendly_token[0, 16])
+ end
+
+ def encryptor_class
+ self.class.encryptor_class
+ end
+
+ private
+
+ def split_encrypted_password
+ return {} unless encrypted_password.present?
+ return @split_encrypted_password if defined?(@split_encrypted_password)
+
+ @split_encrypted_password = encryptor_class.split_digest(encrypted_password)
+ end
+
+ module ClassMethods
+ Devise::Models.config(self, :encryptor)
+
+ # Returns the class for the configured encryptor.
+ def encryptor_class
+ @encryptor_class ||= case encryptor
+ when :bcrypt
+ raise "In order to use bcrypt as encryptor, simply remove :pbkdf2_encryptable from your devise model"
+ when nil
+ raise "You need to specify an :encryptor in Devise configuration in order to use :pbkdf2_encryptable"
+ else
+ Devise::Pbkdf2Encryptable::Encryptors.const_get(encryptor.to_s.classify)
+ end
+ rescue NameError
+ raise "Configured encryptor '#{encryptor.to_sym}' could not be found for pbkdf2_encryptable"
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/encryptors/pbkdf2_sha512_spec.rb b/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/encryptors/pbkdf2_sha512_spec.rb
new file mode 100644
index 00000000000..3a9b692db6e
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/encryptors/pbkdf2_sha512_spec.rb
@@ -0,0 +1,80 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe Devise::Pbkdf2Encryptable::Encryptors::Pbkdf2Sha512 do
+ let(:bcrypt_hash) { '$2a$12$ftnD4XSrhVdlEaEgCn/lxO0Pt3QplwgblmhCug3nSeRhh5a9UDBWK' }
+ let(:pbkdf2_sha512_hash) { '$pbkdf2-sha512$20000$boHGAw0hEyI$DBA67J7zNZebyzLtLk2X9wRDbmj1LNKVGnZLYyz6PGrIDGIl45fl/BPH0y1TPZnV90A20i.fD9C3G9Bp8jzzOA' }
+
+ describe '.compare' do
+ subject(:compare) { described_class.compare(encrypted_password, password) }
+
+ context 'with a PBKDF2+SHA512 encrypted password' do
+ let(:encrypted_password) { pbkdf2_sha512_hash }
+
+ context 'with a matching password' do
+ let(:password) { 'password' }
+
+ it { is_expected.to eq(true) }
+ end
+
+ context 'with an incorrect password' do
+ let(:password) { 'other_password' }
+
+ it { is_expected.to eq(false) }
+ end
+ end
+
+ context 'with a non PBKDF2+SHA512 encrypted password' do
+ let(:encrypted_password) { bcrypt_hash }
+ let(:password) { 'password' }
+
+ it 'raises an invalid hash error ' do
+ expect { compare }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash, 'invalid PBKDF2 hash'
+ end
+ end
+ end
+
+ describe '.digest' do
+ it 'returns a properly formatted and correct hash' do
+ expect(described_class.digest('password', 20000, '6e81c6030d211322')).to eq(pbkdf2_sha512_hash)
+ end
+
+ it 'raises an error if stretches is not greater than 0' do
+ expect { described_class.digest('password', 0, '6e81c6030d211322') }
+ .to raise_error('Stretches must be greater than zero')
+ end
+ end
+
+ describe '.split_digest' do
+ subject(:split_digest) { described_class.split_digest(digest) }
+
+ context 'with a PBKDF2+SHA512 digest' do
+ let(:digest) { pbkdf2_sha512_hash }
+
+ it { is_expected.to eq({
+ strategy: 'pbkdf2-sha512',
+ stretches: 20000,
+ salt: '6e81c6030d211322',
+ checksum: '0c103aec9ef335979bcb32ed2e4d97f704436e68f52cd2951a764b632cfa3c6ac80c6225e397e5fc13c7d32d533d99d5f74036d22f9f0fd0b71bd069f23cf338'
+ })
+ }
+ end
+
+ context 'with a PBKDF2+SHA256 digest' do
+ let(:digest) { '$pbkdf2-sha256$6400$.6UI/S.nXIk8jcbdHx3Fhg$98jZicV16ODfEsEZeYPGHU3kbrUrvUEXOPimVSQDD44' }
+
+ it 'raises invalid hash error' do
+ expect { split_digest }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash, 'invalid PBKDF2 SHA512 hash'
+ end
+ end
+
+ context 'with a BCrypt digest' do
+ let(:digest) { bcrypt_hash }
+
+ it 'raises invalid hash error' do
+ expect { split_digest }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash, 'invalid PBKDF2 hash'
+ end
+ end
+ end
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/model_spec.rb b/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/model_spec.rb
new file mode 100644
index 00000000000..ebb94c1d68c
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/spec/lib/pbkdf2_encryptable/model_spec.rb
@@ -0,0 +1,127 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+require 'active_model'
+
+RSpec.describe Devise::Models::Pbkdf2Encryptable do
+ let(:unconfigured_model) do
+ Class.new do
+ include ActiveModel::Model
+ extend ActiveModel::Callbacks
+ include ActiveModel::Validations::Callbacks
+ extend Devise::Models
+
+ define_model_callbacks :update, only: :after
+
+ devise :database_authenticatable, :pbkdf2_encryptable
+
+ attr_accessor :encrypted_password
+
+ def initialize(encrypted_password: '')
+ self.encrypted_password = encrypted_password
+ end
+ end
+ end
+
+ let(:bcrypt_configured_model) do
+ Class.new(unconfigured_model) do
+ devise :database_authenticatable, :pbkdf2_encryptable, encryptor: :bcrypt
+ end
+ end
+
+ let(:unknown_configured_model) do
+ Class.new(unconfigured_model) do
+ devise :database_authenticatable, :pbkdf2_encryptable, encryptor: :sha512
+ end
+ end
+
+ let(:configured_model) do
+ Class.new(unconfigured_model) do
+ devise :database_authenticatable, :pbkdf2_encryptable, encryptor: :pbkdf2_sha512
+ end
+ end
+
+ let(:user) { configured_model.new }
+ let(:pbkdf2_sha512_hash) { '$pbkdf2-sha512$20000$boHGAw0hEyI$DBA67J7zNZebyzLtLk2X9wRDbmj1LNKVGnZLYyz6PGrIDGIl45fl/BPH0y1TPZnV90A20i.fD9C3G9Bp8jzzOA' }
+
+ describe '#valid_password?' do
+ let(:user) { configured_model.new(encrypted_password: pbkdf2_sha512_hash) }
+
+ it 'validates a correct password' do
+ expect(user.valid_password?('password')).to eq(true)
+ end
+
+ it 'does not validate an incorrect password' do
+ expect(user.valid_password?('other_password')).to eq(false)
+ end
+ end
+
+ describe '#password=' do
+ it 'sets the correct encrypted_password value', :aggregate_failures do
+ expect(user.encrypted_password).to be_empty
+
+ user.password = 'password'
+
+ expect(user.encrypted_password).to start_with('$pbkdf2-sha512$')
+ end
+
+ it 'clears split digest memoization' do
+ user.encrypted_password = '$pbkdf2-sha512$1000$boHGAw0hEyI$DBA67J7zNZebyzLtLk2X9wRDbmj1LNKVGnZLYyz6PGrIDGIl45fl/BPH0y1TPZnV90A20i.fD9C3G9Bp8jzzOA'
+
+ expect(user.password_stretches).to eq(1_000)
+
+ user.password = 'other_password'
+
+ expect(user.password_stretches).to eq(20_000)
+ end
+ end
+
+ describe 'password_* methods' do
+ let(:user) { configured_model.new(encrypted_password: encrypted_password) }
+
+ context 'with a PBKDF2+SHA512 encrypted password' do
+ let(:encrypted_password) { pbkdf2_sha512_hash }
+
+ it 'extracts the correct split hash values', :aggregate_failures do
+ expect(Devise::Pbkdf2Encryptable::Encryptors::Pbkdf2Sha512).to receive(:split_digest).once.and_call_original
+
+ expect(user.password_strategy).to eq(:pbkdf2_sha512)
+ expect(user.password_salt).to eq('6e81c6030d211322')
+ expect(user.password_stretches).to eq(20_000)
+ expect(user.password_checksum).to eq('0c103aec9ef335979bcb32ed2e4d97f704436e68f52cd2951a764b632cfa3c6ac80c6225e397e5fc13c7d32d533d99d5f74036d22f9f0fd0b71bd069f23cf338')
+ end
+ end
+
+ context 'with a BCrypt encrypted password' do
+ let(:encrypted_password) { '$2a$10$xLTxCKOa75IU4RQGqqOrTuZOgZdJEzfSzjG6ZSEi/C31TB/yLZYpi' }
+
+ it 'raises errors', :aggregate_failures do
+ expect { user.password_strategy }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash
+ expect { user.password_salt }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash
+ expect { user.password_stretches }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash
+ expect { user.password_checksum }.to raise_error Devise::Pbkdf2Encryptable::Encryptors::InvalidHash
+ end
+ end
+ end
+
+ describe '.encryptor_class' do
+ it 'returns a class when configured' do
+ expect(configured_model.encryptor_class).to eq(Devise::Pbkdf2Encryptable::Encryptors::Pbkdf2Sha512)
+ end
+
+ it 'raises an error when unconfigured' do
+ expect { unconfigured_model.encryptor_class }
+ .to raise_error('You need to specify an :encryptor in Devise configuration in order to use :pbkdf2_encryptable')
+ end
+
+ it 'raises an error when BCrypt is configured' do
+ expect { bcrypt_configured_model.encryptor_class }
+ .to raise_error('In order to use bcrypt as encryptor, simply remove :pbkdf2_encryptable from your devise model')
+ end
+
+ it 'raises an error when a class cannot be found' do
+ expect { unknown_configured_model.encryptor_class }
+ .to raise_error("Configured encryptor 'sha512' could not be found for pbkdf2_encryptable")
+ end
+ end
+end
diff --git a/vendor/gems/devise-pbkdf2-encryptable/spec/spec_helper.rb b/vendor/gems/devise-pbkdf2-encryptable/spec/spec_helper.rb
new file mode 100644
index 00000000000..ced0cf6fdab
--- /dev/null
+++ b/vendor/gems/devise-pbkdf2-encryptable/spec/spec_helper.rb
@@ -0,0 +1,4 @@
+# frozen_string_literal: true
+
+require 'devise'
+require 'devise/pbkdf2_encryptable/encryptable'
diff --git a/vendor/gems/error_tracking_open_api/.gitignore b/vendor/gems/error_tracking_open_api/.gitignore
new file mode 100644
index 00000000000..05a17cb8f0a
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/.gitignore
@@ -0,0 +1,39 @@
+# Generated by: https://openapi-generator.tech
+#
+
+*.gem
+*.rbc
+/.config
+/coverage/
+/InstalledFiles
+/pkg/
+/spec/reports/
+/spec/examples.txt
+/test/tmp/
+/test/version_tmp/
+/tmp/
+
+## Specific to RubyMotion:
+.dat*
+.repl_history
+build/
+
+## Documentation cache and generated files:
+/.yardoc/
+/_yardoc/
+/doc/
+/rdoc/
+
+## Environment normalization:
+/.bundle/
+/vendor/bundle
+/lib/bundler/man/
+
+# for a library or gem, you might want to ignore these files since the code is
+# intended to run in multiple environments; otherwise, check them in:
+# Gemfile.lock
+# .ruby-version
+# .ruby-gemset
+
+# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
+.rvmrc
diff --git a/vendor/gems/error_tracking_open_api/.openapi-generator-ignore b/vendor/gems/error_tracking_open_api/.openapi-generator-ignore
new file mode 100644
index 00000000000..7484ee590a3
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/.openapi-generator-ignore
@@ -0,0 +1,23 @@
+# OpenAPI Generator Ignore
+# Generated by openapi-generator https://github.com/openapitools/openapi-generator
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/vendor/gems/error_tracking_open_api/.openapi-generator/FILES b/vendor/gems/error_tracking_open_api/.openapi-generator/FILES
new file mode 100644
index 00000000000..cf42a5d9e36
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/.openapi-generator/FILES
@@ -0,0 +1,36 @@
+.gitignore
+.openapi-generator-ignore
+.rspec
+.rubocop.yml
+.travis.yml
+Gemfile
+README.md
+Rakefile
+docs/Error.md
+docs/ErrorEvent.md
+docs/ErrorUpdatePayload.md
+docs/ErrorsApi.md
+docs/EventsApi.md
+docs/ProjectsApi.md
+error_tracking_open_api.gemspec
+git_push.sh
+lib/error_tracking_open_api.rb
+lib/error_tracking_open_api/api/errors_api.rb
+lib/error_tracking_open_api/api/events_api.rb
+lib/error_tracking_open_api/api/projects_api.rb
+lib/error_tracking_open_api/api_client.rb
+lib/error_tracking_open_api/api_error.rb
+lib/error_tracking_open_api/configuration.rb
+lib/error_tracking_open_api/models/error.rb
+lib/error_tracking_open_api/models/error_event.rb
+lib/error_tracking_open_api/models/error_update_payload.rb
+lib/error_tracking_open_api/version.rb
+spec/api/errors_api_spec.rb
+spec/api/events_api_spec.rb
+spec/api/projects_api_spec.rb
+spec/api_client_spec.rb
+spec/configuration_spec.rb
+spec/models/error_event_spec.rb
+spec/models/error_spec.rb
+spec/models/error_update_payload_spec.rb
+spec/spec_helper.rb
diff --git a/vendor/gems/error_tracking_open_api/.openapi-generator/VERSION b/vendor/gems/error_tracking_open_api/.openapi-generator/VERSION
new file mode 100644
index 00000000000..f4965a313a2
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/.openapi-generator/VERSION
@@ -0,0 +1 @@
+6.0.0 \ No newline at end of file
diff --git a/vendor/gems/error_tracking_open_api/LICENSE b/vendor/gems/error_tracking_open_api/LICENSE
new file mode 100644
index 00000000000..aafb7f79450
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2022 GitLab B.V.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/gems/error_tracking_open_api/README.md b/vendor/gems/error_tracking_open_api/README.md
new file mode 100644
index 00000000000..18757e2e183
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/README.md
@@ -0,0 +1,103 @@
+# Generated by `rake gems:error_tracking_open_api:generate` on 2022-07-14
+
+See https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/rake_tasks.md#update-openapi-client-for-error-tracking-feature
+
+# error_tracking_open_api
+
+ErrorTrackingOpenAPI - the Ruby gem for the Error Trackig REST API
+
+This schema describes the API endpoints for the error tracking feature
+
+This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
+
+- API version: 0.0.1
+- Package version: 1.0.0
+- Build package: org.openapitools.codegen.languages.RubyClientCodegen
+
+## Installation
+
+### Build a gem
+
+To build the Ruby code into a gem:
+
+```shell
+gem build error_tracking_open_api.gemspec
+```
+
+Then either install the gem locally:
+
+```shell
+gem install ./error_tracking_open_api-1.0.0.gem
+```
+
+(for development, run `gem install --dev ./error_tracking_open_api-1.0.0.gem` to install the development dependencies)
+
+or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
+
+Finally add this to the Gemfile:
+
+ gem 'error_tracking_open_api', '~> 1.0.0'
+
+### Install from Git
+
+If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
+
+ gem 'error_tracking_open_api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
+
+### Include the Ruby code directly
+
+Include the Ruby code directly using `-I` as follows:
+
+```shell
+ruby -Ilib script.rb
+```
+
+## Getting Started
+
+Please follow the [installation](#installation) procedure and then run the following code:
+
+```ruby
+# Load the gem
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ErrorsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+fingerprint = 56 # Integer | ID of the error that needs to be updated deleted
+
+begin
+ #Get information about the error
+ result = api_instance.get_error(project_id, fingerprint)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Exception when calling ErrorsApi->get_error: #{e}"
+end
+
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://localhost/errortracking/api/v1*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*ErrorTrackingOpenAPI::ErrorsApi* | [**get_error**](docs/ErrorsApi.md#get_error) | **GET** /projects/{projectId}/errors/{fingerprint} | Get information about the error
+*ErrorTrackingOpenAPI::ErrorsApi* | [**list_errors**](docs/ErrorsApi.md#list_errors) | **GET** /projects/{projectId}/errors | List of errors
+*ErrorTrackingOpenAPI::ErrorsApi* | [**list_events**](docs/ErrorsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error
+*ErrorTrackingOpenAPI::ErrorsApi* | [**update_error**](docs/ErrorsApi.md#update_error) | **PUT** /projects/{projectId}/errors/{fingerprint} | Update the status of the error
+*ErrorTrackingOpenAPI::EventsApi* | [**list_events**](docs/EventsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error
+*ErrorTrackingOpenAPI::EventsApi* | [**projects_api_project_id_envelope_post**](docs/EventsApi.md#projects_api_project_id_envelope_post) | **POST** /projects/api/{projectId}/envelope | Ingestion endpoint for error events sent from client SDKs
+*ErrorTrackingOpenAPI::EventsApi* | [**projects_api_project_id_store_post**](docs/EventsApi.md#projects_api_project_id_store_post) | **POST** /projects/api/{projectId}/store | Ingestion endpoint for error events sent from client SDKs
+*ErrorTrackingOpenAPI::ProjectsApi* | [**delete_project**](docs/ProjectsApi.md#delete_project) | **DELETE** /projects/{id} | Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+
+
+## Documentation for Models
+
+ - [ErrorTrackingOpenAPI::Error](docs/Error.md)
+ - [ErrorTrackingOpenAPI::ErrorEvent](docs/ErrorEvent.md)
+ - [ErrorTrackingOpenAPI::ErrorUpdatePayload](docs/ErrorUpdatePayload.md)
+
+
+## Documentation for Authorization
+
+ All endpoints do not require authorization.
+
diff --git a/vendor/gems/error_tracking_open_api/Rakefile b/vendor/gems/error_tracking_open_api/Rakefile
new file mode 100644
index 00000000000..c72ca30d454
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/Rakefile
@@ -0,0 +1,10 @@
+require "bundler/gem_tasks"
+
+begin
+ require 'rspec/core/rake_task'
+
+ RSpec::Core::RakeTask.new(:spec)
+ task default: :spec
+rescue LoadError
+ # no rspec available
+end
diff --git a/vendor/gems/error_tracking_open_api/docs/Error.md b/vendor/gems/error_tracking_open_api/docs/Error.md
new file mode 100644
index 00000000000..45aa4cf6b8a
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/Error.md
@@ -0,0 +1,36 @@
+# ErrorTrackingOpenAPI::Error
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **fingerprint** | **Integer** | | [optional] |
+| **project_id** | **Integer** | | [optional] |
+| **name** | **String** | | [optional] |
+| **description** | **String** | | [optional] |
+| **actor** | **String** | | [optional] |
+| **event_count** | **Integer** | | [optional] |
+| **approximated_user_count** | **Integer** | | [optional] |
+| **last_seen_at** | **Time** | | [optional] |
+| **first_seen_at** | **Time** | | [optional] |
+| **status** | **String** | Status of the error | [optional] |
+
+## Example
+
+```ruby
+require 'error_tracking_open_api'
+
+instance = ErrorTrackingOpenAPI::Error.new(
+ fingerprint: null,
+ project_id: null,
+ name: ActionView::MissingTemplate,
+ description: Missing template posts/edit,
+ actor: PostsController#edit,
+ event_count: null,
+ approximated_user_count: null,
+ last_seen_at: null,
+ first_seen_at: null,
+ status: null
+)
+```
+
diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorEvent.md b/vendor/gems/error_tracking_open_api/docs/ErrorEvent.md
new file mode 100644
index 00000000000..205b7b57cc9
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/ErrorEvent.md
@@ -0,0 +1,32 @@
+# ErrorTrackingOpenAPI::ErrorEvent
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **fingerprint** | **Integer** | | [optional] |
+| **project_id** | **Integer** | | [optional] |
+| **payload** | **String** | JSON encoded string | [optional] |
+| **name** | **String** | | [optional] |
+| **description** | **String** | | [optional] |
+| **actor** | **String** | | [optional] |
+| **environment** | **String** | | [optional] |
+| **platform** | **String** | | [optional] |
+
+## Example
+
+```ruby
+require 'error_tracking_open_api'
+
+instance = ErrorTrackingOpenAPI::ErrorEvent.new(
+ fingerprint: null,
+ project_id: null,
+ payload: null,
+ name: ActionView::MissingTemplate,
+ description: Missing template posts/edit,
+ actor: PostsController#edit,
+ environment: production,
+ platform: ruby
+)
+```
+
diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorUpdatePayload.md b/vendor/gems/error_tracking_open_api/docs/ErrorUpdatePayload.md
new file mode 100644
index 00000000000..8a6180f835e
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/ErrorUpdatePayload.md
@@ -0,0 +1,20 @@
+# ErrorTrackingOpenAPI::ErrorUpdatePayload
+
+## Properties
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **status** | **String** | Status of the error | [optional] |
+| **updated_by_id** | **Integer** | GitLab user id who triggered the update | [optional] |
+
+## Example
+
+```ruby
+require 'error_tracking_open_api'
+
+instance = ErrorTrackingOpenAPI::ErrorUpdatePayload.new(
+ status: null,
+ updated_by_id: null
+)
+```
+
diff --git a/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md b/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md
new file mode 100644
index 00000000000..79d0c2a46de
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/ErrorsApi.md
@@ -0,0 +1,287 @@
+# ErrorTrackingOpenAPI::ErrorsApi
+
+All URIs are relative to *https://localhost/errortracking/api/v1*
+
+| Method | HTTP request | Description |
+| ------ | ------------ | ----------- |
+| [**get_error**](ErrorsApi.md#get_error) | **GET** /projects/{projectId}/errors/{fingerprint} | Get information about the error |
+| [**list_errors**](ErrorsApi.md#list_errors) | **GET** /projects/{projectId}/errors | List of errors |
+| [**list_events**](ErrorsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error |
+| [**update_error**](ErrorsApi.md#update_error) | **PUT** /projects/{projectId}/errors/{fingerprint} | Update the status of the error |
+
+
+## get_error
+
+> <Error> get_error(project_id, fingerprint)
+
+Get information about the error
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ErrorsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+fingerprint = 56 # Integer | ID of the error that needs to be updated deleted
+
+begin
+ # Get information about the error
+ result = api_instance.get_error(project_id, fingerprint)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->get_error: #{e}"
+end
+```
+
+#### Using the get_error_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<Error>, Integer, Hash)> get_error_with_http_info(project_id, fingerprint)
+
+```ruby
+begin
+ # Get information about the error
+ data, status_code, headers = api_instance.get_error_with_http_info(project_id, fingerprint)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <Error>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->get_error_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+| **fingerprint** | **Integer** | ID of the error that needs to be updated deleted | |
+
+### Return type
+
+[**Error**](Error.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
+
+## list_errors
+
+> <Array<Error>> list_errors(project_id, opts)
+
+List of errors
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ErrorsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+opts = {
+ sort: 'last_seen_desc', # String |
+ status: 'unresolved', # String |
+ query: 'query_example', # String |
+ cursor: 'cursor_example', # String | Base64 encoded information for pagination
+ limit: 56 # Integer | Number of entries to return
+}
+
+begin
+ # List of errors
+ result = api_instance.list_errors(project_id, opts)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->list_errors: #{e}"
+end
+```
+
+#### Using the list_errors_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<Array<Error>>, Integer, Hash)> list_errors_with_http_info(project_id, opts)
+
+```ruby
+begin
+ # List of errors
+ data, status_code, headers = api_instance.list_errors_with_http_info(project_id, opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <Array<Error>>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->list_errors_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+| **sort** | **String** | | [optional][default to &#39;last_seen_desc&#39;] |
+| **status** | **String** | | [optional][default to &#39;unresolved&#39;] |
+| **query** | **String** | | [optional] |
+| **cursor** | **String** | Base64 encoded information for pagination | [optional] |
+| **limit** | **Integer** | Number of entries to return | [optional][default to 20] |
+
+### Return type
+
+[**Array&lt;Error&gt;**](Error.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
+
+## list_events
+
+> <Array<ErrorEvent>> list_events(project_id, fingerprint, opts)
+
+Get information about the events related to the error
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ErrorsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+fingerprint = 56 # Integer | ID of the error within the project
+opts = {
+ sort: 'occurred_at_asc', # String |
+ cursor: 'cursor_example', # String | Base64 encoded information for pagination
+ limit: 56 # Integer | Number of entries to return
+}
+
+begin
+ # Get information about the events related to the error
+ result = api_instance.list_events(project_id, fingerprint, opts)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->list_events: #{e}"
+end
+```
+
+#### Using the list_events_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<Array<ErrorEvent>>, Integer, Hash)> list_events_with_http_info(project_id, fingerprint, opts)
+
+```ruby
+begin
+ # Get information about the events related to the error
+ data, status_code, headers = api_instance.list_events_with_http_info(project_id, fingerprint, opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <Array<ErrorEvent>>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->list_events_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+| **fingerprint** | **Integer** | ID of the error within the project | |
+| **sort** | **String** | | [optional][default to &#39;occurred_at_asc&#39;] |
+| **cursor** | **String** | Base64 encoded information for pagination | [optional] |
+| **limit** | **Integer** | Number of entries to return | [optional][default to 20] |
+
+### Return type
+
+[**Array&lt;ErrorEvent&gt;**](ErrorEvent.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
+
+## update_error
+
+> <Error> update_error(project_id, fingerprint, body)
+
+Update the status of the error
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ErrorsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+fingerprint = 56 # Integer | ID of the error that needs to be updated deleted
+body = ErrorTrackingOpenAPI::ErrorUpdatePayload.new # ErrorUpdatePayload | Error update object with the new values
+
+begin
+ # Update the status of the error
+ result = api_instance.update_error(project_id, fingerprint, body)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->update_error: #{e}"
+end
+```
+
+#### Using the update_error_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<Error>, Integer, Hash)> update_error_with_http_info(project_id, fingerprint, body)
+
+```ruby
+begin
+ # Update the status of the error
+ data, status_code, headers = api_instance.update_error_with_http_info(project_id, fingerprint, body)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <Error>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ErrorsApi->update_error_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+| **fingerprint** | **Integer** | ID of the error that needs to be updated deleted | |
+| **body** | [**ErrorUpdatePayload**](ErrorUpdatePayload.md) | Error update object with the new values | |
+
+### Return type
+
+[**Error**](Error.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
diff --git a/vendor/gems/error_tracking_open_api/docs/EventsApi.md b/vendor/gems/error_tracking_open_api/docs/EventsApi.md
new file mode 100644
index 00000000000..3b4586be611
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/EventsApi.md
@@ -0,0 +1,206 @@
+# ErrorTrackingOpenAPI::EventsApi
+
+All URIs are relative to *https://localhost/errortracking/api/v1*
+
+| Method | HTTP request | Description |
+| ------ | ------------ | ----------- |
+| [**list_events**](EventsApi.md#list_events) | **GET** /projects/{projectId}/errors/{fingerprint}/events | Get information about the events related to the error |
+| [**projects_api_project_id_envelope_post**](EventsApi.md#projects_api_project_id_envelope_post) | **POST** /projects/api/{projectId}/envelope | Ingestion endpoint for error events sent from client SDKs |
+| [**projects_api_project_id_store_post**](EventsApi.md#projects_api_project_id_store_post) | **POST** /projects/api/{projectId}/store | Ingestion endpoint for error events sent from client SDKs |
+
+
+## list_events
+
+> <Array<ErrorEvent>> list_events(project_id, fingerprint, opts)
+
+Get information about the events related to the error
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::EventsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+fingerprint = 56 # Integer | ID of the error within the project
+opts = {
+ sort: 'occurred_at_asc', # String |
+ cursor: 'cursor_example', # String | Base64 encoded information for pagination
+ limit: 56 # Integer | Number of entries to return
+}
+
+begin
+ # Get information about the events related to the error
+ result = api_instance.list_events(project_id, fingerprint, opts)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->list_events: #{e}"
+end
+```
+
+#### Using the list_events_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<Array<ErrorEvent>>, Integer, Hash)> list_events_with_http_info(project_id, fingerprint, opts)
+
+```ruby
+begin
+ # Get information about the events related to the error
+ data, status_code, headers = api_instance.list_events_with_http_info(project_id, fingerprint, opts)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <Array<ErrorEvent>>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->list_events_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+| **fingerprint** | **Integer** | ID of the error within the project | |
+| **sort** | **String** | | [optional][default to &#39;occurred_at_asc&#39;] |
+| **cursor** | **String** | Base64 encoded information for pagination | [optional] |
+| **limit** | **Integer** | Number of entries to return | [optional][default to 20] |
+
+### Return type
+
+[**Array&lt;ErrorEvent&gt;**](ErrorEvent.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
+
+## projects_api_project_id_envelope_post
+
+> <ErrorEvent> projects_api_project_id_envelope_post(project_id)
+
+Ingestion endpoint for error events sent from client SDKs
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::EventsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+
+begin
+ # Ingestion endpoint for error events sent from client SDKs
+ result = api_instance.projects_api_project_id_envelope_post(project_id)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->projects_api_project_id_envelope_post: #{e}"
+end
+```
+
+#### Using the projects_api_project_id_envelope_post_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<ErrorEvent>, Integer, Hash)> projects_api_project_id_envelope_post_with_http_info(project_id)
+
+```ruby
+begin
+ # Ingestion endpoint for error events sent from client SDKs
+ data, status_code, headers = api_instance.projects_api_project_id_envelope_post_with_http_info(project_id)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <ErrorEvent>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->projects_api_project_id_envelope_post_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+
+### Return type
+
+[**ErrorEvent**](ErrorEvent.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
+
+## projects_api_project_id_store_post
+
+> <ErrorEvent> projects_api_project_id_store_post(project_id)
+
+Ingestion endpoint for error events sent from client SDKs
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::EventsApi.new
+project_id = 56 # Integer | ID of the project where the error was created
+
+begin
+ # Ingestion endpoint for error events sent from client SDKs
+ result = api_instance.projects_api_project_id_store_post(project_id)
+ p result
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->projects_api_project_id_store_post: #{e}"
+end
+```
+
+#### Using the projects_api_project_id_store_post_with_http_info variant
+
+This returns an Array which contains the response data, status code and headers.
+
+> <Array(<ErrorEvent>, Integer, Hash)> projects_api_project_id_store_post_with_http_info(project_id)
+
+```ruby
+begin
+ # Ingestion endpoint for error events sent from client SDKs
+ data, status_code, headers = api_instance.projects_api_project_id_store_post_with_http_info(project_id)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => <ErrorEvent>
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling EventsApi->projects_api_project_id_store_post_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **project_id** | **Integer** | ID of the project where the error was created | |
+
+### Return type
+
+[**ErrorEvent**](ErrorEvent.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: */*
+
diff --git a/vendor/gems/error_tracking_open_api/docs/ProjectsApi.md b/vendor/gems/error_tracking_open_api/docs/ProjectsApi.md
new file mode 100644
index 00000000000..e6397b23f8f
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/docs/ProjectsApi.md
@@ -0,0 +1,69 @@
+# ErrorTrackingOpenAPI::ProjectsApi
+
+All URIs are relative to *https://localhost/errortracking/api/v1*
+
+| Method | HTTP request | Description |
+| ------ | ------------ | ----------- |
+| [**delete_project**](ProjectsApi.md#delete_project) | **DELETE** /projects/{id} | Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects. |
+
+
+## delete_project
+
+> delete_project(id)
+
+Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+
+### Examples
+
+```ruby
+require 'time'
+require 'error_tracking_open_api'
+
+api_instance = ErrorTrackingOpenAPI::ProjectsApi.new
+id = 56 # Integer | ID of the project
+
+begin
+ # Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+ api_instance.delete_project(id)
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ProjectsApi->delete_project: #{e}"
+end
+```
+
+#### Using the delete_project_with_http_info variant
+
+This returns an Array which contains the response data (`nil` in this case), status code and headers.
+
+> <Array(nil, Integer, Hash)> delete_project_with_http_info(id)
+
+```ruby
+begin
+ # Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+ data, status_code, headers = api_instance.delete_project_with_http_info(id)
+ p status_code # => 2xx
+ p headers # => { ... }
+ p data # => nil
+rescue ErrorTrackingOpenAPI::ApiError => e
+ puts "Error when calling ProjectsApi->delete_project_with_http_info: #{e}"
+end
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **id** | **Integer** | ID of the project | |
+
+### Return type
+
+nil (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: Not defined
+
diff --git a/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec b/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec
new file mode 100644
index 00000000000..45f07204725
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/error_tracking_open_api.gemspec
@@ -0,0 +1,38 @@
+# -*- encoding: utf-8 -*-
+
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+$:.push File.expand_path("../lib", __FILE__)
+require "error_tracking_open_api/version"
+
+Gem::Specification.new do |s|
+ s.name = "error_tracking_open_api"
+ s.version = ErrorTrackingOpenAPI::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["OpenAPI-Generator"]
+ s.email = [""]
+ s.homepage = "https://openapi-generator.tech"
+ s.summary = "Error Trackig REST API Ruby Gem"
+ s.description = "This schema describes the API endpoints for the error tracking feature"
+ s.license = "MIT"
+ s.required_ruby_version = ">= 2.4"
+
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
+
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
+
+ s.files = Dir.glob("lib/**/*")
+ s.test_files = []
+ s.executables = []
+ s.require_paths = ["lib"]
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb
new file mode 100644
index 00000000000..9107f44414d
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api.rb
@@ -0,0 +1,45 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+# Common files
+require 'error_tracking_open_api/api_client'
+require 'error_tracking_open_api/api_error'
+require 'error_tracking_open_api/version'
+require 'error_tracking_open_api/configuration'
+
+# Models
+require 'error_tracking_open_api/models/error'
+require 'error_tracking_open_api/models/error_event'
+require 'error_tracking_open_api/models/error_update_payload'
+
+# APIs
+require 'error_tracking_open_api/api/errors_api'
+require 'error_tracking_open_api/api/events_api'
+require 'error_tracking_open_api/api/projects_api'
+
+module ErrorTrackingOpenAPI
+ class << self
+ # Customize default settings for the SDK using block.
+ # ErrorTrackingOpenAPI.configure do |config|
+ # config.username = "xxx"
+ # config.password = "xxx"
+ # end
+ # If no block given, return the default Configuration object.
+ def configure
+ if block_given?
+ yield(Configuration.default)
+ else
+ Configuration.default
+ end
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb
new file mode 100644
index 00000000000..f21d3c51baf
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/errors_api.rb
@@ -0,0 +1,347 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'cgi'
+
+module ErrorTrackingOpenAPI
+ class ErrorsApi
+ attr_accessor :api_client
+
+ def initialize(api_client = ApiClient.default)
+ @api_client = api_client
+ end
+ # Get information about the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error that needs to be updated deleted
+ # @param [Hash] opts the optional parameters
+ # @return [Error]
+ def get_error(project_id, fingerprint, opts = {})
+ data, _status_code, _headers = get_error_with_http_info(project_id, fingerprint, opts)
+ data
+ end
+
+ # Get information about the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error that needs to be updated deleted
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
+ def get_error_with_http_info(project_id, fingerprint, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: ErrorsApi.get_error ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ErrorsApi.get_error"
+ end
+ # verify the required parameter 'fingerprint' is set
+ if @api_client.config.client_side_validation && fingerprint.nil?
+ fail ArgumentError, "Missing the required parameter 'fingerprint' when calling ErrorsApi.get_error"
+ end
+ # resource path
+ local_var_path = '/projects/{projectId}/errors/{fingerprint}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'fingerprint' + '}', CGI.escape(fingerprint.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'Error'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"ErrorsApi.get_error",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ErrorsApi#get_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # List of errors
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'last_seen_desc')
+ # @option opts [String] :status (default to 'unresolved')
+ # @option opts [String] :query
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<Error>]
+ def list_errors(project_id, opts = {})
+ data, _status_code, _headers = list_errors_with_http_info(project_id, opts)
+ data
+ end
+
+ # List of errors
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'last_seen_desc')
+ # @option opts [String] :status (default to 'unresolved')
+ # @option opts [String] :query
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<(Array<Error>, Integer, Hash)>] Array<Error> data, response status code and response headers
+ def list_errors_with_http_info(project_id, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: ErrorsApi.list_errors ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ErrorsApi.list_errors"
+ end
+ allowable_values = ["last_seen_desc", "first_seen_desc", "frequency_desc"]
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
+ end
+ allowable_values = ["unresolved", "resolved", "ignored"]
+ if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
+ fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
+ end
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsApi.list_errors, must be smaller than or equal to 100.'
+ end
+
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsApi.list_errors, must be greater than or equal to 1.'
+ end
+
+ # resource path
+ local_var_path = '/projects/{projectId}/errors'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
+ query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'Array<Error>'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"ErrorsApi.list_errors",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ErrorsApi#list_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Get information about the events related to the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error within the project
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'occurred_at_asc')
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<ErrorEvent>]
+ def list_events(project_id, fingerprint, opts = {})
+ data, _status_code, _headers = list_events_with_http_info(project_id, fingerprint, opts)
+ data
+ end
+
+ # Get information about the events related to the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error within the project
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'occurred_at_asc')
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<(Array<ErrorEvent>, Integer, Hash)>] Array<ErrorEvent> data, response status code and response headers
+ def list_events_with_http_info(project_id, fingerprint, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: ErrorsApi.list_events ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ErrorsApi.list_events"
+ end
+ # verify the required parameter 'fingerprint' is set
+ if @api_client.config.client_side_validation && fingerprint.nil?
+ fail ArgumentError, "Missing the required parameter 'fingerprint' when calling ErrorsApi.list_events"
+ end
+ allowable_values = ["occurred_at_asc", "occurred_at_desc"]
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
+ end
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsApi.list_events, must be smaller than or equal to 100.'
+ end
+
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ErrorsApi.list_events, must be greater than or equal to 1.'
+ end
+
+ # resource path
+ local_var_path = '/projects/{projectId}/errors/{fingerprint}/events'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'fingerprint' + '}', CGI.escape(fingerprint.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'Array<ErrorEvent>'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"ErrorsApi.list_events",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ErrorsApi#list_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Update the status of the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error that needs to be updated deleted
+ # @param body [ErrorUpdatePayload] Error update object with the new values
+ # @param [Hash] opts the optional parameters
+ # @return [Error]
+ def update_error(project_id, fingerprint, body, opts = {})
+ data, _status_code, _headers = update_error_with_http_info(project_id, fingerprint, body, opts)
+ data
+ end
+
+ # Update the status of the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error that needs to be updated deleted
+ # @param body [ErrorUpdatePayload] Error update object with the new values
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(Error, Integer, Hash)>] Error data, response status code and response headers
+ def update_error_with_http_info(project_id, fingerprint, body, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: ErrorsApi.update_error ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling ErrorsApi.update_error"
+ end
+ # verify the required parameter 'fingerprint' is set
+ if @api_client.config.client_side_validation && fingerprint.nil?
+ fail ArgumentError, "Missing the required parameter 'fingerprint' when calling ErrorsApi.update_error"
+ end
+ # verify the required parameter 'body' is set
+ if @api_client.config.client_side_validation && body.nil?
+ fail ArgumentError, "Missing the required parameter 'body' when calling ErrorsApi.update_error"
+ end
+ # resource path
+ local_var_path = '/projects/{projectId}/errors/{fingerprint}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'fingerprint' + '}', CGI.escape(fingerprint.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
+ # HTTP header 'Content-Type'
+ content_type = @api_client.select_header_content_type(['application/json'])
+ if !content_type.nil?
+ header_params['Content-Type'] = content_type
+ end
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(body)
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'Error'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"ErrorsApi.update_error",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ErrorsApi#update_error\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb
new file mode 100644
index 00000000000..49e2af7bb64
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/events_api.rb
@@ -0,0 +1,232 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'cgi'
+
+module ErrorTrackingOpenAPI
+ class EventsApi
+ attr_accessor :api_client
+
+ def initialize(api_client = ApiClient.default)
+ @api_client = api_client
+ end
+ # Get information about the events related to the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error within the project
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'occurred_at_asc')
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<ErrorEvent>]
+ def list_events(project_id, fingerprint, opts = {})
+ data, _status_code, _headers = list_events_with_http_info(project_id, fingerprint, opts)
+ data
+ end
+
+ # Get information about the events related to the error
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param fingerprint [Integer] ID of the error within the project
+ # @param [Hash] opts the optional parameters
+ # @option opts [String] :sort (default to 'occurred_at_asc')
+ # @option opts [String] :cursor Base64 encoded information for pagination
+ # @option opts [Integer] :limit Number of entries to return (default to 20)
+ # @return [Array<(Array<ErrorEvent>, Integer, Hash)>] Array<ErrorEvent> data, response status code and response headers
+ def list_events_with_http_info(project_id, fingerprint, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: EventsApi.list_events ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling EventsApi.list_events"
+ end
+ # verify the required parameter 'fingerprint' is set
+ if @api_client.config.client_side_validation && fingerprint.nil?
+ fail ArgumentError, "Missing the required parameter 'fingerprint' when calling EventsApi.list_events"
+ end
+ allowable_values = ["occurred_at_asc", "occurred_at_desc"]
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
+ end
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.list_events, must be smaller than or equal to 100.'
+ end
+
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EventsApi.list_events, must be greater than or equal to 1.'
+ end
+
+ # resource path
+ local_var_path = '/projects/{projectId}/errors/{fingerprint}/events'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'fingerprint' + '}', CGI.escape(fingerprint.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'Array<ErrorEvent>'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"EventsApi.list_events",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: EventsApi#list_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Ingestion endpoint for error events sent from client SDKs
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @return [ErrorEvent]
+ def projects_api_project_id_envelope_post(project_id, opts = {})
+ data, _status_code, _headers = projects_api_project_id_envelope_post_with_http_info(project_id, opts)
+ data
+ end
+
+ # Ingestion endpoint for error events sent from client SDKs
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(ErrorEvent, Integer, Hash)>] ErrorEvent data, response status code and response headers
+ def projects_api_project_id_envelope_post_with_http_info(project_id, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: EventsApi.projects_api_project_id_envelope_post ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling EventsApi.projects_api_project_id_envelope_post"
+ end
+ # resource path
+ local_var_path = '/projects/api/{projectId}/envelope'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'ErrorEvent'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"EventsApi.projects_api_project_id_envelope_post",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: EventsApi#projects_api_project_id_envelope_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+
+ # Ingestion endpoint for error events sent from client SDKs
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @return [ErrorEvent]
+ def projects_api_project_id_store_post(project_id, opts = {})
+ data, _status_code, _headers = projects_api_project_id_store_post_with_http_info(project_id, opts)
+ data
+ end
+
+ # Ingestion endpoint for error events sent from client SDKs
+ # @param project_id [Integer] ID of the project where the error was created
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(ErrorEvent, Integer, Hash)>] ErrorEvent data, response status code and response headers
+ def projects_api_project_id_store_post_with_http_info(project_id, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: EventsApi.projects_api_project_id_store_post ...'
+ end
+ # verify the required parameter 'project_id' is set
+ if @api_client.config.client_side_validation && project_id.nil?
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling EventsApi.projects_api_project_id_store_post"
+ end
+ # resource path
+ local_var_path = '/projects/api/{projectId}/store'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type] || 'ErrorEvent'
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"EventsApi.projects_api_project_id_store_post",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: EventsApi#projects_api_project_id_store_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb
new file mode 100644
index 00000000000..15ebe6efc35
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api/projects_api.rb
@@ -0,0 +1,81 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'cgi'
+
+module ErrorTrackingOpenAPI
+ class ProjectsApi
+ attr_accessor :api_client
+
+ def initialize(api_client = ApiClient.default)
+ @api_client = api_client
+ end
+ # Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+ # @param id [Integer] ID of the project
+ # @param [Hash] opts the optional parameters
+ # @return [nil]
+ def delete_project(id, opts = {})
+ delete_project_with_http_info(id, opts)
+ nil
+ end
+
+ # Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
+ # @param id [Integer] ID of the project
+ # @param [Hash] opts the optional parameters
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
+ def delete_project_with_http_info(id, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: ProjectsApi.delete_project ...'
+ end
+ # verify the required parameter 'id' is set
+ if @api_client.config.client_side_validation && id.nil?
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.delete_project"
+ end
+ # resource path
+ local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
+
+ # query parameters
+ query_params = opts[:query_params] || {}
+
+ # header parameters
+ header_params = opts[:header_params] || {}
+
+ # form parameters
+ form_params = opts[:form_params] || {}
+
+ # http body (model)
+ post_body = opts[:debug_body]
+
+ # return_type
+ return_type = opts[:debug_return_type]
+
+ # auth_names
+ auth_names = opts[:debug_auth_names] || []
+
+ new_options = opts.merge(
+ :operation => :"ProjectsApi.delete_project",
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => return_type
+ )
+
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: ProjectsApi#delete_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb
new file mode 100644
index 00000000000..e2dedf57925
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_client.rb
@@ -0,0 +1,391 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'date'
+require 'json'
+require 'logger'
+require 'tempfile'
+require 'time'
+require 'typhoeus'
+
+module ErrorTrackingOpenAPI
+ class ApiClient
+ # The Configuration object holding settings to be used in the API client.
+ attr_accessor :config
+
+ # Defines the headers to be used in HTTP requests of all API calls by default.
+ #
+ # @return [Hash]
+ attr_accessor :default_headers
+
+ # Initializes the ApiClient
+ # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
+ def initialize(config = Configuration.default)
+ @config = config
+ @user_agent = "OpenAPI-Generator/#{VERSION}/ruby"
+ @default_headers = {
+ 'Content-Type' => 'application/json',
+ 'User-Agent' => @user_agent
+ }
+ end
+
+ def self.default
+ @@default ||= ApiClient.new
+ end
+
+ # Call an API with given options.
+ #
+ # @return [Array<(Object, Integer, Hash)>] an array of 3 elements:
+ # the data deserialized from response body (could be nil), response status code and response headers.
+ def call_api(http_method, path, opts = {})
+ request = build_request(http_method, path, opts)
+ response = request.run
+
+ if @config.debugging
+ @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
+ end
+
+ unless response.success?
+ if response.timed_out?
+ fail ApiError.new('Connection timed out')
+ elsif response.code == 0
+ # Errors from libcurl will be made visible here
+ fail ApiError.new(:code => 0,
+ :message => response.return_message)
+ else
+ fail ApiError.new(:code => response.code,
+ :response_headers => response.headers,
+ :response_body => response.body),
+ response.status_message
+ end
+ end
+
+ if opts[:return_type]
+ data = deserialize(response, opts[:return_type])
+ else
+ data = nil
+ end
+ return data, response.code, response.headers
+ end
+
+ # Builds the HTTP request
+ #
+ # @param [String] http_method HTTP method/verb (e.g. POST)
+ # @param [String] path URL path (e.g. /account/new)
+ # @option opts [Hash] :header_params Header parameters
+ # @option opts [Hash] :query_params Query parameters
+ # @option opts [Hash] :form_params Query parameters
+ # @option opts [Object] :body HTTP body (JSON/XML)
+ # @return [Typhoeus::Request] A Typhoeus Request
+ def build_request(http_method, path, opts = {})
+ url = build_request_url(path, opts)
+ http_method = http_method.to_sym.downcase
+
+ header_params = @default_headers.merge(opts[:header_params] || {})
+ query_params = opts[:query_params] || {}
+ form_params = opts[:form_params] || {}
+ follow_location = opts[:follow_location] || true
+
+
+ # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
+ _verify_ssl_host = @config.verify_ssl_host ? 2 : 0
+
+ req_opts = {
+ :method => http_method,
+ :headers => header_params,
+ :params => query_params,
+ :params_encoding => @config.params_encoding,
+ :timeout => @config.timeout,
+ :ssl_verifypeer => @config.verify_ssl,
+ :ssl_verifyhost => _verify_ssl_host,
+ :sslcert => @config.cert_file,
+ :sslkey => @config.key_file,
+ :verbose => @config.debugging,
+ :followlocation => follow_location
+ }
+
+ # set custom cert, if provided
+ req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
+
+ if [:post, :patch, :put, :delete].include?(http_method)
+ req_body = build_request_body(header_params, form_params, opts[:body])
+ req_opts.update :body => req_body
+ if @config.debugging
+ @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
+ end
+ end
+
+ request = Typhoeus::Request.new(url, req_opts)
+ download_file(request) if opts[:return_type] == 'File'
+ request
+ end
+
+ # Builds the HTTP request body
+ #
+ # @param [Hash] header_params Header parameters
+ # @param [Hash] form_params Query parameters
+ # @param [Object] body HTTP body (JSON/XML)
+ # @return [String] HTTP body data in the form of string
+ def build_request_body(header_params, form_params, body)
+ # http form
+ if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
+ header_params['Content-Type'] == 'multipart/form-data'
+ data = {}
+ form_params.each do |key, value|
+ case value
+ when ::File, ::Array, nil
+ # let typhoeus handle File, Array and nil parameters
+ data[key] = value
+ else
+ data[key] = value.to_s
+ end
+ end
+ elsif body
+ data = body.is_a?(String) ? body : body.to_json
+ else
+ data = nil
+ end
+ data
+ end
+
+ # Save response body into a file in (the defined) temporary folder, using the filename
+ # from the "Content-Disposition" header if provided, otherwise a random filename.
+ # The response body is written to the file in chunks in order to handle files which
+ # size is larger than maximum Ruby String or even larger than the maximum memory a Ruby
+ # process can use.
+ #
+ # @see Configuration#temp_folder_path
+ def download_file(request)
+ tempfile = nil
+ encoding = nil
+ request.on_headers do |response|
+ content_disposition = response.headers['Content-Disposition']
+ if content_disposition && content_disposition =~ /filename=/i
+ filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1]
+ prefix = sanitize_filename(filename)
+ else
+ prefix = 'download-'
+ end
+ prefix = prefix + '-' unless prefix.end_with?('-')
+ encoding = response.body.encoding
+ tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding)
+ @tempfile = tempfile
+ end
+ request.on_body do |chunk|
+ chunk.force_encoding(encoding)
+ tempfile.write(chunk)
+ end
+ request.on_complete do |response|
+ if tempfile
+ tempfile.close
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
+ "explicitly with `tempfile.delete`"
+ end
+ end
+ end
+
+ # Check if the given MIME is a JSON MIME.
+ # JSON MIME examples:
+ # application/json
+ # application/json; charset=UTF8
+ # APPLICATION/JSON
+ # */*
+ # @param [String] mime MIME
+ # @return [Boolean] True if the MIME is application/json
+ def json_mime?(mime)
+ (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil?
+ end
+
+ # Deserialize the response to the given return type.
+ #
+ # @param [Response] response HTTP response
+ # @param [String] return_type some examples: "User", "Array<User>", "Hash<String, Integer>"
+ def deserialize(response, return_type)
+ body = response.body
+
+ # handle file downloading - return the File instance processed in request callbacks
+ # note that response body is empty when the file is written in chunks in request on_body callback
+ return @tempfile if return_type == 'File'
+
+ return nil if body.nil? || body.empty?
+
+ # return response body directly for String return type
+ return body if return_type == 'String'
+
+ # ensuring a default content type
+ content_type = response.headers['Content-Type'] || 'application/json'
+
+ fail "Content-Type is not supported: #{content_type}" unless json_mime?(content_type)
+
+ begin
+ data = JSON.parse("[#{body}]", :symbolize_names => true)[0]
+ rescue JSON::ParserError => e
+ if %w(String Date Time).include?(return_type)
+ data = body
+ else
+ raise e
+ end
+ end
+
+ convert_to_type data, return_type
+ end
+
+ # Convert data to the given return type.
+ # @param [Object] data Data to be converted
+ # @param [String] return_type Return type
+ # @return [Mixed] Data in a particular type
+ def convert_to_type(data, return_type)
+ return nil if data.nil?
+ case return_type
+ when 'String'
+ data.to_s
+ when 'Integer'
+ data.to_i
+ when 'Float'
+ data.to_f
+ when 'Boolean'
+ data == true
+ when 'Time'
+ # parse date time (expecting ISO 8601 format)
+ Time.parse data
+ when 'Date'
+ # parse date time (expecting ISO 8601 format)
+ Date.parse data
+ when 'Object'
+ # generic object (usually a Hash), return directly
+ data
+ when /\AArray<(.+)>\z/
+ # e.g. Array<Pet>
+ sub_type = $1
+ data.map { |item| convert_to_type(item, sub_type) }
+ when /\AHash\<String, (.+)\>\z/
+ # e.g. Hash<String, Integer>
+ sub_type = $1
+ {}.tap do |hash|
+ data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
+ end
+ else
+ # models (e.g. Pet) or oneOf
+ klass = ErrorTrackingOpenAPI.const_get(return_type)
+ klass.respond_to?(:openapi_one_of) ? klass.build(data) : klass.build_from_hash(data)
+ end
+ end
+
+ # Sanitize filename by removing path.
+ # e.g. ../../sun.gif becomes sun.gif
+ #
+ # @param [String] filename the filename to be sanitized
+ # @return [String] the sanitized filename
+ def sanitize_filename(filename)
+ filename.gsub(/.*[\/\\]/, '')
+ end
+
+ def build_request_url(path, opts = {})
+ # Add leading and trailing slashes to path
+ path = "/#{path}".gsub(/\/+/, '/')
+ @config.base_url(opts[:operation]) + path
+ end
+
+ # Update header and query params based on authentication settings.
+ #
+ # @param [Hash] header_params Header parameters
+ # @param [Hash] query_params Query parameters
+ # @param [String] auth_names Authentication scheme name
+ def update_params_for_auth!(header_params, query_params, auth_names)
+ Array(auth_names).each do |auth_name|
+ auth_setting = @config.auth_settings[auth_name]
+ next unless auth_setting
+ case auth_setting[:in]
+ when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
+ when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
+ else fail ArgumentError, 'Authentication token must be in `query` or `header`'
+ end
+ end
+ end
+
+ # Sets user agent in HTTP header
+ #
+ # @param [String] user_agent User agent (e.g. openapi-generator/ruby/1.0.0)
+ def user_agent=(user_agent)
+ @user_agent = user_agent
+ @default_headers['User-Agent'] = @user_agent
+ end
+
+ # Return Accept header based on an array of accepts provided.
+ # @param [Array] accepts array for Accept
+ # @return [String] the Accept header (e.g. application/json)
+ def select_header_accept(accepts)
+ return nil if accepts.nil? || accepts.empty?
+ # use JSON when present, otherwise use all of the provided
+ json_accept = accepts.find { |s| json_mime?(s) }
+ json_accept || accepts.join(',')
+ end
+
+ # Return Content-Type header based on an array of content types provided.
+ # @param [Array] content_types array for Content-Type
+ # @return [String] the Content-Type header (e.g. application/json)
+ def select_header_content_type(content_types)
+ # return nil by default
+ return if content_types.nil? || content_types.empty?
+ # use JSON when present, otherwise use the first one
+ json_content_type = content_types.find { |s| json_mime?(s) }
+ json_content_type || content_types.first
+ end
+
+ # Convert object (array, hash, object, etc) to JSON string.
+ # @param [Object] model object to be converted into JSON string
+ # @return [String] JSON string representation of the object
+ def object_to_http_body(model)
+ return model if model.nil? || model.is_a?(String)
+ local_body = nil
+ if model.is_a?(Array)
+ local_body = model.map { |m| object_to_hash(m) }
+ else
+ local_body = object_to_hash(model)
+ end
+ local_body.to_json
+ end
+
+ # Convert object(non-array) to hash.
+ # @param [Object] obj object to be converted into JSON string
+ # @return [String] JSON string representation of the object
+ def object_to_hash(obj)
+ if obj.respond_to?(:to_hash)
+ obj.to_hash
+ else
+ obj
+ end
+ end
+
+ # Build parameter value according to the given collection format.
+ # @param [String] collection_format one of :csv, :ssv, :tsv, :pipes and :multi
+ def build_collection_param(param, collection_format)
+ case collection_format
+ when :csv
+ param.join(',')
+ when :ssv
+ param.join(' ')
+ when :tsv
+ param.join("\t")
+ when :pipes
+ param.join('|')
+ when :multi
+ # return the array directly as typhoeus will handle it as expected
+ param
+ else
+ fail "unknown collection format: #{collection_format.inspect}"
+ end
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb
new file mode 100644
index 00000000000..b04d1b37a0b
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/api_error.rb
@@ -0,0 +1,57 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+module ErrorTrackingOpenAPI
+ class ApiError < StandardError
+ attr_reader :code, :response_headers, :response_body
+
+ # Usage examples:
+ # ApiError.new
+ # ApiError.new("message")
+ # ApiError.new(:code => 500, :response_headers => {}, :response_body => "")
+ # ApiError.new(:code => 404, :message => "Not Found")
+ def initialize(arg = nil)
+ if arg.is_a? Hash
+ if arg.key?(:message) || arg.key?('message')
+ super(arg[:message] || arg['message'])
+ else
+ super arg
+ end
+
+ arg.each do |k, v|
+ instance_variable_set "@#{k}", v
+ end
+ else
+ super arg
+ end
+ end
+
+ # Override to_s to display a friendly error message
+ def to_s
+ message
+ end
+
+ def message
+ if @message.nil?
+ msg = "Error message: the server returns an error"
+ else
+ msg = @message
+ end
+
+ msg += "\nHTTP status code: #{code}" if code
+ msg += "\nResponse headers: #{response_headers}" if response_headers
+ msg += "\nResponse body: #{response_body}" if response_body
+
+ msg
+ end
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb
new file mode 100644
index 00000000000..c27c0aa3bb9
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/configuration.rb
@@ -0,0 +1,276 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+module ErrorTrackingOpenAPI
+ class Configuration
+ # Defines url scheme
+ attr_accessor :scheme
+
+ # Defines url host
+ attr_accessor :host
+
+ # Defines url base path
+ attr_accessor :base_path
+
+ # Define server configuration index
+ attr_accessor :server_index
+
+ # Define server operation configuration index
+ attr_accessor :server_operation_index
+
+ # Default server variables
+ attr_accessor :server_variables
+
+ # Default server operation variables
+ attr_accessor :server_operation_variables
+
+ # Defines API keys used with API Key authentications.
+ #
+ # @return [Hash] key: parameter name, value: parameter value (API key)
+ #
+ # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
+ # config.api_key['api_key'] = 'xxx'
+ attr_accessor :api_key
+
+ # Defines API key prefixes used with API Key authentications.
+ #
+ # @return [Hash] key: parameter name, value: API key prefix
+ #
+ # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
+ # config.api_key_prefix['api_key'] = 'Token'
+ attr_accessor :api_key_prefix
+
+ # Defines the username used with HTTP basic authentication.
+ #
+ # @return [String]
+ attr_accessor :username
+
+ # Defines the password used with HTTP basic authentication.
+ #
+ # @return [String]
+ attr_accessor :password
+
+ # Defines the access token (Bearer) used with OAuth2.
+ attr_accessor :access_token
+
+ # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
+ # details will be logged with `logger.debug` (see the `logger` attribute).
+ # Default to false.
+ #
+ # @return [true, false]
+ attr_accessor :debugging
+
+ # Defines the logger used for debugging.
+ # Default to `Rails.logger` (when in Rails) or logging to STDOUT.
+ #
+ # @return [#debug]
+ attr_accessor :logger
+
+ # Defines the temporary folder to store downloaded files
+ # (for API endpoints that have file response).
+ # Default to use `Tempfile`.
+ #
+ # @return [String]
+ attr_accessor :temp_folder_path
+
+ # The time limit for HTTP request in seconds.
+ # Default to 0 (never times out).
+ attr_accessor :timeout
+
+ # Set this to false to skip client side validation in the operation.
+ # Default to true.
+ # @return [true, false]
+ attr_accessor :client_side_validation
+
+ ### TLS/SSL setting
+ # Set this to false to skip verifying SSL certificate when calling API from https server.
+ # Default to true.
+ #
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
+ #
+ # @return [true, false]
+ attr_accessor :verify_ssl
+
+ ### TLS/SSL setting
+ # Set this to false to skip verifying SSL host name
+ # Default to true.
+ #
+ # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks.
+ #
+ # @return [true, false]
+ attr_accessor :verify_ssl_host
+
+ ### TLS/SSL setting
+ # Set this to customize the certificate file to verify the peer.
+ #
+ # @return [String] the path to the certificate file
+ #
+ # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code:
+ # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145
+ attr_accessor :ssl_ca_cert
+
+ ### TLS/SSL setting
+ # Client certificate file (for client certificate)
+ attr_accessor :cert_file
+
+ ### TLS/SSL setting
+ # Client private key file (for client certificate)
+ attr_accessor :key_file
+
+ # Set this to customize parameters encoding of array parameter with multi collectionFormat.
+ # Default to nil.
+ #
+ # @see The params_encoding option of Ethon. Related source code:
+ # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
+ attr_accessor :params_encoding
+
+
+ attr_accessor :inject_format
+
+ attr_accessor :force_ending_format
+
+ def initialize
+ @scheme = 'https'
+ @host = 'localhost'
+ @base_path = '/errortracking/api/v1'
+ @server_index = 0
+ @server_operation_index = {}
+ @server_variables = {}
+ @server_operation_variables = {}
+ @api_key = {}
+ @api_key_prefix = {}
+ @client_side_validation = true
+ @verify_ssl = true
+ @verify_ssl_host = true
+ @cert_file = nil
+ @key_file = nil
+ @timeout = 0
+ @params_encoding = nil
+ @debugging = false
+ @inject_format = false
+ @force_ending_format = false
+ @logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
+
+ yield(self) if block_given?
+ end
+
+ # The default Configuration object.
+ def self.default
+ @@default ||= Configuration.new
+ end
+
+ def configure
+ yield(self) if block_given?
+ end
+
+ def scheme=(scheme)
+ # remove :// from scheme
+ @scheme = scheme.sub(/:\/\//, '')
+ end
+
+ def host=(host)
+ # remove http(s):// and anything after a slash
+ @host = host.sub(/https?:\/\//, '').split('/').first
+ end
+
+ def base_path=(base_path)
+ # Add leading and trailing slashes to base_path
+ @base_path = "/#{base_path}".gsub(/\/+/, '/')
+ @base_path = '' if @base_path == '/'
+ end
+
+ # Returns base URL for specified operation based on server settings
+ def base_url(operation = nil)
+ index = server_operation_index.fetch(operation, server_index)
+ return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if index == nil
+
+ server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
+ end
+
+ # Gets API key (with prefix if set).
+ # @param [String] param_name the parameter name of API key auth
+ def api_key_with_prefix(param_name, param_alias = nil)
+ key = @api_key[param_name]
+ key = @api_key.fetch(param_alias, key) unless param_alias.nil?
+ if @api_key_prefix[param_name]
+ "#{@api_key_prefix[param_name]} #{key}"
+ else
+ key
+ end
+ end
+
+ # Gets Basic Auth token string
+ def basic_auth_token
+ 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
+ end
+
+ # Returns Auth Settings hash for api client.
+ def auth_settings
+ {
+ }
+ end
+
+ # Returns an array of Server setting
+ def server_settings
+ [
+ {
+ url: "https://localhost/errortracking/api/v1",
+ description: "No description provided",
+ },
+ {
+ url: "http://localhost/errortracking/api/v1",
+ description: "No description provided",
+ }
+ ]
+ end
+
+ def operation_server_settings
+ {
+ }
+ end
+
+ # Returns URL based on server settings
+ #
+ # @param index array index of the server settings
+ # @param variables hash of variable and the corresponding value
+ def server_url(index, variables = {}, servers = nil)
+ servers = server_settings if servers == nil
+
+ # check array index out of bound
+ if (index < 0 || index >= servers.size)
+ fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}"
+ end
+
+ server = servers[index]
+ url = server[:url]
+
+ return url unless server.key? :variables
+
+ # go through variable and assign a value
+ server[:variables].each do |name, variable|
+ if variables.key?(name)
+ if (!server[:variables][name].key?(:enum_values) || server[:variables][name][:enum_values].include?(variables[name]))
+ url.gsub! "{" + name.to_s + "}", variables[name]
+ else
+ fail ArgumentError, "The variable `#{name}` in the server URL has invalid value #{variables[name]}. Must be #{server[:variables][name][:enum_values]}."
+ end
+ else
+ # use default value
+ url.gsub! "{" + name.to_s + "}", server[:variables][name][:default_value]
+ end
+ end
+
+ url
+ end
+
+ end
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb
new file mode 100644
index 00000000000..1bad99e1e30
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error.rb
@@ -0,0 +1,335 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'date'
+require 'time'
+
+module ErrorTrackingOpenAPI
+ class Error
+ attr_accessor :fingerprint
+
+ attr_accessor :project_id
+
+ attr_accessor :name
+
+ attr_accessor :description
+
+ attr_accessor :actor
+
+ attr_accessor :event_count
+
+ attr_accessor :approximated_user_count
+
+ attr_accessor :last_seen_at
+
+ attr_accessor :first_seen_at
+
+ # Status of the error
+ attr_accessor :status
+
+ class EnumAttributeValidator
+ attr_reader :datatype
+ attr_reader :allowable_values
+
+ def initialize(datatype, allowable_values)
+ @allowable_values = allowable_values.map do |value|
+ case datatype.to_s
+ when /Integer/i
+ value.to_i
+ when /Float/i
+ value.to_f
+ else
+ value
+ end
+ end
+ end
+
+ def valid?(value)
+ !value || allowable_values.include?(value)
+ end
+ end
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'fingerprint' => :'fingerprint',
+ :'project_id' => :'project_id',
+ :'name' => :'name',
+ :'description' => :'description',
+ :'actor' => :'actor',
+ :'event_count' => :'event_count',
+ :'approximated_user_count' => :'approximated_user_count',
+ :'last_seen_at' => :'last_seen_at',
+ :'first_seen_at' => :'first_seen_at',
+ :'status' => :'status'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'fingerprint' => :'Integer',
+ :'project_id' => :'Integer',
+ :'name' => :'String',
+ :'description' => :'String',
+ :'actor' => :'String',
+ :'event_count' => :'Integer',
+ :'approximated_user_count' => :'Integer',
+ :'last_seen_at' => :'Time',
+ :'first_seen_at' => :'Time',
+ :'status' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::Error` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.attribute_map.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'fingerprint')
+ self.fingerprint = attributes[:'fingerprint']
+ end
+
+ if attributes.key?(:'project_id')
+ self.project_id = attributes[:'project_id']
+ end
+
+ if attributes.key?(:'name')
+ self.name = attributes[:'name']
+ end
+
+ if attributes.key?(:'description')
+ self.description = attributes[:'description']
+ end
+
+ if attributes.key?(:'actor')
+ self.actor = attributes[:'actor']
+ end
+
+ if attributes.key?(:'event_count')
+ self.event_count = attributes[:'event_count']
+ end
+
+ if attributes.key?(:'approximated_user_count')
+ self.approximated_user_count = attributes[:'approximated_user_count']
+ end
+
+ if attributes.key?(:'last_seen_at')
+ self.last_seen_at = attributes[:'last_seen_at']
+ end
+
+ if attributes.key?(:'first_seen_at')
+ self.first_seen_at = attributes[:'first_seen_at']
+ end
+
+ if attributes.key?(:'status')
+ self.status = attributes[:'status']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ status_validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"])
+ return false unless status_validator.valid?(@status)
+ true
+ end
+
+ # Custom attribute writer method checking allowed values (enum).
+ # @param [Object] status Object to be assigned
+ def status=(status)
+ validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"])
+ unless validator.valid?(status)
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
+ end
+ @status = status
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ fingerprint == o.fingerprint &&
+ project_id == o.project_id &&
+ name == o.name &&
+ description == o.description &&
+ actor == o.actor &&
+ event_count == o.event_count &&
+ approximated_user_count == o.approximated_user_count &&
+ last_seen_at == o.last_seen_at &&
+ first_seen_at == o.first_seen_at &&
+ status == o.status
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [fingerprint, project_id, name, description, actor, event_count, approximated_user_count, last_seen_at, first_seen_at, status].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attributes = attributes.transform_keys(&:to_sym)
+ self.class.openapi_types.each_pair do |key, type|
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ self.send("#{key}=", nil)
+ elsif type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[self.class.attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?<inner_type>.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ # models (e.g. Pet) or oneOf
+ klass = ErrorTrackingOpenAPI.const_get(type)
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash
+ hash = {}
+ self.class.attribute_map.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ is_nullable = self.class.openapi_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb
new file mode 100644
index 00000000000..b0dc1fc58df
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_event.rb
@@ -0,0 +1,283 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'date'
+require 'time'
+
+module ErrorTrackingOpenAPI
+ class ErrorEvent
+ attr_accessor :fingerprint
+
+ attr_accessor :project_id
+
+ # JSON encoded string
+ attr_accessor :payload
+
+ attr_accessor :name
+
+ attr_accessor :description
+
+ attr_accessor :actor
+
+ attr_accessor :environment
+
+ attr_accessor :platform
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'fingerprint' => :'fingerprint',
+ :'project_id' => :'projectId',
+ :'payload' => :'payload',
+ :'name' => :'name',
+ :'description' => :'description',
+ :'actor' => :'actor',
+ :'environment' => :'environment',
+ :'platform' => :'platform'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'fingerprint' => :'Integer',
+ :'project_id' => :'Integer',
+ :'payload' => :'String',
+ :'name' => :'String',
+ :'description' => :'String',
+ :'actor' => :'String',
+ :'environment' => :'String',
+ :'platform' => :'String'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::ErrorEvent` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.attribute_map.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::ErrorEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'fingerprint')
+ self.fingerprint = attributes[:'fingerprint']
+ end
+
+ if attributes.key?(:'project_id')
+ self.project_id = attributes[:'project_id']
+ end
+
+ if attributes.key?(:'payload')
+ self.payload = attributes[:'payload']
+ end
+
+ if attributes.key?(:'name')
+ self.name = attributes[:'name']
+ end
+
+ if attributes.key?(:'description')
+ self.description = attributes[:'description']
+ end
+
+ if attributes.key?(:'actor')
+ self.actor = attributes[:'actor']
+ end
+
+ if attributes.key?(:'environment')
+ self.environment = attributes[:'environment']
+ end
+
+ if attributes.key?(:'platform')
+ self.platform = attributes[:'platform']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ fingerprint == o.fingerprint &&
+ project_id == o.project_id &&
+ payload == o.payload &&
+ name == o.name &&
+ description == o.description &&
+ actor == o.actor &&
+ environment == o.environment &&
+ platform == o.platform
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [fingerprint, project_id, payload, name, description, actor, environment, platform].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attributes = attributes.transform_keys(&:to_sym)
+ self.class.openapi_types.each_pair do |key, type|
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ self.send("#{key}=", nil)
+ elsif type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[self.class.attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?<inner_type>.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ # models (e.g. Pet) or oneOf
+ klass = ErrorTrackingOpenAPI.const_get(type)
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash
+ hash = {}
+ self.class.attribute_map.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ is_nullable = self.class.openapi_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb
new file mode 100644
index 00000000000..937854d58f7
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/models/error_update_payload.rb
@@ -0,0 +1,264 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+require 'date'
+require 'time'
+
+module ErrorTrackingOpenAPI
+ class ErrorUpdatePayload
+ # Status of the error
+ attr_accessor :status
+
+ # GitLab user id who triggered the update
+ attr_accessor :updated_by_id
+
+ class EnumAttributeValidator
+ attr_reader :datatype
+ attr_reader :allowable_values
+
+ def initialize(datatype, allowable_values)
+ @allowable_values = allowable_values.map do |value|
+ case datatype.to_s
+ when /Integer/i
+ value.to_i
+ when /Float/i
+ value.to_f
+ else
+ value
+ end
+ end
+ end
+
+ def valid?(value)
+ !value || allowable_values.include?(value)
+ end
+ end
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'status' => :'status',
+ :'updated_by_id' => :'updated_by_id'
+ }
+ end
+
+ # Returns all the JSON keys this model knows about
+ def self.acceptable_attributes
+ attribute_map.values
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'status' => :'String',
+ :'updated_by_id' => :'Integer'
+ }
+ end
+
+ # List of attributes with nullable: true
+ def self.openapi_nullable
+ Set.new([
+ ])
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ if (!attributes.is_a?(Hash))
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ErrorTrackingOpenAPI::ErrorUpdatePayload` initialize method"
+ end
+
+ # check to see if the attribute exists and convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h|
+ if (!self.class.attribute_map.key?(k.to_sym))
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ErrorTrackingOpenAPI::ErrorUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
+ end
+ h[k.to_sym] = v
+ }
+
+ if attributes.key?(:'status')
+ self.status = attributes[:'status']
+ end
+
+ if attributes.key?(:'updated_by_id')
+ self.updated_by_id = attributes[:'updated_by_id']
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ status_validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"])
+ return false unless status_validator.valid?(@status)
+ true
+ end
+
+ # Custom attribute writer method checking allowed values (enum).
+ # @param [Object] status Object to be assigned
+ def status=(status)
+ validator = EnumAttributeValidator.new('String', ["unresolved", "resolved", "ignored"])
+ unless validator.valid?(status)
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
+ end
+ @status = status
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ status == o.status &&
+ updated_by_id == o.updated_by_id
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Integer] Hash code
+ def hash
+ [status, updated_by_id].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ attributes = attributes.transform_keys(&:to_sym)
+ self.class.openapi_types.each_pair do |key, type|
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
+ self.send("#{key}=", nil)
+ elsif type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the attribute
+ # is documented as an array but the input is not
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[self.class.attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
+ end
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :Time
+ Time.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :Boolean
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?<inner_type>.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ # models (e.g. Pet) or oneOf
+ klass = ErrorTrackingOpenAPI.const_get(type)
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash
+ hash = {}
+ self.class.attribute_map.each_pair do |attr, param|
+ value = self.send(attr)
+ if value.nil?
+ is_nullable = self.class.openapi_nullable.include?(attr)
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
+ end
+
+ hash[param] = _to_hash(value)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb
new file mode 100644
index 00000000000..84e675fda64
--- /dev/null
+++ b/vendor/gems/error_tracking_open_api/lib/error_tracking_open_api/version.rb
@@ -0,0 +1,15 @@
+=begin
+#Error Trackig REST API
+
+#This schema describes the API endpoints for the error tracking feature
+
+The version of the OpenAPI document: 0.0.1
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 6.0.0
+
+=end
+
+module ErrorTrackingOpenAPI
+ VERSION = '1.0.0'
+end
diff --git a/vendor/gems/ipynbdiff/.gitignore b/vendor/gems/ipynbdiff/.gitignore
new file mode 100644
index 00000000000..4f284c35a42
--- /dev/null
+++ b/vendor/gems/ipynbdiff/.gitignore
@@ -0,0 +1,2 @@
+*.gem
+.bundle
diff --git a/vendor/gems/ipynbdiff/.gitlab-ci.yml b/vendor/gems/ipynbdiff/.gitlab-ci.yml
new file mode 100644
index 00000000000..7b0c9df6cd9
--- /dev/null
+++ b/vendor/gems/ipynbdiff/.gitlab-ci.yml
@@ -0,0 +1,32 @@
+# You can override the included template(s) by including variable overrides
+# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
+# Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
+# Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
+# Note that environment variables can be set in several places
+# See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
+workflow:
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+
+.rspec:
+ cache:
+ key: ipynbdiff
+ paths:
+ - vendor/gems/ipynbdiff/vendor/ruby
+ before_script:
+ - cd vendor/gems/ipynbdiff
+ - ruby -v # Print out ruby version for debugging
+ - gem install bundler --no-document # Bundler is not installed with the image
+ - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
+ - bundle config set with 'development'
+ - bundle install -j $(nproc)
+ script:
+ - bundle exec rspec
+
+rspec-2.7:
+ image: "ruby:2.7"
+ extends: .rspec
+
+rspec-3.0:
+ image: "ruby:3.0"
+ extends: .rspec
diff --git a/vendor/gems/ipynbdiff/Gemfile b/vendor/gems/ipynbdiff/Gemfile
new file mode 100644
index 00000000000..7f4f5e950d1
--- /dev/null
+++ b/vendor/gems/ipynbdiff/Gemfile
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+source 'https://rubygems.org'
+
+gemspec
diff --git a/vendor/gems/ipynbdiff/Gemfile.lock b/vendor/gems/ipynbdiff/Gemfile.lock
new file mode 100644
index 00000000000..1c2fd81e3b4
--- /dev/null
+++ b/vendor/gems/ipynbdiff/Gemfile.lock
@@ -0,0 +1,67 @@
+PATH
+ remote: .
+ specs:
+ ipynbdiff (0.4.7)
+ diffy (~> 3.3)
+ oj (~> 3.13.16)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ ast (2.4.2)
+ benchmark-memory (0.2.0)
+ memory_profiler (~> 1)
+ binding_ninja (0.2.3)
+ coderay (1.1.3)
+ diff-lcs (1.5.0)
+ diffy (3.4.2)
+ memory_profiler (1.0.0)
+ method_source (1.0.0)
+ oj (3.13.16)
+ parser (3.1.2.0)
+ ast (~> 2.4.1)
+ proc_to_ast (0.1.0)
+ coderay
+ parser
+ unparser
+ pry (0.14.1)
+ coderay (~> 1.1)
+ method_source (~> 1.0)
+ rake (13.0.6)
+ rspec (3.11.0)
+ rspec-core (~> 3.11.0)
+ rspec-expectations (~> 3.11.0)
+ rspec-mocks (~> 3.11.0)
+ rspec-core (3.11.0)
+ rspec-support (~> 3.11.0)
+ rspec-expectations (3.11.0)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-mocks (3.11.1)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-parameterized (0.5.2)
+ binding_ninja (>= 0.2.3)
+ parser
+ proc_to_ast
+ rspec (>= 2.13, < 4)
+ unparser
+ rspec-support (3.11.0)
+ unparser (0.6.5)
+ diff-lcs (~> 1.3)
+ parser (>= 3.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ benchmark-memory (~> 0.2.0)
+ bundler (~> 2.2)
+ ipynbdiff!
+ pry (~> 0.14)
+ rake (~> 13.0)
+ rspec (~> 3.10)
+ rspec-parameterized (~> 0.5.1)
+
+BUNDLED WITH
+ 2.3.16
diff --git a/vendor/gems/ipynbdiff/LICENSE b/vendor/gems/ipynbdiff/LICENSE
new file mode 100644
index 00000000000..e6de2f90864
--- /dev/null
+++ b/vendor/gems/ipynbdiff/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016-2021 GitLab B.V.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/vendor/gems/ipynbdiff/README.md b/vendor/gems/ipynbdiff/README.md
new file mode 100644
index 00000000000..f046f678a4d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/README.md
@@ -0,0 +1,56 @@
+# IpynbDiff: Better diff for Jupyter Notebooks
+
+This is a simple diff tool that cleans up Jupyter notebooks, transforming each [notebook](example/1/from.ipynb)
+into a [readable markdown file](example/1/from_html.md), keeping the output of cells, and running the
+diff after. Markdowns are generated using an opinionated Jupyter to Markdown conversion. This means
+that the entire file is readable on the diff.
+
+The result are diffs that are much easier to read:
+
+| Diff | IpynbDiff |
+| ----------------------------------- | ----------------------------------------------------- |
+| [Diff text](example/diff.txt) | [IpynbDiff text](example/ipynbdiff_percent.txt) |
+| ![Diff image](example/img/diff.png) | ![IpynbDiff image](example/img/ipynbdiff_percent.png) |
+
+This started as a port of [ipynbdiff](https://gitlab.com/gitlab-org/incubation-engineering/mlops/poc/ipynbdiff),
+but now has extended functionality although not working as git driver.
+
+## Usage
+
+### Generating diffs
+
+```ruby
+IpynbDiff.diff(from_path, to_path, options)
+```
+
+Options:
+
+```ruby
+@default_transform_options = {
+ preprocess_input: true, # Whether the input should be transformed
+ write_output_to: nil, # Pass a path to save the output to a file
+ format: :text, # These are the formats Diffy accepts https://github.com/samg/diffy
+ sources_are_files: false, # Weather to use the from/to as string or path to a file
+ raise_if_invalid_notebook: false, # Raises an error if the notebooks are invalid, otherwise returns nil
+ transform_options: @default_transform_options, # See below for transform options
+ diff_opts: {
+ include_diff_info: false # These are passed to Diffy https://github.com/samg/diffy
+ }
+}
+```
+
+### Transforming the notebooks
+
+It might be necessary to have the transformed files in addition to the diff.
+
+```ruby
+IpynbDiff.transform(notebook, options)
+```
+
+Options:
+
+```ruby
+@default_transform_options = {
+ include_frontmatter: false, # Whether to include or not the notebook metadata (kernel, language, etc)
+}
+```
diff --git a/vendor/gems/ipynbdiff/ipynbdiff.gemspec b/vendor/gems/ipynbdiff/ipynbdiff.gemspec
new file mode 100644
index 00000000000..3054118ea47
--- /dev/null
+++ b/vendor/gems/ipynbdiff/ipynbdiff.gemspec
@@ -0,0 +1,34 @@
+# frozen_string_literal: true
+
+lib = File.expand_path('lib/..', __dir__)
+$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
+
+require 'lib/version'
+
+Gem::Specification.new do |s|
+ s.name = 'ipynbdiff'
+ s.version = IpynbDiff::VERSION
+ s.summary = 'Human Readable diffs for Jupyter Notebooks'
+ s.description = 'Better diff for Jupyter Notebooks by first preprocessing them and removing clutter'
+ s.authors = ['Eduardo Bonet']
+ s.email = 'ebonet@gitlab.com'
+ # Specify which files should be added to the gem when it is released.
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
+ s.files = Dir.glob("lib/**/*.*")
+ s.test_files = Dir.glob("spec/**/*.*")
+ s.homepage =
+ 'https://gitlab.com/gitlab-org/incubation-engineering/mlops/rb-ipynbdiff'
+ s.license = 'MIT'
+
+ s.require_paths = ['lib']
+
+ s.add_runtime_dependency 'diffy', '~> 3.3'
+ s.add_runtime_dependency 'oj', '~> 3.13.16'
+
+ s.add_development_dependency 'bundler', '~> 2.2'
+ s.add_development_dependency 'pry', '~> 0.14'
+ s.add_development_dependency 'rake', '~> 13.0'
+ s.add_development_dependency 'rspec', '~> 3.10'
+ s.add_development_dependency 'rspec-parameterized', '~> 0.5.1'
+ s.add_development_dependency 'benchmark-memory', '~>0.2.0'
+end
diff --git a/vendor/gems/ipynbdiff/lib/diff.rb b/vendor/gems/ipynbdiff/lib/diff.rb
new file mode 100644
index 00000000000..3554ac55d99
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/diff.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+# Custom differ for Jupyter Notebooks
+module IpynbDiff
+ require 'delegate'
+
+ # The result of a diff object
+ class Diff < SimpleDelegator
+ require 'diffy'
+
+ attr_reader :from, :to
+
+ def initialize(from, to, diffy_opts)
+ super(Diffy::Diff.new(from.as_text, to.as_text, **diffy_opts))
+
+ @from = from
+ @to = to
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/ipynbdiff.rb b/vendor/gems/ipynbdiff/lib/ipynbdiff.rb
new file mode 100644
index 00000000000..1765e434bf9
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/ipynbdiff.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+# Human Readable Jupyter Diffs
+module IpynbDiff
+ require 'transformer'
+ require 'diff'
+
+ def self.diff(from, to, raise_if_invalid_nb: false, include_frontmatter: false, hide_images: false, diffy_opts: {})
+ transformer = Transformer.new(include_frontmatter: include_frontmatter, hide_images: hide_images)
+
+ Diff.new(transformer.transform(from), transformer.transform(to), diffy_opts)
+ rescue InvalidNotebookError
+ raise if raise_if_invalid_nb
+ end
+
+ def self.transform(notebook, raise_errors: false, include_frontmatter: true, hide_images: false)
+ return unless notebook
+
+ Transformer.new(include_frontmatter: include_frontmatter, hide_images: hide_images).transform(notebook).as_text
+ rescue InvalidNotebookError
+ raise if raise_errors
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/output_transformer.rb b/vendor/gems/ipynbdiff/lib/output_transformer.rb
new file mode 100644
index 00000000000..57e8a9edce3
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/output_transformer.rb
@@ -0,0 +1,72 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ # Transforms Jupyter output data into markdown
+ class OutputTransformer
+ require 'symbolized_markdown_helper'
+ include SymbolizedMarkdownHelper
+
+ HIDDEN_IMAGE_OUTPUT = ' [Hidden Image Output]'
+
+ ORDERED_KEYS = {
+ 'execute_result' => %w[image/png image/svg+xml image/jpeg text/markdown text/latex text/plain],
+ 'display_data' => %w[image/png image/svg+xml image/jpeg text/markdown text/latex],
+ 'stream' => %w[text]
+ }.freeze
+
+ def initialize(hide_images = false)
+ @hide_images = hide_images
+ end
+
+ def transform(output, symbol)
+ case (output_type = output['output_type'])
+ when 'error'
+ transform_error(output['traceback'], symbol / 'traceback')
+ when 'execute_result', 'display_data'
+ transform_non_error(ORDERED_KEYS[output_type], output['data'], symbol / 'data')
+ when 'stream'
+ transform_element('text', output['text'], symbol)
+ end
+ end
+
+ def transform_error(traceback, symbol)
+ traceback.map.with_index do |t, idx|
+ t.split("\n").map do |l|
+ _(symbol / idx, l.gsub(/\[[0-9][0-9;]*m/, '').sub("\u001B", ' ').gsub(/\u001B/, '').rstrip)
+ end
+ end
+ end
+
+ def transform_non_error(accepted_keys, elements, symbol)
+ accepted_keys.filter { |key| elements.key?(key) }.map do |key|
+ transform_element(key, elements[key], symbol)
+ end
+ end
+
+ def transform_element(output_type, output_element, symbol_prefix)
+ new_symbol = symbol_prefix / output_type
+ case output_type
+ when 'image/png', 'image/jpeg'
+ transform_image(output_type + ';base64', output_element, new_symbol)
+ when 'image/svg+xml'
+ transform_image(output_type + ';utf8', output_element, new_symbol)
+ when 'text/markdown', 'text/latex', 'text/plain', 'text'
+ transform_text(output_element, new_symbol)
+ end
+ end
+
+ def transform_image(image_type, image_content, symbol)
+ return _(nil, HIDDEN_IMAGE_OUTPUT) if @hide_images
+
+ lines = image_content.is_a?(Array) ? image_content : [image_content]
+
+ single_line = lines.map(&:strip).join.gsub(/\s+/, ' ')
+
+ _(symbol, " ![](data:#{image_type},#{single_line})")
+ end
+
+ def transform_text(text_content, symbol)
+ symbolize_array(symbol, text_content) { |l| " #{l.rstrip}" }
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/symbol_map.rb b/vendor/gems/ipynbdiff/lib/symbol_map.rb
new file mode 100644
index 00000000000..89cbccbed1b
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/symbol_map.rb
@@ -0,0 +1,107 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ require 'oj'
+
+ # Creates a map from a symbol to the line number it appears in a Json file
+ #
+ # Example:
+ #
+ # Input:
+ #
+ # 1. {
+ # 2. 'obj1': [
+ # 3. {
+ # 4. 'obj2': 5
+ # 5. },
+ # 6. 3,
+ # 7. {
+ # 8. 'obj3': {
+ # 9. 'obj4': 'b'
+ # 10. }
+ # 11. }
+ # 12. ]
+ # 13.}
+ #
+ # Output:
+ #
+ # Symbol Line Number
+ # .obj1 -> 2
+ # .obj1.0 -> 3
+ # .obj1.0 -> 3
+ # .obj1.0.obj2 -> 4
+ # .obj1.1 -> 6
+ # .obj1.2 -> 7
+ # .obj1.2.obj3 -> 8
+ # .obj1.2.obj3.obj4 -> 9
+ #
+ class SymbolMap
+ class << self
+ def handler
+ @handler ||= SymbolMap.new
+ end
+
+ def parser
+ @parser ||= Oj::Parser.new(:saj).tap { |p| p.handler = handler }
+ end
+
+ def parse(notebook, *args)
+ handler.reset
+ parser.parse(notebook)
+ handler.symbols
+ end
+ end
+
+ attr_accessor :symbols
+
+ def hash_start(key, line, column)
+ add_symbol(key_or_index(key), line)
+ end
+
+ def hash_end(key, line, column)
+ @current_path.pop
+ end
+
+ def array_start(key, line, column)
+ @current_array_index << 0
+
+ add_symbol(key, line)
+ end
+
+ def array_end(key, line, column)
+ @current_path.pop
+ @current_array_index.pop
+ end
+
+ def add_value(value, key, line, column)
+ add_symbol(key_or_index(key), line)
+
+ @current_path.pop
+ end
+
+ def add_symbol(symbol, line)
+ @symbols[@current_path.append(symbol).join('.')] = line if symbol
+ end
+
+ def key_or_index(key)
+ if key.nil? # value in an array
+ if @current_path.empty?
+ @current_path = ['']
+ return nil
+ end
+
+ symbol = @current_array_index.last
+ @current_array_index[-1] += 1
+ symbol
+ else
+ key
+ end
+ end
+
+ def reset
+ @current_path = []
+ @symbols = {}
+ @current_array_index = []
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb b/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb
new file mode 100644
index 00000000000..918666ed899
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/symbolized_markdown_helper.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ # Helper functions
+ module SymbolizedMarkdownHelper
+
+ def _(symbol = nil, content = '')
+ { symbol: symbol, content: content }
+ end
+
+ def symbolize_array(symbol, content, &block)
+ if content.is_a?(Array)
+ content.map.with_index { |l, idx| _(symbol / idx, block.call(l)) }
+ else
+ _(symbol, content)
+ end
+ end
+ end
+
+ # Simple wrapper for a string
+ class JsonSymbol < String
+ def /(other)
+ JsonSymbol.new((other.is_a?(Array) ? [self, *other] : [self, other]).join('.'))
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/transformed_notebook.rb b/vendor/gems/ipynbdiff/lib/transformed_notebook.rb
new file mode 100644
index 00000000000..f98e5f68086
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/transformed_notebook.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ # Notebook that was transformed into md, including location of source cells
+ class TransformedNotebook
+ attr_reader :blocks
+
+ def as_text
+ @blocks.map { |b| b[:content].gsub(/\n/, '\\n') }.join("\n")
+ end
+
+ private
+
+ def initialize(lines = [], symbol_map = {})
+ @blocks = lines.map do |line|
+ { content: line[:content], source_symbol: (symbol = line[:symbol]), source_line: symbol && symbol_map[symbol] }
+ end
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/transformer.rb b/vendor/gems/ipynbdiff/lib/transformer.rb
new file mode 100644
index 00000000000..1b2c63bb35c
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/transformer.rb
@@ -0,0 +1,112 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ require 'oj'
+
+ class InvalidNotebookError < StandardError
+ end
+
+ # Returns a markdown version of the Jupyter Notebook
+ class Transformer
+ require 'json'
+ require 'yaml'
+ require 'output_transformer'
+ require 'symbolized_markdown_helper'
+ require 'symbol_map'
+ require 'transformed_notebook'
+ include SymbolizedMarkdownHelper
+
+ @include_frontmatter = true
+
+ def initialize(include_frontmatter: true, hide_images: false)
+ @include_frontmatter = include_frontmatter
+ @hide_images = hide_images
+ @out_transformer = OutputTransformer.new(hide_images)
+ end
+
+ def validate_notebook(notebook)
+ notebook_json = Oj::Parser.usual.parse(notebook)
+
+ return notebook_json if notebook_json.key?('cells')
+
+ raise InvalidNotebookError
+ rescue EncodingError, Oj::ParseError, JSON::ParserError
+ raise InvalidNotebookError
+ end
+
+ def transform(notebook)
+ return TransformedNotebook.new unless notebook
+
+ notebook_json = validate_notebook(notebook)
+ transformed = transform_document(notebook_json)
+ symbol_map = SymbolMap.parse(notebook)
+
+ TransformedNotebook.new(transformed, symbol_map)
+ end
+
+ def transform_document(notebook)
+ symbol = JsonSymbol.new('.cells')
+
+ transformed_blocks = notebook['cells'].map.with_index do |cell, idx|
+ decorate_cell(transform_cell(cell, notebook, symbol / idx), cell, symbol / idx)
+ end
+
+ transformed_blocks.prepend(transform_metadata(notebook)) if @include_frontmatter
+ transformed_blocks.flatten
+ end
+
+ def decorate_cell(rows, cell, symbol)
+ tags = cell['metadata']&.fetch('tags', [])
+ type = cell['cell_type'] || 'raw'
+
+ [
+ _(symbol, %(%% Cell type:#{type} id:#{cell['id']} tags:#{tags&.join(',')})),
+ _,
+ rows,
+ _
+ ]
+ end
+
+ def transform_cell(cell, notebook, symbol)
+ cell['cell_type'] == 'code' ? transform_code_cell(cell, notebook, symbol) : transform_text_cell(cell, symbol)
+ end
+
+ def transform_code_cell(cell, notebook, symbol)
+ [
+ _(symbol / 'source', %(``` #{notebook.dig('metadata', 'kernelspec', 'language') || ''})),
+ symbolize_array(symbol / 'source', cell['source'], &:rstrip),
+ _(nil, '```'),
+ transform_outputs(cell['outputs'], symbol)
+ ]
+ end
+
+ def transform_outputs(outputs, symbol)
+ transformed = outputs.map
+ .with_index { |output, i| @out_transformer.transform(output, symbol / ['outputs', i]) }
+ .compact
+ .map { |el| [_, el] }
+
+ [
+ transformed.empty? ? [] : [_, _(symbol / 'outputs', '%% Output')],
+ transformed
+ ]
+ end
+
+ def transform_text_cell(cell, symbol)
+ symbolize_array(symbol / 'source', cell['source'], &:rstrip)
+ end
+
+ def transform_metadata(notebook_json)
+ as_yaml = {
+ 'jupyter' => {
+ 'kernelspec' => notebook_json['metadata']['kernelspec'],
+ 'language_info' => notebook_json['metadata']['language_info'],
+ 'nbformat' => notebook_json['nbformat'],
+ 'nbformat_minor' => notebook_json['nbformat_minor']
+ }
+ }.to_yaml
+
+ as_yaml.split("\n").map { |l| _(nil, l) }.append(_(nil, '---'), _)
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/lib/version.rb b/vendor/gems/ipynbdiff/lib/version.rb
new file mode 100644
index 00000000000..1451bb4ef32
--- /dev/null
+++ b/vendor/gems/ipynbdiff/lib/version.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+module IpynbDiff
+ VERSION = '0.4.7'
+end
diff --git a/vendor/gems/ipynbdiff/spec/benchmark.rb b/vendor/gems/ipynbdiff/spec/benchmark.rb
new file mode 100644
index 00000000000..99f088f2056
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/benchmark.rb
@@ -0,0 +1,64 @@
+require 'ipynbdiff'
+require 'benchmark'
+require 'benchmark/memory'
+require_relative 'test_helper'
+
+large_cell = '{
+ "cell_type": "code",
+ "execution_count": 9,
+ "id": "24f32781-48bf-4378-b30c-ccdce7b05ba0",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "image/png": "iVBORw0KGgoAAAANSUhEUgAABj0AAAHwCAYAAAD91q10AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/MnkTPAAAACXBIWXMAAA9hAAAPYQGoP6dpAABPSUlEQVR4nO39eZCfd34f+L2fxkmAAAiCBO/7PobHkCAxIEjcV/eWHTl/yOVKvFaloo3kTZXjlKUa2bVS4tiyna2JElmudaUqK+0m9m4ceVVxutEAiIMXeIEEObyG4PC+QPAEQIA4+8kfD1pf/DgkhwC78XT/+vWqYmHQnybxLml6COCNz/dT1XUdAAAAAACA8a6n7QAAAAAAAAAjQekBAAAAAAB0BaUHAAAAAADQFZQeAAAAAABAV1B6AAAAAAAAXUHpAQAAAAAAdAWlBwAAAAAA0BUmtx3g66qqqpJcnGR/21kAAAAAAIAxYVaSD+q6rr/rk8Zc6ZGm8Hiv7RAAAAAAAMCYcmmS97/rE8Zi6bE/Sd59993Mnj277SwAAAAAAECL9u3bl8suuyz5Hi9EjcXSI0kye/ZspQcAAAAAAPC9OWQOAAAAAAB0BaUHAAAAAADQFZQeAAAAAABAV1B6AAAAAAAAXUHpAQAAAAAAdAWlBwAAAAA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HlG54Mk/z7J/9Fv8sDIqqpqaZKt3zD6i7qu/17VvLP6h0n+iyRzkzyZ5O/7Qzjww33X11+SP0rzc9Bvsqyu622jEoquoPQAAAAAAAC6gvdAAQAAAACArqD0AAAAAAAAuoLSAwAAAAAA6ApKDwAAAAAAoCsoPQAAAAAAgK6g9AAAAAAAALqC0gMAAAAAAOgKSg8AAAAAAKArKD0AAAAAAICuoPQAAAAAAAC6gtIDAAAAAADoCv9/1MXeuKac8eEAAAAASUVORK5CYII=\n",
+ "text/plain": [
+ "<Figure size 2000x600 with 1 Axes>"
+ ]
+ },
+ "metadata": {
+ "needs_background": "light"
+ },
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "do_plot(is_sin = False)"
+ ]
+},'
+
+base = '{
+ "cells": [
+ <<>>{
+ "cell_type": "markdown",
+ "id": "1",
+ "metadata": {
+ "tags": [
+ "hello",
+ "world"
+ ]
+ },
+ "source": [
+ "# A\n",
+ "\n",
+ "B"
+ ]
+ }
+ ],
+ "metadata": {
+ }
+}'
+
+SMALL_NOTEBOOK = base.gsub('<<>>', large_cell)
+LARGE_NOTEBOOK = base.gsub('<<>>', Array.new(100, large_cell).join("\n"))
+
+puts "Small Notebook: #{SMALL_NOTEBOOK.bytesize}"
+puts "Large Notebook: #{LARGE_NOTEBOOK.bytesize}"
+
+def cases(benchmark_runner)
+ benchmark_runner.report('small_notebook') { IpynbDiff.transform(SMALL_NOTEBOOK) }
+ benchmark_runner.report('large_notebook') { IpynbDiff.transform(LARGE_NOTEBOOK) }
+end
+
+Benchmark.benchmark { |x| cases(x) }
+Benchmark.memory { |x| cases(x) }
diff --git a/vendor/gems/ipynbdiff/spec/ipynbdiff_spec.rb b/vendor/gems/ipynbdiff/spec/ipynbdiff_spec.rb
new file mode 100644
index 00000000000..1c2a2188edf
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/ipynbdiff_spec.rb
@@ -0,0 +1,126 @@
+# frozen_string_literal: true
+
+require 'ipynbdiff'
+require 'rspec'
+require 'rspec-parameterized'
+
+BASE_PATH = File.join(File.expand_path(File.dirname(__FILE__)), 'testdata')
+
+describe IpynbDiff do
+ def diff_signs(diff)
+ diff.to_s(:text).scan(/.*\n/).map { |l| l[0] }.join('')
+ end
+
+ describe 'diff' do
+ let(:from_path) { File.join(BASE_PATH, 'from.ipynb') }
+ let(:to_path) { File.join(BASE_PATH,'to.ipynb') }
+ let(:from) { File.read(from_path) }
+ let(:to) { File.read(to_path) }
+ let(:include_frontmatter) { false }
+ let(:hide_images) { false }
+
+ subject { IpynbDiff.diff(from, to, include_frontmatter: include_frontmatter, hide_images: hide_images) }
+
+ context 'if preprocessing is active' do
+ it 'html tables are stripped' do
+ is_expected.to_not include('<td>')
+ end
+ end
+
+ context 'when to is nil' do
+ let(:to) { nil }
+ let(:from_path) { File.join(BASE_PATH, 'only_md', 'input.ipynb') }
+
+ it 'all lines are removals' do
+ expect(diff_signs(subject)).to eq('-----')
+ end
+ end
+
+ context 'when to is nil' do
+ let(:from) { nil }
+ let(:to_path) { File.join(BASE_PATH, 'only_md', 'input.ipynb') }
+
+ it 'all lines are additions' do
+ expect(diff_signs(subject)).to eq('+++++')
+ end
+ end
+
+ context 'When include_frontmatter is true' do
+ let(:include_frontmatter) { true }
+
+ it 'should show changes metadata in the metadata' do
+ expect(subject.to_s(:text)).to include('+ display_name: New Python 3 (ipykernel)')
+ end
+ end
+
+ context 'When hide_images is true' do
+ let(:hide_images) { true }
+
+ it 'hides images' do
+ expect(subject.to_s(:text)).to include(' [Hidden Image Output]')
+ end
+ end
+
+ context 'When include_frontmatter is false' do
+ it 'should drop metadata from the diff' do
+ expect(subject.to_s(:text)).to_not include('+ display_name: New Python 3 (ipykernel)')
+ end
+ end
+
+ context 'when either notebook can not be processed' do
+ using RSpec::Parameterized::TableSyntax
+
+ where(:ctx, :from, :to) do
+ 'because from is invalid' | 'a' | nil
+ 'because from does not have the cell tag' | '{"metadata":[]}' | nil
+ 'because to is invalid' | nil | 'a'
+ 'because to does not have the cell tag' | nil | '{"metadata":[]}'
+ end
+
+ with_them do
+ it { is_expected.to be_nil }
+ end
+ end
+ end
+
+ describe 'transform' do
+ [nil, 'a', '{"metadata":[]}'].each do |invalid_nb|
+ context "when json is invalid (#{invalid_nb || 'nil'})" do
+ it 'is nil' do
+ expect(IpynbDiff.transform(invalid_nb)).to be_nil
+ end
+ end
+ end
+
+ context 'options' do
+ let(:include_frontmatter) { false }
+ let(:hide_images) { false }
+
+ subject do
+ IpynbDiff.transform(File.read(File.join(BASE_PATH, 'from.ipynb')),
+ include_frontmatter: include_frontmatter,
+ hide_images: hide_images)
+ end
+
+ context 'include_frontmatter is false' do
+ it { is_expected.to_not include('display_name: Python 3 (ipykernel)') }
+ end
+
+ context 'include_frontmatter is true' do
+ let(:include_frontmatter) { true }
+
+ it { is_expected.to include('display_name: Python 3 (ipykernel)') }
+ end
+
+ context 'hide_images is false' do
+ it { is_expected.not_to include('[Hidden Image Output]') }
+ end
+
+ context 'hide_images is true' do
+ let(:hide_images) { true }
+
+ it { is_expected.to include(' [Hidden Image Output]') }
+ end
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/spec/symbol_map_spec.rb b/vendor/gems/ipynbdiff/spec/symbol_map_spec.rb
new file mode 100644
index 00000000000..5fba47c85af
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/symbol_map_spec.rb
@@ -0,0 +1,58 @@
+# frozen_string_literal: true
+
+require 'rspec'
+require 'json'
+require 'rspec-parameterized'
+require 'symbol_map'
+
+describe IpynbDiff::SymbolMap do
+ def res(*cases)
+ cases&.to_h || []
+ end
+
+ describe '#parse' do
+ subject { IpynbDiff::SymbolMap.parse(JSON.pretty_generate(source)) }
+
+ context 'Object with blank key' do
+ let(:source) { { "": { "": 5 } }}
+
+ it { is_expected.to match_array(res([".", 2], ["..", 3])) }
+ end
+
+ context 'Empty object' do
+ let(:source) { {} }
+
+ it { is_expected.to be_empty }
+ end
+
+ context 'Empty array' do
+ let(:source) { [] }
+
+ it { is_expected.to be_empty }
+ end
+
+ context 'Object with inner object and number' do
+ let(:source) { { obj1: { obj2: 1 } } }
+
+ it { is_expected.to match_array(res( ['.obj1', 2], ['.obj1.obj2', 3])) }
+ end
+
+ context 'Object with inner object and number, string and array with object' do
+ let(:source) { { obj1: { obj2: [123, 2, true], obj3: "hel\nlo", obj4: true, obj5: 123, obj6: 'a' } } }
+
+ it do
+ is_expected.to match_array(
+ res(['.obj1', 2],
+ ['.obj1.obj2', 3],
+ ['.obj1.obj2.0', 4],
+ ['.obj1.obj2.1', 5],
+ ['.obj1.obj2.2', 6],
+ ['.obj1.obj3', 8],
+ ['.obj1.obj4', 9],
+ ['.obj1.obj5', 10],
+ ['.obj1.obj6', 11])
+ )
+ end
+ end
+ end
+end
diff --git a/vendor/gems/ipynbdiff/spec/test_helper.rb b/vendor/gems/ipynbdiff/spec/test_helper.rb
new file mode 100644
index 00000000000..f9c416885a1
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/test_helper.rb
@@ -0,0 +1,23 @@
+BASE_PATH = File.join(File.expand_path(File.dirname(__FILE__)), 'testdata')
+
+FROM_PATH = File.join(BASE_PATH, 'from.ipynb')
+TO_PATH = File.join(BASE_PATH, 'to.ipynb')
+
+FROM_IPYNB = File.read(FROM_PATH)
+TO_IPYNB = File.read(TO_PATH)
+
+def input_for_test(test_case)
+ File.join(BASE_PATH, test_case, 'input.ipynb')
+end
+
+def expected_symbols(test_case)
+ File.join(BASE_PATH, test_case, 'expected_symbols.txt')
+end
+
+def expected_md(test_case)
+ File.join(BASE_PATH, test_case, 'expected.md')
+end
+
+def expected_line_numbers(test_case)
+ File.join(BASE_PATH, test_case, 'expected_line_numbers.txt')
+end
diff --git a/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected.md b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected.md
new file mode 100644
index 00000000000..299e286c679
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected.md
@@ -0,0 +1,7 @@
+%% Cell type:markdown id: tags:
+
+\
+
+%% Cell type:markdown id: tags:
+
+a
diff --git a/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected_symbols.txt
new file mode 100644
index 00000000000..6fa29ae28de
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/expected_symbols.txt
@@ -0,0 +1,7 @@
+.cells.0
+
+.cells.0.source.0
+
+.cells.1
+
+.cells.1.source.0
diff --git a/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/input.ipynb
new file mode 100644
index 00000000000..0714044e3ae
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/backslash_as_last_char/input.ipynb
@@ -0,0 +1,16 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "source": [
+ "\\"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "source": [
+ "a"
+ ]
+ }
+ ]
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/error_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/error_output/expected.md
new file mode 100644
index 00000000000..e6e8a075598
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/error_output/expected.md
@@ -0,0 +1,16 @@
+%% Cell type:code id:5 tags:
+
+``` python
+# A cell that has an error
+y = sin(x)
+```
+
+%% Output
+
+ ---------------------------------------------------------------------------
+ NameError Traceback (most recent call last)
+ /var/folders/cq/l637k4x13gx6y9p_gfs4c_gc0000gn/T/ipykernel_72857/3962062127.py in <module>
+ 1 # A cell that has an error
+ ----> 2 y = sin(x)
+
+ NameError: name 'sin' is not defined
diff --git a/vendor/gems/ipynbdiff/spec/testdata/error_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/error_output/expected_symbols.txt
new file mode 100644
index 00000000000..5d2f248135d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/error_output/expected_symbols.txt
@@ -0,0 +1,16 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+.cells.0.source.1
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.traceback.0
+.cells.0.outputs.0.traceback.1
+.cells.0.outputs.0.traceback.2
+.cells.0.outputs.0.traceback.2
+.cells.0.outputs.0.traceback.2
+.cells.0.outputs.0.traceback.2
+.cells.0.outputs.0.traceback.3
diff --git a/vendor/gems/ipynbdiff/spec/testdata/error_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/error_output/input.ipynb
new file mode 100644
index 00000000000..45ee81a0e2d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/error_output/input.ipynb
@@ -0,0 +1,32 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "id": "5",
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "NameError",
+ "evalue": "name 'sin' is not defined",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
+ "\u001b[0;32m/var/folders/cq/l637k4x13gx6y9p_gfs4c_gc0000gn/T/ipykernel_72857/3962062127.py\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;31m# A cell that has an error\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0my\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0msin\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
+ "\u001b[0;31mNameError\u001b[0m: name 'sin' is not defined"
+ ]
+ }
+ ],
+ "source": [
+ "# A cell that has an error\n",
+ "y = sin(x)"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/from.ipynb b/vendor/gems/ipynbdiff/spec/testdata/from.ipynb
new file mode 100644
index 00000000000..68a4b11cbbc
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/from.ipynb
@@ -0,0 +1,197 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "0aac5da7-745c-4eda-847a-3d0d07a1bb9b",
+ "metadata": {
+ "tags": []
+ },
+ "source": [
+ "# This is a markdown cell\n",
+ "\n",
+ "This paragraph has\n",
+ "With\n",
+ "Many\n",
+ "Lines. How we will he handle MR notes?\n",
+ "\n",
+ "But I can add another paragraph"
+ ]
+ },
+ {
+ "cell_type": "raw",
+ "id": "faecea5b-de0a-49fa-9a3a-61c2add652da",
+ "metadata": {},
+ "source": [
+ "This is a raw cell\n",
+ "With\n",
+ "Multiple lines"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "893ca2c0-ab75-4276-9dad-be1c40e16e8a",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "id": "0d707fb5-226f-46d6-80bd-489ebfb8905c",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "np.random.seed(42)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "35467fcf-28b1-4c7b-bb09-4cb192c35293",
+ "metadata": {
+ "tags": [
+ "senoid"
+ ]
+ }, "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "[<matplotlib.lines.Line2D at 0x123e39370>]"
+ ]
+ },
+ "execution_count": 3,
+ "metadata": {},
+ "output_type": "execute_result"
+ },
+ {
+ "data": {
+ "image/png": "some_invalid_base64_image_here\n",
+ "text/plain": [
+ "<Figure size 432x288 with 1 Axes>"
+ ]
+ },
+ "metadata": {
+ "needs_background": "light"
+ },
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "x = np.linspace(0, 4*np.pi,50)\n",
+ "y = np.sin(x)\n",
+ "\n",
+ "plt.plot(x, y)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "id": "dc1178cd-c46d-4da3-9ab5-08f000699884",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "df = pd.DataFrame({\"x\": x, \"y\": y})"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "id": "6e749b4f-b409-4700-870f-f68c39462490",
+ "metadata": {
+ "tags": [
+ "some-table"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "<div>\n",
+ "<style scoped>\n",
+ " .dataframe tbody tr th:only-of-type {\n",
+ " vertical-align: middle;\n",
+ " }\n",
+ "\n",
+ " .dataframe tbody tr th {\n",
+ " vertical-align: top;\n",
+ " }\n",
+ "\n",
+ " .dataframe thead th {\n",
+ " text-align: right;\n",
+ " }\n",
+ "</style>\n",
+ "<table border=\"1\" class=\"dataframe\">\n",
+ " <thead>\n",
+ " <tr style=\"text-align: right;\">\n",
+ " <th></th>\n",
+ " <th>x</th>\n",
+ " <th>y</th>\n",
+ " </tr>\n",
+ " </thead>\n",
+ " <tbody>\n",
+ " <tr>\n",
+ " <th>0</th>\n",
+ " <td>0.000000</td>\n",
+ " <td>0.000000</td>\n",
+ " </tr>\n",
+ " <tr>\n",
+ " <th>1</th>\n",
+ " <td>0.256457</td>\n",
+ " <td>0.253655</td>\n",
+ " </tr>\n",
+ " </tbody>\n",
+ "</table>\n",
+ "</div>"
+ ],
+ "text/plain": [
+ " x y\n",
+ "0 0.000000 0.000000\n",
+ "1 0.256457 0.253655"
+ ]
+ },
+ "execution_count": 5,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "df[:2]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "0ddef5ef-94a3-4afd-9c70-ddee9694f512",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.7"
+ },
+ "toc-showtags": true
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected.md b/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected.md
new file mode 100644
index 00000000000..ff63d351a3b
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected.md
@@ -0,0 +1,10 @@
+%% Cell type:code id:5 tags:senoid
+
+``` python
+```
+
+%% Output
+
+ [Hidden Image Output]
+
+ [Hidden Image Output]
diff --git a/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected_symbols.txt
new file mode 100644
index 00000000000..b8f24f9fba5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/hide_images/expected_symbols.txt
@@ -0,0 +1,10 @@
+.cells.0
+
+.cells.0.source
+
+
+.cells.0.outputs
+
+
+
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/hide_images/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/hide_images/input.ipynb
new file mode 100644
index 00000000000..dab0e5bb9cf
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/hide_images/input.ipynb
@@ -0,0 +1,45 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "5",
+ "metadata": {
+ "tags": [
+ "senoid"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": "this_is_an_invalid_hash_for_testing_purposes\n",
+ "text/plain": [
+ "<Figure size 432x288 with 1 Axes>"
+ ]
+ },
+ "metadata": {
+ "needs_background": "light"
+ },
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "image/svg+xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><circle cx=\"50\" cy=\"50\" r=\"50\"/></svg>",
+ "text/plain": [
+ "<IPython.core.display.SVG object>"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected.md
new file mode 100644
index 00000000000..3085da739ed
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected.md
@@ -0,0 +1,11 @@
+%% Cell type:code id:5 tags:some-table
+
+``` python
+df[:2]
+```
+
+%% Output
+
+ x y
+ 0 0.000000 0.000000
+ 1 0.256457 0.507309
diff --git a/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected_symbols.txt
new file mode 100644
index 00000000000..3bf319d1fa6
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/expected_symbols.txt
@@ -0,0 +1,11 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.text/plain.0
+.cells.0.outputs.0.data.text/plain.1
+.cells.0.outputs.0.data.text/plain.2
diff --git a/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/input.ipynb
new file mode 100644
index 00000000000..26117a78934
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/ignore_html_output/input.ipynb
@@ -0,0 +1,74 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "id": "5",
+ "metadata": {
+ "tags": [
+ "some-table"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "<div>\n",
+ "<style scoped>\n",
+ " .dataframe tbody tr th:only-of-type {\n",
+ " vertical-align: middle;\n",
+ " }\n",
+ "\n",
+ " .dataframe tbody tr th {\n",
+ " vertical-align: top;\n",
+ " }\n",
+ "\n",
+ " .dataframe thead th {\n",
+ " text-align: right;\n",
+ " }\n",
+ "</style>\n",
+ "<table border=\"1\" class=\"dataframe\">\n",
+ " <thead>\n",
+ " <tr style=\"text-align: right;\">\n",
+ " <th></th>\n",
+ " <th>x</th>\n",
+ " <th>y</th>\n",
+ " </tr>\n",
+ " </thead>\n",
+ " <tbody>\n",
+ " <tr>\n",
+ " <th>0</th>\n",
+ " <td>0.000000</td>\n",
+ " <td>0.000000</td>\n",
+ " </tr>\n",
+ " <tr>\n",
+ " <th>1</th>\n",
+ " <td>0.256457</td>\n",
+ " <td>0.507309</td>\n",
+ " </tr>\n",
+ " </tbody>\n",
+ "</table>\n",
+ "</div>"
+ ],
+ "text/plain": [
+ " x y\n",
+ "0 0.000000 0.000000\n",
+ "1 0.256457 0.507309"
+ ]
+ },
+ "execution_count": 5,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "df[:2]"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected.md
new file mode 100644
index 00000000000..194c1f43c42
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected.md
@@ -0,0 +1,10 @@
+%% Cell type:code id:5 tags:
+
+``` python
+from IPython.display import display, Math
+display(Math(r'Dims: {}x{}m \\ Area: {}m^2 \\ Volume: {}m^3'.format(1, round(2,2), 3, 4)))
+```
+
+%% Output
+
+ $\displaystyle Dims: 1x2m \\ Area: 3m^2 \\ Volume: 4m^3$
diff --git a/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected_symbols.txt
new file mode 100644
index 00000000000..868adca2712
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/latex_output/expected_symbols.txt
@@ -0,0 +1,10 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+.cells.0.source.1
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.text/latex.0
diff --git a/vendor/gems/ipynbdiff/spec/testdata/latex_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/latex_output/input.ipynb
new file mode 100644
index 00000000000..f8ff3e72beb
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/latex_output/input.ipynb
@@ -0,0 +1,34 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "id": "5",
+ "outputs": [
+ {
+ "data": {
+ "text/latex": [
+ "$\\displaystyle Dims: 1x2m \\\\ Area: 3m^2 \\\\ Volume: 4m^3$"
+ ],
+ "text/plain": [
+ "<IPython.core.display.Math object>"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "from IPython.display import display, Math\n",
+ "display(Math(r'Dims: {}x{}m \\\\ Area: {}m^2 \\\\ Volume: {}m^3'.format(1, round(2,2), 3, 4)))"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected.md
new file mode 100644
index 00000000000..0a69c8370e7
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected.md
@@ -0,0 +1,9 @@
+%% Cell type:code id:5 tags:
+
+```
+Some Image
+```
+
+%% Output
+
+ ![](data:image/png;base64,this_is_an_invalid_hash_for_testing_purposes)
diff --git a/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected_symbols.txt
new file mode 100644
index 00000000000..1b66012ef20
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/expected_symbols.txt
@@ -0,0 +1,9 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.image/png
diff --git a/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/input.ipynb
new file mode 100644
index 00000000000..4d19a504553
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/multiline_png_output/input.ipynb
@@ -0,0 +1,25 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "id": "5",
+ "metadata": {
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/png": [
+ "this_is_an_invalid_hash_for_testing_purposes"
+ ]
+ },
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "Some Image"
+ ]
+ }
+ ],
+ "metadata": {
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected.md b/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected.md
new file mode 100644
index 00000000000..b7c09c51fb8
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected.md
@@ -0,0 +1,19 @@
+---
+jupyter:
+ kernelspec:
+ display_name: Python 3 (ipykernel)
+ language: python
+ name: python3
+ language_info:
+ codemirror_mode:
+ name: ipython
+ version: 3
+ file_extension: ".py"
+ mimetype: text/x-python
+ name: python
+ nbconvert_exporter: python
+ pygments_lexer: ipython3
+ version: 3.9.7
+ nbformat: 4
+ nbformat_minor: 5
+---
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected_symbols.txt
new file mode 100644
index 00000000000..a60f3032882
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells/expected_symbols.txt
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/no_cells/input.ipynb
new file mode 100644
index 00000000000..c2ba0ebf50a
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells/input.ipynb
@@ -0,0 +1,25 @@
+{
+ "cells": [],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.7"
+ },
+ "toc-showtags": true
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected.md b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected.md
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected.md
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected_symbols.txt
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/expected_symbols.txt
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/input.ipynb
new file mode 100644
index 00000000000..c2ba0ebf50a
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_cells_no_metadata/input.ipynb
@@ -0,0 +1,25 @@
+{
+ "cells": [],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.7"
+ },
+ "toc-showtags": true
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected.md b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected.md
new file mode 100644
index 00000000000..d9d72bf8f76
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected.md
@@ -0,0 +1,13 @@
+%% Cell type:markdown id:1 tags:
+
+# A
+
+B
+
+%% Cell type:code id:3 tags:
+
+``` python
+import pandas as pd
+import numpy as np
+import matplotlib.pyplot as plt
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected_symbols.txt
new file mode 100644
index 00000000000..a7000494a1b
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/expected_symbols.txt
@@ -0,0 +1,13 @@
+.cells.0
+
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
+
+.cells.1
+
+.cells.1.source
+.cells.1.source.0
+.cells.1.source.1
+.cells.1.source.2
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/input.ipynb
new file mode 100644
index 00000000000..62060124a2a
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/no_metadata_on_cell/input.ipynb
@@ -0,0 +1,29 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "1",
+ "source": [
+ "# A\n",
+ "\n",
+ "B"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "3",
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code/expected.md
new file mode 100644
index 00000000000..124b8217a6a
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code/expected.md
@@ -0,0 +1,7 @@
+%% Cell type:code id:3 tags:
+
+``` python
+import pandas as pd
+import numpy as np
+import matplotlib.pyplot as plt
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code/expected_symbols.txt
new file mode 100644
index 00000000000..59b11103195
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code/expected_symbols.txt
@@ -0,0 +1,7 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_code/input.ipynb
new file mode 100644
index 00000000000..a93108dccb8
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code/input.ipynb
@@ -0,0 +1,21 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "3",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md
new file mode 100644
index 00000000000..9100045e0f5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected.md
@@ -0,0 +1,5 @@
+%% Cell type:code id:3 tags:
+
+```
+
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt
new file mode 100644
index 00000000000..5f9ad320b8c
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/expected_symbols.txt
@@ -0,0 +1,5 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/input.ipynb
new file mode 100644
index 00000000000..c3ff71057a6
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_kernelspec/input.ipynb
@@ -0,0 +1,12 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "3",
+ "source": "",
+ "outputs": []
+ }
+ ],
+ "metadata": {}
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md
new file mode 100644
index 00000000000..9100045e0f5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected.md
@@ -0,0 +1,5 @@
+%% Cell type:code id:3 tags:
+
+```
+
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt
new file mode 100644
index 00000000000..5f9ad320b8c
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/expected_symbols.txt
@@ -0,0 +1,5 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/input.ipynb
new file mode 100644
index 00000000000..fb16b106cbe
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_language/input.ipynb
@@ -0,0 +1,14 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "3",
+ "source": "",
+ "outputs": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {}
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md
new file mode 100644
index 00000000000..9100045e0f5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected.md
@@ -0,0 +1,5 @@
+%% Cell type:code id:3 tags:
+
+```
+
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt
new file mode 100644
index 00000000000..5f9ad320b8c
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/expected_symbols.txt
@@ -0,0 +1,5 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/input.ipynb
new file mode 100644
index 00000000000..364c080168b
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_code_no_metadata/input.ipynb
@@ -0,0 +1,11 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "3",
+ "source": "",
+ "outputs": []
+ }
+ ]
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_md/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_md/expected.md
new file mode 100644
index 00000000000..bdf4db5aea5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_md/expected.md
@@ -0,0 +1,5 @@
+%% Cell type:markdown id:1 tags:hello,world
+
+# A
+
+B
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_md/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_md/expected_symbols.txt
new file mode 100644
index 00000000000..d3d6d526fc3
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_md/expected_symbols.txt
@@ -0,0 +1,5 @@
+.cells.0
+
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_md/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_md/input.ipynb
new file mode 100644
index 00000000000..9d6b550af31
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_md/input.ipynb
@@ -0,0 +1,21 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "1",
+ "metadata": {
+ "tags": [
+ "hello",
+ "world"
+ ]
+ },
+ "source": [
+ "# A\n",
+ "\n",
+ "B"
+ ]
+ }
+ ],
+ "metadata": {
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected.md b/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected.md
new file mode 100644
index 00000000000..91c476e843b
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected.md
@@ -0,0 +1,4 @@
+%% Cell type:raw id:2 tags:
+
+A
+B
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected_symbols.txt
new file mode 100644
index 00000000000..bceaf355c2f
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_raw/expected_symbols.txt
@@ -0,0 +1,4 @@
+.cells.0
+
+.cells.0.source.0
+.cells.0.source.1
diff --git a/vendor/gems/ipynbdiff/spec/testdata/only_raw/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/only_raw/input.ipynb
new file mode 100644
index 00000000000..750e1bba615
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/only_raw/input.ipynb
@@ -0,0 +1,15 @@
+{
+ "cells": [
+ {
+ "cell_type": "raw",
+ "id": "2",
+ "metadata": {},
+ "source": [
+ "A\n",
+ "B"
+ ]
+ }
+ ],
+ "metadata": {
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected.md b/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected.md
new file mode 100644
index 00000000000..1ece1f2fd06
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected.md
@@ -0,0 +1,68 @@
+%% Cell type:markdown id:0aac5da7-745c-4eda-847a-3d0d07a1bb9b tags:
+
+# This is a markdown cell
+
+This paragraph has
+With
+Many
+Lines. How we will he handle MR notes?
+
+But I can add another paragraph
+
+%% Cell type:raw id:faecea5b-de0a-49fa-9a3a-61c2add652da tags:
+
+This is a raw cell
+With
+Multiple lines
+
+%% Cell type:code id:893ca2c0-ab75-4276-9dad-be1c40e16e8a tags:
+
+``` python
+import pandas as pd
+import numpy as np
+import matplotlib.pyplot as plt
+```
+
+%% Cell type:code id:0d707fb5-226f-46d6-80bd-489ebfb8905c tags:
+
+``` python
+np.random.seed(42)
+```
+
+%% Cell type:code id:35467fcf-28b1-4c7b-bb09-4cb192c35293 tags:senoid
+
+``` python
+x = np.linspace(0, 4*np.pi,50)
+y = np.sin(x)
+
+plt.plot(x, y)
+```
+
+%% Output
+
+ [<matplotlib.lines.Line2D at 0x123e39370>]
+
+ ![](data:image/png;base64,some_invalid_base64_image_here)
+
+%% Cell type:code id:dc1178cd-c46d-4da3-9ab5-08f000699884 tags:
+
+``` python
+df = pd.DataFrame({"x": x, "y": y})
+```
+
+%% Cell type:code id:6e749b4f-b409-4700-870f-f68c39462490 tags:some-table
+
+``` python
+df[:2]
+```
+
+%% Output
+
+ x y
+ 0 0.000000 0.000000
+ 1 0.256457 0.253655
+
+%% Cell type:code id:0ddef5ef-94a3-4afd-9c70-ddee9694f512 tags:
+
+``` python
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected_symbols.txt
new file mode 100644
index 00000000000..c95665d1903
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/percent_decorator/expected_symbols.txt
@@ -0,0 +1,68 @@
+.cells.0
+
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
+.cells.0.source.3
+.cells.0.source.4
+.cells.0.source.5
+.cells.0.source.6
+.cells.0.source.7
+
+.cells.1
+
+.cells.1.source.0
+.cells.1.source.1
+.cells.1.source.2
+
+.cells.2
+
+.cells.2.source
+.cells.2.source.0
+.cells.2.source.1
+.cells.2.source.2
+
+
+.cells.3
+
+.cells.3.source
+.cells.3.source.0
+
+
+.cells.4
+
+.cells.4.source
+.cells.4.source.0
+.cells.4.source.1
+.cells.4.source.2
+.cells.4.source.3
+
+
+.cells.4.outputs
+
+.cells.4.outputs.0.data.text/plain.0
+
+.cells.4.outputs.1.data.image/png
+
+.cells.5
+
+.cells.5.source
+.cells.5.source.0
+
+
+.cells.6
+
+.cells.6.source
+.cells.6.source.0
+
+
+.cells.6.outputs
+
+.cells.6.outputs.0.data.text/plain.0
+.cells.6.outputs.0.data.text/plain.1
+.cells.6.outputs.0.data.text/plain.2
+
+.cells.7
+
+.cells.7.source
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected.md b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected.md
new file mode 100644
index 00000000000..392a5048f59
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected.md
@@ -0,0 +1,3 @@
+%% Cell type:markdown id:1 tags:hello,world
+
+A
diff --git a/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected_symbols.txt
new file mode 100644
index 00000000000..86a7f6b3960
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/expected_symbols.txt
@@ -0,0 +1,3 @@
+.cells.0
+
+.cells.0.source
diff --git a/vendor/gems/ipynbdiff/spec/testdata/single_line_md/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/input.ipynb
new file mode 100644
index 00000000000..5ebd41adbfa
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/single_line_md/input.ipynb
@@ -0,0 +1,17 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "1",
+ "metadata": {
+ "tags": [
+ "hello",
+ "world"
+ ]
+ },
+ "source": "A"
+ }
+ ],
+ "metadata": {
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md
new file mode 100644
index 00000000000..c62e8fd6b9a
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected.md
@@ -0,0 +1,3 @@
+%% Cell type:markdown id: tags:
+
+> This is a test\n>\n> To see if I can duplicate my bug
diff --git a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt
new file mode 100644
index 00000000000..86a7f6b3960
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/expected_symbols.txt
@@ -0,0 +1,3 @@
+.cells.0
+
+.cells.0.source
diff --git a/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/input.ipynb
new file mode 100644
index 00000000000..faacc703969
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/source_with_linebreak/input.ipynb
@@ -0,0 +1,11 @@
+{
+ "metadata": {
+ },
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "source": "> This is a test\n>\n> To see if I can duplicate my bug",
+ "metadata": {}
+ }
+ ]
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected.md b/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected.md
new file mode 100644
index 00000000000..0448bf21111
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected.md
@@ -0,0 +1,9 @@
+%% Cell type:code id:123 tags:
+
+``` python
+print("G'bye")
+```
+
+%% Output
+
+ G'bye
diff --git a/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected_symbols.txt
new file mode 100644
index 00000000000..be4e2861ea9
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/stream_text/expected_symbols.txt
@@ -0,0 +1,9 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.text.0
diff --git a/vendor/gems/ipynbdiff/spec/testdata/stream_text/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/stream_text/input.ipynb
new file mode 100644
index 00000000000..14601fe35e5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/stream_text/input.ipynb
@@ -0,0 +1,27 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "123",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "G'bye\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(\"G'bye\")"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/svg/expected.md b/vendor/gems/ipynbdiff/spec/testdata/svg/expected.md
new file mode 100644
index 00000000000..a5a167d31c5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/svg/expected.md
@@ -0,0 +1,17 @@
+%% Cell type:code id:5 tags:
+
+``` python
+from IPython.display import SVG, display
+
+svg = """<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+ <circle cx="50" cy="50" r="50"/>
+</svg>"""
+
+display(SVG(svg))
+```
+
+%% Output
+
+ ![](data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="50"/></svg>)
+
+ ![](data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="50"/></svg>)
diff --git a/vendor/gems/ipynbdiff/spec/testdata/svg/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/svg/expected_symbols.txt
new file mode 100644
index 00000000000..861198a8c92
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/svg/expected_symbols.txt
@@ -0,0 +1,17 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
+.cells.0.source.3
+.cells.0.source.4
+.cells.0.source.5
+.cells.0.source.6
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.image/svg+xml
+
+.cells.0.outputs.1.data.image/svg+xml
diff --git a/vendor/gems/ipynbdiff/spec/testdata/svg/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/svg/input.ipynb
new file mode 100644
index 00000000000..a02d01f7bf2
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/svg/input.ipynb
@@ -0,0 +1,66 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "id": "5",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "image/svg+xml": [
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\">\n",
+ " <circle cx=\"50\" cy=\"50\" r=\"50\"/>\n",
+ "</svg>"
+ ],
+ "text/plain": [
+ "<IPython.core.display.SVG object>"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ },
+ {
+ "data": {
+ "image/svg+xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><circle cx=\"50\" cy=\"50\" r=\"50\"/></svg>",
+ "text/plain": [
+ "<IPython.core.display.SVG object>"
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "from IPython.display import SVG, display\n",
+ "\n",
+ "svg = \"\"\"<svg viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">\n",
+ " <circle cx=\"50\" cy=\"50\" r=\"50\"/>\n",
+ "</svg>\"\"\"\n",
+ "\n",
+ "display(SVG(svg))"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.8.12"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/text_output/expected.md
new file mode 100644
index 00000000000..1b6c086ecd5
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_output/expected.md
@@ -0,0 +1,9 @@
+%% Cell type:code id:5 tags:senoid
+
+``` python
+plt.plot(x, y)
+```
+
+%% Output
+
+ [<matplotlib.lines.Line2D at 0x12a4e43d0>]
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/text_output/expected_symbols.txt
new file mode 100644
index 00000000000..a004d852ba4
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_output/expected_symbols.txt
@@ -0,0 +1,9 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.text/plain.0
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/text_output/input.ipynb
new file mode 100644
index 00000000000..b1b387bb99d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_output/input.ipynb
@@ -0,0 +1,31 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "id": "5",
+ "metadata": {
+ "tags": [
+ "senoid"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "[<matplotlib.lines.Line2D at 0x12a4e43d0>]"
+ ]
+ },
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "plt.plot(x, y)"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected.md b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected.md
new file mode 100644
index 00000000000..c77f109378c
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected.md
@@ -0,0 +1,14 @@
+%% Cell type:code id:5 tags:senoid
+
+``` python
+x = np.linspace(0, 4*np.pi,50)
+y = 2 * np.sin(x)
+
+plt.plot(x, y)
+```
+
+%% Output
+
+ [<matplotlib.lines.Line2D at 0x12a4e43d0>]
+
+ ![](data:image/png;base64,this_is_an_invalid_hash_for_testing_purposes)
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_line_numbers.txt b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_line_numbers.txt
new file mode 100644
index 00000000000..62e35deb96d
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_line_numbers.txt
@@ -0,0 +1,14 @@
+3
+
+36
+37
+38
+39
+40
+
+
+12
+
+16
+
+25
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_symbols.txt
new file mode 100644
index 00000000000..49f2d7149d8
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/expected_symbols.txt
@@ -0,0 +1,14 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+.cells.0.source.1
+.cells.0.source.2
+.cells.0.source.3
+
+
+.cells.0.outputs
+
+.cells.0.outputs.0.data.text/plain.0
+
+.cells.0.outputs.1.data.image/png
diff --git a/vendor/gems/ipynbdiff/spec/testdata/text_png_output/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/input.ipynb
new file mode 100644
index 00000000000..3728b129d26
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/text_png_output/input.ipynb
@@ -0,0 +1,49 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "5",
+ "metadata": {
+ "tags": [
+ "senoid"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "[<matplotlib.lines.Line2D at 0x12a4e43d0>]"
+ ]
+ },
+ "execution_count": 3,
+ "metadata": {},
+ "output_type": "execute_result"
+ },
+ {
+ "data": {
+ "image/png": "this_is_an_invalid_hash_for_testing_purposes\n",
+ "text/plain": [
+ "<Figure size 432x288 with 1 Axes>"
+ ]
+ },
+ "metadata": {
+ "needs_background": "light"
+ },
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "x = np.linspace(0, 4*np.pi,50)\n",
+ "y = 2 * np.sin(x)\n",
+ "\n",
+ "plt.plot(x, y)"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/to.ipynb b/vendor/gems/ipynbdiff/spec/testdata/to.ipynb
new file mode 100644
index 00000000000..99b51f3b857
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/to.ipynb
@@ -0,0 +1,200 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "0aac5da7-745c-4eda-847a-3d0d07a1bb9b",
+ "metadata": {
+ "tags": []
+ },
+ "source": [
+ "# This is a markdown cell\n",
+ "\n",
+ "This paragraph has\n",
+ "With\n",
+ "Many\n",
+ "Lines. How we will he handle MR notes?\n",
+ "\n",
+ "But I can add another paragraph\n",
+ "\n",
+ "Another paragraph added"
+ ]
+ },
+ {
+ "cell_type": "raw",
+ "id": "faecea5b-de0a-49fa-9a3a-61c2add652da",
+ "metadata": {},
+ "source": [
+ "This is a raw cell\n",
+ "With\n",
+ "Multiple lines"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "893ca2c0-ab75-4276-9dad-be1c40e16e8a",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import pandas as pd\n",
+ "import numpy as np\n",
+ "import matplotlib.pyplot as plt"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "id": "0d707fb5-226f-46d6-80bd-489ebfb8905c",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "np.random.seed(42)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "id": "35467fcf-28b1-4c7b-bb09-4cb192c35293",
+ "metadata": {
+ "tags": [
+ "senoid"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "[<matplotlib.lines.Line2D at 0x12a4e43d0>]"
+ ]
+ },
+ "execution_count": 3,
+ "metadata": {},
+ "output_type": "execute_result"
+ },
+ {
+ "data": {
+ "image/png": "another_invalid_base64_image_here\n",
+ "text/plain": [
+ "<Figure size 432x288 with 1 Axes>"
+ ]
+ },
+ "metadata": {
+ "needs_background": "light"
+ },
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "x = np.linspace(0, 4*np.pi,50)\n",
+ "y = 2 * np.sin(x)\n",
+ "\n",
+ "plt.plot(x, y)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "id": "dc1178cd-c46d-4da3-9ab5-08f000699884",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "df = pd.DataFrame({\"x\": x, \"y\": y})"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 5,
+ "id": "6e749b4f-b409-4700-870f-f68c39462490",
+ "metadata": {
+ "tags": [
+ "some-table"
+ ]
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "<div>\n",
+ "<style scoped>\n",
+ " .dataframe tbody tr th:only-of-type {\n",
+ " vertical-align: middle;\n",
+ " }\n",
+ "\n",
+ " .dataframe tbody tr th {\n",
+ " vertical-align: top;\n",
+ " }\n",
+ "\n",
+ " .dataframe thead th {\n",
+ " text-align: right;\n",
+ " }\n",
+ "</style>\n",
+ "<table border=\"1\" class=\"dataframe\">\n",
+ " <thead>\n",
+ " <tr style=\"text-align: right;\">\n",
+ " <th></th>\n",
+ " <th>x</th>\n",
+ " <th>y</th>\n",
+ " </tr>\n",
+ " </thead>\n",
+ " <tbody>\n",
+ " <tr>\n",
+ " <th>0</th>\n",
+ " <td>0.000000</td>\n",
+ " <td>0.000000</td>\n",
+ " </tr>\n",
+ " <tr>\n",
+ " <th>1</th>\n",
+ " <td>0.256457</td>\n",
+ " <td>0.507309</td>\n",
+ " </tr>\n",
+ " </tbody>\n",
+ "</table>\n",
+ "</div>"
+ ],
+ "text/plain": [
+ " x y\n",
+ "0 0.000000 0.000000\n",
+ "1 0.256457 0.507309"
+ ]
+ },
+ "execution_count": 5,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "df[:2]"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "0ddef5ef-94a3-4afd-9c70-ddee9694f512",
+ "metadata": {},
+ "outputs": [],
+ "source": []
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "New Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.9.7"
+ },
+ "toc-showtags": true
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected.md b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected.md
new file mode 100644
index 00000000000..af34d6eb8c3
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected.md
@@ -0,0 +1,5 @@
+%% Cell type:code id:123 tags:
+
+``` python
+print("G'bye")
+```
diff --git a/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected_symbols.txt b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected_symbols.txt
new file mode 100644
index 00000000000..cb35f88c897
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/expected_symbols.txt
@@ -0,0 +1,5 @@
+.cells.0
+
+.cells.0.source
+.cells.0.source.0
+
diff --git a/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/input.ipynb b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/input.ipynb
new file mode 100644
index 00000000000..42f4b39b365
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/testdata/unknown_output_type/input.ipynb
@@ -0,0 +1,27 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "123",
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "unknown_output",
+ "text": [
+ "G'bye\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(\"G'bye\")"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "language": "python"
+ }
+ }
+}
diff --git a/vendor/gems/ipynbdiff/spec/transformer_spec.rb b/vendor/gems/ipynbdiff/spec/transformer_spec.rb
new file mode 100644
index 00000000000..c5873906ca9
--- /dev/null
+++ b/vendor/gems/ipynbdiff/spec/transformer_spec.rb
@@ -0,0 +1,106 @@
+# frozen_string_literal: true
+
+require 'rspec'
+require 'ipynbdiff'
+require 'json'
+require 'rspec-parameterized'
+
+TRANSFORMER_BASE_PATH = File.join(File.expand_path(File.dirname(__FILE__)), 'testdata')
+
+def read_file(*paths)
+ File.read(File.join(TRANSFORMER_BASE_PATH, *paths))
+end
+
+def default_config
+ @default_config ||= {
+ include_frontmatter: false,
+ hide_images: false
+ }
+end
+
+def from_ipynb
+ @from_ipynb ||= read_file('from.ipynb')
+end
+
+def read_notebook(input_path)
+ read_file(input_path, 'input.ipynb')
+rescue Errno::ENOENT
+ from_ipynb
+end
+
+describe IpynbDiff::Transformer do
+ describe 'When notebook is valid' do
+ using RSpec::Parameterized::TableSyntax
+
+ where(:ctx, :test_case, :config) do
+ 'renders metadata' | 'no_cells' | { include_frontmatter: true }
+ 'is empty for no cells, but metadata is false' | 'no_cells_no_metadata' | {}
+ 'adds markdown cell' | 'only_md' | {}
+ 'adds block with only one line of markdown' | 'single_line_md' | {}
+ 'adds raw block' | 'only_raw' | {}
+ 'code cell, but no output' | 'only_code' | {}
+ 'code cell, but no language' | 'only_code_no_language' | {}
+ 'code cell, but no kernelspec' | 'only_code_no_kernelspec' | {}
+ 'code cell, but no nb metadata' | 'only_code_no_metadata' | {}
+ 'text output' | 'text_output' | {}
+ 'ignores html output' | 'ignore_html_output' | {}
+ 'extracts png output along with text' | 'text_png_output' | {}
+ 'embeds svg as image' | 'svg' | {}
+ 'extracts latex output' | 'latex_output' | {}
+ 'extracts error output' | 'error_output' | {}
+ 'does not fetch tags if there is no cell metadata' | 'no_metadata_on_cell' | {}
+ 'generates :percent decorator' | 'percent_decorator' | {}
+ 'parses stream output' | 'stream_text' | {}
+ 'ignores unknown output type' | 'unknown_output_type' | {}
+ 'handles backslash correctly' | 'backslash_as_last_char' | {}
+ 'multiline png output' | 'multiline_png_output' | {}
+ 'hides images when option passed' | 'hide_images' | { hide_images: true }
+ '\n within source lines' | 'source_with_linebreak' | { hide_images: true }
+ end
+
+ with_them do
+ let(:expected_md) { read_file(test_case, 'expected.md') }
+ let(:expected_symbols) { read_file(test_case, 'expected_symbols.txt') }
+ let(:input) { read_notebook(test_case) }
+ let(:transformed) { IpynbDiff::Transformer.new(**default_config.merge(config)).transform(input) }
+
+ it 'generates the expected markdown' do
+ expect(transformed.as_text).to eq expected_md
+ end
+
+ it 'marks the lines correctly' do
+ blocks = transformed.blocks.map { |b| b[:source_symbol] }.join("\n")
+ result = expected_symbols
+
+ expect(blocks).to eq result
+ end
+ end
+ end
+
+ it 'generates the correct transformed to source line map' do
+ input = read_file('text_png_output', 'input.ipynb' )
+ expected_line_numbers = read_file('text_png_output', 'expected_line_numbers.txt' )
+
+ transformed = IpynbDiff::Transformer.new(**{ include_frontmatter: false }).transform(input)
+
+ line_numbers = transformed.blocks.map { |b| b[:source_line] }.join("\n")
+
+ expect(line_numbers).to eq(expected_line_numbers)
+
+ end
+
+ context 'When the notebook is invalid' do
+ [
+ ['because the json is invalid', 'a'],
+ ['because it doesnt have the cell tag', '{"metadata":[]}']
+ ].each do |ctx, notebook|
+ context ctx do
+ it 'raises error' do
+ expect do
+ IpynbDiff::Transformer.new.transform(notebook)
+ end.to raise_error(IpynbDiff::InvalidNotebookError)
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/omniauth-gitlab/.gitignore b/vendor/gems/omniauth-gitlab/.gitignore
new file mode 100644
index 00000000000..062d4acf0a9
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/.gitignore
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+.rvmrc
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
diff --git a/vendor/gems/omniauth-gitlab/.gitlab-ci.yml b/vendor/gems/omniauth-gitlab/.gitlab-ci.yml
new file mode 100644
index 00000000000..ad9545e2998
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/.gitlab-ci.yml
@@ -0,0 +1,30 @@
+workflow:
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+
+.rspec:
+ cache:
+ key: omniauth-gitlab-ruby
+ paths:
+ - vendor/gems/omniauth-gitlab/vendor/ruby
+ before_script:
+ - cd vendor/gems/omniauth-gitlab
+ - ruby -v # Print out ruby version for debugging
+ - gem install bundler --no-document # Bundler is not installed with the image
+ - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
+ - bundle config set with 'development'
+ - bundle install -j $(nproc)
+ script:
+ - bundle exec rspec
+
+rspec-2.6:
+ image: "ruby:2.6"
+ extends: .rspec
+
+rspec-2.7:
+ image: "ruby:2.7"
+ extends: .rspec
+
+rspec-3.0:
+ image: "ruby:3.0"
+ extends: .rspec \ No newline at end of file
diff --git a/vendor/gems/omniauth-gitlab/Gemfile b/vendor/gems/omniauth-gitlab/Gemfile
new file mode 100644
index 00000000000..ad0c84b6ac8
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/Gemfile
@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+# Specify your gem's dependencies in omniauth-gitlab.gemspec
+gemspec
diff --git a/vendor/gems/omniauth-gitlab/Gemfile.lock b/vendor/gems/omniauth-gitlab/Gemfile.lock
new file mode 100644
index 00000000000..b5979104080
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/Gemfile.lock
@@ -0,0 +1,73 @@
+PATH
+ remote: .
+ specs:
+ omniauth-gitlab (4.0.0)
+ omniauth (~> 1.0)
+ omniauth-oauth2 (~> 1.7.1)
+
+GEM
+ remote: https://rubygems.org/
+ specs:
+ diff-lcs (1.5.0)
+ docile (1.4.0)
+ faraday (2.3.0)
+ faraday-net_http (~> 2.0)
+ ruby2_keywords (>= 0.0.4)
+ faraday-net_http (2.0.3)
+ hashie (5.0.0)
+ jwt (2.4.1)
+ multi_xml (0.6.0)
+ oauth2 (2.0.1)
+ faraday (>= 0.17.3, < 3.0)
+ jwt (>= 1.0, < 3.0)
+ multi_xml (~> 0.5)
+ rack (>= 1.2, < 3)
+ rash_alt (>= 0.4, < 1)
+ version_gem (~> 1.0)
+ omniauth (1.9.1)
+ hashie (>= 3.4.6)
+ rack (>= 1.6.2, < 3)
+ omniauth-oauth2 (1.7.3)
+ oauth2 (>= 1.4, < 3)
+ omniauth (>= 1.9, < 3)
+ rack (2.2.3.1)
+ rake (13.0.6)
+ rash_alt (0.4.12)
+ hashie (>= 3.4)
+ rspec (3.11.0)
+ rspec-core (~> 3.11.0)
+ rspec-expectations (~> 3.11.0)
+ rspec-mocks (~> 3.11.0)
+ rspec-core (3.11.0)
+ rspec-support (~> 3.11.0)
+ rspec-expectations (3.11.0)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-its (1.3.0)
+ rspec-core (>= 3.0.0)
+ rspec-expectations (>= 3.0.0)
+ rspec-mocks (3.11.1)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.11.0)
+ rspec-support (3.11.0)
+ ruby2_keywords (0.0.5)
+ simplecov (0.21.2)
+ docile (~> 1.1)
+ simplecov-html (~> 0.11)
+ simplecov_json_formatter (~> 0.1)
+ simplecov-html (0.12.3)
+ simplecov_json_formatter (0.1.4)
+ version_gem (1.0.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ omniauth-gitlab!
+ rake (>= 12.0)
+ rspec (~> 3.1)
+ rspec-its (~> 1.0)
+ simplecov
+
+BUNDLED WITH
+ 2.3.15
diff --git a/vendor/gems/omniauth-gitlab/LICENSE.txt b/vendor/gems/omniauth-gitlab/LICENSE.txt
new file mode 100644
index 00000000000..ccdae5ea15c
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/LICENSE.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2013 ssein
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file
diff --git a/vendor/gems/omniauth-gitlab/README.md b/vendor/gems/omniauth-gitlab/README.md
new file mode 100644
index 00000000000..f22f14266f6
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/README.md
@@ -0,0 +1,94 @@
+# Omniauth::Gitlab
+
+This is fork of [omniauth-gitlab](https://github.com/linchus/omniauth-gitlab) to support:
+
+1. OmniAuth v1 and v2. OmniAuth v2 disables GET requests by default
+ and defaults to POST. GitLab already has patched v1 to use POST,
+ but other dependencies need to be updated:
+ https://gitlab.com/gitlab-org/gitlab/-/issues/30073.
+
+2. [`oauth2`](https://github.com/oauth-xx/oauth2) v1.4.9 and up.
+ [v1.4.9 fixed relative URL handling](https://github.com/oauth-xx/oauth2/pull/469).
+
+ However, this breaks the default GitLab.com configuration and
+ existing configurations that use the `/api/v4` suffix in the `site`
+ parameter.
+ [omniauth-gitlab v4.0.0 fixed the first issue](https://github.com/linchus/omniauth-gitlab/pull/22),
+ but the second issue requires an admin to update `site` to drop the suffix.
+
+ This fork restores backwards compatibility that was removed in omniauth-gitlab v2.0.0:
+ https://github.com/linchus/omniauth-gitlab/commit/bb4cec2c9f8f067fdfe1f9aa219973e5d8e4a0a3
+
+[![Join the chat at https://gitter.im/linchus/omniauth-gitlab](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/linchus/omniauth-gitlab?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+
+This is the OAuth2 strategy for authenticating to your GitLab service.
+
+## Requirements
+
+Gitlab 7.7.0+
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'omniauth-gitlab'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install omniauth-gitlab
+
+## Basic Usage
+
+ use OmniAuth::Builder do
+ provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET']
+ end
+
+## Standalone Usage
+
+ use OmniAuth::Builder do
+ provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'],
+ {
+ client_options: {
+ site: 'https://gitlab.YOURDOMAIN.com/api/v4'
+ }
+ }
+ end
+
+## Custom scopes
+
+By default, the `api` scope is requested and must be allowed in GitLab's application configuration. To use different scopes:
+
+ use OmniAuth::Builder do
+ provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'], scope: 'read_user openid'
+ end
+
+Requesting a scope that is not configured will result the error "The requested scope is invalid, unknown, or malformed.".
+
+## Old API version
+
+API V3 will be unsupported from GitLab 9.5 and will be removed in GitLab 9.5 or later.
+
+[https://gitlab.com/help/api/v3_to_v4.md](https://gitlab.com/help/api/v3_to_v4.md)
+
+If you use GitLab 9.0 and below you could configure V3 API:
+
+ use OmniAuth::Builder do
+ provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'],
+ {
+ client_options: {
+ site: 'https://gitlab.YOURDOMAIN.com/api/v3'
+ }
+ }
+ end
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Add some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
diff --git a/vendor/gems/omniauth-gitlab/Rakefile b/vendor/gems/omniauth-gitlab/Rakefile
new file mode 100644
index 00000000000..db953c9a1c5
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/Rakefile
@@ -0,0 +1,7 @@
+require 'bundler/gem_tasks'
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new
+
+desc 'Run specs'
+task default: :spec
diff --git a/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab.rb b/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab.rb
new file mode 100644
index 00000000000..dfe9d2131c9
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab.rb
@@ -0,0 +1,2 @@
+require 'omniauth-gitlab/version'
+require 'omniauth/strategies/gitlab'
diff --git a/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab/version.rb b/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab/version.rb
new file mode 100644
index 00000000000..6465d4ca199
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/lib/omniauth-gitlab/version.rb
@@ -0,0 +1,5 @@
+module Omniauth
+ module Gitlab
+ VERSION = '4.0.0'
+ end
+end
diff --git a/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb b/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb
new file mode 100644
index 00000000000..19ee02e78c4
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/lib/omniauth/strategies/gitlab.rb
@@ -0,0 +1,46 @@
+# frozen_string_literal: true
+
+require 'omniauth-oauth2'
+
+module OmniAuth
+ module Strategies
+ class GitLab < OmniAuth::Strategies::OAuth2
+ API_SUFFIX_REGEX = %r{/api/v(\d+)/?$}.freeze
+
+ option :client_options, site: 'https://gitlab.com'
+
+ option :redirect_url
+
+ uid { raw_info['id'].to_s }
+
+ info do
+ {
+ name: raw_info['name'],
+ username: raw_info['username'],
+ email: raw_info['email'],
+ image: raw_info['avatar_url']
+ }
+ end
+
+ extra do
+ { raw_info: raw_info }
+ end
+
+ def raw_info
+ @raw_info ||= access_token.get(user_endpoint_url).parsed
+ end
+
+ private
+
+ def user_endpoint_url
+ options.client_options.site.match(API_SUFFIX_REGEX) ? 'user' : 'api/v4/user'
+ end
+
+ def callback_url
+ options.redirect_url || (full_host + script_name + callback_path)
+ end
+ end
+ end
+end
+
+OmniAuth.config.add_camelization 'gitlab', 'GitLab'
diff --git a/vendor/gems/omniauth-gitlab/omniauth-gitlab.gemspec b/vendor/gems/omniauth-gitlab/omniauth-gitlab.gemspec
new file mode 100644
index 00000000000..be25cb50af6
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/omniauth-gitlab.gemspec
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'omniauth-gitlab/version'
+
+Gem::Specification.new do |gem|
+ gem.name = 'omniauth-gitlab'
+ gem.version = Omniauth::Gitlab::VERSION
+ gem.authors = ['Sergey Sein']
+ gem.email = ['linchus@gmail.com']
+ gem.description = 'This is the strategy for authenticating to your GitLab service'
+ gem.summary = 'This is the strategy for authenticating to your GitLab service'
+ gem.homepage = 'https://github.com/linchus/omniauth-gitlab'
+
+ gem.files = Dir['lib/**/*.rb']
+ gem.test_files = Dir['spec/**/*.rb']
+ gem.require_paths = ['lib']
+
+ gem.add_dependency 'omniauth', '~> 1.0'
+ gem.add_dependency 'omniauth-oauth2', '~> 1.7.1'
+ gem.add_development_dependency 'rspec', '~> 3.1'
+ gem.add_development_dependency 'rspec-its', '~> 1.0'
+ gem.add_development_dependency 'simplecov'
+ gem.add_development_dependency 'rake', '>= 12.0'
+end
diff --git a/vendor/gems/omniauth-gitlab/spec/omniauth/strategies/gitlab_spec.rb b/vendor/gems/omniauth-gitlab/spec/omniauth/strategies/gitlab_spec.rb
new file mode 100644
index 00000000000..a599386b26c
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/spec/omniauth/strategies/gitlab_spec.rb
@@ -0,0 +1,80 @@
+require 'spec_helper'
+
+describe OmniAuth::Strategies::GitLab do
+ let(:access_token) { double('AccessToken') }
+ let(:parsed_response) { double('ParsedResponse') }
+ let(:response) { double('Response', parsed: parsed_response) }
+
+ let(:enterprise_site) { 'https://some.other.site.com' }
+
+ let(:gitlab_service) { OmniAuth::Strategies::GitLab.new({}) }
+ let(:enterprise) do
+ OmniAuth::Strategies::GitLab.new(
+ 'GITLAB_KEY',
+ 'GITLAB_SECRET',
+ client_options: { site: enterprise_site },
+ redirect_url: 'http://localhost:9292/callback_url'
+ )
+ end
+
+ subject { gitlab_service }
+
+ before(:each) do
+ allow(subject).to receive(:access_token).and_return(access_token)
+ end
+
+ describe 'client options' do
+ context 'with defaults' do
+ subject { gitlab_service.options.client_options }
+
+ its(:site) { is_expected.to eq 'https://gitlab.com' }
+ end
+
+ context 'with override' do
+ subject { enterprise.options.client_options }
+
+ its(:site) { is_expected.to eq enterprise_site }
+ end
+ end
+
+ describe 'redirect_url' do
+ context 'with defaults' do
+ subject { gitlab_service.options }
+ its(:redirect_url) { is_expected.to be_nil }
+ end
+
+ context 'with customs' do
+ subject { enterprise.options }
+ its(:redirect_url) { is_expected.to eq 'http://localhost:9292/callback_url' }
+ end
+ end
+
+ describe '#raw_info' do
+ context 'with new configuration' do
+ it 'sent request to current user endpoint' do
+ expect(access_token).to receive(:get).with('api/v4/user').and_return(response)
+ expect(subject.raw_info).to eq(parsed_response)
+ end
+ end
+
+ context 'with old style configuration' do
+ let(:enterprise_site) { 'https://some.other.site.com/api/v4' }
+
+ subject { enterprise }
+
+ it 'sent request to current user endpoint' do
+ expect(access_token).to receive(:get).with('user').and_return(response)
+ expect(subject.raw_info).to eq(parsed_response)
+ end
+
+ context 'with a trailing slash' do
+ let(:enterprise_site) { 'https://some.other.site.com/api/v4/' }
+
+ it 'sent request to current user endpoint' do
+ expect(access_token).to receive(:get).with('user').and_return(response)
+ expect(subject.raw_info).to eq(parsed_response)
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/omniauth-gitlab/spec/spec_helper.rb b/vendor/gems/omniauth-gitlab/spec/spec_helper.rb
new file mode 100644
index 00000000000..38553547e98
--- /dev/null
+++ b/vendor/gems/omniauth-gitlab/spec/spec_helper.rb
@@ -0,0 +1,8 @@
+$LOAD_PATH.unshift File.expand_path('..', __FILE__)
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+require 'simplecov'
+SimpleCov.start
+require 'rspec'
+require 'rspec/its'
+require 'omniauth'
+require 'omniauth-gitlab'
diff --git a/vendor/gems/omniauth_crowd/.gitlab-ci.yml b/vendor/gems/omniauth_crowd/.gitlab-ci.yml
new file mode 100644
index 00000000000..98e686db4e3
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/.gitlab-ci.yml
@@ -0,0 +1,30 @@
+workflow:
+ rules:
+ - if: $CI_MERGE_REQUEST_ID
+
+.rspec:
+ cache:
+ key: omniauth-gitlab-ruby
+ paths:
+ - vendor/gems/omniauth_crowd/vendor/ruby
+ before_script:
+ - cd vendor/gems/omniauth_crowd
+ - ruby -v # Print out ruby version for debugging
+ - gem install bundler --no-document # Bundler is not installed with the image
+ - bundle config set --local path 'vendor' # Install dependencies into ./vendor/ruby
+ - bundle config set with 'development'
+ - bundle install -j $(nproc)
+ script:
+ - bundle exec rspec
+
+rspec-2.6:
+ image: "ruby:2.6"
+ extends: .rspec
+
+rspec-2.7:
+ image: "ruby:2.7"
+ extends: .rspec
+
+rspec-3.0:
+ image: "ruby:3.0"
+ extends: .rspec
diff --git a/vendor/gems/omniauth_crowd/Gemfile b/vendor/gems/omniauth_crowd/Gemfile
new file mode 100644
index 00000000000..e2305d86b8d
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/Gemfile
@@ -0,0 +1,4 @@
+source 'http://rubygems.org'
+
+# Specify your gem's dependencies in omniauth-github.gemspec
+gemspec
diff --git a/vendor/gems/omniauth_crowd/Gemfile.lock b/vendor/gems/omniauth_crowd/Gemfile.lock
new file mode 100644
index 00000000000..0ac781e9948
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/Gemfile.lock
@@ -0,0 +1,74 @@
+PATH
+ remote: .
+ specs:
+ omniauth_crowd (2.4.0)
+ activesupport
+ nokogiri (>= 1.4.4)
+ omniauth (~> 1.0, < 3)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (5.0.0.1)
+ concurrent-ruby (~> 1.0, >= 1.0.2)
+ i18n (~> 0.7)
+ minitest (~> 5.1)
+ tzinfo (~> 1.1)
+ addressable (2.5.2)
+ public_suffix (>= 2.0.2, < 4.0)
+ concurrent-ruby (1.0.5)
+ crack (0.4.3)
+ safe_yaml (~> 1.0.0)
+ diff-lcs (1.2.5)
+ hashdiff (0.3.6)
+ hashie (3.4.3)
+ i18n (0.8.1)
+ mini_portile2 (2.1.0)
+ minitest (5.10.1)
+ nokogiri (1.6.8.1)
+ mini_portile2 (~> 2.1.0)
+ omniauth (1.3.1)
+ hashie (>= 1.2, < 4)
+ rack (>= 1.0, < 3)
+ public_suffix (3.0.0)
+ rack (1.6.4)
+ rack-test (0.6.3)
+ rack (>= 1.0)
+ rake (10.5.0)
+ rexml (3.2.5)
+ rspec (3.0.0)
+ rspec-core (~> 3.0.0)
+ rspec-expectations (~> 3.0.0)
+ rspec-mocks (~> 3.0.0)
+ rspec-core (3.0.4)
+ rspec-support (~> 3.0.0)
+ rspec-expectations (3.0.4)
+ diff-lcs (>= 1.2.0, < 2.0)
+ rspec-support (~> 3.0.0)
+ rspec-mocks (3.0.4)
+ rspec-support (~> 3.0.0)
+ rspec-support (3.0.4)
+ safe_yaml (1.0.4)
+ thread_safe (0.3.6)
+ tzinfo (1.2.2)
+ thread_safe (~> 0.1)
+ webmock (3.0.1)
+ addressable (>= 2.3.6)
+ crack (>= 0.3.2)
+ hashdiff
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bundler (> 1.0.0)
+ omniauth_crowd!
+ rack
+ rack-test
+ rake
+ rexml (~> 3.2.5)
+ rspec (~> 3.0.0)
+ webmock (~> 3.0.0)
+
+BUNDLED WITH
+ 2.3.15
diff --git a/vendor/gems/omniauth_crowd/LICENSE.txt b/vendor/gems/omniauth_crowd/LICENSE.txt
new file mode 100644
index 00000000000..463a011fbaf
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Rob Di Marco
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/gems/omniauth_crowd/README.md b/vendor/gems/omniauth_crowd/README.md
new file mode 100644
index 00000000000..01d8119b15d
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/README.md
@@ -0,0 +1,52 @@
+# omniauth_crowd
+
+This is fork of [omniauth_crowd](https://github.com/robdimarco/omniauth_crowd) to support:
+
+1. OmniAuth v1 and v2. OmniAuth v2 disables GET requests by default
+ and defaults to POST. GitLab already has patched v1 to use POST,
+ but other dependencies need to be updated:
+ https://gitlab.com/gitlab-org/gitlab/-/issues/30073.
+2. We may deprecate this library entirely in the future:
+ https://gitlab.com/gitlab-org/gitlab/-/issues/366212
+
+The omniauth_crowd library is an OmniAuth provider that supports authentication against Atlassian Crowd REST apis.
+
+[![Build Status](https://travis-ci.org/robdimarco/omniauth_crowd.svg?branch=master)](https://travis-ci.org/robdimarco/omniauth_crowd)
+
+## Helpful links
+
+* [Documentation](http://github.com/robdimarco/omniauth_crow)
+* [OmniAuth](https://github.com/intridea/omniauth/)
+* [Atlassian Crowd](http://www.atlassian.com/software/crowd/)
+* [Atlassian Crowd REST API](http://confluence.atlassian.com/display/CROWDDEV/Crowd+REST+APIs)
+
+## Install and use
+
+### 1. Add the OmniAuth Crowd REST plugin to your Gemfile
+
+ gem 'omniauth', '>= 1.0.0' # We depend on this
+ gem "omniauth_crowd"
+
+### 2. You will need to configure OmniAuth to use your crowd authentication. This is generally done in Rails in the config/initializers/omniauth.rb with...
+
+ Rails.application.config.middleware.use OmniAuth::Builder do
+ provider :crowd, :crowd_server_url=>"https://crowd.mycompanyname.com/crowd", :application_name=>"app", :application_password=>"password"
+ end
+
+You will need to supply the correct server URL, application name and password
+
+## Contributing to omniauth_crowd
+
+* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
+* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
+* Fork the project
+* Start a feature/bugfix branch
+* Commit and push until you are happy with your contribution
+* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
+* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
+
+## Copyright
+
+Copyright (c) 2011-14 Rob Di Marco. See LICENSE.txt for
+further details.
+
diff --git a/vendor/gems/omniauth_crowd/Rakefile b/vendor/gems/omniauth_crowd/Rakefile
new file mode 100644
index 00000000000..4786a6c34d1
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/Rakefile
@@ -0,0 +1,12 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+require 'rspec/core/rake_task'
+
+desc 'Default: run specs.'
+task :default => :spec
+
+desc "Run specs"
+RSpec::Core::RakeTask.new
+
+desc 'Run specs'
+task :default => :spec \ No newline at end of file
diff --git a/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd.rb b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd.rb
new file mode 100755
index 00000000000..7e3829b9b95
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd.rb
@@ -0,0 +1,97 @@
+require 'omniauth'
+require 'active_support'
+require 'active_support/core_ext/object'
+module OmniAuth
+ module Strategies
+ class Crowd
+ include OmniAuth::Strategy
+
+ autoload :Configuration, 'omniauth/strategies/crowd/configuration'
+ autoload :CrowdValidator, 'omniauth/strategies/crowd/crowd_validator'
+ def initialize(app, options = {}, &block)
+ options.symbolize_keys!()
+ super(app, {:name=> :crowd}.merge(options), &block)
+ @configuration = OmniAuth::Strategies::Crowd::Configuration.new(options)
+ end
+
+ protected
+
+ def request_phase
+ if env['REQUEST_METHOD'] == 'GET'
+
+ if @configuration.use_sessions? && request.cookies[@configuration.session_cookie]
+ redirect callback_url
+ else
+ get_credentials
+ end
+
+ elsif (env['REQUEST_METHOD'] == 'POST') && (not request.params['username'])
+ get_credentials
+ else
+ session['omniauth.crowd'] = {'username' => request['username'], 'password' => request['password']}
+ redirect callback_url
+ end
+ end
+
+ def get_client_ip
+ env['HTTP_X_FORWARDED_FOR'] ? env['HTTP_X_FORWARDED_FOR'] : env['REMOTE_ADDRESS']
+ end
+
+ def get_sso_tokens
+ env['HTTP_COOKIE'].split(';').select { |val|
+ val.strip.start_with?(@configuration.session_cookie)
+ }.map { |val|
+ val.strip.split('=').last
+ }
+ end
+
+ def get_credentials
+
+ configuration = @configuration
+
+ OmniAuth::Form.build(:title => (options[:title] || "Crowd Authentication")) do
+ text_field 'Login', 'username'
+ password_field 'Password', 'password'
+
+ if configuration.use_sessions? && configuration.sso_url
+ fieldset 'SSO' do
+ html "<a href=\"#{configuration.sso_url}/users/auth/crowd/callback\">" + (configuration.sso_url_image ? "<img src=\"#{configuration.sso_url_image}\" />" : '') + "</a>"
+ end
+ end
+
+ end.to_response
+
+ end
+
+ def callback_phase
+
+ creds = session.delete 'omniauth.crowd'
+ username = creds.nil? ? nil : creds['username']
+ password = creds.nil? ? nil : creds['password']
+
+ unless creds
+ if @configuration.use_sessions? && request.cookies[@configuration.session_cookie]
+ validator = CrowdValidator.new(@configuration, username, password, get_client_ip, get_sso_tokens)
+ else
+ return fail!(:no_credentials)
+ end
+ else
+ validator = CrowdValidator.new(@configuration, username, password, get_client_ip, nil)
+ end
+
+ @user_info = validator.user_info
+
+ return fail!(:invalid_credentials) if @user_info.nil? || @user_info.empty?
+
+ super
+ end
+
+ def auth_hash
+ OmniAuth::Utils.deep_merge(super, {
+ 'uid' => @user_info.delete("user"),
+ 'info' => @user_info
+ })
+ end
+ end
+ end
+end
diff --git a/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/configuration.rb b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/configuration.rb
new file mode 100644
index 00000000000..8816651054f
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/configuration.rb
@@ -0,0 +1,110 @@
+require 'rack'
+
+module OmniAuth
+ module Strategies
+ class Crowd
+ class Configuration
+ DEFAULT_SESSION_URL = "%s/rest/usermanagement/latest/session"
+ DEFAULT_AUTHENTICATION_URL = "%s/rest/usermanagement/latest/authentication"
+ DEFAULT_USER_GROUP_URL = "%s/rest/usermanagement/latest/user/group/direct"
+ DEFAULT_CONTENT_TYPE = 'application/xml'
+ DEFAULT_SESSION_COOKIE = 'crowd.token_key'
+
+ attr_reader :crowd_application_name, :crowd_password, :disable_ssl_verification, :include_users_groups, :use_sessions, :session_url, :content_type, :session_cookie, :sso_url, :sso_url_image
+
+ alias :"disable_ssl_verification?" :disable_ssl_verification
+ alias :"include_users_groups?" :include_users_groups
+ alias :"use_sessions?" :use_sessions
+
+ # @param [Hash] params configuration options
+ # @option params [String, nil] :crowd_server_url the Crowd server root URL; probably something like
+ # `https://crowd.mycompany.com` or `https://crowd.mycompany.com/crowd`; optional.
+ # @option params [String, nil] :crowd_authentication_url (:crowd_server_url + '/rest/usermanagement/latest/authentication') the URL to which to
+ # use for authenication; optional if `:crowd_server_url` is specified,
+ # required otherwise.
+ # @option params [String, nil] :application_name the application name specified in Crowd for this application, required.
+ # @option params [String, nil] :application_password the application password specified in Crowd for this application, required.
+ # @option params [Boolean, nil] :disable_ssl_verification disable verification for SSL cert,
+ # helpful when you developing with a fake cert.
+ # @option params [Boolean, true] : include a list of user groups when getting information ont he user
+ # @option params [String, nil] :crowd_user_group_url (:crowd_server_url + '/rest/usermanagement/latest/user/group/direct') the URL to which to
+ # use for retrieving users groups optional if `:crowd_server_url` is specified, or if `:include_user_groups` is false
+ # required otherwise.
+ # @option params [Boolean, false] :use_sessions Use Crowd sessions. If the user logins with user and password create a new Crowd session. Update the session if only a session token is sent (Cookie name set by option session_cookie)
+ # @option params [String, 'crowd.token_key'] :session_cookie Session cookie name. Defaults to: 'crowd.token_key'
+ # @option params [String, nil] :sso_url URL of the external SSO page. If this parameter is defined the login form will have a link which will redirect to the SSO page. The SSO must return to the URL of the page using omniauth_crowd (Path portion '/users/auth/crowd/callback' is appended to the URL)
+ # @option params [String, nil] :sso_url_image Optional image URL to be used in SSO link in the login form
+ def initialize(params)
+ parse_params params
+ end
+
+ # Build a Crowd authentication URL from +username+.
+ #
+ # @param [String] username the username to validate
+ #
+ # @return [String] a URL like `https://crowd.myhost.com/crowd/rest/usermanagement/latest/authentication?username=USERNAME`
+ def authentication_url(username)
+ append_username @authentication_url, username
+ end
+
+ def user_group_url(username)
+ @user_group_url.nil? ? nil : append_username( @user_group_url, username)
+ end
+
+ private
+ def parse_params(options)
+ options= {:include_user_groups => true}.merge(options || {})
+ %w(application_name application_password).each do |opt|
+ raise ArgumentError.new(":#{opt} MUST be provided") if options[opt.to_sym] == ""
+ end
+ @crowd_application_name = options[:application_name]
+ @crowd_password = options[:application_password]
+ @use_sessions = options[:use_sessions]
+ @content_type = options[:content_type] || DEFAULT_CONTENT_TYPE
+ @session_cookie = options[:session_cookie] || DEFAULT_SESSION_COOKIE
+ @sso_url = options[:sso_url]
+ @sso_url_image = options[:sso_url_image]
+
+ unless options.include?(:crowd_server_url) || options.include?(:crowd_authentication_url)
+ raise ArgumentError.new("Either :crowd_server_url or :crowd_authentication_url MUST be provided")
+ end
+
+ if @use_sessions
+ @session_url = options[:crowd_session_url] || DEFAULT_SESSION_URL % options[:crowd_server_url]
+ validate_is_url 'session URL', @session_url
+ end
+ @authentication_url = options[:crowd_authentication_url] || DEFAULT_AUTHENTICATION_URL % options[:crowd_server_url]
+ validate_is_url 'authentication URL', @authentication_url
+ @disable_ssl_verification = options[:disable_ssl_verification]
+ @include_users_groups = options[:include_user_groups]
+ if @include_users_groups
+ @user_group_url = options[:crowd_user_group_url] || DEFAULT_USER_GROUP_URL % options[:crowd_server_url]
+ validate_is_url 'user group URL', @user_group_url
+ end
+
+ end
+
+ IS_NOT_URL_ERROR_MESSAGE = "%s is not a valid URL"
+
+ def validate_is_url(name, possibly_a_url)
+ url = URI.parse(possibly_a_url) rescue nil
+ raise ArgumentError.new(IS_NOT_URL_ERROR_MESSAGE % name) unless url.kind_of?(URI::HTTP)
+ end
+
+ # Adds +service+ as an URL-escaped parameter to +base+.
+ #
+ # @param [String] base the base URL
+ # @param [String] service the service (a.k.a. return-to) URL.
+ #
+ # @return [String] the new joined URL.
+ def append_username(base, username)
+ result = base.dup
+ result << (result.include?('?') ? '&' : '?')
+ result << 'username='
+ result << Rack::Utils.escape(username)
+ end
+
+ end
+ end
+ end
+end
diff --git a/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/crowd_validator.rb b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/crowd_validator.rb
new file mode 100755
index 00000000000..319ebf5e013
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/lib/omniauth/strategies/crowd/crowd_validator.rb
@@ -0,0 +1,186 @@
+require 'nokogiri'
+require 'net/http'
+require 'net/https'
+
+module OmniAuth
+ module Strategies
+ class Crowd
+ class CrowdValidator
+ AUTHENTICATION_REQUEST_BODY = "<password><value>%s</value></password>"
+ def initialize(configuration, username, password, client_ip, tokens)
+ @configuration, @username, @password, @client_ip, @tokens = configuration, username, password, client_ip, tokens
+ @authentiction_uri = URI.parse(@configuration.authentication_url(@username))
+ @session_uri = URI.parse(@configuration.session_url) if @configuration.use_sessions
+ end
+
+ def user_info
+ user_info_hash = retrieve_user_info!
+
+ if user_info_hash && @configuration.include_users_groups?
+ user_info_hash = add_user_groups!(user_info_hash)
+ else
+ user_info_hash
+ end
+
+ if user_info_hash && @configuration.use_sessions?
+ user_info_hash = set_session!(user_info_hash)
+ end
+
+ user_info_hash
+ end
+
+ private
+ def set_session!(user_info_hash)
+
+ response = nil
+
+ if user_info_hash["sso_token"]
+ response = make_session_request(user_info_hash["sso_token"])
+ else
+ response = make_session_request(nil)
+ end
+
+ if response.kind_of?(Net::HTTPSuccess) && response.body
+ doc = Nokogiri::XML(response.body)
+ user_info_hash["sso_token"] = doc.xpath('//token/text()').to_s
+ else
+ OmniAuth.logger.send(:warn, "(crowd) [set_session!] response code: #{response.code.to_s}")
+ OmniAuth.logger.send(:warn, "(crowd) [set_session!] response body: #{response.body}")
+ end
+
+ user_info_hash
+ end
+
+ def add_user_groups!(user_info_hash)
+ response = make_user_group_request(user_info_hash['user'])
+ unless response.code.to_i != 200 || response.body.nil? || response.body == ''
+ doc = Nokogiri::XML(response.body)
+ user_info_hash["groups"] = doc.xpath("//groups/group/@name").map(&:to_s)
+ end
+ user_info_hash
+ end
+
+ def retrieve_user_info!
+ response = make_authorization_request
+
+ unless response === nil
+ unless response.code.to_i != 200 || response.body.nil? || response.body == ''
+
+ doc = Nokogiri::XML(response.body)
+ result = {
+ "user" => doc.xpath("//user/@name").to_s,
+ "name" => doc.xpath("//user/display-name/text()").to_s,
+ "first_name" => doc.xpath("//user/first-name/text()").to_s,
+ "last_name" => doc.xpath("//user/last-name/text()").to_s,
+ "email" => doc.xpath("//user/email/text()").to_s
+ }
+
+ if doc.at_xpath("//token")
+ result["sso_token"] = doc.xpath("//token/text()").to_s
+ end
+
+ result
+
+ else
+ OmniAuth.logger.send(:warn, "(crowd) [retrieve_user_info!] response code: #{response.code.to_s}")
+ OmniAuth.logger.send(:warn, "(crowd) [retrieve_user_info!] response body: #{response.body}")
+ nil
+ end
+ else
+ OmniAuth.logger.send(:warn, "(crowd) [retrieve_user_info!] None of the session tokens were valid")
+ nil
+ end
+ end
+
+ def make_request(uri, body=nil)
+ http_method = body.nil? ? Net::HTTP::Get : Net::HTTP::Post
+ http = Net::HTTP.new(uri.host, uri.port)
+ http.use_ssl = uri.port == 443 || uri.instance_of?(URI::HTTPS)
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && @configuration.disable_ssl_verification?
+ http.start do |c|
+ req = http_method.new(uri.query.nil? ? uri.path : "#{uri.path}?#{uri.query}")
+ req.body = body if body
+ req.basic_auth @configuration.crowd_application_name, @configuration.crowd_password
+ if @configuration.content_type
+ req.add_field 'Content-Type', @configuration.content_type
+ end
+ http.request(req)
+ end
+ end
+
+ def make_user_group_request(username)
+ make_request(URI.parse(@configuration.user_group_url(username)))
+ end
+
+ def make_authorization_request
+
+ if @configuration.use_sessions? && @tokens.kind_of?(Array)
+ make_session_retrieval_request
+ else
+ make_request(@authentiction_uri, make_authentication_request_body(@password))
+ end
+ end
+
+ def make_session_request(token)
+
+ root = url = validation_factor = nil
+ doc = Nokogiri::XML::Document.new
+
+ if token === nil
+
+ url = @session_uri
+ root = doc.create_element('authentication-context')
+
+ doc.root = root
+ root.add_child(doc.create_element('username', @username))
+ root.add_child(doc.create_element('password', @password))
+
+ else
+ url = URI.parse(@session_uri.to_s() + "/#{token}")
+ end
+
+ if @configuration.use_sessions? || @client_ip
+
+ if root === nil
+ root = doc.create_element('validation-factors')
+ doc.root = root
+ else
+ root.add_child(doc.create_element('validation-factors'))
+ end
+
+ validation_factor = doc.create_element('validation-factor')
+ validation_factor.add_child(doc.create_element('name', 'remote_address'))
+ validation_factor.add_child(doc.create_element('value', @client_ip))
+
+ doc.xpath('//validation-factors').first.add_child(validation_factor)
+
+ end
+
+ make_request(url, doc.to_s)
+
+ end
+
+ # create the body using Nokogiri so proper encoding of passwords can be ensured
+ def make_authentication_request_body(password)
+ request_body = Nokogiri::XML(AUTHENTICATION_REQUEST_BODY)
+ password_value = request_body.at_css "value"
+ password_value.content = password
+ return request_body.root.to_s # return the body without the xml header
+ end
+
+ def make_session_retrieval_request
+
+ response = nil
+
+ @tokens.any? { |token|
+ response = make_request(URI.parse(@session_uri.to_s() + "/#{token}"))
+ response.code.to_i == 200 && !response.body.nil? && response.body != ''
+ }
+
+ response
+
+ end
+ end
+ end
+ end
+end
diff --git a/vendor/gems/omniauth_crowd/lib/omniauth_crowd.rb b/vendor/gems/omniauth_crowd/lib/omniauth_crowd.rb
new file mode 100644
index 00000000000..56cf75c4e36
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/lib/omniauth_crowd.rb
@@ -0,0 +1 @@
+require 'omniauth/strategies/crowd' \ No newline at end of file
diff --git a/vendor/gems/omniauth_crowd/lib/omniauth_crowd/version.rb b/vendor/gems/omniauth_crowd/lib/omniauth_crowd/version.rb
new file mode 100644
index 00000000000..378fb1c9e69
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/lib/omniauth_crowd/version.rb
@@ -0,0 +1,5 @@
+module OmniAuth
+ module Crowd
+ VERSION = "2.4.0"
+ end
+end
diff --git a/vendor/gems/omniauth_crowd/omniauth_crowd.gemspec b/vendor/gems/omniauth_crowd/omniauth_crowd.gemspec
new file mode 100644
index 00000000000..4963c5fef1b
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/omniauth_crowd.gemspec
@@ -0,0 +1,28 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/omniauth_crowd/version', __FILE__)
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Robert Di Marco"]
+ gem.email = ["rob@innovationontherun.com"]
+ gem.description = "This is an OmniAuth provider for Atlassian Crowd's REST API. It allows you to easily integrate your Rack application in with Atlassian Crowd."
+ gem.summary = "An OmniAuth provider for Atlassian Crowd REST API"
+ gem.homepage = "http://github.com/robdimarco/omniauth_crowd"
+ gem.files = Dir.glob("lib/**/*.*")
+ gem.test_files = Dir.glob("spec/**/**/*.*")
+ gem.name = "omniauth_crowd"
+ gem.require_paths = ["lib"]
+ gem.version = OmniAuth::Crowd::VERSION
+
+ gem.add_runtime_dependency 'omniauth', '~> 1.0', '< 3'
+ gem.add_runtime_dependency 'nokogiri', '>= 1.4.4'
+ gem.add_runtime_dependency 'activesupport', '>= 0'
+ gem.add_development_dependency(%q<rack>, [">= 0"])
+ gem.add_development_dependency(%q<rake>, [">= 0"])
+ gem.add_development_dependency(%q<rack-test>, [">= 0"])
+ gem.add_development_dependency(%q<rexml>, ["~> 3.2.5"])
+ gem.add_development_dependency(%q<rspec>, ["~> 3.0.0"])
+ gem.add_development_dependency(%q<webmock>, ["~> 3.0.0"])
+ gem.add_development_dependency(%q<bundler>, ["> 1.0.0"])
+end
diff --git a/vendor/gems/omniauth_crowd/spec/fixtures/groups.xml b/vendor/gems/omniauth_crowd/spec/fixtures/groups.xml
new file mode 100644
index 00000000000..dd71a00436d
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/spec/fixtures/groups.xml
@@ -0,0 +1,8 @@
+<groups expand="group">
+<group name="Developers">
+<link rel="self" href="http://crowd.bogus.com/crowd/rest/usermanagement/latest/group?groupname=Developers"/>
+</group>
+<group name="jira-users">
+<link rel="self" href="http://crowd.bogus.com/crowd/rest/usermanagement/latest/group?groupname=jira-users"/>
+</group>
+</groups> \ No newline at end of file
diff --git a/vendor/gems/omniauth_crowd/spec/fixtures/session.xml b/vendor/gems/omniauth_crowd/spec/fixtures/session.xml
new file mode 100644
index 00000000000..42719d25f3f
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/spec/fixtures/session.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<session expand="user">
+ <token>rtk8eMvqq00EiGn5iJCMZQ00</token>
+ <user name="foo">
+ <link rel="self" href="http://crowd.example.org/crowd/rest/usermanagement/latest/user?username=foo"/>
+ </user>
+ <link rel="self" href="http://crowd.example.org/crowd/rest/usermanagement/latest/session/rtk8eMvqq00EiGn5iJCMZQ00"/>
+</session> \ No newline at end of file
diff --git a/vendor/gems/omniauth_crowd/spec/fixtures/success.xml b/vendor/gems/omniauth_crowd/spec/fixtures/success.xml
new file mode 100644
index 00000000000..a2324ab6b40
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/spec/fixtures/success.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<user name="foo" expand="attributes">
+ <link rel="self" href="http://crowd.example.org/crowd/rest/usermanagement/latest/user?username=foo"/>
+ <first-name>Foo</first-name>
+ <last-name>Foobaz</last-name>
+ <display-name>Foo Foobaz</display-name>
+ <email>foo@example.org</email>
+ <password><link rel="edit" href="http://crowd.example.org/crowd/rest/usermanagement/latest/user/password?username=foo"/></password>
+ <active>true</active>
+ <attributes><link rel="self" href="http://crowd.example.org/crowd/rest/usermanagement/latest/user/attribute?username=foo"/></attributes>
+</user>
diff --git a/vendor/gems/omniauth_crowd/spec/omniauth/strategies/crowd_spec.rb b/vendor/gems/omniauth_crowd/spec/omniauth/strategies/crowd_spec.rb
new file mode 100755
index 00000000000..f234ef82e76
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/spec/omniauth/strategies/crowd_spec.rb
@@ -0,0 +1,387 @@
+require 'spec_helper'
+
+describe OmniAuth::Strategies::Crowd, :type=>:strategy do
+ include OmniAuth::Test::StrategyTestCase
+ def strategy
+ @crowd_server_url ||= 'https://crowd.example.org'
+ @application_name ||= 'bogus_app'
+ @application_password ||= 'bogus_app_password'
+ [OmniAuth::Strategies::Crowd, {:crowd_server_url => @crowd_server_url,
+ :application_name => @application_name,
+ :application_password => @application_password,
+ :use_sessions => @using_sessions,
+ :sso_url => @sso_url,
+ :sso_url_image => @sso_url_image
+ }]
+ end
+
+ @using_sessions = false
+ @sso_url = nil
+ @sso_url_image = nil
+ let(:config) { OmniAuth::Strategies::Crowd::Configuration.new(strategy[1]) }
+ let(:validator) { OmniAuth::Strategies::Crowd::CrowdValidator.new(config, 'foo', 'bar', nil, nil) }
+
+ describe 'Authentication Request Body' do
+
+ it 'should send password in session request' do
+ body = <<-BODY.strip
+<password>
+ <value>bar</value>
+</password>
+BODY
+ expect(validator.send(:make_authentication_request_body, 'bar')).to eq(body)
+ end
+
+ it 'should escape special characters username and password in session request' do
+ body = <<-BODY.strip
+<password>
+ <value>bar&lt;</value>
+</password>
+BODY
+ expect(validator.send(:make_authentication_request_body, 'bar<')).to eq(body)
+ end
+ end
+
+ describe 'GET /auth/crowd' do
+ it 'should show the login form' do
+ get '/auth/crowd'
+ expect(last_response).to be_ok
+ end
+ end
+
+ describe 'POST /auth/crowd' do
+ it 'should redirect to callback' do
+ post '/auth/crowd', :username=>'foo', :password=>'bar'
+ expect(last_response).to be_redirect
+ expect(last_response.headers['Location']).to eq('http://example.org/auth/crowd/callback')
+ end
+ end
+
+ describe 'GET /auth/crowd/callback without any credentials' do
+ it 'should fail' do
+ get '/auth/crowd/callback'
+ expect(last_response).to be_redirect
+ expect(last_response.headers['Location']).to match(/no_credentials/)
+ end
+ end
+
+ describe 'GET /auth/crowd/callback with credentials can be successful' do
+ context "when using authentication endpoint" do
+ before do
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'success.xml')))
+
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
+
+ #Adding this to prevent Content-Type text/xml from being added back in the future
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").with(:headers => {"Content-Type" => "text/xml"}).
+ to_return(:status => [415, "Unsupported Media Type"])
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ end
+ it 'should call through to the master app' do
+ expect(last_response.body).to eq('true')
+ end
+ it 'should have an auth hash' do
+ auth = last_request.env['omniauth.auth']
+ expect(auth).to be_kind_of(Hash)
+ end
+ it 'should have good data' do
+ auth = last_request.env['omniauth.auth']
+ expect(auth['provider']).to eq(:crowd)
+ expect(auth['uid']).to eq('foo')
+ expect(auth['info']).to be_kind_of(Hash)
+ expect(auth['info']['groups'].sort).to eq(["Developers", "jira-users"].sort)
+ end
+ end
+
+ describe "when using session endpoint" do
+ before do
+ @using_sessions = true
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'success.xml')))
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session").
+ to_return(:status => 201, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
+ end
+
+ after { @using_sessions = false }
+
+ it 'should call through to the master app' do
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ expect(last_response.body).to eq('true')
+ end
+
+ it 'should have an auth hash' do
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ expect(last_request.env['omniauth.auth']).to be_kind_of(Hash)
+ end
+
+ it 'should have good data' do
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ auth = last_request.env['omniauth.auth']
+ expect(auth['provider']).to eq(:crowd)
+ expect(auth['uid']).to eq('foo')
+ expect(auth['info']).to be_kind_of(Hash)
+ expect(auth['info']['sso_token']).to eq('rtk8eMvqq00EiGn5iJCMZQ00')
+ expect(auth['info']['groups'].sort).to eq(["Developers", "jira-users"].sort)
+ end
+ end
+ end
+
+ describe 'GET /auth/crowd/callback with credentials will fail' do
+ before do
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/authentication?username=foo").
+ to_return(:status=>400)
+ get '/auth/crowd/callback', nil, 'rack.session'=>{'omniauth.crowd'=> {"username"=>"foo", "password"=>"ba"}}
+ end
+ it 'should fail' do
+ expect(last_response).to be_redirect
+ expect(last_response.headers['Location']).to match(/invalid_credentials/)
+ end
+ end
+
+ describe 'GET /auth/crowd without credentials will redirect to login form' do
+
+ sso_url = 'https://foo.bar'
+
+ before do
+ @using_sessions = true
+ @sso_url = sso_url
+ end
+
+ it 'should have the SSO button in the response body' do
+
+ found_legend = found_anchor = nil
+
+ get '/auth/crowd'
+
+ Nokogiri::HTML(last_response.body).xpath('//html/body/form/fieldset/*').each do |element|
+
+ if element.name === 'legend' && element.content() === 'SSO'
+ found_legend = true
+ elsif element.name === 'a' && element.attr('href') === "#{sso_url}/users/auth/crowd/callback"
+ found_anchor = true
+ end
+ end
+
+ expect(found_legend).to(be(true))
+ expect(found_anchor).to(be(true))
+
+ end
+
+ after do
+ @using_sessions = false
+ @sso_url = nil
+ end
+
+ end
+
+ describe 'GET /auth/crowd without credentials will redirect to login form which has custom image in the SSO link' do
+
+ sso_url = 'https://foo.bar'
+ sso_url_image = 'https://foo.bar/image.png'
+
+ before do
+ @using_sessions = true
+ @sso_url = sso_url
+ @sso_url_image = 'https://foo.bar/image.png'
+ end
+
+ it 'should have the SSO button with a custom image in the response body' do
+
+ found_legend = found_anchor = found_image = false
+
+ get '/auth/crowd'
+
+ Nokogiri::HTML(last_response.body).xpath('//html/body/form/fieldset/*').each do |element|
+
+ if element.name === 'legend' && element.content() === 'SSO'
+ found_legend = true
+ elsif element.name === 'a' && element.attr('href') === "#{sso_url}/users/auth/crowd/callback"
+
+ found_anchor = true
+
+ if element.children.length === 1 && element.children.first.name === 'img' && element.children.first.attr('src') === sso_url_image
+ found_image = true
+ end
+
+ end
+ end
+
+ expect(found_legend).to(be(true))
+ expect(found_anchor).to(be(true))
+ expect(found_image).to(be(true))
+
+ end
+
+ after do
+ @using_sessions = false
+ @sso_url = nil
+ @sso_url_image = nil
+ end
+
+ end
+
+ describe 'GET /auth/crowd without credentials but with SSO cookie will redirect to callback' do
+
+ sso_url = 'https://foo.bar'
+
+ before do
+
+ @using_sessions = true
+ @sso_url = sso_url
+
+ set_cookie('crowd.token_key=foobar')
+
+ end
+
+ it 'should redirect to callback' do
+ get '/auth/crowd'
+ expect(last_response).to be_redirect
+ expect(last_response.headers['Location']).to eq('http://example.org/auth/crowd/callback')
+ end
+
+ after do
+
+ @using_sessions = false
+ @sso_url = nil
+
+ clear_cookies()
+
+ end
+
+ end
+
+ describe 'POST /auth/crowd/callback without credentials but with SSO cookie will redirect to login form because session is invalid' do
+
+ sso_url = 'https://foo.bar'
+ token = 'foobar'
+
+ before do
+
+ @using_sessions = true
+ @sso_url = sso_url
+
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
+ to_return(:status => [404])
+
+ set_cookie("crowd.token_key=#{token}")
+
+ end
+
+ it 'should redirect to login form' do
+ post '/auth/crowd/callback'
+ expect(last_response).to be_redirect
+ expect(last_response.headers['Location']).to match(/invalid_credentials/)
+ end
+
+ after do
+
+ @using_sessions = false
+ @sso_url = nil
+
+ clear_cookies()
+
+ end
+
+ end
+
+ describe 'GET /auth/crowd/callback without credentials but with SSO cookie will succeed' do
+
+ sso_url = 'https://foo.bar'
+ token = 'rtk8eMvqq00EiGn5iJCMZQ00'
+
+ before do
+
+ @using_sessions = true
+ @sso_url = sso_url
+
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
+ to_return(:status => 200, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session/#{token}").
+ to_return(:status => 200)
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
+
+ set_cookie("crowd.token_key=#{token}")
+
+ end
+
+ it 'should return user data' do
+
+ auth = nil
+
+ get '/auth/crowd/callback'
+
+ auth = last_request.env['omniauth.auth']
+
+ expect(auth['provider']).to eq(:crowd)
+ expect(auth['uid']).to eq('foo')
+ expect(auth['info']).to be_kind_of(Hash)
+ expect(auth['info']['groups'].sort).to eq(["Developers", "jira-users"].sort)
+
+ end
+
+ after do
+
+ @using_sessions = false
+ @sso_url = nil
+
+ clear_cookies()
+
+ end
+
+ end
+
+ describe 'GET /auth/crowd/callback without credentials but with multiple SSO cookies will succeed because one of them is valid' do
+
+ sso_url = 'https://foo.bar'
+
+ before do
+
+ @using_sessions = true
+ @sso_url = sso_url
+
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/foo").
+ to_return(:status => 404)
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/fubar").
+ to_return(:status => 404)
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/session/rtk8eMvqq00EiGn5iJCMZQ00").
+ to_return(:status => 200, :body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'session.xml')))
+ stub_request(:post, "https://crowd.example.org/rest/usermanagement/latest/session/rtk8eMvqq00EiGn5iJCMZQ00").
+ to_return(:status => 200)
+ stub_request(:get, "https://crowd.example.org/rest/usermanagement/latest/user/group/direct?username=foo").
+ to_return(:body => File.read(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'groups.xml')))
+
+ header('Cookie', "crowd.token_key=foo;crowd.token_key=rtk8eMvqq00EiGn5iJCMZQ00;crowd.token_key=fubar")
+
+ end
+
+ it 'should return user data' do
+
+ auth = nil
+
+ get '/auth/crowd/callback'
+
+ auth = last_request.env['omniauth.auth']
+
+ expect(auth['provider']).to eq(:crowd)
+ expect(auth['uid']).to eq('foo')
+ expect(auth['info']).to be_kind_of(Hash)
+ expect(auth['info']['groups'].sort).to eq(["Developers", "jira-users"].sort)
+
+ end
+
+ after do
+
+ @using_sessions = false
+ @sso_url = nil
+
+ header('Cookie', nil)
+
+ end
+
+ end
+end
diff --git a/vendor/gems/omniauth_crowd/spec/spec_helper.rb b/vendor/gems/omniauth_crowd/spec/spec_helper.rb
new file mode 100644
index 00000000000..13683c95062
--- /dev/null
+++ b/vendor/gems/omniauth_crowd/spec/spec_helper.rb
@@ -0,0 +1,14 @@
+require 'bundler/setup'
+Bundler.setup
+require 'rack/test'
+require 'webmock'
+require 'webmock/rspec'
+require 'nokogiri'
+
+require 'omniauth_crowd'
+RSpec.configure do |config|
+ WebMock.disable_net_connect!
+ config.include Rack::Test::Methods
+ config.raise_errors_for_deprecations!
+end
+
diff --git a/vendor/project_templates/gatsby.tar.gz b/vendor/project_templates/gatsby.tar.gz
index 52bb056630e..1c0e413b2ec 100644
--- a/vendor/project_templates/gatsby.tar.gz
+++ b/vendor/project_templates/gatsby.tar.gz
Binary files differ
diff --git a/vendor/project_templates/rails.tar.gz b/vendor/project_templates/rails.tar.gz
index 357a049da44..17706a67dd0 100644
--- a/vendor/project_templates/rails.tar.gz
+++ b/vendor/project_templates/rails.tar.gz
Binary files differ