git_on 0.1.2 → 0.2.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 +4 -4
- data/exe/git_on +14 -0
- data/lib/git_on/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87c6dd9f782ee1b33527129a1cc51ded9a62f37621bf4dcc8c5cd73190307006
|
4
|
+
data.tar.gz: 71e5eed08c4e58f3f84ce33811ca62ec7b92c79b8e1bb7ddc8b1934f84b70cba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c0906be89d1ed3c5012339ce1ed5e9ca766fd1e320f68eb6f3f91a8276134d8dad8f4e5db06dea0341b9be4480ab6db9e943523a2d1b9008faaf51da73f816
|
7
|
+
data.tar.gz: d4ec0b92ade50843231334afc83783a908c5588d3c91d0186f56b8dc6b97e180b669c65ca71819962e3932696ce44ad50edd81f0731861410147acde2aff70af
|
data/exe/git_on
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require_relative '../lib/git_on'
|
4
|
+
|
5
|
+
status = GitOn.status
|
6
|
+
status_text = "Git is #{status[:git]}"
|
7
|
+
if status[:git] == :active
|
8
|
+
if status[:branch]
|
9
|
+
status_text += " on branch #{status[:branch]}"
|
10
|
+
else
|
11
|
+
status_text += " on unknown branch"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
puts status_text
|
data/lib/git_on/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard LeBer
|
@@ -15,7 +15,8 @@ description: |2
|
|
15
15
|
this code, or nothing has been checked in.
|
16
16
|
email:
|
17
17
|
- richard.leber@gmail.com
|
18
|
-
executables:
|
18
|
+
executables:
|
19
|
+
- git_on
|
19
20
|
extensions: []
|
20
21
|
extra_rdoc_files: []
|
21
22
|
files:
|
@@ -26,6 +27,7 @@ files:
|
|
26
27
|
- LICENSE.txt
|
27
28
|
- README.md
|
28
29
|
- Rakefile
|
30
|
+
- exe/git_on
|
29
31
|
- lib/git_on.rb
|
30
32
|
- lib/git_on/version.rb
|
31
33
|
- sig/git_on.rbs
|
@@ -49,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
51
|
- !ruby/object:Gem::Version
|
50
52
|
version: '0'
|
51
53
|
requirements: []
|
52
|
-
rubygems_version: 3.6.
|
54
|
+
rubygems_version: 3.6.9
|
53
55
|
specification_version: 4
|
54
56
|
summary: Check git status.
|
55
57
|
test_files: []
|