db-migrate 0.0.2 → 0.0.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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +4 -1
- data/bin/migrate +2 -2
- data/db-migrate.gemspec +2 -2
- metadata +5 -6
- data/Gemfile.lock +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9703746febda4f9b2ef4d5ad0a5013fd044d80f0
|
4
|
+
data.tar.gz: 396ff547f035d0ce68dc5093b9d441edbc93ba92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5568c7624e9b6685ec1099b87a1a395c41016e82b501a2499738e934b3fc197104023c79b6a5d6b806e25cadb001d0dd15b60b9782219840a729efc182c30855
|
7
|
+
data.tar.gz: 6f51e9a629a34023a42a50f30eed3ccaab4644de633a5148acdbc6cc236ff436ebd25d8d48af1d5a41916f87b57d16d3ee5d34cec67d59b6c27dd4d3d08a56cd
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,10 @@ Tool for managing and executing your database migrations.
|
|
9
9
|
gem install db-migrate
|
10
10
|
```
|
11
11
|
|
12
|
-
|
12
|
+
## Demo
|
13
|
+

|
14
|
+
|
15
|
+
## How it works?
|
13
16
|
It saves metadata about your migrations to database and uses that metadata for executing and creating new migrations.
|
14
17
|
|
15
18
|
It supports multiple databases and multiple languages for executing migrations.
|
data/bin/migrate
CHANGED
@@ -21,7 +21,7 @@ class CLI < Thor
|
|
21
21
|
}
|
22
22
|
def initialize(*args)
|
23
23
|
super
|
24
|
-
@config =
|
24
|
+
@config = Conf.new(options["root"], options["config"])
|
25
25
|
|
26
26
|
init_invoked = ARGV.length > 0 && ARGV[0] == "init"
|
27
27
|
if not init_invoked and @config.exists?
|
@@ -72,7 +72,7 @@ class CLI < Thor
|
|
72
72
|
port: ($asker.ask("Port: ") {|q| q.default = db_defaults[:port]}).to_i,
|
73
73
|
database: $asker.ask("Database Name: ") {|q| q.default = "mydb"},
|
74
74
|
user: $asker.ask("User: ") {|q| q.default = db_defaults[:user]},
|
75
|
-
password: $asker.ask("Password: ") {|q| q.
|
75
|
+
password: $asker.ask("Password: ") {|q| q.echo = "x"},
|
76
76
|
version_info: $asker.ask("Version info table: ") {|q| q.default = "version_info"},
|
77
77
|
version_number: $asker.ask("Version number table: ") {|q| q.default = "version_number"}
|
78
78
|
}
|
data/db-migrate.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'db-migrate'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.3'
|
4
4
|
s.licenses = ['MIT']
|
5
5
|
s.summary = "Tool for managing and executing your database migrations."
|
6
6
|
s.description = "#{s.summary} It supports multiple databases and multiple languages for writing migration scripts."
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_runtime_dependency 'terminal-table', ['1.5.2']
|
22
22
|
|
23
23
|
# dev deps
|
24
|
-
s.add_development_dependency
|
24
|
+
s.add_development_dependency 'rspec', ['3.4.0']
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db-migrate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Pusic
|
@@ -126,16 +126,16 @@ dependencies:
|
|
126
126
|
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 3.4.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - '='
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 3.4.0
|
139
139
|
description: Tool for managing and executing your database migrations. It supports
|
140
140
|
multiple databases and multiple languages for writing migration scripts.
|
141
141
|
email: pusic007@gmail.com
|
@@ -148,7 +148,6 @@ files:
|
|
148
148
|
- ".rspec"
|
149
149
|
- ".travis.yml"
|
150
150
|
- Gemfile
|
151
|
-
- Gemfile.lock
|
152
151
|
- LICENSE
|
153
152
|
- README.md
|
154
153
|
- bin/migrate
|
data/Gemfile.lock
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
db-migrate (0.0.2)
|
5
|
-
colorize (= 0.7.7)
|
6
|
-
highline (= 1.7.8)
|
7
|
-
json (= 1.8.3)
|
8
|
-
mysql2 (= 0.4.2)
|
9
|
-
parseconfig (= 1.0.6)
|
10
|
-
pg (= 0.18.4)
|
11
|
-
terminal-table (= 1.5.2)
|
12
|
-
thor (= 0.19.1)
|
13
|
-
|
14
|
-
GEM
|
15
|
-
remote: https://rubygems.org/
|
16
|
-
specs:
|
17
|
-
colorize (0.7.7)
|
18
|
-
diff-lcs (1.2.5)
|
19
|
-
highline (1.7.8)
|
20
|
-
json (1.8.3)
|
21
|
-
mysql2 (0.4.2)
|
22
|
-
parseconfig (1.0.6)
|
23
|
-
pg (0.18.4)
|
24
|
-
rspec (3.4.0)
|
25
|
-
rspec-core (~> 3.4.0)
|
26
|
-
rspec-expectations (~> 3.4.0)
|
27
|
-
rspec-mocks (~> 3.4.0)
|
28
|
-
rspec-core (3.4.1)
|
29
|
-
rspec-support (~> 3.4.0)
|
30
|
-
rspec-expectations (3.4.0)
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.4.0)
|
33
|
-
rspec-mocks (3.4.0)
|
34
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.4.0)
|
36
|
-
rspec-support (3.4.1)
|
37
|
-
terminal-table (1.5.2)
|
38
|
-
thor (0.19.1)
|
39
|
-
|
40
|
-
PLATFORMS
|
41
|
-
ruby
|
42
|
-
|
43
|
-
DEPENDENCIES
|
44
|
-
db-migrate!
|
45
|
-
rspec
|
46
|
-
|
47
|
-
BUNDLED WITH
|
48
|
-
1.10.6
|