fulmar 1.1.0 → 1.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
  SHA1:
3
- metadata.gz: ec0fe71a95742d097b3d61053620fee7453fcd7f
4
- data.tar.gz: d92d58a45c299f073afb02ea32e26fe2344b3d68
3
+ metadata.gz: 55cfab2d652861606d72d808bd871adcf42f4178
4
+ data.tar.gz: db07f7edbc5d57b033b3fa37182cab5eb2dc313a
5
5
  SHA512:
6
- metadata.gz: 7f8ebdc7e5247a90f35db2c30bfbef6630679f05b25b689325e2d984f3d23032df58e1e69d37e9981dac0461b28e2ed972badecc351965d11bdb8c35cb4a590e
7
- data.tar.gz: 777be47a8bb21a2343fd5d8934464f3000133f8b287206a6afa3eee9d4cd8de90c99fbfca80524d189f038304c5030937c63322b9f6f538b93982bf63cfff347
6
+ metadata.gz: 51e636bea32532f3b0f9471b88d56f99011672729bd90c9527fea7577c6640498e661f784f3d28df82188bb43754f4105bddcf40c0a74b004bf78a1a2557a498
7
+ data.tar.gz: be2e26605ab98d0577d91a76d839a269ac06bbe760880465043523c1f1abb0dcf9ca58613f388ea862fb77ee6b8e4f3daf1f1521c0359fd1091fdb02009d5f44
@@ -44,6 +44,14 @@ module Fulmar
44
44
  branches.select { |name| name.match(/^preview_/) }.sort
45
45
  end
46
46
 
47
+ def current_hash
48
+ @git.head.target_id
49
+ end
50
+
51
+ def current_branch
52
+ @git.head.name.split('/').last
53
+ end
54
+
47
55
  def checkout(branch_name = derive_branch_name)
48
56
  if branches.include?(branch_name)
49
57
  @git.checkout(branches.first)
@@ -1,4 +1,4 @@
1
1
  # Provides a global version number
2
2
  module Fulmar
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fulmar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Siegl