mina-db_sync 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/README.md +29 -10
- data/lib/mina/db_sync/tasks.rb +0 -2
- data/lib/mina/db_sync/version.rb +1 -1
- data/mina-db_sync.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40363debd3fe1730246bcf4e04262fa2e75f457e
|
4
|
+
data.tar.gz: 80750cccd1761a8b88cba62590fa8117288751c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e0f6a5c3f9c7bc99f752c743b3fa462bf2e8b2ff791f57e5aad472b40f31ec2973120b8853f00628f1ecd9038c53f1d7b733b432ca658b788e3d441df0f59d2
|
7
|
+
data.tar.gz: 3d8a27e91de26c4f5e2d61d556fbcd65845c6e91ea479ae2c208d9964a34a912497a3d250bb537dd66539bda557bdbc7d785b606ff0b59befaedda5e57253806
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
# Mina
|
1
|
+
# Mina Db Sync
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Copy specific tables between your production and development databases
|
4
|
+
using [Mina](https://github.com/mina-deploy/mina) for your Rails app.
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -22,18 +21,38 @@ Or install it yourself as:
|
|
22
21
|
|
23
22
|
## Usage
|
24
23
|
|
25
|
-
|
24
|
+
Get data from the server to your local db:
|
25
|
+
|
26
|
+
```
|
27
|
+
bundle exec mina db:get_tables
|
28
|
+
```
|
26
29
|
|
27
|
-
|
30
|
+
Get data from your local db to the server:
|
31
|
+
|
32
|
+
```
|
33
|
+
bundle exec mina db:put_tables
|
34
|
+
```
|
28
35
|
|
29
|
-
|
36
|
+
You'll be asked to supply the name(s) of any database tables you'd like
|
37
|
+
to be copied over. All data in the target table(s) will be removed as part
|
38
|
+
of the process, so make sure you backup first if you're paranoid.
|
30
39
|
|
31
|
-
|
40
|
+
You'll probably find it easier to binstub mina:
|
32
41
|
|
33
|
-
|
42
|
+
```
|
43
|
+
bundle binstubs mina
|
44
|
+
```
|
45
|
+
|
46
|
+
And then:
|
47
|
+
|
48
|
+
```
|
49
|
+
bin/mina db:get_tables
|
50
|
+
bin/mina db:put_tables
|
51
|
+
```
|
34
52
|
|
35
|
-
|
53
|
+
## Database Support
|
36
54
|
|
55
|
+
Right now, this is only for postgresql, but I hope to add MySQL support in the future.
|
37
56
|
|
38
57
|
## License
|
39
58
|
|
data/lib/mina/db_sync/tasks.rb
CHANGED
data/lib/mina/db_sync/version.rb
CHANGED
data/mina-db_sync.gemspec
CHANGED
@@ -9,9 +9,9 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Jason Floyd"]
|
10
10
|
spec.email = ["jason.floyd@camfil.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{Sync database tables between production & development.}
|
12
|
+
spec.summary = %q{Sync database tables between production & development using mina.}
|
13
13
|
spec.description = ''
|
14
|
-
|
14
|
+
spec.homepage = 'https://github.com/floydj/mina-db_sync'
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-db_sync
|
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
|
- Jason Floyd
|
@@ -88,7 +88,7 @@ files:
|
|
88
88
|
- lib/mina/db_sync/tasks.rb
|
89
89
|
- lib/mina/db_sync/version.rb
|
90
90
|
- mina-db_sync.gemspec
|
91
|
-
homepage:
|
91
|
+
homepage: https://github.com/floydj/mina-db_sync
|
92
92
|
licenses:
|
93
93
|
- MIT
|
94
94
|
metadata: {}
|
@@ -111,5 +111,5 @@ rubyforge_project:
|
|
111
111
|
rubygems_version: 2.5.2
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
|
-
summary: Sync database tables between production & development.
|
114
|
+
summary: Sync database tables between production & development using mina.
|
115
115
|
test_files: []
|