ts_schema 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +0 -1
  3. data/lib/generators/install_generator.rb +1 -4
  4. data/lib/tasks/ts_schema_tasks.rake +2 -0
  5. data/lib/ts_schema/version.rb +1 -1
  6. data/lib/ts_schema.rb +3 -1
  7. metadata +1 -63
  8. data/.gitignore +0 -9
  9. data/Gemfile +0 -10
  10. data/Gemfile.lock +0 -160
  11. data/bin/test +0 -5
  12. data/test/dummy/Rakefile +0 -6
  13. data/test/dummy/app/assets/images/.keep +0 -0
  14. data/test/dummy/app/assets/javascripts/schema.d.ts +0 -71
  15. data/test/dummy/app/assets/stylesheets/application.css +0 -1
  16. data/test/dummy/app/controllers/application_controller.rb +0 -2
  17. data/test/dummy/app/controllers/concerns/.keep +0 -0
  18. data/test/dummy/app/frontend/types/schema.d.ts +0 -71
  19. data/test/dummy/app/helpers/application_helper.rb +0 -2
  20. data/test/dummy/app/jobs/application_job.rb +0 -7
  21. data/test/dummy/app/models/application_record.rb +0 -3
  22. data/test/dummy/app/models/concerns/.keep +0 -0
  23. data/test/dummy/app/models/example.rb +0 -15
  24. data/test/dummy/app/models/five.rb +0 -3
  25. data/test/dummy/app/models/four.rb +0 -4
  26. data/test/dummy/app/models/one.rb +0 -4
  27. data/test/dummy/app/models/three.rb +0 -4
  28. data/test/dummy/app/models/two.rb +0 -3
  29. data/test/dummy/app/views/layouts/application.html.erb +0 -15
  30. data/test/dummy/bin/rails +0 -4
  31. data/test/dummy/bin/rake +0 -4
  32. data/test/dummy/bin/setup +0 -33
  33. data/test/dummy/config/application.rb +0 -41
  34. data/test/dummy/config/boot.rb +0 -5
  35. data/test/dummy/config/database.yml +0 -86
  36. data/test/dummy/config/environment.rb +0 -5
  37. data/test/dummy/config/environments/development.rb +0 -63
  38. data/test/dummy/config/environments/production.rb +0 -76
  39. data/test/dummy/config/environments/test.rb +0 -53
  40. data/test/dummy/config/initializers/config/initializers/ts_schema.rb +0 -30
  41. data/test/dummy/config/initializers/content_security_policy.rb +0 -26
  42. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -8
  43. data/test/dummy/config/initializers/inflections.rb +0 -16
  44. data/test/dummy/config/initializers/permissions_policy.rb +0 -11
  45. data/test/dummy/config/locales/en.yml +0 -33
  46. data/test/dummy/config/puma.rb +0 -43
  47. data/test/dummy/config/routes.rb +0 -6
  48. data/test/dummy/config/storage.yml +0 -34
  49. data/test/dummy/config.ru +0 -6
  50. data/test/dummy/db/migrate/20220401195333_create_examples.rb +0 -23
  51. data/test/dummy/db/migrate/20220402131712_create_ones.rb +0 -9
  52. data/test/dummy/db/migrate/20220402131955_create_twos.rb +0 -9
  53. data/test/dummy/db/migrate/20220402132415_create_threes.rb +0 -7
  54. data/test/dummy/db/migrate/20220402132543_create_fours.rb +0 -10
  55. data/test/dummy/db/migrate/20220402132906_create_fives.rb +0 -12
  56. data/test/dummy/db/schema.rb +0 -81
  57. data/test/dummy/lib/assets/.keep +0 -0
  58. data/test/dummy/log/.keep +0 -0
  59. data/test/dummy/public/404.html +0 -67
  60. data/test/dummy/public/422.html +0 -67
  61. data/test/dummy/public/500.html +0 -66
  62. data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
  63. data/test/dummy/public/apple-touch-icon.png +0 -0
  64. data/test/dummy/public/favicon.ico +0 -0
  65. data/test/install_generator_test.rb +0 -13
  66. data/test/test_helper.rb +0 -18
  67. data/test/tmp/config/initializers/ts_schema.rb +0 -30
  68. data/test/ts_schema_test.rb +0 -26
  69. data/ts_schema.gemspec +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96932379344d1d2f349abd58ab8bdae2fb1f13f5d4d8ca4df3493c128c368570
4
- data.tar.gz: 55df2424b71f2ea51974599412edda16699050eb1c0a59f6e3e2f13b30a8ead3
3
+ metadata.gz: 77d28bf3fa481c9cee1708d44202497b93168c5c41c1912fe3153e87594c2a85
4
+ data.tar.gz: 4b5d1eb645ba546a5152b879481c897b735e6bd5a3f58cbf82913ff0160f8b86
5
5
  SHA512:
6
- metadata.gz: 00a7114be00a9aaf267910349fbdff03f2923c4fd318f564e2a950e0c4efe0b00324fe860099f5b2e9d3f87b68d526bc42d69f91108262af0331a27451279d08
7
- data.tar.gz: 20b24ef08c0fac099b6accc8e722b8878dc47ebf6a55cb848cca54de779b661ec4ed9f0fb29c98c0844fe69a82ec10b72551778c0bcc6df4fad4a60775caa4f1
6
+ metadata.gz: e4d295418b3c84c8b6c9c1c0e2ae80a4bbe5595fe8a34d223c3207d95083da7fb0a61ecf83878333f499d6493752bc0ebe818b775c110ad2c0746eda2dc05208
7
+ data.tar.gz: a1ce2c28636f2a9e5071e11ea42de845d5d411602d661f792e303039fd89b31d5138d63a556744d4df15b72233d135f538e42dab1cbdfcc0fc2a61f9c4dd5f89
data/Rakefile CHANGED
@@ -1,3 +1,2 @@
1
1
  require "bundler/setup"
2
-
3
2
  require "bundler/gem_tasks"
@@ -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
@@ -1,3 +1,5 @@
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
@@ -1,3 +1,3 @@
1
1
  module TsSchema
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/ts_schema.rb CHANGED
@@ -18,4 +18,6 @@ module TsSchema
18
18
  SchemaGenerator.new.generate
19
19
  end
20
20
  end
21
- end
21
+ end
22
+
23
+ require "generators/install_generator"
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avram Walden
@@ -37,13 +37,9 @@ 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
- - bin/test
47
43
  - lib/generators/install_generator.rb
48
44
  - lib/generators/templates/ts_schema.rb
49
45
  - lib/tasks/ts_schema_tasks.rake
@@ -53,64 +49,6 @@ files:
53
49
  - lib/ts_schema/railtie.rb
54
50
  - lib/ts_schema/schema_generator.rb
55
51
  - 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
52
  homepage: https://github.com/aviemet
115
53
  licenses:
116
54
  - MIT
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /doc/
3
- /log/*.log
4
- /pkg/
5
- /tmp/
6
- /test/dummy/log/*.log
7
- /test/dummy/storage/
8
- /test/dummy/tmp/
9
- *.gem
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
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $: << File.expand_path("../test", __dir__)
3
-
4
- require "bundler/setup"
5
- require "rails/plugin/test"
data/test/dummy/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative "config/application"
5
-
6
- Rails.application.load_tasks
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 */
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
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,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -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
@@ -1,3 +0,0 @@
1
- class ApplicationRecord < ActiveRecord::Base
2
- primary_abstract_class
3
- end
File without changes
@@ -1,15 +0,0 @@
1
- class Example < ApplicationRecord
2
- enum col_enum: {
3
- zero: 0,
4
- one: 1,
5
- two: 2,
6
- }
7
-
8
- has_one :one
9
- has_one :two, through: :one
10
-
11
- has_many :fours
12
- has_many :threes, through: :fours
13
-
14
- has_and_belongs_to_many :fives, class_name: "Five"
15
- end
@@ -1,3 +0,0 @@
1
- class Five < ApplicationRecord
2
- has_and_belongs_to_many :examples
3
- end
@@ -1,4 +0,0 @@
1
- class Four < ApplicationRecord
2
- belongs_to :example
3
- belongs_to :three
4
- end
@@ -1,4 +0,0 @@
1
- class One < ApplicationRecord
2
- belongs_to :example
3
- has_one :two
4
- end
@@ -1,4 +0,0 @@
1
- class Three < ApplicationRecord
2
- has_many :fours
3
- has_many :examples, through: :fours
4
- end
@@ -1,3 +0,0 @@
1
- class Two < ApplicationRecord
2
- belongs_to :example
3
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <%= csrf_meta_tags %>
7
- <%= csp_meta_tag %>
8
-
9
- <%= stylesheet_link_tag "application" %>
10
- </head>
11
-
12
- <body>
13
- <%= yield %>
14
- </body>
15
- </html>
data/test/dummy/bin/rails DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path("../config/application", __dir__)
3
- require_relative "../config/boot"
4
- require "rails/commands"
data/test/dummy/bin/rake DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative "../config/boot"
3
- require "rake"
4
- Rake.application.run
data/test/dummy/bin/setup DELETED
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "fileutils"
3
-
4
- # path to your application root.
5
- APP_ROOT = File.expand_path("..", __dir__)
6
-
7
- def system!(*args)
8
- system(*args) || abort("\n== Command #{args} failed ==")
9
- end
10
-
11
- FileUtils.chdir APP_ROOT do
12
- # This script is a way to set up or update your development environment automatically.
13
- # This script is idempotent, so that you can run it at any time and get an expectable outcome.
14
- # Add necessary setup steps to this file.
15
-
16
- puts "== Installing dependencies =="
17
- system! "gem install bundler --conservative"
18
- system("bundle check") || system!("bundle install")
19
-
20
- # puts "\n== Copying sample files =="
21
- # unless File.exist?("config/database.yml")
22
- # FileUtils.cp "config/database.yml.sample", "config/database.yml"
23
- # end
24
-
25
- puts "\n== Preparing database =="
26
- system! "bin/rails db:prepare"
27
-
28
- puts "\n== Removing old logs and tempfiles =="
29
- system! "bin/rails log:clear tmp:clear"
30
-
31
- puts "\n== Restarting application server =="
32
- system! "bin/rails restart"
33
- end
@@ -1,41 +0,0 @@
1
- require_relative "boot"
2
-
3
- require "rails"
4
- # Pick the frameworks you want:
5
- require "active_model/railtie"
6
- require "active_job/railtie"
7
- require "active_record/railtie"
8
- require "active_storage/engine"
9
- require "action_controller/railtie"
10
- # require "action_mailer/railtie"
11
- require "action_mailbox/engine"
12
- require "action_text/engine"
13
- require "action_view/railtie"
14
- # require "action_cable/engine"
15
- require "rails/test_unit/railtie"
16
-
17
- # Require the gems listed in Gemfile, including any gems
18
- # you've limited to :test, :development, or :production.
19
- Bundler.require(*Rails.groups)
20
- require "ts_schema"
21
-
22
- module Dummy
23
- class Application < Rails::Application
24
- config.load_defaults Rails::VERSION::STRING.to_f
25
-
26
- # Configuration for the application, engines, and railties goes here.
27
- #
28
- # These settings can be overridden in specific environments using the files
29
- # in config/environments, which are processed later.
30
- #
31
- # config.time_zone = "Central Time (US & Canada)"
32
- # config.eager_load_paths << Rails.root.join("extras")
33
-
34
- config.generators do |generate|
35
- generate.helper false
36
- generate.assets false
37
- generate.view_specs false
38
- generate.test_framework false
39
- end
40
- end
41
- end
@@ -1,5 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../../Gemfile", __dir__)
3
-
4
- require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
5
- $LOAD_PATH.unshift File.expand_path("../../../lib", __dir__)