flight_plan_cli 0.3.6 → 0.3.7
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/VERSION +1 -1
- data/lib/flight_plan_cli/commands/checkout.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f88c5505e75d69dd10fb6c9b80d48f7856e4913f
|
|
4
|
+
data.tar.gz: 35a4a0a2ba128af47d65cb07f3b7bf1d8ca19dfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e43878c3207314c979bd3b18038e357a5f45b81650c25e539d8551659ff9522b233a3adfc092f255bc245daebded5f18b5cbac12bde524ce7758590c57f30362
|
|
7
|
+
data.tar.gz: 0d4752221e01ec91badb1c8ffda6ee772ad8c021b24f4223275fdbd69e85c6c0a390aa185b6b35d41f5c0ef96ce67b20c95fbc71979fa2977b59d81aebc27dfe
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.7
|
|
@@ -58,7 +58,11 @@ module FlightPlanCli
|
|
|
58
58
|
def branch_name(branch)
|
|
59
59
|
"feature/##{branch['ticket']['remote_number']}-" +
|
|
60
60
|
branch['ticket']['remote_title']
|
|
61
|
-
.gsub(
|
|
61
|
+
.gsub(/\([^)]*\)/, '') # remove everything inside brackets
|
|
62
|
+
.match(/^.{0,60}\b/)[0] # take the first 60 chars (finish on word boundry)
|
|
63
|
+
.gsub(/[^a-z0-9\s]/i, '') # remove everything except alpha-numeric
|
|
64
|
+
.squeeze
|
|
65
|
+
.strip
|
|
62
66
|
.tr(' ', '-')
|
|
63
67
|
.downcase
|
|
64
68
|
end
|