clean_rails_schema 0.1.0 → 0.1.1
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 +4 -4
- data/exe/crs +31 -0
- data/lib/clean_rails_schema/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d690e99b7127d5237d4c9042cde8d29b9906cde7b95212250d95ff2c7ad4353
|
4
|
+
data.tar.gz: 822449447379110b50e0040f1b01c4de224e255ecba12700ac694e826518c55d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33fbe498912857a0d5e615cc4cc2af54ffd684ffa953485302fd480e3fbd656f4a61bfd456d4ae2a9ef2074fc858a6a80ad68d7bba55673273b96637f84fd913
|
7
|
+
data.tar.gz: 8ecf247de2f4d720abc8abbe1adb84cecb2c53100b5d6615fa4a008518baa30dcce9f2fbf4ead3a040a00abe884731e53aba5874e72ca562b504010a4cf6bbdc
|
data/exe/crs
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../lib/clean_rails_schema'
|
4
|
+
|
5
|
+
# Simple CLI for RailsSchemaCleaner::DatabaseConfigEditor
|
6
|
+
require 'optparse'
|
7
|
+
|
8
|
+
options = {}
|
9
|
+
OptionParser.new do |opts|
|
10
|
+
opts.banner = 'Usage: rsc [command] [options]'
|
11
|
+
|
12
|
+
opts.on('-f', '--file FILE', 'Path to database.yml') do |file|
|
13
|
+
options[:file] = file
|
14
|
+
end
|
15
|
+
end.parse!
|
16
|
+
command = ARGV.shift
|
17
|
+
|
18
|
+
case command
|
19
|
+
when 'init'
|
20
|
+
CleanRailsSchema::InitConfigurator.run
|
21
|
+
|
22
|
+
when 'setup'
|
23
|
+
CleanRailsSchema::SetupRunner.new(options).run
|
24
|
+
|
25
|
+
when 'migrate'
|
26
|
+
CleanRailsSchema::MigrateRunner.new(options).run
|
27
|
+
|
28
|
+
else
|
29
|
+
puts 'Unknown or missing command. Available commands: init, setup, migrate'
|
30
|
+
exit 1
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clean_rails_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- luhluh-17
|
@@ -14,7 +14,8 @@ description: |-
|
|
14
14
|
making it easier to maintain and evolve your database structure over time.
|
15
15
|
email:
|
16
16
|
- castro.ralph17@gmail.com
|
17
|
-
executables:
|
17
|
+
executables:
|
18
|
+
- crs
|
18
19
|
extensions: []
|
19
20
|
extra_rdoc_files: []
|
20
21
|
files:
|
@@ -26,6 +27,7 @@ files:
|
|
26
27
|
- LICENSE.txt
|
27
28
|
- README.md
|
28
29
|
- Rakefile
|
30
|
+
- exe/crs
|
29
31
|
- lib/clean_rails_schema.rb
|
30
32
|
- lib/clean_rails_schema/color_helper.rb
|
31
33
|
- lib/clean_rails_schema/database_config_editor.rb
|