orthoses-rails 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/examples/rails/Rakefile +125 -183
  3. data/examples/rails/config/database.yml +8 -0
  4. data/examples/rails/config/storage.yml +3 -0
  5. data/examples/rails/gemfiles/Gemfile_6_0 +16 -0
  6. data/examples/rails/gemfiles/Gemfile_6_0.lock +172 -0
  7. data/examples/rails/gemfiles/Gemfile_6_1 +15 -0
  8. data/examples/rails/gemfiles/Gemfile_6_1.lock +173 -0
  9. data/examples/rails/gemfiles/Gemfile_7_0 +15 -0
  10. data/examples/rails/gemfiles/Gemfile_7_0.lock +172 -0
  11. data/examples/rails/tasks/active_job.rake +95 -0
  12. data/examples/rails/tasks/active_model.rake +46 -0
  13. data/examples/rails/tasks/active_record.rake +83 -0
  14. data/examples/rails/tasks/active_storage.rake +94 -0
  15. data/examples/rails/tasks/active_support.rake +92 -0
  16. data/lib/orthoses/active_model.rb +0 -1
  17. data/lib/orthoses/active_record.rb +0 -1
  18. data/lib/orthoses/active_support/delegation.rb +6 -6
  19. data/lib/orthoses/active_support/time_with_zone.rb +21 -3
  20. data/lib/orthoses/active_support.rb +0 -2
  21. data/lib/orthoses/rails/version.rb +1 -1
  22. data/lib/orthoses/rails.rb +0 -1
  23. data/orthoses-rails.gemspec +1 -1
  24. metadata +18 -89
  25. data/examples/rails/known_sig/action_cable/connection/test_cookie_jar.rbs +0 -2
  26. data/examples/rails/known_sig/action_controller/metal.rbs +0 -4
  27. data/examples/rails/known_sig/action_dispatch/cookies/cookie_jar.rbs +0 -3
  28. data/examples/rails/known_sig/action_dispatch/response.rbs +0 -4
  29. data/examples/rails/patch/drb/drb_undumped.rbs +0 -2
  30. data/examples/rails/patch/drb.rbs +0 -2
  31. data/examples/rails/patch/erubi/engine.rbs +0 -4
  32. data/examples/rails/patch/erubi.rbs +0 -2
  33. data/examples/rails/patch/minitest/kernel.rbs +0 -44
  34. data/examples/rails/patch/minitest/minitest/abstract_reporter.rbs +0 -49
  35. data/examples/rails/patch/minitest/minitest/assertion.rbs +0 -16
  36. data/examples/rails/patch/minitest/minitest/assertions.rbs +0 -545
  37. data/examples/rails/patch/minitest/minitest/backtrace_filter.rbs +0 -16
  38. data/examples/rails/patch/minitest/minitest/bench_spec.rbs +0 -101
  39. data/examples/rails/patch/minitest/minitest/benchmark.rbs +0 -258
  40. data/examples/rails/patch/minitest/minitest/composite_reporter.rbs +0 -25
  41. data/examples/rails/patch/minitest/minitest/expectations.rbs +0 -21
  42. data/examples/rails/patch/minitest/minitest/guard.rbs +0 -64
  43. data/examples/rails/patch/minitest/minitest/mock.rbs +0 -60
  44. data/examples/rails/patch/minitest/minitest/parallel/executor.rbs +0 -42
  45. data/examples/rails/patch/minitest/minitest/parallel/test/class_methods.rbs +0 -6
  46. data/examples/rails/patch/minitest/minitest/parallel/test.rbs +0 -3
  47. data/examples/rails/patch/minitest/minitest/parallel.rbs +0 -2
  48. data/examples/rails/patch/minitest/minitest/pride_io.rbs +0 -54
  49. data/examples/rails/patch/minitest/minitest/pride_lol.rbs +0 -17
  50. data/examples/rails/patch/minitest/minitest/progress_reporter.rbs +0 -11
  51. data/examples/rails/patch/minitest/minitest/reportable.rbs +0 -51
  52. data/examples/rails/patch/minitest/minitest/reporter.rbs +0 -5
  53. data/examples/rails/patch/minitest/minitest/result.rbs +0 -28
  54. data/examples/rails/patch/minitest/minitest/runnable.rbs +0 -131
  55. data/examples/rails/patch/minitest/minitest/skip.rbs +0 -6
  56. data/examples/rails/patch/minitest/minitest/spec/dsl/instance_methods.rbs +0 -48
  57. data/examples/rails/patch/minitest/minitest/spec/dsl.rbs +0 -125
  58. data/examples/rails/patch/minitest/minitest/spec.rbs +0 -10
  59. data/examples/rails/patch/minitest/minitest/statistics_reporter.rbs +0 -76
  60. data/examples/rails/patch/minitest/minitest/summary_reporter.rbs +0 -26
  61. data/examples/rails/patch/minitest/minitest/test/lifecycle_hooks.rbs +0 -92
  62. data/examples/rails/patch/minitest/minitest/test.rbs +0 -76
  63. data/examples/rails/patch/minitest/minitest/unexpected_error.rbs +0 -10
  64. data/examples/rails/patch/minitest/minitest/unit/test_case.rbs +0 -3
  65. data/examples/rails/patch/minitest/minitest/unit.rbs +0 -5
  66. data/examples/rails/patch/minitest/minitest.rbs +0 -966
  67. data/examples/rails/patch/pg/simple_decoder.rbs +0 -4
  68. data/examples/rails/patch/pg.rbs +0 -2
  69. data/examples/rails/patch/qc/queue.rbs +0 -2
  70. data/examples/rails/patch/qc.rbs +0 -2
  71. data/examples/rails/patch/que/job.rbs +0 -2
  72. data/examples/rails/patch/que.rbs +0 -2
  73. data/examples/rails/patch/rack/cache/entity_store.rbs +0 -2
  74. data/examples/rails/patch/rack/cache/meta_store.rbs +0 -2
  75. data/examples/rails/patch/rack/cache.rbs +0 -2
  76. data/examples/rails/patch/rack/session/dalli.rbs +0 -2
  77. data/examples/rails/patch/rack/session.rbs +0 -2
  78. data/examples/rails/patch/rboc.rbs +0 -2
  79. data/examples/rails/patch/rdoc/generator/sdoc.rbs +0 -3
  80. data/examples/rails/patch/rdoc/generator.rbs +0 -2
  81. data/examples/rails/patch/rdoc/task.rbs +0 -2
  82. data/examples/rails/patch/ripper.rbs +0 -2
  83. data/examples/rails/patch/sidekiq/worker.rbs +0 -2
  84. data/examples/rails/patch/sidekiq.rbs +0 -2
  85. data/examples/rails/patch/sneakers/worker.rbs +0 -2
  86. data/examples/rails/patch/sneakers.rbs +0 -2
  87. data/examples/rails/patch/sucker_punch/job.rbs +0 -2
  88. data/examples/rails/patch/sucker_punch.rbs +0 -2
  89. data/examples/rails/patch/thor/actions/create_file.rbs +0 -2
  90. data/examples/rails/patch/thor/actions.rbs +0 -2
  91. data/examples/rails/patch/thor/error.rbs +0 -2
  92. data/examples/rails/patch/thor/group.rbs +0 -2
  93. data/examples/rails/patch/thor.rbs +0 -2
  94. data/lib/orthoses/active_model/known_sig/7.0/serialization.rbs +0 -4
  95. data/lib/orthoses/active_model/known_sig/7.0/validations.rbs +0 -4
  96. data/lib/orthoses/active_model/known_sig.rb +0 -21
  97. data/lib/orthoses/active_record/known_sig/6.0/result.rbs +0 -5
  98. data/lib/orthoses/active_record/known_sig/6.1/result.rbs +0 -5
  99. data/lib/orthoses/active_record/known_sig/7.0/encryption/context.rbs +0 -9
  100. data/lib/orthoses/active_record/known_sig/7.0/result.rbs +0 -5
  101. data/lib/orthoses/active_record/known_sig.rb +0 -21
  102. data/lib/orthoses/active_support/known_sig/7.0/active_support/callbacks/callback_chain.rbs +0 -9
  103. data/lib/orthoses/active_support/known_sig/7.0/active_support/hash_with_indifferent_access.rbs +0 -6
  104. data/lib/orthoses/active_support/known_sig/7.0/active_support/multibyte/chars.rbs +0 -7
  105. data/lib/orthoses/active_support/known_sig/7.0/hash_with_indifferent_access.rbs +0 -2
  106. data/lib/orthoses/active_support/known_sig/7.0/time.rbs +0 -68
  107. data/lib/orthoses/active_support/known_sig.rb +0 -21
  108. data/lib/orthoses/rails/known_sig_helper.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f98262e6c8d3c7f75039f41d1a14b991de17171702663d111b7dc6e9d8cac2bb
4
- data.tar.gz: 28db8b6a6bdee762946bb2c7287233804543a1e5f7f735e56ac1c2d8875dc457
3
+ metadata.gz: bf5adf50ae35b548291c69ba03b7eb6086e1214c863b83c85de0af3c81de3b17
4
+ data.tar.gz: a162e4dc8583a4a738ac38b41ee7fb65db67349e08b2ead5f8bfc41bc3b057c1
5
5
  SHA512:
6
- metadata.gz: 13f1a9891b7a526aeed309854ed14bf6ee3e2b712ede4e7d0c63c33f8358f641061b6e81ad12773eff3e91043051f7ab16bb8aa349fb0c3ff38e4a7ce6b2654c
7
- data.tar.gz: f3dd8dfea66c1b0477a9d17f736161e34b3a7a7c4fdaef3fc3948f84c60a6ac79fcfe1678392b8ca32746db4dc1b8f43a66e25b6d0dd4a6904440c1d0bc70cc0
6
+ metadata.gz: 8c5494faf887bb600e081967321ec6c25e24610206de9014323f13e6b43147711eb05fd1d670f815adca2739f8f80988823a5c7b06adcc193092144b7aafb0d3
7
+ data.tar.gz: 119911fd1cd01d7fc059fc3c23f989573771126a5ca4aa4a7091a7ca604a0a6d5d86726eda48312969695a30ec70498dd2af060231abca09aecb56212cfa2b68
@@ -1,49 +1,26 @@
1
- REPO_ROOT = "#{File.dirname(__FILE__)}/src"
2
- $:.unshift("#{REPO_ROOT}/actioncable/lib")
3
- $:.unshift("#{REPO_ROOT}/actionmailbox/lib")
4
- $:.unshift("#{REPO_ROOT}/actionmailer/lib")
5
- $:.unshift("#{REPO_ROOT}/actionpack/lib")
6
- $:.unshift("#{REPO_ROOT}/actiontext/lib")
7
- $:.unshift("#{REPO_ROOT}/actionview/lib")
8
- $:.unshift("#{REPO_ROOT}/activejob/lib")
9
- $:.unshift("#{REPO_ROOT}/activemodel/lib")
10
- $:.unshift("#{REPO_ROOT}/activerecord/lib")
11
- $:.unshift("#{REPO_ROOT}/activestorage/lib")
12
- $:.unshift("#{REPO_ROOT}/activesupport/lib")
13
- $:.unshift("#{REPO_ROOT}/railties/lib")
14
-
15
- require 'orthoses'
16
- require 'orthoses-rails'
17
- require 'openssl'
18
- require 'cgi'
19
- require 'uri'
20
-
21
- Orthoses.logger.level = :error
22
-
23
- Orthoses::Utils.unautoload!
24
-
25
- def run_child_process
26
- pid = fork do
27
- yield
28
- end
29
- Process.wait(pid)
30
- end
1
+ ## run `$ rake`
31
2
 
32
3
  def switch_branch(name)
33
- cd "src" do
4
+ cd "_src" do
34
5
  sh "git switch #{name}"
35
6
  end
36
7
  end
37
8
 
38
9
  def generate(out_dir, version)
10
+ require 'orthoses'
11
+ require 'orthoses-rails'
12
+ require 'openssl'
13
+ require 'cgi'
14
+ require 'uri'
15
+
16
+ Orthoses.logger.level = :error
17
+
39
18
  loader = -> () {
40
- # require "rails/all"
41
- require "rails/app_updater"
42
19
  require "active_support/all"
43
20
  require "active_record"
44
21
  require "active_job"
45
22
  require "active_model"
46
- require "active_storage"
23
+ require "active_storage/engine"
47
24
  require "action_dispatch"
48
25
  require "action_mailbox"
49
26
  require "action_mailer"
@@ -70,12 +47,21 @@ def generate(out_dir, version)
70
47
  v = rails_mod.respond_to?(:version) ? rails_mod.version : nil
71
48
  puts "loaded #{rails_mod}: v#{v}"
72
49
  end
73
- Orthoses::Utils.unautoload!
50
+ eval(<<~RUBY)
51
+ module Dummy
52
+ class Application < Rails::Application
53
+ config.load_defaults #{version.to_s}
54
+ config.active_storage.service = :local
55
+ end
56
+ end
57
+ RUBY
58
+ ENV['RAILS_ENV'] = 'development'
59
+ Rails.application.initialize!
74
60
  }
75
61
  Orthoses::Builder.new do
76
62
  use Orthoses::CreateFileByName,
77
63
  base_dir: "#{out_dir}/#{version}",
78
- header: "# !!! GENERATED CODE !!!"
64
+ header: "# !!! GENERATED CODE !!!\n# Please see generators/rails-generator"
79
65
  use Orthoses::AvoidRecursiveAncestorError
80
66
  use Orthoses::Filter,
81
67
  if: -> (name, content) {
@@ -105,14 +91,13 @@ def generate(out_dir, version)
105
91
  use middleware, **args
106
92
  end
107
93
  use Orthoses::ActiveRecord::QueryMethods
108
- use Orthoses::ActiveRecord::KnownSig
109
- use Orthoses::ActiveModel::KnownSig
110
- use Orthoses::ObjectSpaceAll
111
94
  use Orthoses::LoadRBS,
112
- paths: Dir.glob('patch/**/*.rbs')
95
+ paths: -> { Orthoses::PathHelper.best_version_paths(::ActiveRecord::VERSION::STRING, "known_sig/activerecord") }
96
+ use Orthoses::LoadRBS,
97
+ paths: -> { Orthoses::PathHelper.best_version_paths(::ActiveModel::VERSION::STRING, "known_sig/activemodel") }
113
98
  use Orthoses::LoadRBS,
114
- paths: Dir.glob('known_sig/**/*.rbs')
115
- # require in method
99
+ paths: -> { Orthoses::PathHelper.best_version_paths(::ActiveSupport::VERSION::STRING, "known_sig/activesupport") }
100
+ # # require in method
116
101
  use Orthoses::Tap do |store|
117
102
  store.delete("DummyERB")
118
103
  store.delete("DummyCompiler")
@@ -202,172 +187,129 @@ def generate(out_dir, version)
202
187
  mod != Enumerable # TODO
203
188
  }
204
189
  use Orthoses::RBSPrototypeRB,
205
- paths: Dir.glob('src/{railties,action{cable,mailbox,mailer,pack,text,view},active{job,model,record,storage,support}}/lib/**/*.rb'),
190
+ paths: Dir.glob('_src/{railties,action{cable,mailbox,mailer,pack,text,view},active{job,model,record,storage,support}}/{app,lib}/**/*.rb'),
206
191
  constant_filter: -> (member) { false },
207
- mixin_filter: -> (member) { false }
192
+ mixin_filter: -> (member) { false },
193
+ attribute_filter: -> (member) { false }
194
+ use Orthoses::Autoload
208
195
  run loader
209
196
  end.call
210
197
 
211
198
  # $ cat out/7.0/**/*.rbs | wc
212
- # 68367 333370 2555378
199
+ # 69763 339342 2606899
200
+ end
201
+
202
+ def generate_test_script(gem:, version:, export:, stdlib_dependencies:, gem_dependencies:, rails_dependencies:)
203
+ Pathname(export).join('_scripts').tap(&:mkdir).join('test').write(<<~SHELL)
204
+ #!/usr/bin/env bash
205
+
206
+ # !!! GENERATED CODE !!!
207
+ # Please see generators/rails-generator
208
+
209
+ # set -eou => Exit command with non-zero status code, Output logs of every command executed, Treat unset variables as an error when substituting.
210
+ set -eou pipefail
211
+ # Internal Field Separator - Linux shell variable
212
+ IFS=$'\n\t'
213
+ # Print shell input lines
214
+ set -v
215
+
216
+ # Set RBS_DIR variable to change directory to execute type checks using `steep check`
217
+ RBS_DIR=$(cd $(dirname $0)/..; pwd)
218
+ # Set REPO_DIR variable to validate RBS files added to the corresponding folder
219
+ REPO_DIR=$(cd $(dirname $0)/../../..; pwd)
220
+ # Validate RBS files, using the bundler environment present
221
+ bundle exec rbs --repo=$REPO_DIR #{stdlib_dependencies.map{"-r #{_1}"}.join(" ")} \\
222
+ #{gem_dependencies.map{"-r #{_1}"}.join(" ")} \\
223
+ -r #{gem} validate --silent
224
+
225
+ cd ${RBS_DIR}/_test
226
+ # Run type checks
227
+ bundle exec steep check
228
+ SHELL
229
+
230
+ sh "chmod +x #{Pathname(export).join('_scripts').join('test')}"
231
+
232
+ Pathname(export).join('_test').tap(&:mkdir).join('Steepfile').write(<<~RUBY)
233
+ # !!! GENERATED CODE !!!
234
+ # Please see generators/rails-generator
235
+
236
+ D = Steep::Diagnostic
237
+
238
+ target :test do
239
+ signature "."
240
+ check "."
241
+
242
+ repo_path "../../../"
243
+
244
+ #{stdlib_dependencies.map{" library \"#{_1}\""}.join("\n")}
245
+ #{gem_dependencies.map{" library \"#{_1}\""}.join("\n")}
246
+
247
+ library "#{gem}:#{version}"
248
+
249
+ configure_code_diagnostics(D::Ruby.all_error)
250
+ end
251
+ RUBY
213
252
  end
214
253
 
215
- versions = %w[
254
+ VERSIONS = %w[
216
255
  6.0
217
256
  6.1
218
257
  7.0
219
258
  ]
259
+ Object.private_constant :VERSIONS
260
+
261
+ GEMS = %w[
262
+ active_support
263
+ active_model
264
+ active_record
265
+ active_job
266
+ active_storage
267
+ ]
268
+ Object.private_constant :GEMS
220
269
 
221
270
  task :clean do
222
271
  FileUtils.rm_rf("out")
223
- FileUtils.rm_rf("export")
224
272
  end
225
273
 
226
- namespace :generate do
227
- versions.each do |version|
228
- task version do
229
- switch_branch("#{version.tr('.', '-')}-stable")
230
- run_child_process { generate("out", version) }
274
+ namespace :bundle do
275
+ task :update do
276
+ VERSIONS.each do |version|
277
+ sh "BUNDLE_GEMFILE=gemfiles/Gemfile_#{version.tr('.', '_')} bundle update"
231
278
  end
232
279
  end
233
-
234
- desc "generate all library"
235
- task :all => versions
236
280
  end
237
281
 
238
- namespace :export do
239
- versions.each do |version|
240
- task version do |t|
241
- export = "export/activesupport/#{version}"
242
-
243
- sh "rm -fr #{export}"
244
- sh "mkdir -p #{export}"
245
-
246
- # minimum
247
- sh "cp -a out/#{version}/active_support.rbs #{export}"
248
- sh "cp -a out/#{version}/active_support #{export}"
249
- sh "rm #{export}/active_support/railtie.rbs"
250
-
251
- # core_ext
252
- %w[
253
- array benchmark big_decimal class date date_and_time date_time digest
254
- enumerable file hash integer kernel load_error marshal module name_error numeric
255
- object pathname range regexp securerandom string symbol time uri
256
- ].each do |lib|
257
- out = "out/#{version}/#{lib}"
258
- sh "cp -a #{out} #{export}" if File.exist?(out)
259
- sh "cp -a #{out}.rbs #{export}" if File.exist?("#{out}.rbs")
260
- end
261
-
262
- Pathname(export).join("EXTERNAL_TODO.rbs").write(<<~RBS)
263
- module Minitest
264
- class Test
265
- def name: () -> untyped
266
- def assert_raises: () -> untyped
267
- def refute_empty: () -> untyped
268
- def refute_equal: () -> untyped
269
- def refute_in_delta: () -> untyped
270
- def refute_in_epsilon: () -> untyped
271
- def refute_includes: () -> untyped
272
- def refute_instance_of: () -> untyped
273
- def refute_kind_of: () -> untyped
274
- def refute_match: () -> untyped
275
- def refute_nil: () -> untyped
276
- def refute_operator: () -> untyped
277
- def refute_predicate: () -> untyped
278
- def refute_respond_to: () -> untyped
279
- def refute_same: () -> untyped
280
- end
281
- end
282
- module DRb
283
- module DRbUndumped
284
- end
285
- end
286
- module Concurrent
287
- class Map
288
- end
289
- end
290
- RBS
291
-
292
- case version
293
- when "6.0", "6.1"
294
- sh "rm -fr #{export}/uri"
295
- when "7.0"
296
- # deprecated
297
- sh "rm -fr #{export}/uri{,.rbs}"
298
- end
299
-
300
- Pathname(export).join('_scripts').tap(&:mkdir).join('test').write(<<~'RUBY')
301
- #!/usr/bin/env bash
302
-
303
- # set -eou => Exit command with non-zero status code, Output logs of every command executed, Treat unset variables as an error when substituting.
304
- set -eou pipefail
305
- # Internal Field Separator - Linux shell variable
306
- IFS=$'\n\t'
307
- # Print shell input lines
308
- set -v
309
-
310
- # Set RBS_DIR variable to change directory to execute type checks using `steep check`
311
- RBS_DIR=$(cd $(dirname $0)/..; pwd)
312
- # Set REPO_DIR variable to validate RBS files added to the corresponding folder
313
- REPO_DIR=$(cd $(dirname $0)/../../..; pwd)
314
- # Validate RBS files, using the bundler environment present
315
- bundle exec rbs --repo=$REPO_DIR \
316
- -r digest -r benchmark -r time -r monitor -r date -r singleton \
317
- -r logger -r mutex_m -r pathname -r json \
318
- -r nokogiri \
319
- -r activesupport validate --silent
320
-
321
- cd ${RBS_DIR}/_test
322
- # Run type checks
323
- bundle exec steep check
324
- RUBY
325
- sh "chmod +x #{Pathname(export).join('_scripts').join('test')}"
326
- Pathname(export).join('_test').tap(&:mkdir).join('Steepfile').write(<<~RUBY)
327
- D = Steep::Diagnostic
328
-
329
- target :test do
330
- signature "."
331
- check "."
332
-
333
- repo_path "../../../"
334
-
335
- library "benchmark"
336
- library "date"
337
- library "digest"
338
- library "json"
339
- library "logger"
340
- library "monitor"
341
- library "mutex_m"
342
- library "pathname"
343
- library "singleton"
344
- library "time"
345
-
346
- library "nokogiri"
347
-
348
- library "activesupport:#{version}"
349
-
350
- configure_code_diagnostics(D::Ruby.all_error)
351
- end
352
- RUBY
353
- Pathname(export).join('_test').join('test.rb').write(<<~'RUBY')
354
- require 'active_support/all'
355
-
356
- # Test ActiveSupport::NumericWithFormat
357
- 42.to_s
358
- 42.to_s(:phone)
359
- RUBY
282
+ VERSIONS.each do |version|
283
+ namespace version do
284
+ desc "run all version=#{version}"
285
+ task :all => [
286
+ "#{version}:generate",
287
+ *(GEMS.map{"#{version}:#{_1}:export"}),
288
+ # *(GEMS.map{"#{version}:#{_1}:validate"}),
289
+ # *(GEMS.map{"#{version}:#{_1}:install"})
290
+ ]
291
+
292
+ desc "generate version=#{version}"
293
+ task :generate do |t|
294
+ gemfile = File.expand_path("gemfiles/Gemfile_#{version.tr('.', '_')}")
295
+ sh "BUNDLE_GEMFILE=#{gemfile} bundle install"
296
+ sh "BUNDLE_GEMFILE=#{gemfile} bundle exec rake #{t.name}_exec"
297
+ end
360
298
 
361
- sh "rbs --collection ../../rbs_collection.yaml -I #{export} validate --silent"
299
+ task :generate_exec do
300
+ switch_branch("#{version.tr('.', '-')}-stable")
301
+ generate("out", version)
362
302
  end
363
303
  end
364
-
365
- desc "export all library"
366
- task :all => versions
367
304
  end
368
305
 
306
+ load 'tasks/active_job.rake'
307
+ load 'tasks/active_model.rake'
308
+ load 'tasks/active_record.rake'
309
+ load 'tasks/active_storage.rake'
310
+ load 'tasks/active_support.rake'
311
+
369
312
  task default: [
370
313
  :clean,
371
- 'generate:all',
372
- 'export:all',
314
+ *(VERSIONS.map {"#{_1}:all"})
373
315
  ]
@@ -0,0 +1,8 @@
1
+ development:
2
+ primary: &primary
3
+ adapter: sqlite3
4
+ pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
5
+ timeout: 5000
6
+ database: ':memory:'
7
+ replica:
8
+ <<: *primary
@@ -0,0 +1,3 @@
1
+ local:
2
+ service: Disk
3
+ root: <%= Rails.root.join("storage") %>
@@ -0,0 +1,16 @@
1
+ source "https://rubygems.org"
2
+
3
+ ruby "~> 3.1.0"
4
+
5
+ gemspec path: '../../../'
6
+
7
+ gem "rails", ">= 6.0", "< 6.1"
8
+ gem "sqlite3"
9
+ # gem "orthoses", path: "../../../../orthoses"
10
+
11
+ if RUBY_VERSION >= "3.1"
12
+ gem "net-smtp", require: false
13
+ gem "net-imap", require: false
14
+ gem "net-pop", require: false
15
+ gem "psych", "~> 3"
16
+ end
@@ -0,0 +1,172 @@
1
+ PATH
2
+ remote: ../../..
3
+ specs:
4
+ orthoses-rails (0.4.0)
5
+ orthoses (>= 0.10)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actioncable (6.0.5)
11
+ actionpack (= 6.0.5)
12
+ nio4r (~> 2.0)
13
+ websocket-driver (>= 0.6.1)
14
+ actionmailbox (6.0.5)
15
+ actionpack (= 6.0.5)
16
+ activejob (= 6.0.5)
17
+ activerecord (= 6.0.5)
18
+ activestorage (= 6.0.5)
19
+ activesupport (= 6.0.5)
20
+ mail (>= 2.7.1)
21
+ actionmailer (6.0.5)
22
+ actionpack (= 6.0.5)
23
+ actionview (= 6.0.5)
24
+ activejob (= 6.0.5)
25
+ mail (~> 2.5, >= 2.5.4)
26
+ rails-dom-testing (~> 2.0)
27
+ actionpack (6.0.5)
28
+ actionview (= 6.0.5)
29
+ activesupport (= 6.0.5)
30
+ rack (~> 2.0, >= 2.0.8)
31
+ rack-test (>= 0.6.3)
32
+ rails-dom-testing (~> 2.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
34
+ actiontext (6.0.5)
35
+ actionpack (= 6.0.5)
36
+ activerecord (= 6.0.5)
37
+ activestorage (= 6.0.5)
38
+ activesupport (= 6.0.5)
39
+ nokogiri (>= 1.8.5)
40
+ actionview (6.0.5)
41
+ activesupport (= 6.0.5)
42
+ builder (~> 3.1)
43
+ erubi (~> 1.4)
44
+ rails-dom-testing (~> 2.0)
45
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
46
+ activejob (6.0.5)
47
+ activesupport (= 6.0.5)
48
+ globalid (>= 0.3.6)
49
+ activemodel (6.0.5)
50
+ activesupport (= 6.0.5)
51
+ activerecord (6.0.5)
52
+ activemodel (= 6.0.5)
53
+ activesupport (= 6.0.5)
54
+ activestorage (6.0.5)
55
+ actionpack (= 6.0.5)
56
+ activejob (= 6.0.5)
57
+ activerecord (= 6.0.5)
58
+ marcel (~> 1.0)
59
+ activesupport (6.0.5)
60
+ concurrent-ruby (~> 1.0, >= 1.0.2)
61
+ i18n (>= 0.7, < 2)
62
+ minitest (~> 5.1)
63
+ tzinfo (~> 1.1)
64
+ zeitwerk (~> 2.2, >= 2.2.2)
65
+ builder (3.2.4)
66
+ concurrent-ruby (1.1.10)
67
+ crass (1.0.6)
68
+ digest (3.1.0)
69
+ erubi (1.10.0)
70
+ globalid (1.0.0)
71
+ activesupport (>= 5.0)
72
+ i18n (1.10.0)
73
+ concurrent-ruby (~> 1.0)
74
+ loofah (2.18.0)
75
+ crass (~> 1.0.2)
76
+ nokogiri (>= 1.5.9)
77
+ mail (2.7.1)
78
+ mini_mime (>= 0.1.1)
79
+ marcel (1.0.2)
80
+ method_source (1.0.0)
81
+ mini_mime (1.1.2)
82
+ mini_portile2 (2.8.0)
83
+ minitest (5.16.1)
84
+ net-imap (0.2.3)
85
+ digest
86
+ net-protocol
87
+ strscan
88
+ net-pop (0.1.1)
89
+ digest
90
+ net-protocol
91
+ timeout
92
+ net-protocol (0.1.3)
93
+ timeout
94
+ net-smtp (0.3.1)
95
+ digest
96
+ net-protocol
97
+ timeout
98
+ nio4r (2.5.8)
99
+ nokogiri (1.13.6)
100
+ mini_portile2 (~> 2.8.0)
101
+ racc (~> 1.4)
102
+ orthoses (0.10.0)
103
+ rbs (~> 2.0)
104
+ psych (3.3.2)
105
+ racc (1.6.0)
106
+ rack (2.2.3.1)
107
+ rack-test (2.0.0)
108
+ rack (>= 1.3)
109
+ rails (6.0.5)
110
+ actioncable (= 6.0.5)
111
+ actionmailbox (= 6.0.5)
112
+ actionmailer (= 6.0.5)
113
+ actionpack (= 6.0.5)
114
+ actiontext (= 6.0.5)
115
+ actionview (= 6.0.5)
116
+ activejob (= 6.0.5)
117
+ activemodel (= 6.0.5)
118
+ activerecord (= 6.0.5)
119
+ activestorage (= 6.0.5)
120
+ activesupport (= 6.0.5)
121
+ bundler (>= 1.3.0)
122
+ railties (= 6.0.5)
123
+ sprockets-rails (>= 2.0.0)
124
+ rails-dom-testing (2.0.3)
125
+ activesupport (>= 4.2.0)
126
+ nokogiri (>= 1.6)
127
+ rails-html-sanitizer (1.4.3)
128
+ loofah (~> 2.3)
129
+ railties (6.0.5)
130
+ actionpack (= 6.0.5)
131
+ activesupport (= 6.0.5)
132
+ method_source
133
+ rake (>= 0.8.7)
134
+ thor (>= 0.20.3, < 2.0)
135
+ rake (13.0.6)
136
+ rbs (2.6.0)
137
+ sprockets (4.1.0)
138
+ concurrent-ruby (~> 1.0)
139
+ rack (> 1, < 3)
140
+ sprockets-rails (3.4.2)
141
+ actionpack (>= 5.2)
142
+ activesupport (>= 5.2)
143
+ sprockets (>= 3.0.0)
144
+ sqlite3 (1.4.4)
145
+ strscan (3.0.3)
146
+ thor (1.2.1)
147
+ thread_safe (0.3.6)
148
+ timeout (0.3.0)
149
+ tzinfo (1.2.9)
150
+ thread_safe (~> 0.1)
151
+ websocket-driver (0.7.5)
152
+ websocket-extensions (>= 0.1.0)
153
+ websocket-extensions (0.1.5)
154
+ zeitwerk (2.6.0)
155
+
156
+ PLATFORMS
157
+ ruby
158
+
159
+ DEPENDENCIES
160
+ net-imap
161
+ net-pop
162
+ net-smtp
163
+ orthoses-rails!
164
+ psych (~> 3)
165
+ rails (>= 6.0, < 6.1)
166
+ sqlite3
167
+
168
+ RUBY VERSION
169
+ ruby 3.1.1p18
170
+
171
+ BUNDLED WITH
172
+ 2.3.9
@@ -0,0 +1,15 @@
1
+ source "https://rubygems.org"
2
+
3
+ ruby "~> 3.1.0"
4
+
5
+ gemspec path: '../../../'
6
+
7
+ gem "rails", ">= 6.1", "< 7"
8
+ gem "sqlite3"
9
+ # gem "orthoses", path: "../../../../orthoses"
10
+
11
+ if RUBY_VERSION >= "3.1"
12
+ gem "net-smtp", require: false
13
+ gem "net-imap", require: false
14
+ gem "net-pop", require: false
15
+ end