shotgrid_api_ruby 0.1.3.1 → 0.2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
  3. data/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. data/.github/workflows/test_and_publish.yml +4 -1
  5. data/.github/workflows/test_only.yml +5 -1
  6. data/.gitignore +3 -2
  7. data/.overcommit.yml +9 -0
  8. data/.rubocop.yml +2 -0
  9. data/.ruby-version +1 -1
  10. data/CHANGELOG.md +31 -3
  11. data/CODE_OF_CONDUCT.md +128 -0
  12. data/Gemfile +18 -0
  13. data/Gemfile.lock +264 -0
  14. data/Guardfile +2 -2
  15. data/bin/generate_and_add_documentation +1 -0
  16. data/bin/generate_sorbet_coverage +3 -0
  17. data/bin/prettirun +1 -1
  18. data/bin/sorbet_check +1 -0
  19. data/bin/tapioca +29 -0
  20. data/docs/ShotgridApiRuby/Auth/Validator.html +319 -0
  21. data/docs/ShotgridApiRuby/Auth.html +1079 -0
  22. data/docs/ShotgridApiRuby/Client.html +933 -0
  23. data/docs/ShotgridApiRuby/Entities/Params/TooComplexFiltersError.html +124 -0
  24. data/docs/ShotgridApiRuby/Entities/Params.html +1377 -0
  25. data/docs/ShotgridApiRuby/Entities/Schema.html +646 -0
  26. data/docs/ShotgridApiRuby/Entities/Summarize/Summary.html +401 -0
  27. data/docs/ShotgridApiRuby/Entities/Summarize.html +775 -0
  28. data/docs/ShotgridApiRuby/Entities.html +2461 -0
  29. data/docs/ShotgridApiRuby/Entity.html +935 -0
  30. data/docs/ShotgridApiRuby/Preferences.html +417 -0
  31. data/docs/ShotgridApiRuby/ServerInfo.html +415 -0
  32. data/docs/ShotgridApiRuby/ShotgridCallError.html +328 -0
  33. data/docs/ShotgridApiRuby/Types.html +136 -0
  34. data/docs/ShotgridApiRuby.html +307 -0
  35. data/docs/_index.html +253 -0
  36. data/docs/class_list.html +51 -0
  37. data/docs/css/common.css +1 -0
  38. data/docs/css/full_list.css +58 -0
  39. data/docs/css/style.css +497 -0
  40. data/docs/file.README.html +578 -0
  41. data/docs/file_list.html +56 -0
  42. data/docs/frames.html +17 -0
  43. data/docs/index.html +578 -0
  44. data/docs/js/app.js +314 -0
  45. data/docs/js/full_list.js +216 -0
  46. data/docs/js/jquery.js +4 -0
  47. data/docs/method_list.html +643 -0
  48. data/docs/top-level-namespace.html +110 -0
  49. data/lib/shotgrid_api_ruby/auth.rb +89 -33
  50. data/lib/shotgrid_api_ruby/client.rb +50 -7
  51. data/lib/shotgrid_api_ruby/entities/params.rb +304 -65
  52. data/lib/shotgrid_api_ruby/entities/schema.rb +18 -3
  53. data/lib/shotgrid_api_ruby/entities/summarize.rb +39 -7
  54. data/lib/shotgrid_api_ruby/entities.rb +118 -29
  55. data/lib/shotgrid_api_ruby/entity.rb +29 -12
  56. data/lib/shotgrid_api_ruby/preferences.rb +7 -1
  57. data/lib/shotgrid_api_ruby/server_info.rb +7 -1
  58. data/lib/shotgrid_api_ruby/shotgrid_call_error.rb +5 -1
  59. data/lib/shotgrid_api_ruby/types/auth_type.rb +23 -0
  60. data/lib/shotgrid_api_ruby/version.rb +2 -1
  61. data/lib/shotgrid_api_ruby.rb +20 -2
  62. data/shotgrid_api_ruby.gemspec +4 -11
  63. data/sorbet/config +6 -0
  64. data/sorbet/rbi/faraday.rbi +20 -0
  65. data/sorbet/rbi/gems/activesupport@6.1.4.1.rbi +3770 -0
  66. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  67. data/sorbet/rbi/gems/backport@1.2.0.rbi +8 -0
  68. data/sorbet/rbi/gems/benchmark@0.1.1.rbi +65 -0
  69. data/sorbet/rbi/gems/bundler-audit@0.8.0.rbi +8 -0
  70. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1569 -0
  71. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +8 -0
  72. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  73. data/sorbet/rbi/gems/colorize@0.8.1.rbi +39 -0
  74. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  75. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +2403 -0
  76. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  77. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  78. data/sorbet/rbi/gems/dotenv@2.7.6.rbi +88 -0
  79. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +8 -0
  80. data/sorbet/rbi/gems/faker@2.19.0.rbi +2513 -0
  81. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +101 -0
  82. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +78 -0
  83. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +77 -0
  84. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +73 -0
  85. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +82 -0
  86. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +72 -0
  87. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +74 -0
  88. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +73 -0
  89. data/sorbet/rbi/gems/faraday@1.7.0.rbi +783 -0
  90. data/sorbet/rbi/gems/ffi@1.15.3.rbi +8 -0
  91. data/sorbet/rbi/gems/formatador@0.3.0.rbi +8 -0
  92. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +8 -0
  93. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +8 -0
  94. data/sorbet/rbi/gems/guard@2.18.0.rbi +8 -0
  95. data/sorbet/rbi/gems/haml@5.2.2.rbi +8 -0
  96. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  97. data/sorbet/rbi/gems/i18n@1.8.10.rbi +584 -0
  98. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +8 -0
  99. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +8 -0
  100. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  101. data/sorbet/rbi/gems/kramdown@2.3.1.rbi +8 -0
  102. data/sorbet/rbi/gems/listen@3.7.0.rbi +476 -0
  103. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +8 -0
  104. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  105. data/sorbet/rbi/gems/minitest@5.14.4.rbi +344 -0
  106. data/sorbet/rbi/gems/multipart-post@2.1.1.rbi +69 -0
  107. data/sorbet/rbi/gems/nenv@0.3.0.rbi +8 -0
  108. data/sorbet/rbi/gems/nokogiri@1.12.3.rbi +8 -0
  109. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +8 -0
  110. data/sorbet/rbi/gems/overcommit@0.58.0.rbi +8 -0
  111. data/sorbet/rbi/gems/parallel@1.20.1.rbi +8 -0
  112. data/sorbet/rbi/gems/parlour@6.0.1.rbi +1610 -0
  113. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1731 -0
  114. data/sorbet/rbi/gems/prettier@1.6.1.rbi +8 -0
  115. data/sorbet/rbi/gems/pry-byebug@3.9.0.rbi +461 -0
  116. data/sorbet/rbi/gems/pry@0.13.1.rbi +2553 -0
  117. data/sorbet/rbi/gems/racc@1.5.2.rbi +47 -0
  118. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +153 -0
  119. data/sorbet/rbi/gems/rake@13.0.6.rbi +807 -0
  120. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  121. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  122. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +8 -0
  123. data/sorbet/rbi/gems/reverse_markdown@2.0.0.rbi +8 -0
  124. data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
  125. data/sorbet/rbi/gems/rspec-core@3.10.1.rbi +2500 -0
  126. data/sorbet/rbi/gems/rspec-expectations@3.10.1.rbi +1574 -0
  127. data/sorbet/rbi/gems/rspec-mocks@3.10.2.rbi +1462 -0
  128. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +510 -0
  129. data/sorbet/rbi/gems/rspec@3.10.0.rbi +39 -0
  130. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +196 -0
  131. data/sorbet/rbi/gems/rubocop-ast@1.11.0.rbi +8 -0
  132. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +8 -0
  133. data/sorbet/rbi/gems/rubocop-performance@1.11.5.rbi +8 -0
  134. data/sorbet/rbi/gems/rubocop-sorbet@0.6.2.rbi +8 -0
  135. data/sorbet/rbi/gems/rubocop@1.20.0.rbi +8 -0
  136. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +8 -0
  137. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  138. data/sorbet/rbi/gems/shellany@0.0.1.rbi +8 -0
  139. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  140. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  141. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  142. data/sorbet/rbi/gems/solargraph@0.43.0.rbi +8 -0
  143. data/sorbet/rbi/gems/spoom@1.1.2.rbi +1204 -0
  144. data/sorbet/rbi/gems/tapioca@0.4.25.rbi +1239 -0
  145. data/sorbet/rbi/gems/temple@0.8.2.rbi +8 -0
  146. data/sorbet/rbi/gems/thor@1.1.0.rbi +838 -0
  147. data/sorbet/rbi/gems/tilt@2.0.10.rbi +8 -0
  148. data/sorbet/rbi/gems/timecop@0.9.4.rbi +82 -0
  149. data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +857 -0
  150. data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +8 -0
  151. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  152. data/sorbet/rbi/gems/vcr@6.0.0.rbi +782 -0
  153. data/sorbet/rbi/gems/yard-sorbet@0.5.3.rbi +8 -0
  154. data/sorbet/rbi/gems/yard@0.9.26.rbi +8 -0
  155. data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +173 -0
  156. data/sorbet/tapioca/config +0 -0
  157. data/sorbet/tapioca/require.rb +5 -0
  158. data/yarn.lock +3 -3
  159. metadata +157 -138
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 333653a08be09ab4d6584b02bba3607d1c15b33ff368a2ae43768ac618237b0f
4
- data.tar.gz: a4ff9433124e6e5f8d4a45425f9d9fed887b9199614a6b80180f9869431367c1
3
+ metadata.gz: 1b777dd1688925c95b85bed07b52a71f402e39c00a974e55178e2770c3026ac1
4
+ data.tar.gz: ca495362b26d4c02990da0fcd741f05e43057cec3286e1ef932b9b85386bb44e
5
5
  SHA512:
6
- metadata.gz: 7778ef6d4be81061647548446a4700906132722f1201c04888bbabc2f9ada5c2c8231fe76776c3d395f6ded1af0e5043bb2aca1a5a08065fb61433d83e4a3845
7
- data.tar.gz: 38eafb01dcdec490a00a46740550864042c0017fe4379194ff6c60d3db7d48c0219c8a509f8905bdcaf30c9cad02676c55519f835a09eec94558b46a1d2d771d
6
+ metadata.gz: 1e5f0edfe8231860ae95cfc29c4b846795b40c7b5bd02bed79191d89468cc03318eeed743528cf64604556442b31f43b1352b26301d8de53fa7e99d87178f5e6
7
+ data.tar.gz: 2dd28a360e37e46ce28eb68cabc7e02ad93b740edd27f242f7120167d9dc733a5d7715209e1c5d7e1f8ece3db53cc55212cc022bbd2d92a66e9e0b30b7b1df92
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -9,7 +9,8 @@ jobs:
9
9
  tests:
10
10
  strategy:
11
11
  matrix:
12
- ruby: [2.6, 2.7, 3.0]
12
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
13
+ ruby: [2.6, 2.7, '3.0', 3.1]
13
14
  runs-on: ubuntu-latest
14
15
 
15
16
  steps:
@@ -23,6 +24,8 @@ jobs:
23
24
  run: bundle exec rubocop
24
25
  - name: Run tests
25
26
  run: bundle exec rspec
27
+ - name: Run type checking (Sorbet)
28
+ run: bundle exec srb tc
26
29
  prettier:
27
30
  runs-on: ubuntu-latest
28
31
  steps:
@@ -4,12 +4,14 @@ on:
4
4
  push:
5
5
  branches-ignore:
6
6
  - main
7
+ pull_request:
7
8
 
8
9
  jobs:
9
10
  tests:
10
11
  strategy:
11
12
  matrix:
12
- ruby: [2.6, 2.7, 3.0]
13
+ # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
14
+ ruby: [2.6, 2.7, '3.0', 3.1]
13
15
  runs-on: ubuntu-latest
14
16
 
15
17
  steps:
@@ -23,6 +25,8 @@ jobs:
23
25
  run: bundle exec rubocop
24
26
  - name: Run tests
25
27
  run: bundle exec rspec
28
+ - name: Run type checking (Sorbet)
29
+ run: bundle exec srb tc
26
30
  prettier:
27
31
  runs-on: ubuntu-latest
28
32
  steps:
data/.gitignore CHANGED
@@ -10,5 +10,6 @@
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  .env
13
- Gemfile.lock
14
- Gemfile.lock
13
+ docs
14
+ spoom_report.html
15
+ spoom_data
data/.overcommit.yml CHANGED
@@ -9,6 +9,12 @@ PreCommit:
9
9
  Prettier:
10
10
  enabled: true
11
11
  required_executable: './bin/prettirun'
12
+ Sorbet:
13
+ enabled: true
14
+ required_executable: './bin/sorbet_check'
15
+ Documentation:
16
+ enabled: true
17
+ required_executable: './bin/generate_and_add_documentation'
12
18
  PrePush:
13
19
  RSpec:
14
20
  enabled: true
@@ -19,3 +25,6 @@ PrePush:
19
25
  Rubocop:
20
26
  enabled: true
21
27
  required_executable: './bin/ruborun'
28
+ Sorbet:
29
+ enabled: true
30
+ required_executable: './bin/sorbet_check'
data/.rubocop.yml CHANGED
@@ -5,7 +5,9 @@ inherit_gem:
5
5
  prettier: rubocop.yml
6
6
 
7
7
  require:
8
+ - rubocop-faker
8
9
  - rubocop-performance
10
+ - rubocop-sorbet
9
11
 
10
12
  AllCops:
11
13
  NewCops: enable
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.0.3
data/CHANGELOG.md CHANGED
@@ -6,6 +6,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.2.0.4] - 2022-01-04
10
+ ### Changed
11
+ - Moving to bundler 2
12
+ - Updating all dependencies
13
+
14
+ ### Added
15
+ - Adding Ruby 3.1 to test matrix
16
+
17
+ ## [0.2.0.1] - 2021-10-12
18
+ ### Changed
19
+ - Fixing Rubocop
20
+
21
+ ## [0.2.0] - 2021-08-27
22
+ ### Added
23
+ - Adding Sorbet
24
+
25
+ ## [0.1.3.3] - 2021-08-28
26
+ ### Added
27
+ - Issue default format
28
+
29
+
30
+ ## [0.1.3.2] - 2021-08-24
31
+ ### Added
32
+ - Code Of Conduct
33
+
9
34
  ## [0.1.3.1] - 2021-08-24
10
35
  ### Changed
11
36
  - Correctly advertising the minimum ruby version to 2.6
@@ -59,9 +84,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
59
84
  - Entities: delete
60
85
  - Entities: revive
61
86
 
62
- [Unreleased]: https://github.com/shotgunsoftware/shotgrid_api_ruby/compare/v0.1.3.1...HEAD
63
- [0.1.3.1]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.2
64
- [0.1.3]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.2
87
+ [Unreleased]: https://github.com/shotgunsoftware/shotgrid_api_ruby/compare/v0.2.0...HEAD
88
+ [0.2.0]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.2.0
89
+ [0.1.3.3]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.3.3
90
+ [0.1.3.2]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.3.2
91
+ [0.1.3.1]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.3.1
92
+ [0.1.3]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.3
65
93
  [0.1.2]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.2
66
94
  [0.1.1]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.1
67
95
  [0.1.0]: https://github.com/shotgunsoftware/shotgrid_api_ruby/releases/tag/v0.1.0
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ denis.pasin@autodesk.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
data/Gemfile CHANGED
@@ -2,5 +2,23 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
+ group :development do
6
+ gem 'bundler-audit', '> 0.6.0', require: false
7
+ gem 'guard-rspec', require: false
8
+ gem 'haml', require: false
9
+ gem 'overcommit', require: false
10
+ gem 'prettier', require: false
11
+ gem 'rubocop', '> 0.58', require: false
12
+ gem 'rubocop-faker', require: false
13
+ gem 'rubocop-performance', require: false
14
+ gem 'rubocop-sorbet', require: false
15
+ gem 'solargraph', require: false
16
+ gem 'sorbet', require: false
17
+ gem 'tapioca', require: false
18
+ gem 'unparser', require: false
19
+ gem 'yard', require: false
20
+ gem 'yard-sorbet', require: false
21
+ end
22
+
5
23
  # Specify your gem's dependencies in shotgrid_api_ruby.gemspec
6
24
  gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,264 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shotgrid_api_ruby (0.2.0.4)
5
+ activesupport (< 7)
6
+ faraday (~> 1)
7
+ sorbet-runtime
8
+ zeitwerk (~> 2.2)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activesupport (6.1.4.4)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 1.6, < 2)
16
+ minitest (>= 5.1)
17
+ tzinfo (~> 2.0)
18
+ zeitwerk (~> 2.3)
19
+ ast (2.4.2)
20
+ backport (1.2.0)
21
+ benchmark (0.2.0)
22
+ bundler-audit (0.9.0.1)
23
+ bundler (>= 1.2.0, < 3)
24
+ thor (~> 1.0)
25
+ byebug (11.1.3)
26
+ childprocess (4.1.0)
27
+ coderay (1.1.3)
28
+ concurrent-ruby (1.1.9)
29
+ diff-lcs (1.5.0)
30
+ docile (1.4.0)
31
+ dotenv (2.7.6)
32
+ e2mmap (0.1.0)
33
+ faker (2.19.0)
34
+ i18n (>= 1.6, < 2)
35
+ faraday (1.9.3)
36
+ faraday-em_http (~> 1.0)
37
+ faraday-em_synchrony (~> 1.0)
38
+ faraday-excon (~> 1.1)
39
+ faraday-httpclient (~> 1.0)
40
+ faraday-multipart (~> 1.0)
41
+ faraday-net_http (~> 1.0)
42
+ faraday-net_http_persistent (~> 1.0)
43
+ faraday-patron (~> 1.0)
44
+ faraday-rack (~> 1.0)
45
+ faraday-retry (~> 1.0)
46
+ ruby2_keywords (>= 0.0.4)
47
+ faraday-em_http (1.0.0)
48
+ faraday-em_synchrony (1.0.0)
49
+ faraday-excon (1.1.0)
50
+ faraday-httpclient (1.0.1)
51
+ faraday-multipart (1.0.3)
52
+ multipart-post (>= 1.2, < 3)
53
+ faraday-net_http (1.0.1)
54
+ faraday-net_http_persistent (1.2.0)
55
+ faraday-patron (1.0.0)
56
+ faraday-rack (1.0.0)
57
+ faraday-retry (1.0.3)
58
+ ffi (1.15.5)
59
+ formatador (1.1.0)
60
+ guard (2.18.0)
61
+ formatador (>= 0.2.4)
62
+ listen (>= 2.7, < 4.0)
63
+ lumberjack (>= 1.0.12, < 2.0)
64
+ nenv (~> 0.1)
65
+ notiffany (~> 0.0)
66
+ pry (>= 0.13.0)
67
+ shellany (~> 0.0)
68
+ thor (>= 0.18.1)
69
+ guard-compat (1.2.1)
70
+ guard-rspec (4.7.3)
71
+ guard (~> 2.1)
72
+ guard-compat (~> 1.1)
73
+ rspec (>= 2.99.0, < 4.0)
74
+ haml (5.2.2)
75
+ temple (>= 0.8.0)
76
+ tilt
77
+ i18n (1.9.1)
78
+ concurrent-ruby (~> 1.0)
79
+ iniparse (1.5.0)
80
+ jaro_winkler (1.5.4)
81
+ kramdown (2.3.1)
82
+ rexml
83
+ kramdown-parser-gfm (1.1.0)
84
+ kramdown (~> 2.0)
85
+ listen (3.7.1)
86
+ rb-fsevent (~> 0.10, >= 0.10.3)
87
+ rb-inotify (~> 0.9, >= 0.9.10)
88
+ lumberjack (1.2.8)
89
+ method_source (1.0.0)
90
+ mini_portile2 (2.7.1)
91
+ minitest (5.15.0)
92
+ multipart-post (2.1.1)
93
+ nenv (0.3.0)
94
+ nokogiri (1.13.1)
95
+ mini_portile2 (~> 2.7.0)
96
+ racc (~> 1.4)
97
+ notiffany (0.1.3)
98
+ nenv (~> 0.1)
99
+ shellany (~> 0.0)
100
+ overcommit (0.58.0)
101
+ childprocess (>= 0.6.3, < 5)
102
+ iniparse (~> 1.4)
103
+ rexml (~> 3.2)
104
+ parallel (1.21.0)
105
+ parser (3.1.0.0)
106
+ ast (~> 2.4.1)
107
+ prettier (2.0.0)
108
+ pry (0.13.1)
109
+ coderay (~> 1.1)
110
+ method_source (~> 1.0)
111
+ pry-byebug (3.9.0)
112
+ byebug (~> 11.0)
113
+ pry (~> 0.13.0)
114
+ racc (1.6.0)
115
+ rainbow (3.1.1)
116
+ rake (13.0.6)
117
+ rb-fsevent (0.11.0)
118
+ rb-inotify (0.10.1)
119
+ ffi (~> 1.0)
120
+ rbi (0.0.11)
121
+ ast
122
+ parser
123
+ sorbet-runtime (>= 0.5.9204)
124
+ unparser
125
+ regexp_parser (2.2.0)
126
+ reverse_markdown (2.1.1)
127
+ nokogiri
128
+ rexml (3.2.5)
129
+ rspec (3.10.0)
130
+ rspec-core (~> 3.10.0)
131
+ rspec-expectations (~> 3.10.0)
132
+ rspec-mocks (~> 3.10.0)
133
+ rspec-core (3.10.2)
134
+ rspec-support (~> 3.10.0)
135
+ rspec-expectations (3.10.2)
136
+ diff-lcs (>= 1.2.0, < 2.0)
137
+ rspec-support (~> 3.10.0)
138
+ rspec-mocks (3.10.3)
139
+ diff-lcs (>= 1.2.0, < 2.0)
140
+ rspec-support (~> 3.10.0)
141
+ rspec-support (3.10.3)
142
+ rspec_in_context (1.1.0.3)
143
+ activesupport (> 2.0)
144
+ rspec (> 3.0)
145
+ rubocop (1.25.0)
146
+ parallel (~> 1.10)
147
+ parser (>= 3.1.0.0)
148
+ rainbow (>= 2.2.2, < 4.0)
149
+ regexp_parser (>= 1.8, < 3.0)
150
+ rexml
151
+ rubocop-ast (>= 1.15.1, < 2.0)
152
+ ruby-progressbar (~> 1.7)
153
+ unicode-display_width (>= 1.4.0, < 3.0)
154
+ rubocop-ast (1.15.1)
155
+ parser (>= 3.0.1.1)
156
+ rubocop-faker (1.1.0)
157
+ faker (>= 2.12.0)
158
+ rubocop (>= 0.82.0)
159
+ rubocop-performance (1.13.2)
160
+ rubocop (>= 1.7.0, < 2.0)
161
+ rubocop-ast (>= 0.4.0)
162
+ rubocop-sorbet (0.6.5)
163
+ rubocop (>= 0.90.0)
164
+ ruby-progressbar (1.11.0)
165
+ ruby2_keywords (0.0.5)
166
+ shellany (0.0.1)
167
+ simplecov (0.21.2)
168
+ docile (~> 1.1)
169
+ simplecov-html (~> 0.11)
170
+ simplecov_json_formatter (~> 0.1)
171
+ simplecov-html (0.12.3)
172
+ simplecov_json_formatter (0.1.3)
173
+ solargraph (0.44.3)
174
+ backport (~> 1.2)
175
+ benchmark
176
+ bundler (>= 1.17.2)
177
+ diff-lcs (~> 1.4)
178
+ e2mmap
179
+ jaro_winkler (~> 1.5)
180
+ kramdown (~> 2.3)
181
+ kramdown-parser-gfm (~> 1.1)
182
+ parser (~> 3.0)
183
+ reverse_markdown (>= 1.0.5, < 3)
184
+ rubocop (>= 0.52)
185
+ thor (~> 1.0)
186
+ tilt (~> 2.0)
187
+ yard (~> 0.9, >= 0.9.24)
188
+ sorbet (0.5.9606)
189
+ sorbet-static (= 0.5.9606)
190
+ sorbet-runtime (0.5.9606)
191
+ sorbet-static (0.5.9606-universal-darwin-14)
192
+ sorbet-static (0.5.9606-universal-darwin-15)
193
+ sorbet-static (0.5.9606-universal-darwin-16)
194
+ sorbet-static (0.5.9606-universal-darwin-17)
195
+ sorbet-static (0.5.9606-universal-darwin-18)
196
+ sorbet-static (0.5.9606-universal-darwin-19)
197
+ sorbet-static (0.5.9606-universal-darwin-20)
198
+ sorbet-static (0.5.9606-universal-darwin-21)
199
+ sorbet-static (0.5.9606-x86_64-linux)
200
+ spoom (1.1.8)
201
+ sorbet (>= 0.5.9204)
202
+ sorbet-runtime (>= 0.5.9204)
203
+ thor (>= 0.19.2)
204
+ tapioca (0.6.3)
205
+ bundler (>= 1.17.3)
206
+ pry (>= 0.12.2)
207
+ rbi (~> 0.0.0, >= 0.0.9)
208
+ sorbet-runtime (>= 0.5.9204)
209
+ sorbet-static (>= 0.5.9204)
210
+ spoom (~> 1.1.0, >= 1.1.4)
211
+ thor (>= 1.2.0)
212
+ yard-sorbet
213
+ temple (0.8.2)
214
+ thor (1.2.1)
215
+ tilt (2.0.10)
216
+ timecop (0.9.4)
217
+ tzinfo (2.0.4)
218
+ concurrent-ruby (~> 1.0)
219
+ unicode-display_width (2.1.0)
220
+ unparser (0.6.3)
221
+ diff-lcs (~> 1.3)
222
+ parser (>= 3.1.0)
223
+ vcr (6.0.0)
224
+ webrick (1.7.0)
225
+ yard (0.9.27)
226
+ webrick (~> 1.7.0)
227
+ yard-sorbet (0.6.1)
228
+ sorbet-runtime (>= 0.5)
229
+ yard (>= 0.9)
230
+ zeitwerk (2.5.4)
231
+
232
+ PLATFORMS
233
+ ruby
234
+
235
+ DEPENDENCIES
236
+ bundler
237
+ bundler-audit (> 0.6.0)
238
+ dotenv
239
+ faker (> 1.8)
240
+ guard-rspec
241
+ haml
242
+ overcommit
243
+ prettier
244
+ pry-byebug
245
+ rake
246
+ rspec (~> 3.0)
247
+ rspec_in_context (> 1)
248
+ rubocop (> 0.58)
249
+ rubocop-faker
250
+ rubocop-performance
251
+ rubocop-sorbet
252
+ shotgrid_api_ruby!
253
+ simplecov (> 0.16)
254
+ solargraph
255
+ sorbet
256
+ tapioca
257
+ timecop
258
+ unparser
259
+ vcr
260
+ yard
261
+ yard-sorbet
262
+
263
+ BUNDLED WITH
264
+ 2.3.4
data/Guardfile CHANGED
@@ -26,8 +26,8 @@
26
26
  # * zeus: 'zeus rspec' (requires the server to be started separately)
27
27
  # * 'just' rspec: 'rspec'
28
28
 
29
- guard :rspec, cmd: "bundle exec rspec" do
30
- require "guard/rspec/dsl"
29
+ guard :rspec, cmd: 'bundle exec rspec' do
30
+ require 'guard/rspec/dsl'
31
31
  dsl = Guard::RSpec::Dsl.new(self)
32
32
 
33
33
  # Feel free to open issues for suggestions and improvements
@@ -0,0 +1 @@
1
+ yard doc --plugin sorbet -o docs && git add -f docs
@@ -0,0 +1,3 @@
1
+ bundle exec spoom coverage timeline --from=2021-08-26 --save && \
2
+ bundle exec spoom coverage report && \
3
+ bundle exec spoom coverage open
data/bin/prettirun CHANGED
@@ -1 +1 @@
1
- yarn prettier -c './**/*.rb'
1
+ yarn prettier -c './**/*.rb' Guardfile Rakefile *.gemspec Gemfile
data/bin/sorbet_check ADDED
@@ -0,0 +1 @@
1
+ bundle exec srb tc
data/bin/tapioca ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'tapioca' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("tapioca", "tapioca")