pivotoolz 1.2.0 → 1.2.2

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: f675f23dd5b2e83db378e9088dc7c9d5f711d753eae8fd7f2676f9e003931b32
4
- data.tar.gz: dfafce21e5efb57a2cb23ad0f459fcf82ab9e06ceec68e4af635ee09d7ddb63a
3
+ metadata.gz: dce9f049813a75033d4a499da7caf119aadf0a369ad851882833e5e90ef28ffa
4
+ data.tar.gz: 325b2049fd6e74137ccd18554935bdf78c69a50a6b2b853b4a00e8370cd43b79
5
5
  SHA512:
6
- metadata.gz: '09eaf5353a2232e96ff74158bb11459e6f3442814e85a7ca673c68b4085d37d471da0d2619657b6fc599a54219b131d4b8d9a1b55b0b836e00aae65561816026'
7
- data.tar.gz: b5fdf1e1f8d610e9c52939db099687d8ecd275ba74e006ebde7d71881fd0f4bb0ca69905c2f19cfb3323c41fbfdbad4f06419b99c34e38312f5299028c270bc0
6
+ metadata.gz: 2f0f4588c7b334c13b5bf8c43889cf572ca6eb5f9c02898c3fa58cf58799fdd2bab483a1e392f6599bf10b85e3cbf701fb4a1a6a8cadedb84af14b34fb8bd4ed
7
+ data.tar.gz: ba1d55f64f7cb29f01056ccb28762652e8b282f362d9370441acb2b3b61e81f812421d6fba7c9a8c5999ca277cbdc2fe33f8e9c58a061fce3c83862d734fbb5e
data/README.md CHANGED
@@ -193,7 +193,9 @@ Example:
193
193
  ```bash
194
194
  pv-git-branch "#111222333"
195
195
  ```
196
- This would create and checkout a new branch: `af/features/building-someting-great-111222333`
196
+ This would create and checkout a new branch: `af/features/building-someting-great-111222333`.
197
+
198
+ If the branch had already been created, the command will automatically check out existing branch.
197
199
 
198
200
  ![usage](assets/pv-git-branch-demo.gif)
199
201
 
@@ -214,3 +216,9 @@ The gem is available as open source under the terms of the [MIT License](https:/
214
216
  ## Code of Conduct
215
217
 
216
218
  Everyone interacting in the Pivotoolz project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/sufyanadam/pivotoolz/blob/master/CODE_OF_CONDUCT.md).
219
+
220
+ ## Contributors
221
+
222
+ - [Sufyan Adam](https://github.com/sufyanadam)
223
+ - [Aaron Fry](https://github.com/netsprout)
224
+ - [Alessandro Metta](https://github.com/n0f3)
@@ -7,7 +7,7 @@ URL = ENV['SLACK_WEBHOOK_URL']
7
7
 
8
8
  channel = ARGV.shift
9
9
  content = ARGV.empty? ? ARGF.read : StringIO.new(ARGV.join("\n")).read
10
- exit 0 if content.empty?
10
+ exit 0 if content.strip.empty?
11
11
 
12
12
  begin
13
13
  if attachments = JSON.parse(
@@ -21,6 +21,10 @@ class GitBranch
21
21
 
22
22
  def create_branch(branch_name)
23
23
  `git checkout -b #{branch_name}`
24
+ if $?.exitstatus == 128
25
+ puts 'Checking out existing branch...'
26
+ `git checkout #{branch_name}`
27
+ end
24
28
  end
25
29
 
26
30
  def get_pivotal_story(pivotal_id)
@@ -1,3 +1,3 @@
1
1
  module Pivotoolz
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotoolz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sufyan Adam
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-13 00:00:00.000000000 Z
11
+ date: 2018-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  version: '0'
136
136
  requirements: []
137
137
  rubyforge_project:
138
- rubygems_version: 2.7.7
138
+ rubygems_version: 2.7.3
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Tools to save you time when working with Pivotal Tracker stories