mysql-slaver 0.2.2 → 0.2.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/Rakefile +24 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c0d263ecc993a241659365210fe5a8dda8469f9
|
4
|
+
data.tar.gz: bf437185ea5161f8acdd4a05bf8d0899039d77bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dcdea10e0fa2739576cfd677b0777ecfbcd1beaebae82836e4bba78eee206039b54718ed0b638f92dcfbd68b33af6d346db7b35e49135227493ebad90a4ef66
|
7
|
+
data.tar.gz: 70c2aa29d71312a0a9343bef8e6df4f004f97245bfa75a03aef0f3d05d3e9250a15d28f0be4c8efedc21210c1cc2eef7ee18b5202198748a5a53a9050d417811
|
data/Rakefile
CHANGED
@@ -20,11 +20,11 @@ spec = Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
# Change these as appropriate
|
22
22
|
s.name = "mysql-slaver"
|
23
|
-
s.version = "0.2.
|
23
|
+
s.version = "0.2.3"
|
24
24
|
s.summary = "Setup mysql replication"
|
25
25
|
s.author = "David Salgado"
|
26
26
|
s.email = "david@digitalronin.com"
|
27
|
-
s.homepage = "https://digitalronin.github.io/2014/04/16/mysql-slaver-gem-setup-mysql-replication
|
27
|
+
s.homepage = "https://digitalronin.github.io/2014/04/16/mysql-slaver-gem-setup-mysql-replication.html"
|
28
28
|
s.description = "Make a mysql server into a slave of another, optionally copying data"
|
29
29
|
s.licenses = "[MIT]"
|
30
30
|
|
@@ -50,7 +50,7 @@ end
|
|
50
50
|
# be automatically building a gem for this project. If you're not
|
51
51
|
# using GitHub, edit as appropriate.
|
52
52
|
#
|
53
|
-
# To publish your gem online, install the 'gemcutter' gem; Read more
|
53
|
+
# To publish your gem online, install the 'gemcutter' gem; Read more
|
54
54
|
# about that here: http://gemcutter.org/pages/gem_docs
|
55
55
|
Gem::PackageTask.new(spec) do |pkg|
|
56
56
|
pkg.gem_spec = spec
|
@@ -80,3 +80,24 @@ desc 'Clear out RDoc and generated packages'
|
|
80
80
|
task clean: [:clobber_rdoc, :clobber_package] do
|
81
81
|
rm "#{spec.name}.gemspec"
|
82
82
|
end
|
83
|
+
|
84
|
+
desc 'Tag the repository in git with gem version number'
|
85
|
+
task :tag => [:gemspec, :package] do
|
86
|
+
if `git diff --cached`.empty?
|
87
|
+
if `git tag`.split("\n").include?("v#{spec.version}")
|
88
|
+
raise "Version #{spec.version} has already been released"
|
89
|
+
end
|
90
|
+
`git add #{File.expand_path("../#{spec.name}.gemspec", __FILE__)}`
|
91
|
+
`git commit -m "Released version #{spec.version}"`
|
92
|
+
`git tag v#{spec.version}`
|
93
|
+
`git push --tags`
|
94
|
+
`git push`
|
95
|
+
else
|
96
|
+
raise "Unstaged changes still waiting to be committed"
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
desc "Tag and publish the gem to rubygems.org"
|
101
|
+
task :publish => :tag do
|
102
|
+
`gem push pkg/#{spec.name}-#{spec.version}.gem`
|
103
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql-slaver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Salgado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -55,7 +55,7 @@ files:
|
|
55
55
|
- spec/mysql_slaver/slaver_spec.rb
|
56
56
|
- spec/mysql_slaver/status_fetcher_spec.rb
|
57
57
|
- spec/spec_helper.rb
|
58
|
-
homepage: https://digitalronin.github.io/2014/04/16/mysql-slaver-gem-setup-mysql-replication
|
58
|
+
homepage: https://digitalronin.github.io/2014/04/16/mysql-slaver-gem-setup-mysql-replication.html
|
59
59
|
licenses:
|
60
60
|
- "[MIT]"
|
61
61
|
metadata: {}
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.5.1
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Setup mysql replication
|