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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75dcf2a58c9a2a6c241045ee8c51f139d2b073d7
4
- data.tar.gz: 24463c3cd30605cc1a2d7e4ee823136f6cd0b400
3
+ metadata.gz: e02ad8f4dd53a6c302389c2a8cf964f9ac440b4a
4
+ data.tar.gz: b87a41c3c1b8ecba73f1c403bea1017d91303261
5
5
  SHA512:
6
- metadata.gz: 5c25bf3934540a29dddd0c4eb435ed61f21888393ccc47a61a43f98a4c2984448dd307ca79a780ff54ea854673f37bcb376e98c0a3773e3bc4ef7a0020dea3fa
7
- data.tar.gz: aad011f3c0c6db0df085a933cd8c29aaf8acc9388cf0c47e820b793b1019d4fb854c152683fb5a9e732f64bae7ecaebc101e637fcc849068f897a28c838e1f1b
6
+ metadata.gz: 2b60c0f46e65c8f9b6e333adfc66db4a2819475f823e3c8eb4ae603e6d2e5f6aedb328fc13436b259cec39d3767c2586582f2d488beb2f0181a7e421b0ce06be
7
+ data.tar.gz: 1d26dd9f007fda192291cf6fc3d267da86188f69fcfc3ecb414f11d77b648758a4c44011a2b05aa946110494fab00e6538cd79c1482201d0e8c200e6bf0b319e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ # 1.1.0
4
+ * Push to origin in bump step
5
+ * Release in bump step
6
+
7
+
3
8
  # 1.0.0
4
9
  * Bump to version 1
5
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- semvergen (0.1.0)
4
+ semvergen (1.1.0)
5
5
  geminabox
6
6
  highline (~> 1.6)
7
7
  thor (~> 0.14)
@@ -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("To release, use semvergen release", :bold, :green)
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
 
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Semvergen
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/lib/semvergen.rb CHANGED
@@ -3,7 +3,6 @@ require "semvergen/version"
3
3
  require "semvergen/launcher"
4
4
  require "semvergen/interface"
5
5
  require "semvergen/bump"
6
- require "semvergen/release"
7
6
  require "semvergen/change_log_file"
8
7
  require "semvergen/shell"
9
8
  require "semvergen/version_file"
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.0.0
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-07-10 00:00:00.000000000 Z
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
@@ -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