rails-crud-tools 0.6.10 → 0.6.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f093aa23597638ca343e4b2f5e19ccf2e49399728da2e96eb6dc1103d1281e45
4
- data.tar.gz: fc4d4f153eeb5d192822fd359d3d0b104d19689bf2bb59d078955bd4f36c2ad7
3
+ metadata.gz: 5d86dd79a17e4a3554f8c6404548736ac801f51d7990bcf38f92373dd242f889
4
+ data.tar.gz: ae989dbf4012f2f904e7f9b5a9140d94604c9ed175ff927691fa40edb24500b0
5
5
  SHA512:
6
- metadata.gz: 73d9ba0b4425afc54440ce49a6383e42cfee4888c0c4fcdc25a4e9f696468a56462cc782abaabf02f40268e14cd555948750921a185c1180a44132e7a2fa7c3c
7
- data.tar.gz: 63e0033da0b7c56e64f75913f8978bdb7b4496363438efcee6d772db866bd45dbd34698ba47c4b980b0066495f6695c2b0035db6526b6892cc39965d423046f3
6
+ metadata.gz: b7644621f60f8c9b9f1a0ffd2eca68060ff6aa04d0804c4c08fa6eb05b37d9f26446bc6141be8bb85331d84678f66b4afd5d6b2f46acdfb0ebd5ca6df5ece29e
7
+ data.tar.gz: 8964e08346f2ab98888f7bf4911e7ed86aa31d59ba324c07dbb8931a65e87da003b581cf200b70a1655d6e5cf3043f6b56fc10fe6399629a46dc6a799876fdb2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-crud-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - yhijikata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-09 00:00:00.000000000 Z
11
+ date: 2025-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '7.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '7.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rubyXL
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -55,39 +69,10 @@ dependencies:
55
69
  description: This gem provides CRUD functionality for Rails applications.
56
70
  email:
57
71
  - yhijikata@systemlancer.com
58
- executables:
59
- - console
60
- - crud
61
- - setup
72
+ executables: []
62
73
  extensions: []
63
74
  extra_rdoc_files: []
64
- files:
65
- - ".rspec"
66
- - ".rubocop.yml"
67
- - CHANGELOG.md
68
- - Dockerfile
69
- - Gemfile
70
- - LICENSE
71
- - LICENSE.txt
72
- - README.md
73
- - Rakefile
74
- - docker-compose.yml
75
- - exe/console
76
- - exe/crud
77
- - exe/setup
78
- - lib/rails/crud/tools.rb
79
- - lib/rails/crud/tools/cli.rb
80
- - lib/rails/crud/tools/constants.rb
81
- - lib/rails/crud/tools/crud_config.rb
82
- - lib/rails/crud/tools/crud_data.rb
83
- - lib/rails/crud/tools/crud_logger.rb
84
- - lib/rails/crud/tools/crud_notifications.rb
85
- - lib/rails/crud/tools/crud_operations.rb
86
- - lib/rails/crud/tools/crud_operations_logger.rb
87
- - lib/rails/crud/tools/railtie.rb
88
- - lib/rails/crud/tools/version.rb
89
- - sig/rails/crud.rbs
90
- - tools/crud_macro.xlsm
75
+ files: []
91
76
  homepage: https://github.com/YamabikoLab/rails-crud-tools
92
77
  licenses:
93
78
  - MIT
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,269 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 3.1
3
- Exclude:
4
- - 'ide/**/*'
5
- - 'spec/**/*'
6
- - 'lib/rails/crud/tools/cli.rb'
7
- Style/StringLiterals:
8
- Enabled: true
9
- EnforcedStyle: double_quotes
10
-
11
- Style/StringLiteralsInInterpolation:
12
- Enabled: true
13
- EnforcedStyle: double_quotes
14
-
15
- Layout/LineLength:
16
- Max: 200
17
-
18
- Metrics/MethodLength:
19
- Max: 50
20
-
21
- Metrics/AbcSize:
22
- Max: 60
23
-
24
- Metrics/CyclomaticComplexity:
25
- Max: 20
26
-
27
- Metrics/PerceivedComplexity:
28
- Max: 20
29
-
30
- Metrics/ModuleLength:
31
- Max: 120
32
- Gemspec/AddRuntimeDependency:
33
- Enabled: true
34
- Gemspec/DeprecatedAttributeAssignment:
35
- Enabled: true
36
- Gemspec/DevelopmentDependencies:
37
- Enabled: true
38
- Gemspec/RequireMFA:
39
- Enabled: true
40
- Layout/LineContinuationLeadingSpace:
41
- Enabled: true
42
- Layout/LineContinuationSpacing:
43
- Enabled: true
44
- Layout/LineEndStringConcatenationIndentation:
45
- Enabled: true
46
- Layout/SpaceBeforeBrackets:
47
- Enabled: true
48
- Lint/AmbiguousAssignment:
49
- Enabled: true
50
- Lint/AmbiguousOperatorPrecedence:
51
- Enabled: true
52
- Lint/AmbiguousRange:
53
- Enabled: true
54
- Lint/ConstantOverwrittenInRescue:
55
- Enabled: true
56
- Lint/DeprecatedConstants:
57
- Enabled: true
58
- Lint/DuplicateBranch:
59
- Enabled: true
60
- Lint/DuplicateMagicComment:
61
- Enabled: true
62
- Lint/DuplicateMatchPattern:
63
- Enabled: true
64
- Lint/DuplicateRegexpCharacterClassElement:
65
- Enabled: true
66
- Lint/DuplicateSetElement:
67
- Enabled: true
68
- Lint/EmptyBlock:
69
- Enabled: true
70
- Lint/EmptyClass:
71
- Enabled: true
72
- Lint/EmptyInPattern:
73
- Enabled: true
74
- Lint/HashNewWithKeywordArgumentsAsDefault:
75
- Enabled: true
76
- Lint/IncompatibleIoSelectWithFiberScheduler:
77
- Enabled: true
78
- Lint/ItWithoutArgumentsInBlock:
79
- Enabled: true
80
- Lint/LambdaWithoutLiteralBlock:
81
- Enabled: true
82
- Lint/LiteralAssignmentInCondition:
83
- Enabled: true
84
- Lint/MixedCaseRange:
85
- Enabled: true
86
- Lint/NoReturnInBeginEndBlocks:
87
- Enabled: true
88
- Lint/NonAtomicFileOperation:
89
- Enabled: true
90
- Lint/NumberedParameterAssignment:
91
- Enabled: true
92
- Lint/NumericOperationWithConstantResult:
93
- Enabled: true
94
- Lint/OrAssignmentToConstant:
95
- Enabled: true
96
- Lint/RedundantDirGlobSort:
97
- Enabled: true
98
- Lint/RedundantRegexpQuantifiers:
99
- Enabled: true
100
- Lint/RefinementImportMethods:
101
- Enabled: true
102
- Lint/RequireRangeParentheses:
103
- Enabled: true
104
- Lint/RequireRelativeSelfPath:
105
- Enabled: true
106
- Lint/SymbolConversion:
107
- Enabled: true
108
- Lint/ToEnumArguments:
109
- Enabled: true
110
- Lint/TripleQuotes:
111
- Enabled: true
112
- Lint/UnescapedBracketInRegexp:
113
- Enabled: true
114
- Lint/UnexpectedBlockArity:
115
- Enabled: true
116
- Lint/UnmodifiedReduceAccumulator:
117
- Enabled: true
118
- Lint/UselessDefined:
119
- Enabled: true
120
- Lint/UselessNumericOperation:
121
- Enabled: true
122
- Lint/UselessRescue:
123
- Enabled: true
124
- Lint/UselessRuby2Keywords:
125
- Enabled: true
126
- Metrics/CollectionLiteralLength:
127
- Enabled: true
128
- Naming/BlockForwarding:
129
- Enabled: true
130
- Security/CompoundHash:
131
- Enabled: true
132
- Security/IoMethods:
133
- Enabled: true
134
- Style/AmbiguousEndlessMethodDefinition:
135
- Enabled: true
136
- Style/ArgumentsForwarding:
137
- Enabled: true
138
- Style/ArrayIntersect:
139
- Enabled: true
140
- Style/BitwisePredicate:
141
- Enabled: true
142
- Style/CollectionCompact:
143
- Enabled: true
144
- Style/CombinableDefined:
145
- Enabled: true
146
- Style/ComparableClamp:
147
- Enabled: true
148
- Style/ConcatArrayLiterals:
149
- Enabled: true
150
- Style/DataInheritance:
151
- Enabled: true
152
- Style/DigChain:
153
- Enabled: true
154
- Style/DirEmpty:
155
- Enabled: true
156
- Style/DocumentDynamicEvalDefinition:
157
- Enabled: true
158
- Style/EmptyHeredoc:
159
- Enabled: true
160
- Style/EndlessMethod:
161
- Enabled: true
162
- Style/EnvHome:
163
- Enabled: true
164
- Style/ExactRegexpMatch:
165
- Enabled: true
166
- Style/FetchEnvVar:
167
- Enabled: true
168
- Style/FileEmpty:
169
- Enabled: true
170
- Style/FileNull:
171
- Enabled: true
172
- Style/FileRead:
173
- Enabled: true
174
- Style/FileTouch:
175
- Enabled: true
176
- Style/FileWrite:
177
- Enabled: true
178
- Style/HashConversion:
179
- Enabled: true
180
- Style/HashExcept:
181
- Enabled: true
182
- Style/IfWithBooleanLiteralBranches:
183
- Enabled: true
184
- Style/InPatternThen:
185
- Enabled: true
186
- Style/KeywordArgumentsMerging:
187
- Enabled: true
188
- Style/MagicCommentFormat:
189
- Enabled: true
190
- Style/MapCompactWithConditionalBlock:
191
- Enabled: true
192
- Style/MapIntoArray:
193
- Enabled: true
194
- Style/MapToHash:
195
- Enabled: true
196
- Style/MapToSet:
197
- Enabled: true
198
- Style/MinMaxComparison:
199
- Enabled: true
200
- Style/MultilineInPatternThen:
201
- Enabled: true
202
- Style/NegatedIfElseCondition:
203
- Enabled: true
204
- Style/NestedFileDirname:
205
- Enabled: true
206
- Style/NilLambda:
207
- Enabled: true
208
- Style/NumberedParameters:
209
- Enabled: true
210
- Style/NumberedParametersLimit:
211
- Enabled: true
212
- Style/ObjectThen:
213
- Enabled: true
214
- Style/OpenStructUse:
215
- Enabled: true
216
- Style/OperatorMethodCall:
217
- Enabled: true
218
- Style/QuotedSymbols:
219
- Enabled: true
220
- Style/RedundantArgument:
221
- Enabled: true
222
- Style/RedundantArrayConstructor:
223
- Enabled: true
224
- Style/RedundantConstantBase:
225
- Enabled: true
226
- Style/RedundantCurrentDirectoryInPath:
227
- Enabled: true
228
- Style/RedundantDoubleSplatHashBraces:
229
- Enabled: true
230
- Style/RedundantEach:
231
- Enabled: true
232
- Style/RedundantFilterChain:
233
- Enabled: true
234
- Style/RedundantHeredocDelimiterQuotes:
235
- Enabled: true
236
- Style/RedundantInitialize:
237
- Enabled: true
238
- Style/RedundantInterpolationUnfreeze:
239
- Enabled: true
240
- Style/RedundantLineContinuation:
241
- Enabled: true
242
- Style/RedundantRegexpArgument:
243
- Enabled: true
244
- Style/RedundantRegexpConstructor:
245
- Enabled: true
246
- Style/RedundantSelfAssignmentBranch:
247
- Enabled: true
248
- Style/RedundantStringEscape:
249
- Enabled: true
250
- Style/ReturnNilInPredicateMethodDefinition:
251
- Enabled: true
252
- Style/SafeNavigationChainLength:
253
- Enabled: true
254
- Style/SelectByRegexp:
255
- Enabled: true
256
- Style/SendWithLiteralMethodName:
257
- Enabled: true
258
- Style/SingleLineDoEndBlock:
259
- Enabled: true
260
- Style/StringChars:
261
- Enabled: true
262
- Style/SuperArguments:
263
- Enabled: true
264
- Style/SuperWithArgsParentheses:
265
- Enabled: true
266
- Style/SwapValues:
267
- Enabled: true
268
- Style/YAMLFileRead:
269
- Enabled: true
data/CHANGELOG.md DELETED
@@ -1,76 +0,0 @@
1
- ## [0.6.10] - 2025-01-11
2
- - Required ruby version up
3
- - Change configuration file to yaml format
4
-
5
- ## [0.6.9] - 2025-01-10
6
- - refactoring gem dependency
7
-
8
- ## [0.6.1] - 2025-01-09
9
- - Rubocop support
10
- - Change of configuration file name
11
-
12
- ## [0.6.0] - 2025-01-08
13
- - Support for select insert, select update, and select delete
14
-
15
- ## [0.5.0] - 2025-01-07
16
- - Multiple table support
17
-
18
- ## [0.4.3] - 2025-01-07
19
- - Refactored `crud_notifications.rb`.
20
- - Modified to not execute the `setup` method in `tools.rb` when running commands.
21
-
22
- ## [0.4.2] - 2025-01-06
23
- - Fixed to update the last modifier of the CRUD file
24
- - Changed CRUD file saving process to asynchronous processing
25
-
26
- ## [0.4.1] - 2025-01-04
27
- - Create the base directory if it does not exist during initialization
28
-
29
- ## [0.4.0] - 2025-01-04
30
- - Fixed to save only when cell values change
31
- - Added sheet name to configuration file
32
- - Added font name to configuration file
33
- - Created test code
34
- - Added initialization command
35
- - Added configuration file creation command
36
-
37
- ## [0.3.2] - 2025-01-01
38
- - Multi-thread support
39
-
40
- ## [0.3.1] - 2024-12-31
41
- - Changed to rails-crud-tools
42
-
43
- ## [0.3.0] - 2024-12-30
44
- - Job support
45
- - Added command to generate CRUD diagrams
46
-
47
- ## [0.2.2] - 2024-12-25
48
- - Added ON/OFF for SQL output
49
- - Improved summary log
50
-
51
- ## [0.2.1] - 2024-12-25
52
- - Refactoring
53
-
54
- ## [0.2.0] - 2024-12-25
55
- - API support
56
-
57
- ## [0.1.6] - 2024-12-25
58
- - Improved logging
59
-
60
- ## [0.1.5] - 2024-12-25
61
- - Improved multi-threading
62
-
63
- ## [0.1.4] - 2024-12-24
64
- - Refactoring
65
-
66
- ## [0.1.3] - 2024-12-24
67
- - Bug fix
68
-
69
- ## [0.1.2] - 2024-12-24
70
- - Bug fix
71
-
72
- ## [0.1.1] - 2024-12-24
73
- - Preview release
74
-
75
- ## [0.1.0] - 2024-12-23
76
- - Initial release
data/Dockerfile DELETED
@@ -1,21 +0,0 @@
1
- FROM ruby:3.1.4
2
-
3
- ARG IDEURL=https://download.jetbrains.com/ruby/RubyMine-2024.3.1.1.tar.gz
4
-
5
- RUN apt-get update -qq && apt-get install -y \
6
- build-essential \
7
- vim && \
8
- rm -rf /var/lib/apt/lists/*
9
-
10
- ENV EDITOR=vim
11
-
12
- WORKDIR /root/app
13
-
14
- RUN curl -fsSL -o ide.tar.gz $IDEURL && \
15
- mkdir ide && \
16
- tar xfz ide.tar.gz --strip-components=1 -C ide && \
17
- rm ide.tar.gz
18
-
19
- CMD yes '' | ide/bin/remote-dev-server.sh run $APP_ROOT --listenOn 0.0.0.0 --port 5995
20
-
21
- EXPOSE 5995
data/Gemfile DELETED
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in rails-crud-tools.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
11
-
12
- gem "rubocop", "~> 1.21"
13
-
14
- gem "rubyzip", "~> 2.4"
15
-
16
- gem "rails"
17
-
18
- gem "simplecov"
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 yamabiko
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2024 yhijikata
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/README.md DELETED
@@ -1,74 +0,0 @@
1
- # Rails::Crud::Tools
2
-
3
- Welcome to Rails::Crud::Tools!
4
- This gem provides a tool to automatically update CRUD diagrams as you interact with your application.
5
- It simplifies logging and managing CRUD operations seamlessly within a Rails application.
6
-
7
- ## Installation
8
-
9
- Add the gem to the `development` group in your application's Gemfile by including the following lines:
10
-
11
- ```ruby
12
- gem 'rails-crud-tools'
13
- ```
14
-
15
- Then execute:
16
-
17
- ```sh
18
- $ bundle install
19
- ```
20
-
21
- If you are not using Bundler, you can install the gem manually:
22
-
23
- ```sh
24
- $ gem install rails-crud-tools
25
- ```
26
-
27
- ## Usage
28
-
29
- ### Setup
30
- This command will generate the **doc/crud.xlsx** file and the **.crudconfig.yml** file.
31
-
32
- ```sh
33
- $ bundle exec crud init
34
- ```
35
-
36
- .crudconfig.yml
37
- ```yaml
38
- enabled: true # Enables or disables the CRUD tools functionality
39
- base_dir: doc # The base directory where the CRUD files will be stored
40
- crud_file:
41
- file_name: crud.xlsx # The name of the CRUD Excel file
42
- sheet_name: CRUD # The name of the sheet in the CRUD Excel file
43
- header_bg_color: 00FFCC # The background color for the header in the CRUD Excel file
44
- font_name: Arial # The font name used in the CRUD Excel file
45
- method_col: Verb # Column indicating the HTTP method
46
- action_col: Controller#Action # Column indicating the controller and action
47
- table_start_col: your_first_table # Column where the table starts
48
- sql_logging_enabled: true # Enables or disables SQL logging for CRUD operations
49
- ```
50
-
51
- ### How It Works
52
-
53
- Once integrated, the gem automatically tracks CRUD operations (Create, Read, Update, Delete) performed in your application.
54
- The diagrams will update dynamically based on these operations, providing you with real-time insights into your application's data flow.
55
-
56
- ## Logs
57
-
58
- Please refer to the log file at `log/crud.log`.
59
-
60
- ## CRUD Macro Workbook
61
-
62
- The `tools/crud_macro.xlsm` file is a macro-enabled workbook used for manipulating CRUD diagrams.
63
- This workbook contains macros that help in managing and visualizing CRUD operations within your application.
64
-
65
- ### Excel Macro Download
66
-
67
- You can download the `crud_macro.xlsm` file from the following link:
68
-
69
- [Download crud_macro.xlsm](https://github.com/YamabikoLab/rails-crud-tools/raw/main/tools/crud_macro.xlsm)
70
-
71
- ## License
72
-
73
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
74
-
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/docker-compose.yml DELETED
@@ -1,11 +0,0 @@
1
- version: '3.8'
2
- services:
3
- app:
4
- build: .
5
- container_name: rails-crud-tools
6
- volumes:
7
- - .:/root/app
8
- - /root/app/ide
9
- ports:
10
- - '5995:5995'
11
- tty: true
data/exe/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "rails/crud/tools"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/exe/crud DELETED
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- ENV["SKIP_CRUD_SETUP"] = "true"
5
- require "rails/crud/tools/cli"
6
-
7
- def display_help
8
- puts <<~HELP
9
- Usage: crud [command]
10
-
11
- Commands:
12
- init Initialize by generating CRUD and config files
13
- gen crud Generate CRUD file
14
- gen config Generate config file
15
- help Display this help message
16
- HELP
17
- end
18
-
19
- if ARGV.empty? || ARGV.include?("help")
20
- display_help
21
- elsif ARGV.include?("init")
22
- RailsCrudTools::CLI.init
23
- elsif ARGV == %w[gen crud]
24
- RailsCrudTools::CLI.generate_crud_file
25
- elsif ARGV == %w[gen config]
26
- RailsCrudTools::CLI.generate_crud_config
27
- else
28
- puts "Unknown command: #{ARGV.join(" ")}"
29
- display_help
30
- end
data/exe/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here