sql_migrate 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -16
- data/lib/sql_migrate/cli.rb +1 -6
- data/lib/sql_migrate/version.rb +1 -1
- data/sql_migrate.gemspec +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 198bb3090bb29300eac118f1b961321500ff47eaf9292cacc92fd4be203f6e62
|
4
|
+
data.tar.gz: 6a4b196f4f729dc2ff9e9a4b519a8ff7c3e614ed7807b849ba0e4162dfb0e502
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3fc80643b565b10ddac1f16ebfa11471ab1fa0219e9f7ad326d68ecb658767717abc6dfc8ed42aaf33a56ccdc8b9d68038c1d7086285fe224716c74ad60bb9f
|
7
|
+
data.tar.gz: 84640a8ea02f6e83caccadf5d108b67c6b0f3efc6ae94812f7a9f76e20390f158862359abcb65bd2b32e4c285d01c3983c922d2e41b047369db04629f31687de
|
data/README.md
CHANGED
@@ -1,28 +1,29 @@
|
|
1
1
|
# SqlMigrate
|
2
2
|
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sql_migrate`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
3
|
## Installation
|
8
4
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'sql_migrate'
|
5
|
+
```
|
6
|
+
$ gem install sql_migrate
|
13
7
|
```
|
14
8
|
|
15
|
-
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
9
|
+
## Usage
|
20
10
|
|
21
|
-
|
11
|
+
```
|
12
|
+
sql_migrate -h mysql.example.com -d dbname path/to/migrations
|
13
|
+
```
|
22
14
|
|
23
|
-
|
15
|
+
### Options
|
24
16
|
|
25
|
-
|
17
|
+
```
|
18
|
+
sql_migrate [options] MIGRATIONS_PATH
|
19
|
+
-h HOST
|
20
|
+
-d DATABASE
|
21
|
+
-u USER
|
22
|
+
-p PASSWORD
|
23
|
+
-v, --verbose
|
24
|
+
-n, --dry-run
|
25
|
+
-f CONFIG
|
26
|
+
```
|
26
27
|
|
27
28
|
## Development
|
28
29
|
|
data/lib/sql_migrate/cli.rb
CHANGED
@@ -31,16 +31,11 @@ module SqlMigrate
|
|
31
31
|
opt.on("-n", "--dry-run") { |v| options[:dryrun] = v }
|
32
32
|
opt.on("-f CONFIG") { |v| options[:config] = v }
|
33
33
|
opt.parse!(args)
|
34
|
-
unless args.size.positive?
|
35
|
-
STDERR << "required MIGRATIONS_PATH\n"
|
36
|
-
STDERR << "#{opt.banner}\n"
|
37
|
-
exit(1)
|
38
|
-
end
|
39
34
|
end
|
40
35
|
|
41
36
|
load_from_config(options.delete(:config)) if options.has_key?(:config)
|
42
37
|
config.merge(options)
|
43
|
-
config.migrations_path = args.first
|
38
|
+
config.migrations_path = args.first if args.size.positive?
|
44
39
|
|
45
40
|
args
|
46
41
|
end
|
data/lib/sql_migrate/version.rb
CHANGED
data/sql_migrate.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.summary = %q{Schema Migration utilities for MySQL.}
|
13
13
|
spec.description = %q{Schema Migration utilities for MySQL.}
|
14
14
|
spec.homepage = "https://github.com/i2bskn/sql_migrate"
|
15
|
+
spec.license = "MIT"
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
18
|
f.match(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_migrate
|
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
|
- i2bskn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -103,7 +103,8 @@ files:
|
|
103
103
|
- lib/sql_migrate/version.rb
|
104
104
|
- sql_migrate.gemspec
|
105
105
|
homepage: https://github.com/i2bskn/sql_migrate
|
106
|
-
licenses:
|
106
|
+
licenses:
|
107
|
+
- MIT
|
107
108
|
metadata: {}
|
108
109
|
post_install_message:
|
109
110
|
rdoc_options: []
|