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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb6b95ebc3c9de7fc3e37965f250133727913c3a13f152ded31f68185a27a589
4
- data.tar.gz: 4df9e485ed39fedb2a1900f5fc1deeac62484b8a68ff72e4c912ee98a2f22c27
3
+ metadata.gz: 198bb3090bb29300eac118f1b961321500ff47eaf9292cacc92fd4be203f6e62
4
+ data.tar.gz: 6a4b196f4f729dc2ff9e9a4b519a8ff7c3e614ed7807b849ba0e4162dfb0e502
5
5
  SHA512:
6
- metadata.gz: 190cb10d634e367e8a86640ef7b95ee27c5947a48864abd49f41d30550b65da8746faffb1908e05180ba3e718f30216b73c08087168dec49c68c965332b2a5b8
7
- data.tar.gz: c9d305f8ef5cdd1b364b019a4c9127db59a8b852f89a17629ac8fa680e4d948782456cf7b1b6dae8af398071db205a486222c032d7c0c60838f7621b2ca56976
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
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'sql_migrate'
5
+ ```
6
+ $ gem install sql_migrate
13
7
  ```
14
8
 
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
9
+ ## Usage
20
10
 
21
- $ gem install sql_migrate
11
+ ```
12
+ sql_migrate -h mysql.example.com -d dbname path/to/migrations
13
+ ```
22
14
 
23
- ## Usage
15
+ ### Options
24
16
 
25
- TODO: Write usage instructions here
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SqlMigrate
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-18 00:00:00.000000000 Z
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: []