shopify-ruby-definitions 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +0 -1
  3. data/README.md +23 -0
  4. data/lib/shopify_ruby_definitions/ruby_versions.rb +10 -31
  5. data/lib/shopify_ruby_definitions/version.rb +1 -2
  6. data/lib/shopify_ruby_definitions.rb +0 -4
  7. data/rubies/3.2.2-pshopify4 +35 -0
  8. metadata +18 -176
  9. data/lib/shopify_ruby_definitions/ruby_build.rb +0 -10
  10. data/sorbet/config +0 -4
  11. data/sorbet/rbi/annotations/rainbow.rbi +0 -269
  12. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
  13. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1083
  14. data/sorbet/rbi/gems/json@2.6.3.rbi +0 -1533
  15. data/sorbet/rbi/gems/minitest@5.18.0.rbi +0 -1491
  16. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
  17. data/sorbet/rbi/gems/parallel@1.23.0.rbi +0 -273
  18. data/sorbet/rbi/gems/parser@3.2.2.1.rbi +0 -7253
  19. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -402
  20. data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3024
  21. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3049
  22. data/sorbet/rbi/gems/regexp_parser@2.8.0.rbi +0 -3748
  23. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4717
  24. data/sorbet/rbi/gems/rubocop-ast@1.28.1.rbi +0 -6969
  25. data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +0 -2528
  26. data/sorbet/rbi/gems/rubocop-shopify@2.13.0.rbi +0 -8
  27. data/sorbet/rbi/gems/rubocop@1.51.0.rbi +0 -55313
  28. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1317
  29. data/sorbet/rbi/gems/spoom@1.2.1.rbi +0 -2536
  30. data/sorbet/rbi/gems/tapioca@0.11.6.rbi +0 -3301
  31. data/sorbet/rbi/gems/thor@1.2.2.rbi +0 -3965
  32. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +0 -65
  33. data/sorbet/rbi/gems/unparser@0.6.7.rbi +0 -4524
  34. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +0 -428
  35. data/sorbet/rbi/gems/yard@0.9.34.rbi +0 -18219
  36. data/sorbet/tapioca/config.yml +0 -13
  37. data/sorbet/tapioca/require.rb +0 -4
  38. data/vendor/ruby-build/LICENSE +0 -19
  39. data/vendor/ruby-build/bin/ruby-build +0 -1572
  40. data/vendor/ruby-build/share/ruby-build/2.6.0 +0 -2
  41. data/vendor/ruby-build/share/ruby-build/2.6.0-dev +0 -2
  42. data/vendor/ruby-build/share/ruby-build/2.6.0-preview1 +0 -2
  43. data/vendor/ruby-build/share/ruby-build/2.6.0-preview2 +0 -2
  44. data/vendor/ruby-build/share/ruby-build/2.6.0-preview3 +0 -2
  45. data/vendor/ruby-build/share/ruby-build/2.6.0-rc1 +0 -2
  46. data/vendor/ruby-build/share/ruby-build/2.6.0-rc2 +0 -2
  47. data/vendor/ruby-build/share/ruby-build/2.6.1 +0 -2
  48. data/vendor/ruby-build/share/ruby-build/2.6.10 +0 -2
  49. data/vendor/ruby-build/share/ruby-build/2.6.2 +0 -2
  50. data/vendor/ruby-build/share/ruby-build/2.6.3 +0 -2
  51. data/vendor/ruby-build/share/ruby-build/2.6.4 +0 -2
  52. data/vendor/ruby-build/share/ruby-build/2.6.5 +0 -2
  53. data/vendor/ruby-build/share/ruby-build/2.6.6 +0 -2
  54. data/vendor/ruby-build/share/ruby-build/2.6.7 +0 -2
  55. data/vendor/ruby-build/share/ruby-build/2.6.8 +0 -2
  56. data/vendor/ruby-build/share/ruby-build/2.6.9 +0 -2
  57. data/vendor/ruby-build/share/ruby-build/2.7.0 +0 -2
  58. data/vendor/ruby-build/share/ruby-build/2.7.0-dev +0 -2
  59. data/vendor/ruby-build/share/ruby-build/2.7.0-preview1 +0 -2
  60. data/vendor/ruby-build/share/ruby-build/2.7.0-preview2 +0 -2
  61. data/vendor/ruby-build/share/ruby-build/2.7.0-preview3 +0 -2
  62. data/vendor/ruby-build/share/ruby-build/2.7.0-rc1 +0 -2
  63. data/vendor/ruby-build/share/ruby-build/2.7.0-rc2 +0 -2
  64. data/vendor/ruby-build/share/ruby-build/2.7.1 +0 -2
  65. data/vendor/ruby-build/share/ruby-build/2.7.2 +0 -2
  66. data/vendor/ruby-build/share/ruby-build/2.7.3 +0 -2
  67. data/vendor/ruby-build/share/ruby-build/2.7.4 +0 -2
  68. data/vendor/ruby-build/share/ruby-build/2.7.5 +0 -2
  69. data/vendor/ruby-build/share/ruby-build/2.7.6 +0 -2
  70. data/vendor/ruby-build/share/ruby-build/2.7.7 +0 -2
  71. data/vendor/ruby-build/share/ruby-build/2.7.8 +0 -2
  72. data/vendor/ruby-build/share/ruby-build/3.0.0 +0 -2
  73. data/vendor/ruby-build/share/ruby-build/3.0.0-dev +0 -2
  74. data/vendor/ruby-build/share/ruby-build/3.0.0-preview1 +0 -2
  75. data/vendor/ruby-build/share/ruby-build/3.0.0-preview2 +0 -2
  76. data/vendor/ruby-build/share/ruby-build/3.0.0-rc1 +0 -2
  77. data/vendor/ruby-build/share/ruby-build/3.0.1 +0 -2
  78. data/vendor/ruby-build/share/ruby-build/3.0.2 +0 -2
  79. data/vendor/ruby-build/share/ruby-build/3.0.3 +0 -2
  80. data/vendor/ruby-build/share/ruby-build/3.0.4 +0 -2
  81. data/vendor/ruby-build/share/ruby-build/3.0.5 +0 -2
  82. data/vendor/ruby-build/share/ruby-build/3.0.6 +0 -2
  83. data/vendor/ruby-build/share/ruby-build/3.1.0 +0 -2
  84. data/vendor/ruby-build/share/ruby-build/3.1.0-dev +0 -2
  85. data/vendor/ruby-build/share/ruby-build/3.1.0-preview1 +0 -2
  86. data/vendor/ruby-build/share/ruby-build/3.1.1 +0 -2
  87. data/vendor/ruby-build/share/ruby-build/3.1.2 +0 -2
  88. data/vendor/ruby-build/share/ruby-build/3.1.3 +0 -2
  89. data/vendor/ruby-build/share/ruby-build/3.1.4 +0 -2
  90. data/vendor/ruby-build/share/ruby-build/3.2.0 +0 -2
  91. data/vendor/ruby-build/share/ruby-build/3.2.0-dev +0 -2
  92. data/vendor/ruby-build/share/ruby-build/3.2.0-preview1 +0 -2
  93. data/vendor/ruby-build/share/ruby-build/3.2.0-preview2 +0 -2
  94. data/vendor/ruby-build/share/ruby-build/3.2.0-preview3 +0 -2
  95. data/vendor/ruby-build/share/ruby-build/3.2.0-rc1 +0 -2
  96. data/vendor/ruby-build/share/ruby-build/3.2.1 +0 -2
  97. data/vendor/ruby-build/share/ruby-build/3.2.2 +0 -2
  98. data/vendor/ruby-build/share/ruby-build/3.3.0-dev +0 -2
  99. data/vendor/ruby-build/share/ruby-build/3.3.0-preview1 +0 -2
  100. data/vendor/ruby-build/share/ruby-build/truffleruby-21.0.0 +0 -13
  101. data/vendor/ruby-build/share/ruby-build/truffleruby-21.1.0 +0 -13
  102. data/vendor/ruby-build/share/ruby-build/truffleruby-21.2.0 +0 -17
  103. data/vendor/ruby-build/share/ruby-build/truffleruby-21.2.0.1 +0 -17
  104. data/vendor/ruby-build/share/ruby-build/truffleruby-21.3.0 +0 -17
  105. data/vendor/ruby-build/share/ruby-build/truffleruby-22.0.0.2 +0 -17
  106. data/vendor/ruby-build/share/ruby-build/truffleruby-22.1.0 +0 -17
  107. data/vendor/ruby-build/share/ruby-build/truffleruby-22.2.0 +0 -21
  108. data/vendor/ruby-build/share/ruby-build/truffleruby-22.3.0 +0 -21
  109. data/vendor/ruby-build/share/ruby-build/truffleruby-22.3.1 +0 -21
  110. data/vendor/ruby-build/share/ruby-build/truffleruby-23.0.0-preview1 +0 -21
  111. data/vendor/ruby-build/share/ruby-build/truffleruby-dev +0 -21
  112. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.0.0-pshopify9 +0 -0
  113. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.0.1-pshopify2 +0 -0
  114. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.0.2-pshopify3 +0 -0
  115. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.1.0-pshopify1 +0 -0
  116. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.1.1-pshopify2 +0 -0
  117. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.1.2-pshopify2 +0 -0
  118. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.1.3-pshopify1 +0 -0
  119. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.1.4-pshopify1 +0 -0
  120. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.2.0-pshopify2 +0 -0
  121. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.2.1-pshopify5 +0 -0
  122. /data/{vendor/ruby-build/share/ruby-build → rubies}/3.2.2-pshopify3 +0 -0
  123. /data/{vendor/ruby-build/share/ruby-build → rubies}/yjit-3.1.0-dev +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5067296d614e5c63925e48e05e2b3829f3d9fb9f6dda555c501b8e25fb764b8a
4
- data.tar.gz: a2139541d35fd111e3d2d60d050ddfe10f15ba7a5602c0699009c2f2b34526ec
3
+ metadata.gz: 0d1ef7b1c4f3633947d50cb80b279c447f1c7609f05b48e8073cb3b3039a4db2
4
+ data.tar.gz: 0bdf7b67f1f1b85352d9df51cbeca71cb7637143d176b517b89049e6a35ddb7f
5
5
  SHA512:
6
- metadata.gz: b130cb636ff8890333784aa974ed9769e53ccb05a8b02a290b1e9f0551482abcb3ad05011e6706b0f91b3c686f971a9ebefe482652a05a83d251dd54ea2215c6
7
- data.tar.gz: 7632aa4f7e2a9690e478064952b5898ba38c1cb0de7dab44d78fa8b29ee8d40cfbc54a3d0d0c7e2b006d2a65e5dd8f940f1a4b0da832bcd117b6b35ec77adb56
6
+ metadata.gz: 0042b22cb67ae3d92ecadec063fa968f05463e6555fc80d0d6472a27e01a4b0e516a42bab078cc99d0719b7217070a07b7f3345045dc73442078eeb80521ea7c
7
+ data.tar.gz: cec917f18832b11e7417d3c7e0a91b58ff906d2c685ff48ac33e0854d6386424dba448964ea9193ea0614b4104b39400ad276c000c11def47515ac9118b4902f
data/.rubocop.yml CHANGED
@@ -3,7 +3,6 @@ inherit_gem:
3
3
 
4
4
  require:
5
5
  - rubocop-minitest
6
- - rubocop-sorbet
7
6
 
8
7
  AllCops:
9
8
  NewCops: enable
data/README.md CHANGED
@@ -0,0 +1,23 @@
1
+ # shopify-ruby-definitions
2
+
3
+ This repository contains [ruby-build](https://github.com/rbenv/ruby-build/) definitions of Rubies we use at Shopify. These builds are generally API complient with release Rubies, but with additional backports for bugfixes and performance.
4
+
5
+ ## Quick start
6
+
7
+ 1. Install ruby-build by [following the instructions](https://github.com/rbenv/ruby-build/#installation).
8
+ 1. Install the gem:
9
+ ```
10
+ $ gem install shopify-ruby-definitions
11
+ ```
12
+ 1. Acquire the specific Ruby version of the Ruby version you want to install. Ruby 3.2 is used as an example here:
13
+ ```
14
+ $ export RUBY_VERSION=`ruby -rshopify_ruby_definitions -e 'puts ShopifyRubyDefinitions.resolve_version("3.2")'`
15
+ ```
16
+ 1. Set the definitions path for ruby-build:
17
+ ```
18
+ $ export RUBY_BUILD_DEFINITIONS=`ruby -rshopify_ruby_definitions -e 'puts ShopifyRubyDefinitions::RubyVersions::VERSIONS_DIRECTORY'`
19
+ ```
20
+ 1. Install the Ruby version using ruby-build:
21
+ ```
22
+ ruby-build $RUBY_VERSION
23
+ ```
@@ -1,49 +1,28 @@
1
- # typed: strong
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module ShopifyRubyDefinitions
5
4
  module RubyVersions
6
- extend T::Sig
5
+ VERSIONS_DIRECTORY = File.expand_path("../../../rubies", __FILE__)
6
+ ALL_VERSIONS = Dir["#{VERSIONS_DIRECTORY}/*"].map { |f| File.basename(f) }
7
+ VERSION_OVERRIDES = ALL_VERSIONS.sort_by do |version|
8
+ version.scan(/\d+/).map(&:to_i)
9
+ end.to_h do |version|
10
+ [version.split("-").first, version]
11
+ end.freeze
7
12
 
8
- VERSIONS_DIRECTORY = T.let(File.join(RubyBuild::RUBY_BUILD_DIRECTORY, "share/ruby-build"), String)
9
- ALL_VERSIONS = T.let(Dir["#{VERSIONS_DIRECTORY}/*"].map { |f| File.basename(f) }, T::Array[String])
10
-
11
- sig { returns(T::Hash[String, String]) }
12
13
  def version_overrides
13
- {
14
- "head" => ruby_head_version,
15
- "ruby-head" => ruby_head_version,
16
- "3.0.0" => "3.0.0-pshopify9",
17
- "3.0.1" => "3.0.1-pshopify2",
18
- "3.0.2" => "3.0.2-pshopify3",
19
- "3.1.0" => "3.1.0-pshopify1",
20
- "3.1.1" => "3.1.1-pshopify2",
21
- "3.1.2" => "3.1.2-pshopify2",
22
- "3.1.3" => "3.1.3-pshopify1",
23
- "3.1.4" => "3.1.4-pshopify1",
24
- "3.2.0" => "3.2.0-pshopify2",
25
- "3.2.1" => "3.2.1-pshopify5",
26
- "3.2.2" => "3.2.2-pshopify3",
27
- }.freeze
14
+ VERSION_OVERRIDES
28
15
  end
29
16
 
30
- sig { params(version: String).returns(String) }
31
17
  def resolve_version(version)
32
18
  if version.match?(/\A\d+\.\d+\z/)
33
19
  pattern = /\A#{Regexp.escape(version)}\.(\d+)\z/
34
- versions = ALL_VERSIONS.grep(pattern)
20
+ versions = version_overrides.keys.grep(pattern)
35
21
  unless versions.empty?
36
- version = T.must(versions.max_by { |v| T.must(v.match(pattern))[1].to_i })
22
+ version = versions.max_by { |v| v.match(pattern)[1].to_i }
37
23
  end
38
24
  end
39
25
  version_overrides.fetch(version, version)
40
26
  end
41
-
42
- private
43
-
44
- sig { returns(String) }
45
- def ruby_head_version
46
- T.must(ALL_VERSIONS.grep(/\A[\d\.]+-dev\z/).max)
47
- end
48
27
  end
49
28
  end
@@ -1,6 +1,5 @@
1
- # typed: strong
2
1
  # frozen_string_literal: true
3
2
 
4
3
  module ShopifyRubyDefinitions
5
- VERSION = "0.0.1"
4
+ VERSION = "1.0.0"
6
5
  end
@@ -1,9 +1,5 @@
1
- # typed: strong
2
1
  # frozen_string_literal: true
3
2
 
4
- require "sorbet-runtime"
5
-
6
- require_relative "shopify_ruby_definitions/ruby_build"
7
3
  require_relative "shopify_ruby_definitions/ruby_versions"
8
4
  require_relative "shopify_ruby_definitions/version"
9
5
 
@@ -0,0 +1,35 @@
1
+ # https://github.com/ruby/ruby/compare/ruby_3_2...Shopify:v3.2.2-pshopify3
2
+
3
+ # Based off `ruby_3_2`, with backports of:
4
+ # @byroot [ruby/set] Avoid the `block or return` pattern to save Proc allocations https://github.com/ruby/set/pull/29
5
+ # @peterzhu2118 Keep shared arrays WB protected https://github.com/ruby/ruby/pull/7224
6
+ # @peterzhu2118 Make BigDecimal WB protected https://github.com/ruby/bigdecimal/pull/248
7
+ # @XrXr YJIT String#+@ fixes https://github.com/ruby/ruby/pull/7328
8
+ # @byroot Add RUBY_GC_HEAP_INIT_SIZE_%d_SLOTS to pre-init pools granularly https://github.com/ruby/ruby/pull/7235
9
+ # @byroot Consider DATA objects without a mark function as protected https://github.com/ruby/ruby/pull/7263
10
+ # @byroot Implement Write Barrier for RMatch objects https://github.com/ruby/ruby/pull/7286
11
+ # @byroot Enable write barriers on File::Stat https://github.com/ruby/ruby/pull/7239
12
+ # @byroot Implement Write Barrier for Backtrace::Location https://github.com/ruby/ruby/pull/7240
13
+ # @byroot Mark "mapping_buffer" as write barrier protected https://github.com/ruby/ruby/pull/7238
14
+ # @byroot Mark "method" objects as protected by write barrier https://github.com/ruby/ruby/pull/7237
15
+ # @byroot Mark Encoding as Write Barrier protected Mark Encoding as Write Barrier protected
16
+ # @peterzhu2118 Make Time objects WB protected https://github.com/ruby/ruby/pull/7244
17
+ # @jhawthorn Use write barriers for Backtrace objects
18
+ # @peterzhu2118 Crash when malloc during GC
19
+ # @peterzhu2118 Fix crash when allocating classes with newobj hook
20
+ # @peterzhu2118 [Bug #19469] Fix crash when resizing generic iv list
21
+ # @byroot Implement Write Barrier for autoload_data
22
+ # @byroot Implement Write Barrier for autoload_table_type
23
+ # @k0kubun YJIT: Protect strings from GC on String#<<
24
+ # @tenderlove Use an st table for "too complex" objects
25
+ # @byroot Cache `Process.pid`
26
+ # @byroot thread_pthread.c: Use a `fork_gen` to protect against fork instead of getpid()
27
+ # @XrXr Fix write barrier order for klass to cme edge https://github.com/ruby/ruby/pull/7113
28
+ # @peterzhu2118 Ensure throw data is not set as cause https://github.com/ruby/ruby/pull/7696
29
+ # @peterzhu2118 Fix crash in rb_gc_register_address https://github.com/ruby/ruby/pull/7670
30
+ # @peterzhu2118 [Feature #19678] Don't immediately promote children of old objects https://github.com/ruby/ruby/pull/7821
31
+ # @k0kubun YJIT: Use rb_ivar_get at the end of ivar chains https://github.com/ruby/ruby/pull/7334
32
+ # @k0kubun / @maximecb / @XrXr YJIT: Add --yjit-pause and RubyVM::YJIT.resume https://github.com/ruby/ruby/pull/7609
33
+
34
+ install_package "openssl-3.1.0" "https://www.openssl.org/source/openssl-3.1.0.tar.gz#aaa925ad9828745c4cad9d9efeb273deca820f2cdcf2c3ac7d7c1212b7c497b4" openssl --if needs_openssl_102_300
35
+ install_git "ruby-3.2.2-pshopify4" "https://github.com/Shopify/ruby.git" "v3.2.2-pshopify4" ldflags_dirs autoconf standard_build standard_install_with_bundled_gems verify_openssl
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-ruby-definitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Zhu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: sorbet-runtime
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rubocop-minitest
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -52,48 +38,6 @@ dependencies:
52
38
  - - ">="
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rubocop-sorbet
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: sorbet
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: tapioca
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
41
  description:
98
42
  email:
99
43
  - peter@peterzhu.ca
@@ -107,129 +51,27 @@ files:
107
51
  - README.md
108
52
  - Rakefile
109
53
  - lib/shopify_ruby_definitions.rb
110
- - lib/shopify_ruby_definitions/ruby_build.rb
111
54
  - lib/shopify_ruby_definitions/ruby_versions.rb
112
55
  - lib/shopify_ruby_definitions/version.rb
113
- - sorbet/config
114
- - sorbet/rbi/annotations/rainbow.rbi
115
- - sorbet/rbi/gems/ast@2.4.2.rbi
116
- - sorbet/rbi/gems/diff-lcs@1.5.0.rbi
117
- - sorbet/rbi/gems/json@2.6.3.rbi
118
- - sorbet/rbi/gems/minitest@5.18.0.rbi
119
- - sorbet/rbi/gems/netrc@0.11.0.rbi
120
- - sorbet/rbi/gems/parallel@1.23.0.rbi
121
- - sorbet/rbi/gems/parser@3.2.2.1.rbi
122
- - sorbet/rbi/gems/rainbow@3.1.1.rbi
123
- - sorbet/rbi/gems/rake@13.0.6.rbi
124
- - sorbet/rbi/gems/rbi@0.0.16.rbi
125
- - sorbet/rbi/gems/regexp_parser@2.8.0.rbi
126
- - sorbet/rbi/gems/rexml@3.2.5.rbi
127
- - sorbet/rbi/gems/rubocop-ast@1.28.1.rbi
128
- - sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi
129
- - sorbet/rbi/gems/rubocop-shopify@2.13.0.rbi
130
- - sorbet/rbi/gems/rubocop@1.51.0.rbi
131
- - sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
132
- - sorbet/rbi/gems/spoom@1.2.1.rbi
133
- - sorbet/rbi/gems/tapioca@0.11.6.rbi
134
- - sorbet/rbi/gems/thor@1.2.2.rbi
135
- - sorbet/rbi/gems/unicode-display_width@2.4.2.rbi
136
- - sorbet/rbi/gems/unparser@0.6.7.rbi
137
- - sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
138
- - sorbet/rbi/gems/yard@0.9.34.rbi
139
- - sorbet/tapioca/config.yml
140
- - sorbet/tapioca/require.rb
141
- - vendor/ruby-build/LICENSE
142
- - vendor/ruby-build/bin/ruby-build
143
- - vendor/ruby-build/share/ruby-build/2.6.0
144
- - vendor/ruby-build/share/ruby-build/2.6.0-dev
145
- - vendor/ruby-build/share/ruby-build/2.6.0-preview1
146
- - vendor/ruby-build/share/ruby-build/2.6.0-preview2
147
- - vendor/ruby-build/share/ruby-build/2.6.0-preview3
148
- - vendor/ruby-build/share/ruby-build/2.6.0-rc1
149
- - vendor/ruby-build/share/ruby-build/2.6.0-rc2
150
- - vendor/ruby-build/share/ruby-build/2.6.1
151
- - vendor/ruby-build/share/ruby-build/2.6.10
152
- - vendor/ruby-build/share/ruby-build/2.6.2
153
- - vendor/ruby-build/share/ruby-build/2.6.3
154
- - vendor/ruby-build/share/ruby-build/2.6.4
155
- - vendor/ruby-build/share/ruby-build/2.6.5
156
- - vendor/ruby-build/share/ruby-build/2.6.6
157
- - vendor/ruby-build/share/ruby-build/2.6.7
158
- - vendor/ruby-build/share/ruby-build/2.6.8
159
- - vendor/ruby-build/share/ruby-build/2.6.9
160
- - vendor/ruby-build/share/ruby-build/2.7.0
161
- - vendor/ruby-build/share/ruby-build/2.7.0-dev
162
- - vendor/ruby-build/share/ruby-build/2.7.0-preview1
163
- - vendor/ruby-build/share/ruby-build/2.7.0-preview2
164
- - vendor/ruby-build/share/ruby-build/2.7.0-preview3
165
- - vendor/ruby-build/share/ruby-build/2.7.0-rc1
166
- - vendor/ruby-build/share/ruby-build/2.7.0-rc2
167
- - vendor/ruby-build/share/ruby-build/2.7.1
168
- - vendor/ruby-build/share/ruby-build/2.7.2
169
- - vendor/ruby-build/share/ruby-build/2.7.3
170
- - vendor/ruby-build/share/ruby-build/2.7.4
171
- - vendor/ruby-build/share/ruby-build/2.7.5
172
- - vendor/ruby-build/share/ruby-build/2.7.6
173
- - vendor/ruby-build/share/ruby-build/2.7.7
174
- - vendor/ruby-build/share/ruby-build/2.7.8
175
- - vendor/ruby-build/share/ruby-build/3.0.0
176
- - vendor/ruby-build/share/ruby-build/3.0.0-dev
177
- - vendor/ruby-build/share/ruby-build/3.0.0-preview1
178
- - vendor/ruby-build/share/ruby-build/3.0.0-preview2
179
- - vendor/ruby-build/share/ruby-build/3.0.0-pshopify9
180
- - vendor/ruby-build/share/ruby-build/3.0.0-rc1
181
- - vendor/ruby-build/share/ruby-build/3.0.1
182
- - vendor/ruby-build/share/ruby-build/3.0.1-pshopify2
183
- - vendor/ruby-build/share/ruby-build/3.0.2
184
- - vendor/ruby-build/share/ruby-build/3.0.2-pshopify3
185
- - vendor/ruby-build/share/ruby-build/3.0.3
186
- - vendor/ruby-build/share/ruby-build/3.0.4
187
- - vendor/ruby-build/share/ruby-build/3.0.5
188
- - vendor/ruby-build/share/ruby-build/3.0.6
189
- - vendor/ruby-build/share/ruby-build/3.1.0
190
- - vendor/ruby-build/share/ruby-build/3.1.0-dev
191
- - vendor/ruby-build/share/ruby-build/3.1.0-preview1
192
- - vendor/ruby-build/share/ruby-build/3.1.0-pshopify1
193
- - vendor/ruby-build/share/ruby-build/3.1.1
194
- - vendor/ruby-build/share/ruby-build/3.1.1-pshopify2
195
- - vendor/ruby-build/share/ruby-build/3.1.2
196
- - vendor/ruby-build/share/ruby-build/3.1.2-pshopify2
197
- - vendor/ruby-build/share/ruby-build/3.1.3
198
- - vendor/ruby-build/share/ruby-build/3.1.3-pshopify1
199
- - vendor/ruby-build/share/ruby-build/3.1.4
200
- - vendor/ruby-build/share/ruby-build/3.1.4-pshopify1
201
- - vendor/ruby-build/share/ruby-build/3.2.0
202
- - vendor/ruby-build/share/ruby-build/3.2.0-dev
203
- - vendor/ruby-build/share/ruby-build/3.2.0-preview1
204
- - vendor/ruby-build/share/ruby-build/3.2.0-preview2
205
- - vendor/ruby-build/share/ruby-build/3.2.0-preview3
206
- - vendor/ruby-build/share/ruby-build/3.2.0-pshopify2
207
- - vendor/ruby-build/share/ruby-build/3.2.0-rc1
208
- - vendor/ruby-build/share/ruby-build/3.2.1
209
- - vendor/ruby-build/share/ruby-build/3.2.1-pshopify5
210
- - vendor/ruby-build/share/ruby-build/3.2.2
211
- - vendor/ruby-build/share/ruby-build/3.2.2-pshopify3
212
- - vendor/ruby-build/share/ruby-build/3.3.0-dev
213
- - vendor/ruby-build/share/ruby-build/3.3.0-preview1
214
- - vendor/ruby-build/share/ruby-build/truffleruby-21.0.0
215
- - vendor/ruby-build/share/ruby-build/truffleruby-21.1.0
216
- - vendor/ruby-build/share/ruby-build/truffleruby-21.2.0
217
- - vendor/ruby-build/share/ruby-build/truffleruby-21.2.0.1
218
- - vendor/ruby-build/share/ruby-build/truffleruby-21.3.0
219
- - vendor/ruby-build/share/ruby-build/truffleruby-22.0.0.2
220
- - vendor/ruby-build/share/ruby-build/truffleruby-22.1.0
221
- - vendor/ruby-build/share/ruby-build/truffleruby-22.2.0
222
- - vendor/ruby-build/share/ruby-build/truffleruby-22.3.0
223
- - vendor/ruby-build/share/ruby-build/truffleruby-22.3.1
224
- - vendor/ruby-build/share/ruby-build/truffleruby-23.0.0-preview1
225
- - vendor/ruby-build/share/ruby-build/truffleruby-dev
226
- - vendor/ruby-build/share/ruby-build/yjit-3.1.0-dev
227
- homepage: https://github.com/shopify/ruby-definitions
56
+ - rubies/3.0.0-pshopify9
57
+ - rubies/3.0.1-pshopify2
58
+ - rubies/3.0.2-pshopify3
59
+ - rubies/3.1.0-pshopify1
60
+ - rubies/3.1.1-pshopify2
61
+ - rubies/3.1.2-pshopify2
62
+ - rubies/3.1.3-pshopify1
63
+ - rubies/3.1.4-pshopify1
64
+ - rubies/3.2.0-pshopify2
65
+ - rubies/3.2.1-pshopify5
66
+ - rubies/3.2.2-pshopify3
67
+ - rubies/3.2.2-pshopify4
68
+ - rubies/yjit-3.1.0-dev
69
+ homepage: https://github.com/Shopify/ruby-definitions
228
70
  licenses:
229
71
  - MIT
230
72
  metadata:
231
- homepage_uri: https://github.com/shopify/ruby-definitions
232
- source_code_uri: https://github.com/shopify/ruby-definitions
73
+ homepage_uri: https://github.com/Shopify/ruby-definitions
74
+ source_code_uri: https://github.com/Shopify/ruby-definitions
233
75
  post_install_message:
234
76
  rdoc_options: []
235
77
  require_paths:
@@ -1,10 +0,0 @@
1
- # typed: strong
2
- # frozen_string_literal: true
3
-
4
- module ShopifyRubyDefinitions
5
- module RubyBuild
6
- extend T::Sig
7
-
8
- RUBY_BUILD_DIRECTORY = T.let(File.expand_path("../../../vendor/ruby-build", __FILE__), String)
9
- end
10
- end
data/sorbet/config DELETED
@@ -1,4 +0,0 @@
1
- --dir
2
- .
3
- --ignore=tmp/
4
- --ignore=vendor/
@@ -1,269 +0,0 @@
1
- # typed: strict
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This file was pulled from a central RBI files repository.
5
- # Please run `bin/tapioca annotations` to update it.
6
-
7
- module Rainbow
8
- # @shim: https://github.com/sickill/rainbow/blob/master/lib/rainbow.rb#L10-L12
9
- sig { returns(T::Boolean) }
10
- attr_accessor :enabled
11
-
12
- class Color
13
- sig { returns(Symbol) }
14
- attr_reader :ground
15
-
16
- sig { params(ground: Symbol, values: T.any([Integer], [Integer, Integer, Integer])).returns(Color) }
17
- def self.build(ground, values); end
18
-
19
- sig { params(hex: String).returns([Integer, Integer, Integer]) }
20
- def self.parse_hex_color(hex); end
21
-
22
- class Indexed < Rainbow::Color
23
- sig { returns(Integer) }
24
- attr_reader :num
25
-
26
- sig { params(ground: Symbol, num: Integer).void }
27
- def initialize(ground, num); end
28
-
29
- sig { returns(T::Array[Integer]) }
30
- def codes; end
31
- end
32
-
33
- class Named < Rainbow::Color::Indexed
34
- NAMES = T.let(nil, T::Hash[Symbol, Integer])
35
-
36
- sig { params(ground: Symbol, name: Symbol).void }
37
- def initialize(ground, name); end
38
-
39
- sig { returns(T::Array[Symbol]) }
40
- def self.color_names; end
41
-
42
- sig { returns(String) }
43
- def self.valid_names; end
44
- end
45
-
46
- class RGB < Rainbow::Color::Indexed
47
- sig { returns(Integer) }
48
- attr_reader :r, :g, :b
49
-
50
- sig { params(ground: Symbol, values: Integer).void }
51
- def initialize(ground, *values); end
52
-
53
- sig { returns(T::Array[Integer]) }
54
- def codes; end
55
-
56
- sig { params(value: Numeric).returns(Integer) }
57
- def self.to_ansi_domain(value); end
58
- end
59
-
60
- class X11Named < Rainbow::Color::RGB
61
- include Rainbow::X11ColorNames
62
-
63
- sig { returns(T::Array[Symbol]) }
64
- def self.color_names; end
65
-
66
- sig { returns(String) }
67
- def self.valid_names; end
68
-
69
- sig { params(ground: Symbol, name: Symbol).void }
70
- def initialize(ground, name); end
71
- end
72
- end
73
-
74
- sig { returns(Wrapper) }
75
- def self.global; end
76
-
77
- sig { returns(T::Boolean) }
78
- def self.enabled; end
79
-
80
- sig { params(value: T::Boolean).returns(T::Boolean) }
81
- def self.enabled=(value); end
82
-
83
- sig { params(string: String).returns(String) }
84
- def self.uncolor(string); end
85
-
86
- class NullPresenter < String
87
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
88
- def color(*values); end
89
-
90
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
91
- def foreground(*values); end
92
-
93
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
94
- def fg(*values); end
95
-
96
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
97
- def background(*values); end
98
-
99
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(NullPresenter) }
100
- def bg(*values); end
101
-
102
- sig { returns(NullPresenter) }
103
- def reset; end
104
-
105
- sig { returns(NullPresenter) }
106
- def bright; end
107
-
108
- sig { returns(NullPresenter) }
109
- def faint; end
110
-
111
- sig { returns(NullPresenter) }
112
- def italic; end
113
-
114
- sig { returns(NullPresenter) }
115
- def underline; end
116
-
117
- sig { returns(NullPresenter) }
118
- def blink; end
119
-
120
- sig { returns(NullPresenter) }
121
- def inverse; end
122
-
123
- sig { returns(NullPresenter) }
124
- def hide; end
125
-
126
- sig { returns(NullPresenter) }
127
- def cross_out; end
128
-
129
- sig { returns(NullPresenter) }
130
- def black; end
131
-
132
- sig { returns(NullPresenter) }
133
- def red; end
134
-
135
- sig { returns(NullPresenter) }
136
- def green; end
137
-
138
- sig { returns(NullPresenter) }
139
- def yellow; end
140
-
141
- sig { returns(NullPresenter) }
142
- def blue; end
143
-
144
- sig { returns(NullPresenter) }
145
- def magenta; end
146
-
147
- sig { returns(NullPresenter) }
148
- def cyan; end
149
-
150
- sig { returns(NullPresenter) }
151
- def white; end
152
-
153
- sig { returns(NullPresenter) }
154
- def bold; end
155
-
156
- sig { returns(NullPresenter) }
157
- def dark; end
158
-
159
- sig { returns(NullPresenter) }
160
- def strike; end
161
- end
162
-
163
- class Presenter < String
164
- TERM_EFFECTS = T.let(nil, T::Hash[Symbol, Integer])
165
-
166
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
167
- def color(*values); end
168
-
169
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
170
- def foreground(*values); end
171
-
172
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
173
- def fg(*values); end
174
-
175
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
176
- def background(*values); end
177
-
178
- sig { params(values: T.any([Integer], [Integer, Integer, Integer])).returns(Presenter) }
179
- def bg(*values); end
180
-
181
- sig { returns(Presenter) }
182
- def reset; end
183
-
184
- sig { returns(Presenter) }
185
- def bright; end
186
-
187
- sig { returns(Presenter) }
188
- def faint; end
189
-
190
- sig { returns(Presenter) }
191
- def italic; end
192
-
193
- sig { returns(Presenter) }
194
- def underline; end
195
-
196
- sig { returns(Presenter) }
197
- def blink; end
198
-
199
- sig { returns(Presenter) }
200
- def inverse; end
201
-
202
- sig { returns(Presenter) }
203
- def hide; end
204
-
205
- sig { returns(Presenter) }
206
- def cross_out; end
207
-
208
- sig { returns(Presenter) }
209
- def black; end
210
-
211
- sig { returns(Presenter) }
212
- def red; end
213
-
214
- sig { returns(Presenter) }
215
- def green; end
216
-
217
- sig { returns(Presenter) }
218
- def yellow; end
219
-
220
- sig { returns(Presenter) }
221
- def blue; end
222
-
223
- sig { returns(Presenter) }
224
- def magenta; end
225
-
226
- sig { returns(Presenter) }
227
- def cyan; end
228
-
229
- sig { returns(Presenter) }
230
- def white; end
231
-
232
- sig { returns(Presenter) }
233
- def bold; end
234
-
235
- sig { returns(Presenter) }
236
- def dark; end
237
-
238
- sig { returns(Presenter) }
239
- def strike; end
240
- end
241
-
242
- class StringUtils
243
- sig { params(string: String, codes: T::Array[Integer]).returns(String) }
244
- def self.wrap_with_sgr(string, codes); end
245
-
246
- sig { params(string: String).returns(String) }
247
- def self.uncolor(string); end
248
- end
249
-
250
- VERSION = T.let(nil, String)
251
-
252
- class Wrapper
253
- sig { returns(T::Boolean) }
254
- attr_accessor :enabled
255
-
256
- sig { params(enabled: T::Boolean).void }
257
- def initialize(enabled = true); end
258
-
259
- sig { params(string: String).returns(T.any(Rainbow::Presenter, Rainbow::NullPresenter)) }
260
- def wrap(string); end
261
- end
262
-
263
- module X11ColorNames
264
- NAMES = T.let(nil, T::Hash[Symbol, [Integer, Integer, Integer]])
265
- end
266
- end
267
-
268
- sig { params(string: String).returns(Rainbow::Presenter) }
269
- def Rainbow(string); end