dbsync 1.0.0.beta2 → 1.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,6 +2,7 @@ source "http://rubygems.org"
2
2
 
3
3
  gem 'pry'
4
4
  gem 'rspec'
5
+ gem 'rake'
5
6
 
6
7
  # Specify your gem's dependencies in dbsync.gemspec
7
8
  gemspec
@@ -14,7 +14,7 @@ module Dbsync
14
14
  if defined?(Rails)
15
15
  class Railtie < Rails::Railtie
16
16
  rake_tasks do
17
- Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
17
+ load File.expand_path("dbsync/rake_tasks.rb", __FILE__)
18
18
  end
19
19
  end
20
20
  end
@@ -0,0 +1 @@
1
+ load File.expand_path('../../tasks/dbsync.rake', __FILE__)
@@ -1,3 +1,3 @@
1
1
  module Dbsync
2
- VERSION = "1.0.0.beta2"
2
+ VERSION = "1.0.0.beta3"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  # Easy database syncing for development/staging
2
+ require 'dbsync'
2
3
 
3
4
  desc "Alias for dbsync:pull"
4
5
  task :dbsync do
@@ -21,6 +22,12 @@ namespace :dbsync do
21
22
  end
22
23
  end
23
24
 
25
+ config = %w[ dbsync_setup.rb config/dbsync_setup.rb ].find do |path|
26
+ File.exists?(path)
27
+ end
28
+
29
+ load(config) if config
30
+
24
31
  @dbsync = Dbsync::Sync.new(file_config, db_config, verbose: true)
25
32
  end
26
33
 
metadata CHANGED
@@ -1,53 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bryan Ricker
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-07-15 00:00:00.000000000 Z
12
+ date: 2014-08-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: cocaine
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 0.5.0
20
- - - "<"
22
+ - - <
21
23
  - !ruby/object:Gem::Version
22
24
  version: '0.6'
23
25
  type: :runtime
24
26
  prerelease: false
25
27
  version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
26
29
  requirements:
27
- - - ">="
30
+ - - ! '>='
28
31
  - !ruby/object:Gem::Version
29
32
  version: 0.5.0
30
- - - "<"
33
+ - - <
31
34
  - !ruby/object:Gem::Version
32
35
  version: '0.6'
33
36
  - !ruby/object:Gem::Dependency
34
37
  name: bundler
35
38
  requirement: !ruby/object:Gem::Requirement
39
+ none: false
36
40
  requirements:
37
- - - ">="
41
+ - - ! '>='
38
42
  - !ruby/object:Gem::Version
39
43
  version: '1.6'
40
- - - "<"
44
+ - - <
41
45
  - !ruby/object:Gem::Version
42
46
  version: '2'
43
47
  type: :development
44
48
  prerelease: false
45
49
  version_requirements: !ruby/object:Gem::Requirement
50
+ none: false
46
51
  requirements:
47
- - - ">="
52
+ - - ! '>='
48
53
  - !ruby/object:Gem::Version
49
54
  version: '1.6'
50
- - - "<"
55
+ - - <
51
56
  - !ruby/object:Gem::Version
52
57
  version: '2'
53
58
  description: A set of rake tasks to help you sync your remote production data with
@@ -58,7 +63,7 @@ executables: []
58
63
  extensions: []
59
64
  extra_rdoc_files: []
60
65
  files:
61
- - ".gitignore"
66
+ - .gitignore
62
67
  - CHANGELOG.md
63
68
  - Gemfile
64
69
  - MIT-LICENSE
@@ -69,6 +74,7 @@ files:
69
74
  - lib/dbsync/importer.rb
70
75
  - lib/dbsync/importer/base.rb
71
76
  - lib/dbsync/importer/mysql.rb
77
+ - lib/dbsync/rake_tasks.rb
72
78
  - lib/dbsync/strategy.rb
73
79
  - lib/dbsync/strategy/base.rb
74
80
  - lib/dbsync/strategy/curl.rb
@@ -83,27 +89,31 @@ files:
83
89
  homepage: https://github.com/bricker/dbsync
84
90
  licenses:
85
91
  - MIT
86
- metadata: {}
87
92
  post_install_message:
88
93
  rdoc_options: []
89
94
  require_paths:
90
95
  - lib
91
96
  - lib/tasks
92
97
  required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
93
99
  requirements:
94
- - - ">="
100
+ - - ! '>='
95
101
  - !ruby/object:Gem::Version
96
102
  version: '0'
103
+ segments:
104
+ - 0
105
+ hash: 1925122086461519938
97
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
98
108
  requirements:
99
- - - ">"
109
+ - - ! '>'
100
110
  - !ruby/object:Gem::Version
101
111
  version: 1.3.1
102
112
  requirements: []
103
113
  rubyforge_project:
104
- rubygems_version: 2.2.2
114
+ rubygems_version: 1.8.23.2
105
115
  signing_key:
106
- specification_version: 4
116
+ specification_version: 3
107
117
  summary: Easy syncing from remote to development database in Rails.
108
118
  test_files:
109
119
  - spec/local/.gitkeep
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 6361e83ca4c1d35147ad652e0be945ee8d198cce
4
- data.tar.gz: a0c7d17fc882430f53c2309f14a9be2f379728c0
5
- SHA512:
6
- metadata.gz: 126d7451021ddf112e89a6c753c185b470187d03fe26cd965b26b046a0fc3f652e21be03eb0e379a9871de85c7ada0a0dde5b69381c8ea0e233bfc708522cac0
7
- data.tar.gz: 075b0e1041f00c29938133e08b3c4d59342fa45f8970b6350f0707263e12ec5c3acc377fd5d611e60653dac825be5e567dd2ebc32ed2aa342f97d52fc24df61e