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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57c6d9adc6b8c7a6dbc6507f1e9805a9784dd010
4
- data.tar.gz: ccb9aa5b0822ffe17efcf762797bba236c6a1894
3
+ metadata.gz: 40363debd3fe1730246bcf4e04262fa2e75f457e
4
+ data.tar.gz: 80750cccd1761a8b88cba62590fa8117288751c7
5
5
  SHA512:
6
- metadata.gz: 70d21f3ad5eff708f36424ae14d6e5d371810e0823955df6b9d54713c273494344c1550b996e53bf9318de5f08ad0dfa3d8581f0a65090904e01889b163eb17e
7
- data.tar.gz: 05e9b42b6149ca998985981ccb5b5450ce3db0a059a00c00ad1dfecd733de96f9751b09b5082bcb9cbc921ae2c7ade6a578ffa9f07e70909c719a714d56db437
6
+ metadata.gz: 7e0f6a5c3f9c7bc99f752c743b3fa462bf2e8b2ff791f57e5aad472b40f31ec2973120b8853f00628f1ecd9038c53f1d7b733b432ca658b788e3d441df0f59d2
7
+ data.tar.gz: 3d8a27e91de26c4f5e2d61d556fbcd65845c6e91ea479ae2c208d9964a34a912497a3d250bb537dd66539bda557bdbc7d785b606ff0b59befaedda5e57253806
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
- # Mina::DbSync
1
+ # Mina Db Sync
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/mina/db_sync`. 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
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
- TODO: Write usage instructions here
24
+ Get data from the server to your local db:
25
+
26
+ ```
27
+ bundle exec mina db:get_tables
28
+ ```
26
29
 
27
- ## Development
30
+ Get data from your local db to the server:
31
+
32
+ ```
33
+ bundle exec mina db:put_tables
34
+ ```
28
35
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+ You'll probably find it easier to binstub mina:
32
41
 
33
- ## Contributing
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
- Bug reports and pull requests are welcome on GitHub at https://github.com/Jason Floyd/mina-db_sync.
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
 
@@ -1,6 +1,4 @@
1
- #require 'rake'
2
1
  require 'yaml'
3
- #require 'mina'
4
2
  require 'mina/bundler'
5
3
 
6
4
  namespace :db do
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module DbSync
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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
- #spec.homepage = "TODO: Put your gem's website or public repo URL here."
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.0
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: []