bake-gem 0.1.0 → 0.2.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928103521478b71c7511e13e469a0257a8092c12bbc3fedd8bf66a5ca040430d
|
4
|
+
data.tar.gz: dc6a3e857e8e90e17603a4c8f3f2d4a6a1002ba874a85a50c355af5febee4459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab2022fb8aad7fecbbd9f589c57f1a78535f5d6ad0415dd0c8fc4eaac4ce2d144d1f22d233e4c246d55a27dabc22841df3fa08e54c59cc499448c7f889d4d32d
|
7
|
+
data.tar.gz: 1e6b935276664a89e95a31166a893744465373bce343935ce047ec38c413e82d19a2839210f570cd42411778df90e8680dfe84188f7debce2053093d80eea771
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
# THE SOFTWARE.
|
22
22
|
|
23
|
-
require_relative '
|
23
|
+
require_relative '../../../lib/bake/gem/shell'
|
24
24
|
|
25
25
|
include Bake::Gem::Shell
|
26
26
|
|
@@ -50,7 +50,7 @@ def commit(bump, message: "Bump version.")
|
|
50
50
|
|
51
51
|
# helper.guard_clean
|
52
52
|
|
53
|
-
version_path = context.lookup('gem:version:increment').call(bump, message: message)
|
53
|
+
version_path = context.lookup('gem:release:version:increment').call(bump, message: message)
|
54
54
|
|
55
55
|
if version_path
|
56
56
|
system("git", "checkout", "-b", "release-v#{gemspec.version}")
|
@@ -20,7 +20,7 @@
|
|
20
20
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
21
|
# THE SOFTWARE.
|
22
22
|
|
23
|
-
require_relative '
|
23
|
+
require_relative '../../../lib/bake/gem/shell'
|
24
24
|
|
25
25
|
include Bake::Gem::Shell
|
26
26
|
|
@@ -63,6 +63,9 @@ end
|
|
63
63
|
# @parameter bump [Array(Integer | Nil)] the version bump to apply before publishing, e.g. `0,1,0` to increment minor version number.
|
64
64
|
# @parameter message [String] the git commit message to use.
|
65
65
|
def commit(bump, message: "Bump version.")
|
66
|
+
release = context.lookup('gem:release')
|
67
|
+
helper = release.instance.helper
|
68
|
+
|
66
69
|
helper.guard_clean
|
67
70
|
|
68
71
|
version_path = increment(bump, message: message)
|
data/lib/bake/gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bake-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -17,8 +17,8 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- bake/gem.rb
|
20
|
-
- bake/gem/branch.rb
|
21
|
-
- bake/gem/version.rb
|
20
|
+
- bake/gem/release/branch.rb
|
21
|
+
- bake/gem/release/version.rb
|
22
22
|
- lib/bake/gem.rb
|
23
23
|
- lib/bake/gem/helper.rb
|
24
24
|
- lib/bake/gem/shell.rb
|