git.rb 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 877ad4b138a4459b013c00d5fffd8bbd42ef5dbd3062141fdca0e4392ecc18b5
4
- data.tar.gz: a81786d724174284167edb05749c6dece6e76624b4fefe2dfb1d2f90b3d172c5
3
+ metadata.gz: 459398f5d902325a3770ac8c518c9a8013fcc1628cdd9b378928c511bc4ef60d
4
+ data.tar.gz: 8ca58382ad1011dad9a66e78cf4afefbc6ccc9ce4c7bf5b257d019a5a60a6f7e
5
5
  SHA512:
6
- metadata.gz: a76547e738e94c23a6f316c650dc7b23851fba39fe9a4d9dd66ce236bde3bb7832b1fa53dac8cba9175b6bfdc8e6c5e8ce431723ae56f943b5fd33752855ff87
7
- data.tar.gz: 11bad50830bc2e8126db9ba55792df46ac5df5cbe7d5047899770c071344a913b52edabaacbda4f80eea5ed8287891700b0adb3169793751d2d0e4e127b7a929
6
+ metadata.gz: 1c34905fa20b9f3c0ae51d5525afab7cc2714c7c4f68e89c3be1a8cd114b662b7564a31d1dbb511aa8f1c06b01a64602612c51a5d418764bb245a6830365b8db
7
+ data.tar.gz: 6022dd1235db64aef9b2a9d64775a3603c97fb7d73632b10836438c1f8bbc5064663bff882df1c6686d6ea0a335370a78ccc6e6377ed668213bb65ec85b75f0d
@@ -94,6 +94,10 @@ module Git
94
94
  end
95
95
  alias_method :head, :current
96
96
 
97
+ def default
98
+ `git rev-parse --abbrev-ref origin/HEAD`.strip.split('/').last
99
+ end
100
+
97
101
  end # class << self
98
102
 
99
103
  attr_accessor :name
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
 
3
- VERSION = '0.11.0'
3
+ VERSION = '0.12.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-08 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Do stuff with git-blame, git-branch, git-log, and git-remote from Ruby.
14
14
  email: code@thoran.com