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: b1c7d8822f1ce438e1b1c38e0fe70c84b3f4990f74ded28e55a94d48263e1cfe
4
- data.tar.gz: d5c5244785a1e77c1b92424496b974fc1cc2f8f6620b90686177301f1c759990
3
+ metadata.gz: 928103521478b71c7511e13e469a0257a8092c12bbc3fedd8bf66a5ca040430d
4
+ data.tar.gz: dc6a3e857e8e90e17603a4c8f3f2d4a6a1002ba874a85a50c355af5febee4459
5
5
  SHA512:
6
- metadata.gz: ab506f4ecdf9fca06c12206dc141416def87993bdf325a926e55c6816d5182a084b2c59b8cc9f1cd3dda6b63360612eb9a98078ef645ce885cf8f687cde078c0
7
- data.tar.gz: cc5d3f181ececf3f864c419ffe78921731cb150cc768d4662d58e5f142ec65d5c754a04516fc101d204eab1ff825227a7c766c00b6ced47da778e7caeec0574a
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 '../../lib/bake/gem/shell'
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 '../../lib/bake/gem/shell'
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)
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Bake
24
24
  module Gem
25
- VERSION = "0.1.0"
25
+ VERSION = "0.2.0"
26
26
  end
27
27
  end
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.1.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