geordi 7.0.2 → 8.0.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/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/README.md +3 -0
- data/lib/geordi/commands/branch.rb +3 -1
- data/lib/geordi/gitpt.rb +4 -4
- data/lib/geordi/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5269b4048b40bb81c2d1d89400cbbdabc080107cce0befca2722dbad3451f4b2
|
|
4
|
+
data.tar.gz: 2f48fae5fb0849795b994ef3c3c58fcb255024da72e4879f65f5867529a7145a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18ac47bd9c3fb39c3a916f2ece300b931c0af9c466068cbbae5a98bf4db1655063f74096c967e4337d29a96c87202653f3b88a200b5d8e0b2cd8985acf4c41de
|
|
7
|
+
data.tar.gz: 02cfbe20e95b29cf90d65760d39587fe43bebf0c7886364816bd16f71d705110f4b3b7af4f98c1873332b08308040bb7e1d4bc897079b8d0469ffa8c1c24e433
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
## Unreleased
|
|
7
8
|
|
|
8
9
|
### Compatible changes
|
|
@@ -10,16 +11,24 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
10
11
|
### Breaking changes
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
## 8.0.0 2021-11-08
|
|
15
|
+
|
|
16
|
+
### Breaking changes
|
|
17
|
+
* `geordi branch` now checks out new branches from the current branch instead of master. To check out from master, use `geordi branch -m`.
|
|
18
|
+
|
|
19
|
+
|
|
13
20
|
## 7.0.2 2021-10-06
|
|
14
21
|
|
|
15
22
|
### Compatible changes
|
|
16
23
|
* fix `YAML.safe_load` for `psych` >= 4
|
|
17
24
|
|
|
25
|
+
|
|
18
26
|
## 7.0.1 2021-08-13
|
|
19
27
|
|
|
20
28
|
### Compatible changes
|
|
21
29
|
* Fix missing `thor` dependency
|
|
22
30
|
|
|
31
|
+
|
|
23
32
|
## 7.0.0 2021-08-25
|
|
24
33
|
|
|
25
34
|
### Breaking changes
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -33,6 +33,9 @@ Example: `geordi branch`
|
|
|
33
33
|
On the first execution we ask for your Pivotal Tracker API token. It will be
|
|
34
34
|
stored in `~/.config/geordi/global.yml`.
|
|
35
35
|
|
|
36
|
+
**Options**
|
|
37
|
+
- `-m, [--from-master], [--no-from-master]`: Branch from master instead of the current branch
|
|
38
|
+
|
|
36
39
|
|
|
37
40
|
### `geordi capistrano COMMAND`
|
|
38
41
|
Run a capistrano command on all deploy targets.
|
|
@@ -6,7 +6,9 @@ On the first execution we ask for your Pivotal Tracker API token. It will be
|
|
|
6
6
|
stored in `~/.config/geordi/global.yml`.
|
|
7
7
|
LONGDESC
|
|
8
8
|
|
|
9
|
+
option :from_master, aliases: '-m', type: :boolean, desc: 'Branch from master instead of the current branch'
|
|
10
|
+
|
|
9
11
|
def branch
|
|
10
12
|
require 'geordi/gitpt'
|
|
11
|
-
Gitpt.new.run_branch
|
|
13
|
+
Gitpt.new.run_branch(from_master: options.from_master)
|
|
12
14
|
end
|
data/lib/geordi/gitpt.rb
CHANGED
|
@@ -26,7 +26,7 @@ module Geordi
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
def run_branch
|
|
29
|
+
def run_branch(from_master: false)
|
|
30
30
|
story = choose_story || Interaction.fail('No story selected.')
|
|
31
31
|
|
|
32
32
|
normalized_story_name = normalize_string(story.name)
|
|
@@ -50,7 +50,7 @@ module Geordi
|
|
|
50
50
|
if branch_name.present?
|
|
51
51
|
checkout_branch branch_name, new_branch: false
|
|
52
52
|
else
|
|
53
|
-
checkout_branch new_branch_name, new_branch: true
|
|
53
|
+
checkout_branch new_branch_name, new_branch: true, from_master: from_master
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -139,9 +139,9 @@ module Geordi
|
|
|
139
139
|
HighLine::BOLD + string + HighLine::RESET
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
def checkout_branch(name, new_branch: false)
|
|
142
|
+
def checkout_branch(name, new_branch: false, from_master: false)
|
|
143
143
|
if new_branch
|
|
144
|
-
Util.run! ['git', 'checkout', 'master']
|
|
144
|
+
Util.run! ['git', 'checkout', 'master'] if from_master
|
|
145
145
|
Util.run! ['git', 'checkout', '-b', name]
|
|
146
146
|
else
|
|
147
147
|
Util.run! ['git', 'checkout', name]
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geordi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 8.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
|
-
rubygems_version: 3.2.
|
|
120
|
+
rubygems_version: 3.2.30
|
|
121
121
|
signing_key:
|
|
122
122
|
specification_version: 4
|
|
123
123
|
summary: Collection of command line tools we use in our daily work with Ruby, Rails
|