ts_schema 0.1.1 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/lib/generators/generate_generator.rb +17 -0
- data/lib/generators/install_generator.rb +1 -4
- data/lib/generators/templates/ts_schema.rb +27 -0
- data/lib/tasks/ts_schema_tasks.rake +11 -5
- data/lib/ts_schema/configuration.rb +1 -0
- data/lib/ts_schema/conversion_table.yml +1 -1
- data/lib/ts_schema/schema_generator.rb +15 -14
- data/lib/ts_schema/version.rb +1 -1
- data/lib/ts_schema.rb +8 -1
- metadata +2 -63
- data/.gitignore +0 -9
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -160
- data/bin/test +0 -5
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/schema.d.ts +0 -71
- data/test/dummy/app/assets/stylesheets/application.css +0 -1
- data/test/dummy/app/controllers/application_controller.rb +0 -2
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/frontend/types/schema.d.ts +0 -71
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/jobs/application_job.rb +0 -7
- data/test/dummy/app/models/application_record.rb +0 -3
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/models/example.rb +0 -15
- data/test/dummy/app/models/five.rb +0 -3
- data/test/dummy/app/models/four.rb +0 -4
- data/test/dummy/app/models/one.rb +0 -4
- data/test/dummy/app/models/three.rb +0 -4
- data/test/dummy/app/models/two.rb +0 -3
- data/test/dummy/app/views/layouts/application.html.erb +0 -15
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -33
- data/test/dummy/config/application.rb +0 -41
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -86
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -63
- data/test/dummy/config/environments/production.rb +0 -76
- data/test/dummy/config/environments/test.rb +0 -53
- data/test/dummy/config/initializers/config/initializers/ts_schema.rb +0 -30
- data/test/dummy/config/initializers/content_security_policy.rb +0 -26
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -8
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/permissions_policy.rb +0 -11
- data/test/dummy/config/locales/en.yml +0 -33
- data/test/dummy/config/puma.rb +0 -43
- data/test/dummy/config/routes.rb +0 -6
- data/test/dummy/config/storage.yml +0 -34
- data/test/dummy/config.ru +0 -6
- data/test/dummy/db/migrate/20220401195333_create_examples.rb +0 -23
- data/test/dummy/db/migrate/20220402131712_create_ones.rb +0 -9
- data/test/dummy/db/migrate/20220402131955_create_twos.rb +0 -9
- data/test/dummy/db/migrate/20220402132415_create_threes.rb +0 -7
- data/test/dummy/db/migrate/20220402132543_create_fours.rb +0 -10
- data/test/dummy/db/migrate/20220402132906_create_fives.rb +0 -12
- data/test/dummy/db/schema.rb +0 -81
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/install_generator_test.rb +0 -13
- data/test/test_helper.rb +0 -18
- data/test/tmp/config/initializers/ts_schema.rb +0 -30
- data/test/ts_schema_test.rb +0 -26
- data/ts_schema.gemspec +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5d8f05efa9ac980177891e855cb0efc08e322b9020d5433b6106c7e32769ca4
|
4
|
+
data.tar.gz: be25c5bf7459c2fb2ed72f9d4aaf5fbc1af3d164feaabd4779ff4a2ec6d17da1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040e9d42b416b74485b00c6c31da518a958b1d5e76436e336087589b7a92858750bbdf23a5176dde746242c8bd23a44a952858afdfbd84b25a4b585e81434060
|
7
|
+
data.tar.gz: 51dbdfa59ebab1e83e371881df092a68ce871c5d46ab3a68665211f16d3456c24e70667cb01984a745a248fac1209cee465d6c654719135181573afa0cba0843
|
data/Rakefile
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'rails/generators'
|
4
|
+
require 'rails/generators/base'
|
5
|
+
|
6
|
+
module TsSchema
|
7
|
+
module Generators
|
8
|
+
class GenerateGenerator < Rails::Generators::Base
|
9
|
+
|
10
|
+
desc "Generates a schema.d.ts file"
|
11
|
+
|
12
|
+
def generate_schema
|
13
|
+
create_file TsSchema.configuration.output, TsSchema.generate
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'rails/generators'
|
3
4
|
require 'rails/generators/base'
|
4
5
|
|
5
6
|
module TsSchema
|
@@ -12,10 +13,6 @@ module TsSchema
|
|
12
13
|
def copy_initializer
|
13
14
|
template "ts_schema.rb", "config/initializers/ts_schema.rb"
|
14
15
|
end
|
15
|
-
|
16
|
-
# def show_readme
|
17
|
-
# readme "README" if behavior == :invoke
|
18
|
-
# end
|
19
16
|
end
|
20
17
|
end
|
21
18
|
end
|
@@ -9,6 +9,28 @@ TsSchema.setup do |config|
|
|
9
9
|
# config.auto_generate = true
|
10
10
|
|
11
11
|
# Add custom type mappings or overrides
|
12
|
+
#
|
13
|
+
# Default type mappings:
|
14
|
+
#
|
15
|
+
# string: string
|
16
|
+
# text: string
|
17
|
+
# integer: number
|
18
|
+
# enum: number
|
19
|
+
# bigint: number
|
20
|
+
# float: number
|
21
|
+
# decimal: number
|
22
|
+
# json: Record<string, any>
|
23
|
+
# jsonb: Record<string, any>
|
24
|
+
# binary: string
|
25
|
+
# boolean: boolean
|
26
|
+
# date: string
|
27
|
+
# datetime: string
|
28
|
+
# timestamp: string
|
29
|
+
# datetime_with_timezone: string
|
30
|
+
# inet: string
|
31
|
+
# cidr: string
|
32
|
+
# macaddr: string
|
33
|
+
#
|
12
34
|
# config.custom_types = {
|
13
35
|
#
|
14
36
|
# }
|
@@ -19,6 +41,11 @@ TsSchema.setup do |config|
|
|
19
41
|
# Whether to generate types for associations
|
20
42
|
# config.include_associated = true
|
21
43
|
|
44
|
+
# Additional models to map which don't have a model file
|
45
|
+
# config.additional_models = [
|
46
|
+
#
|
47
|
+
# ]
|
48
|
+
|
22
49
|
# Namespace
|
23
50
|
# config.namespace = :schema
|
24
51
|
|
@@ -1,24 +1,30 @@
|
|
1
|
+
require "rake"
|
2
|
+
|
1
3
|
namespace :ts_schema do
|
2
4
|
desc "Generates a schema file in the default javascripts location, or the location specified in the ts_config initializer options"
|
3
5
|
task :generate do
|
4
|
-
TsSchema.
|
6
|
+
TsSchema.output_file
|
5
7
|
end
|
6
8
|
end
|
7
9
|
|
8
10
|
namespace :db do
|
11
|
+
def auto_generate_and_save_file
|
12
|
+
TsSchema.output_file if TsSchema.configuration.auto_generate
|
13
|
+
end
|
14
|
+
|
9
15
|
task migrate: :environment do
|
10
|
-
|
16
|
+
auto_generate_and_save_file
|
11
17
|
end
|
12
18
|
|
13
19
|
task rollback: :environment do
|
14
|
-
|
20
|
+
auto_generate_and_save_file
|
15
21
|
end
|
16
22
|
|
17
23
|
task reset: :environment do
|
18
|
-
|
24
|
+
auto_generate_and_save_file
|
19
25
|
end
|
20
26
|
|
21
27
|
task setup: :environment do
|
22
|
-
|
28
|
+
auto_generate_and_save_file
|
23
29
|
end
|
24
30
|
end
|
@@ -5,12 +5,24 @@ module TsSchema
|
|
5
5
|
def initialize
|
6
6
|
Rails.application.eager_load!
|
7
7
|
@models = ApplicationRecord.send(:subclasses)
|
8
|
+
@models << TsSchema.configuration.additional_models unless TsSchema.configuration.additional_models.empty?
|
8
9
|
@types = TsSchema.configuration.types.merge(TsSchema.configuration.custom_types || {})
|
9
10
|
end
|
10
11
|
|
11
12
|
def generate
|
12
|
-
|
13
|
-
|
13
|
+
generate_typescript
|
14
|
+
end
|
15
|
+
|
16
|
+
def output_file
|
17
|
+
path = TsSchema.configuration.output
|
18
|
+
FileUtils.mkdir_p(File.dirname(path))
|
19
|
+
|
20
|
+
content = generate
|
21
|
+
return if File.exist?(path) && File.read(path) == content
|
22
|
+
|
23
|
+
File.open(path, 'w') do |f|
|
24
|
+
f.write content
|
25
|
+
end
|
14
26
|
end
|
15
27
|
|
16
28
|
private
|
@@ -22,7 +34,7 @@ module TsSchema
|
|
22
34
|
columns.concat(map_associations(model)) if TsSchema.configuration.include_associated
|
23
35
|
|
24
36
|
type_template += <<~TYPESCRIPT
|
25
|
-
interface #{model.model_name.
|
37
|
+
interface #{model.model_name.param_key.camelize} {
|
26
38
|
#{columns.map { |column| "#{indent_as_str}#{column_name_cased(column[:name])}: #{column[:ts_type]};" }.join("\n")}
|
27
39
|
}\n
|
28
40
|
TYPESCRIPT
|
@@ -77,17 +89,6 @@ module TsSchema
|
|
77
89
|
end
|
78
90
|
end
|
79
91
|
|
80
|
-
def output_file(content)
|
81
|
-
path = TsSchema.configuration.output
|
82
|
-
FileUtils.mkdir_p(File.dirname(path))
|
83
|
-
|
84
|
-
return if File.exist?(path) && File.read(path) == content
|
85
|
-
|
86
|
-
File.open(path, 'w') do |f|
|
87
|
-
f.write content
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
92
|
def indent_as_str
|
92
93
|
case TsSchema.configuration.indent.to_sym
|
93
94
|
when :space || :spaces
|
data/lib/ts_schema/version.rb
CHANGED
data/lib/ts_schema.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ts_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Avram Walden
|
@@ -37,13 +37,10 @@ executables: []
|
|
37
37
|
extensions: []
|
38
38
|
extra_rdoc_files: []
|
39
39
|
files:
|
40
|
-
- ".gitignore"
|
41
|
-
- Gemfile
|
42
|
-
- Gemfile.lock
|
43
40
|
- MIT-LICENSE
|
44
41
|
- README.md
|
45
42
|
- Rakefile
|
46
|
-
-
|
43
|
+
- lib/generators/generate_generator.rb
|
47
44
|
- lib/generators/install_generator.rb
|
48
45
|
- lib/generators/templates/ts_schema.rb
|
49
46
|
- lib/tasks/ts_schema_tasks.rake
|
@@ -53,64 +50,6 @@ files:
|
|
53
50
|
- lib/ts_schema/railtie.rb
|
54
51
|
- lib/ts_schema/schema_generator.rb
|
55
52
|
- lib/ts_schema/version.rb
|
56
|
-
- test/dummy/Rakefile
|
57
|
-
- test/dummy/app/assets/images/.keep
|
58
|
-
- test/dummy/app/assets/javascripts/schema.d.ts
|
59
|
-
- test/dummy/app/assets/stylesheets/application.css
|
60
|
-
- test/dummy/app/controllers/application_controller.rb
|
61
|
-
- test/dummy/app/controllers/concerns/.keep
|
62
|
-
- test/dummy/app/frontend/types/schema.d.ts
|
63
|
-
- test/dummy/app/helpers/application_helper.rb
|
64
|
-
- test/dummy/app/jobs/application_job.rb
|
65
|
-
- test/dummy/app/models/application_record.rb
|
66
|
-
- test/dummy/app/models/concerns/.keep
|
67
|
-
- test/dummy/app/models/example.rb
|
68
|
-
- test/dummy/app/models/five.rb
|
69
|
-
- test/dummy/app/models/four.rb
|
70
|
-
- test/dummy/app/models/one.rb
|
71
|
-
- test/dummy/app/models/three.rb
|
72
|
-
- test/dummy/app/models/two.rb
|
73
|
-
- test/dummy/app/views/layouts/application.html.erb
|
74
|
-
- test/dummy/bin/rails
|
75
|
-
- test/dummy/bin/rake
|
76
|
-
- test/dummy/bin/setup
|
77
|
-
- test/dummy/config.ru
|
78
|
-
- test/dummy/config/application.rb
|
79
|
-
- test/dummy/config/boot.rb
|
80
|
-
- test/dummy/config/database.yml
|
81
|
-
- test/dummy/config/environment.rb
|
82
|
-
- test/dummy/config/environments/development.rb
|
83
|
-
- test/dummy/config/environments/production.rb
|
84
|
-
- test/dummy/config/environments/test.rb
|
85
|
-
- test/dummy/config/initializers/config/initializers/ts_schema.rb
|
86
|
-
- test/dummy/config/initializers/content_security_policy.rb
|
87
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
88
|
-
- test/dummy/config/initializers/inflections.rb
|
89
|
-
- test/dummy/config/initializers/permissions_policy.rb
|
90
|
-
- test/dummy/config/locales/en.yml
|
91
|
-
- test/dummy/config/puma.rb
|
92
|
-
- test/dummy/config/routes.rb
|
93
|
-
- test/dummy/config/storage.yml
|
94
|
-
- test/dummy/db/migrate/20220401195333_create_examples.rb
|
95
|
-
- test/dummy/db/migrate/20220402131712_create_ones.rb
|
96
|
-
- test/dummy/db/migrate/20220402131955_create_twos.rb
|
97
|
-
- test/dummy/db/migrate/20220402132415_create_threes.rb
|
98
|
-
- test/dummy/db/migrate/20220402132543_create_fours.rb
|
99
|
-
- test/dummy/db/migrate/20220402132906_create_fives.rb
|
100
|
-
- test/dummy/db/schema.rb
|
101
|
-
- test/dummy/lib/assets/.keep
|
102
|
-
- test/dummy/log/.keep
|
103
|
-
- test/dummy/public/404.html
|
104
|
-
- test/dummy/public/422.html
|
105
|
-
- test/dummy/public/500.html
|
106
|
-
- test/dummy/public/apple-touch-icon-precomposed.png
|
107
|
-
- test/dummy/public/apple-touch-icon.png
|
108
|
-
- test/dummy/public/favicon.ico
|
109
|
-
- test/install_generator_test.rb
|
110
|
-
- test/test_helper.rb
|
111
|
-
- test/tmp/config/initializers/ts_schema.rb
|
112
|
-
- test/ts_schema_test.rb
|
113
|
-
- ts_schema.gemspec
|
114
53
|
homepage: https://github.com/aviemet
|
115
54
|
licenses:
|
116
55
|
- MIT
|
data/.gitignore
DELETED
data/Gemfile
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
source "https://rubygems.org"
|
2
|
-
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
|
-
|
4
|
-
# Specify your gem's dependencies in ts_schema.gemspec.
|
5
|
-
gemspec
|
6
|
-
|
7
|
-
gem "pg"
|
8
|
-
|
9
|
-
# Start debugger with binding.b [https://github.com/ruby/debug]
|
10
|
-
# gem "debug", ">= 1.0.0"
|
data/Gemfile.lock
DELETED
@@ -1,160 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
ts_schema (0.1.0)
|
5
|
-
rails (>= 7.0.2.3)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actioncable (7.0.2.3)
|
11
|
-
actionpack (= 7.0.2.3)
|
12
|
-
activesupport (= 7.0.2.3)
|
13
|
-
nio4r (~> 2.0)
|
14
|
-
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (7.0.2.3)
|
16
|
-
actionpack (= 7.0.2.3)
|
17
|
-
activejob (= 7.0.2.3)
|
18
|
-
activerecord (= 7.0.2.3)
|
19
|
-
activestorage (= 7.0.2.3)
|
20
|
-
activesupport (= 7.0.2.3)
|
21
|
-
mail (>= 2.7.1)
|
22
|
-
net-imap
|
23
|
-
net-pop
|
24
|
-
net-smtp
|
25
|
-
actionmailer (7.0.2.3)
|
26
|
-
actionpack (= 7.0.2.3)
|
27
|
-
actionview (= 7.0.2.3)
|
28
|
-
activejob (= 7.0.2.3)
|
29
|
-
activesupport (= 7.0.2.3)
|
30
|
-
mail (~> 2.5, >= 2.5.4)
|
31
|
-
net-imap
|
32
|
-
net-pop
|
33
|
-
net-smtp
|
34
|
-
rails-dom-testing (~> 2.0)
|
35
|
-
actionpack (7.0.2.3)
|
36
|
-
actionview (= 7.0.2.3)
|
37
|
-
activesupport (= 7.0.2.3)
|
38
|
-
rack (~> 2.0, >= 2.2.0)
|
39
|
-
rack-test (>= 0.6.3)
|
40
|
-
rails-dom-testing (~> 2.0)
|
41
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
42
|
-
actiontext (7.0.2.3)
|
43
|
-
actionpack (= 7.0.2.3)
|
44
|
-
activerecord (= 7.0.2.3)
|
45
|
-
activestorage (= 7.0.2.3)
|
46
|
-
activesupport (= 7.0.2.3)
|
47
|
-
globalid (>= 0.6.0)
|
48
|
-
nokogiri (>= 1.8.5)
|
49
|
-
actionview (7.0.2.3)
|
50
|
-
activesupport (= 7.0.2.3)
|
51
|
-
builder (~> 3.1)
|
52
|
-
erubi (~> 1.4)
|
53
|
-
rails-dom-testing (~> 2.0)
|
54
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
55
|
-
activejob (7.0.2.3)
|
56
|
-
activesupport (= 7.0.2.3)
|
57
|
-
globalid (>= 0.3.6)
|
58
|
-
activemodel (7.0.2.3)
|
59
|
-
activesupport (= 7.0.2.3)
|
60
|
-
activerecord (7.0.2.3)
|
61
|
-
activemodel (= 7.0.2.3)
|
62
|
-
activesupport (= 7.0.2.3)
|
63
|
-
activestorage (7.0.2.3)
|
64
|
-
actionpack (= 7.0.2.3)
|
65
|
-
activejob (= 7.0.2.3)
|
66
|
-
activerecord (= 7.0.2.3)
|
67
|
-
activesupport (= 7.0.2.3)
|
68
|
-
marcel (~> 1.0)
|
69
|
-
mini_mime (>= 1.1.0)
|
70
|
-
activesupport (7.0.2.3)
|
71
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
72
|
-
i18n (>= 1.6, < 2)
|
73
|
-
minitest (>= 5.1)
|
74
|
-
tzinfo (~> 2.0)
|
75
|
-
builder (3.2.4)
|
76
|
-
concurrent-ruby (1.1.10)
|
77
|
-
crass (1.0.6)
|
78
|
-
digest (3.1.0)
|
79
|
-
erubi (1.10.0)
|
80
|
-
globalid (1.0.0)
|
81
|
-
activesupport (>= 5.0)
|
82
|
-
i18n (1.10.0)
|
83
|
-
concurrent-ruby (~> 1.0)
|
84
|
-
loofah (2.15.0)
|
85
|
-
crass (~> 1.0.2)
|
86
|
-
nokogiri (>= 1.5.9)
|
87
|
-
mail (2.7.1)
|
88
|
-
mini_mime (>= 0.1.1)
|
89
|
-
marcel (1.0.2)
|
90
|
-
method_source (1.0.0)
|
91
|
-
mini_mime (1.1.2)
|
92
|
-
minitest (5.15.0)
|
93
|
-
net-imap (0.2.3)
|
94
|
-
digest
|
95
|
-
net-protocol
|
96
|
-
strscan
|
97
|
-
net-pop (0.1.1)
|
98
|
-
digest
|
99
|
-
net-protocol
|
100
|
-
timeout
|
101
|
-
net-protocol (0.1.3)
|
102
|
-
timeout
|
103
|
-
net-smtp (0.3.1)
|
104
|
-
digest
|
105
|
-
net-protocol
|
106
|
-
timeout
|
107
|
-
nio4r (2.5.8)
|
108
|
-
nokogiri (1.13.3-x86_64-linux)
|
109
|
-
racc (~> 1.4)
|
110
|
-
pg (1.3.5)
|
111
|
-
racc (1.6.0)
|
112
|
-
rack (2.2.3)
|
113
|
-
rack-test (1.1.0)
|
114
|
-
rack (>= 1.0, < 3)
|
115
|
-
rails (7.0.2.3)
|
116
|
-
actioncable (= 7.0.2.3)
|
117
|
-
actionmailbox (= 7.0.2.3)
|
118
|
-
actionmailer (= 7.0.2.3)
|
119
|
-
actionpack (= 7.0.2.3)
|
120
|
-
actiontext (= 7.0.2.3)
|
121
|
-
actionview (= 7.0.2.3)
|
122
|
-
activejob (= 7.0.2.3)
|
123
|
-
activemodel (= 7.0.2.3)
|
124
|
-
activerecord (= 7.0.2.3)
|
125
|
-
activestorage (= 7.0.2.3)
|
126
|
-
activesupport (= 7.0.2.3)
|
127
|
-
bundler (>= 1.15.0)
|
128
|
-
railties (= 7.0.2.3)
|
129
|
-
rails-dom-testing (2.0.3)
|
130
|
-
activesupport (>= 4.2.0)
|
131
|
-
nokogiri (>= 1.6)
|
132
|
-
rails-html-sanitizer (1.4.2)
|
133
|
-
loofah (~> 2.3)
|
134
|
-
railties (7.0.2.3)
|
135
|
-
actionpack (= 7.0.2.3)
|
136
|
-
activesupport (= 7.0.2.3)
|
137
|
-
method_source
|
138
|
-
rake (>= 12.2)
|
139
|
-
thor (~> 1.0)
|
140
|
-
zeitwerk (~> 2.5)
|
141
|
-
rake (13.0.6)
|
142
|
-
strscan (3.0.1)
|
143
|
-
thor (1.2.1)
|
144
|
-
timeout (0.2.0)
|
145
|
-
tzinfo (2.0.4)
|
146
|
-
concurrent-ruby (~> 1.0)
|
147
|
-
websocket-driver (0.7.5)
|
148
|
-
websocket-extensions (>= 0.1.0)
|
149
|
-
websocket-extensions (0.1.5)
|
150
|
-
zeitwerk (2.5.4)
|
151
|
-
|
152
|
-
PLATFORMS
|
153
|
-
x86_64-linux
|
154
|
-
|
155
|
-
DEPENDENCIES
|
156
|
-
pg
|
157
|
-
ts_schema!
|
158
|
-
|
159
|
-
BUNDLED WITH
|
160
|
-
2.2.32
|
data/bin/test
DELETED
data/test/dummy/Rakefile
DELETED
File without changes
|
@@ -1,71 +0,0 @@
|
|
1
|
-
declare namespace schema {
|
2
|
-
interface Example {
|
3
|
-
id: number;
|
4
|
-
colString: string;
|
5
|
-
colText: string;
|
6
|
-
colInteger: number;
|
7
|
-
colEnum: 'zero' | 'one' | 'two';
|
8
|
-
colBigint: number;
|
9
|
-
colFloat: number;
|
10
|
-
colDecimal: number;
|
11
|
-
colJson?: Record<string, any> | null;
|
12
|
-
colJsonb?: Record<string, any> | null;
|
13
|
-
colBinary?: string | null;
|
14
|
-
colBoolean?: boolean | null;
|
15
|
-
colDate?: string | null;
|
16
|
-
colDatetime?: string | null;
|
17
|
-
colTimestamp?: string | null;
|
18
|
-
colInet?: string | null;
|
19
|
-
colCidr?: string | null;
|
20
|
-
colMacaddr?: string | null;
|
21
|
-
one?: One;
|
22
|
-
two?: Two;
|
23
|
-
fours?: Four[];
|
24
|
-
threes?: Three[];
|
25
|
-
fives?: Five[];
|
26
|
-
}
|
27
|
-
|
28
|
-
interface Five {
|
29
|
-
id: number;
|
30
|
-
createdAt: string;
|
31
|
-
updatedAt: string;
|
32
|
-
examples?: Example[];
|
33
|
-
}
|
34
|
-
|
35
|
-
interface Four {
|
36
|
-
id: number;
|
37
|
-
exampleId: number;
|
38
|
-
threeId: number;
|
39
|
-
createdAt: string;
|
40
|
-
updatedAt: string;
|
41
|
-
example?: Example;
|
42
|
-
three?: Three;
|
43
|
-
}
|
44
|
-
|
45
|
-
interface One {
|
46
|
-
id: number;
|
47
|
-
exampleId: number;
|
48
|
-
createdAt: string;
|
49
|
-
updatedAt: string;
|
50
|
-
example?: Example;
|
51
|
-
two?: Two;
|
52
|
-
}
|
53
|
-
|
54
|
-
interface Three {
|
55
|
-
id: number;
|
56
|
-
createdAt: string;
|
57
|
-
updatedAt: string;
|
58
|
-
fours?: Four[];
|
59
|
-
examples?: Example[];
|
60
|
-
}
|
61
|
-
|
62
|
-
interface Two {
|
63
|
-
id: number;
|
64
|
-
exampleId: number;
|
65
|
-
createdAt: string;
|
66
|
-
updatedAt: string;
|
67
|
-
example?: Example;
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
/* Application styles */
|
File without changes
|
@@ -1,71 +0,0 @@
|
|
1
|
-
declare namespace schema {
|
2
|
-
interface Example {
|
3
|
-
id: number;
|
4
|
-
colString: string;
|
5
|
-
colText: string;
|
6
|
-
colInteger: number;
|
7
|
-
colEnum: 'zero' | 'one' | 'two';
|
8
|
-
colBigint: number;
|
9
|
-
colFloat: number;
|
10
|
-
colDecimal: number;
|
11
|
-
colJson?: Record<string, any> | null;
|
12
|
-
colJsonb?: Record<string, any> | null;
|
13
|
-
colBinary?: string | null;
|
14
|
-
colBoolean?: boolean | null;
|
15
|
-
colDate?: string | null;
|
16
|
-
colDatetime?: string | null;
|
17
|
-
colTimestamp?: string | null;
|
18
|
-
colInet?: string | null;
|
19
|
-
colCidr?: string | null;
|
20
|
-
colMacaddr?: string | null;
|
21
|
-
one?: One;
|
22
|
-
two?: Two;
|
23
|
-
fours?: Four[];
|
24
|
-
threes?: Three[];
|
25
|
-
fives?: Five[];
|
26
|
-
}
|
27
|
-
|
28
|
-
interface Five {
|
29
|
-
id: number;
|
30
|
-
createdAt: string;
|
31
|
-
updatedAt: string;
|
32
|
-
examples?: Example[];
|
33
|
-
}
|
34
|
-
|
35
|
-
interface Four {
|
36
|
-
id: number;
|
37
|
-
exampleId: number;
|
38
|
-
threeId: number;
|
39
|
-
createdAt: string;
|
40
|
-
updatedAt: string;
|
41
|
-
example?: Example;
|
42
|
-
three?: Three;
|
43
|
-
}
|
44
|
-
|
45
|
-
interface One {
|
46
|
-
id: number;
|
47
|
-
exampleId: number;
|
48
|
-
createdAt: string;
|
49
|
-
updatedAt: string;
|
50
|
-
example?: Example;
|
51
|
-
two?: Two;
|
52
|
-
}
|
53
|
-
|
54
|
-
interface Three {
|
55
|
-
id: number;
|
56
|
-
createdAt: string;
|
57
|
-
updatedAt: string;
|
58
|
-
fours?: Four[];
|
59
|
-
examples?: Example[];
|
60
|
-
}
|
61
|
-
|
62
|
-
interface Two {
|
63
|
-
id: number;
|
64
|
-
exampleId: number;
|
65
|
-
createdAt: string;
|
66
|
-
updatedAt: string;
|
67
|
-
example?: Example;
|
68
|
-
}
|
69
|
-
|
70
|
-
|
71
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
class ApplicationJob < ActiveJob::Base
|
2
|
-
# Automatically retry jobs that encountered a deadlock
|
3
|
-
# retry_on ActiveRecord::Deadlocked
|
4
|
-
|
5
|
-
# Most jobs are safe to ignore if the underlying records are no longer available
|
6
|
-
# discard_on ActiveJob::DeserializationError
|
7
|
-
end
|
File without changes
|