semvergen 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/semvergen/bump.rb +18 -2
- data/lib/semvergen/launcher.rb +1 -5
- data/lib/semvergen/shell.rb +4 -0
- data/lib/semvergen/version.rb +1 -1
- data/lib/semvergen.rb +0 -1
- metadata +2 -3
- data/lib/semvergen/release.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e02ad8f4dd53a6c302389c2a8cf964f9ac440b4a
|
4
|
+
data.tar.gz: b87a41c3c1b8ecba73f1c403bea1017d91303261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b60c0f46e65c8f9b6e333adfc66db4a2819475f823e3c8eb4ae603e6d2e5f6aedb328fc13436b259cec39d3767c2586582f2d488beb2f0181a7e421b0ce06be
|
7
|
+
data.tar.gz: 1d26dd9f007fda192291cf6fc3d267da86188f69fcfc3ecb414f11d77b648758a4c44011a2b05aa946110494fab00e6538cd79c1482201d0e8c200e6bf0b319e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/semvergen/bump.rb
CHANGED
@@ -16,11 +16,13 @@ module Semvergen
|
|
16
16
|
|
17
17
|
def_delegators :@interface, :say, :ask, :color, :choose, :newline, :agree
|
18
18
|
|
19
|
-
def initialize(interface, version_file, change_log_file, shell)
|
19
|
+
def initialize(interface, version_file, change_log_file, shell, gem_name, gem_server)
|
20
20
|
@interface = interface
|
21
21
|
@version_file = version_file
|
22
22
|
@change_log_file = change_log_file
|
23
23
|
@shell = shell
|
24
|
+
@gem_name = gem_name
|
25
|
+
@gem_server = gem_server
|
24
26
|
end
|
25
27
|
|
26
28
|
def run!(options)
|
@@ -108,10 +110,24 @@ module Semvergen
|
|
108
110
|
|
109
111
|
@shell.commit(@version_file.path, new_version, commit_message, features)
|
110
112
|
|
113
|
+
@shell.push
|
114
|
+
|
115
|
+
newline
|
116
|
+
end
|
117
|
+
|
118
|
+
if agree("Release? ")
|
119
|
+
say "Found gemspec: #{color(@gem_name, :green)}"
|
111
120
|
newline
|
112
121
|
|
113
|
-
say color("
|
122
|
+
say color("Building gem: ")
|
123
|
+
@shell.build_gem(@gem_name)
|
124
|
+
say color("OK", :green, :bold)
|
125
|
+
|
126
|
+
say color("Publishing: ")
|
127
|
+
@shell.publish(@gem_name, @version_file.version, @gem_server)
|
128
|
+
say color("OK", :green, :bold)
|
114
129
|
end
|
130
|
+
|
115
131
|
end
|
116
132
|
end
|
117
133
|
|
data/lib/semvergen/launcher.rb
CHANGED
@@ -3,11 +3,7 @@ module Semvergen
|
|
3
3
|
class Launcher
|
4
4
|
|
5
5
|
def bump!(options={})
|
6
|
-
Semvergen::Bump.new(interface, version_file, change_log_file, shell).run!(options)
|
7
|
-
end
|
8
|
-
|
9
|
-
def release!(options={})
|
10
|
-
Semvergen::Release.new(interface, gem_name, gem_server, shell, version_file).run!(options)
|
6
|
+
Semvergen::Bump.new(interface, version_file, change_log_file, shell, gem_name, gem_server).run!(options)
|
11
7
|
end
|
12
8
|
|
13
9
|
private
|
data/lib/semvergen/shell.rb
CHANGED
@@ -18,6 +18,10 @@ module Semvergen
|
|
18
18
|
execute %Q[git commit -m "#{commit_body}"]
|
19
19
|
end
|
20
20
|
|
21
|
+
def push(remote_name="origin", branch_name="master")
|
22
|
+
execute "git push #{remote_name} #{branch_name}"
|
23
|
+
end
|
24
|
+
|
21
25
|
def build_gem(gem_name)
|
22
26
|
execute "gem build #{gem_name}.gemspec --force"
|
23
27
|
end
|
data/lib/semvergen/version.rb
CHANGED
data/lib/semvergen.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semvergen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brendon McLean
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -133,7 +133,6 @@ files:
|
|
133
133
|
- lib/semvergen/change_log_file.rb
|
134
134
|
- lib/semvergen/interface.rb
|
135
135
|
- lib/semvergen/launcher.rb
|
136
|
-
- lib/semvergen/release.rb
|
137
136
|
- lib/semvergen/shell.rb
|
138
137
|
- lib/semvergen/version.rb
|
139
138
|
- lib/semvergen/version_file.rb
|
data/lib/semvergen/release.rb
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
module Semvergen
|
2
|
-
|
3
|
-
class Release
|
4
|
-
|
5
|
-
extend Forwardable
|
6
|
-
|
7
|
-
def_delegators :@interface, :say, :ask, :color, :choose, :newline, :agree
|
8
|
-
|
9
|
-
def initialize(interface, gem_name, gem_server, shell, version_file)
|
10
|
-
@interface = interface
|
11
|
-
@gem_name = gem_name
|
12
|
-
@gem_server = gem_server
|
13
|
-
@shell = shell
|
14
|
-
@version_file = version_file
|
15
|
-
end
|
16
|
-
|
17
|
-
def run!(options)
|
18
|
-
say "Found gemspec: #{color(@gem_name, :green)}"
|
19
|
-
newline
|
20
|
-
|
21
|
-
say color("Building gem: ")
|
22
|
-
@shell.build_gem(@gem_name)
|
23
|
-
say color("OK", :green, :bold)
|
24
|
-
|
25
|
-
say color("Publishing: ")
|
26
|
-
@shell.publish(@gem_name, @version_file.version, @gem_server)
|
27
|
-
say color("OK", :green, :bold)
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
end
|