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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/git_on +14 -0
  3. data/lib/git_on/version.rb +1 -1
  4. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02b8e431d36ca290cd31a251c4f00961c131bb05d3ed8274c399fd4ce00edd5d
4
- data.tar.gz: 20b875cecb9865a3d456f2dfb01a2e9639c9e656957fbfc3833977e363a82eea
3
+ metadata.gz: 87c6dd9f782ee1b33527129a1cc51ded9a62f37621bf4dcc8c5cd73190307006
4
+ data.tar.gz: 71e5eed08c4e58f3f84ce33811ca62ec7b92c79b8e1bb7ddc8b1934f84b70cba
5
5
  SHA512:
6
- metadata.gz: e9bd9f01d97b823b0908a295f5331e387d76510899fdd2865857586ce3c951125bfe0018fdc25fd1d2d17eb3318a8ab075851061f47b664d4e047e53223f3e47
7
- data.tar.gz: 6594439c961d937262a33a453d6d0c782237267eab1b4800bc058529b8aa0127dae4adebfaeaed379e46f5a9a7a6423c488fe4e3886f4f4d952174f00705dc9a
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitOn
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
5
5
  end
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.1.2
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.8
54
+ rubygems_version: 3.6.9
53
55
  specification_version: 4
54
56
  summary: Check git status.
55
57
  test_files: []