socialcast-git-extensions 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -46,12 +46,12 @@ module Socialcast
46
46
  end
47
47
 
48
48
  def assert_tickets_provided(ticket_ids, branch)
49
- tickets = tickets_from_branch_and_arguments(ticket_ids, branch)
49
+ tickets = tickets_from_arguments_or_branch(ticket_ids, branch)
50
50
  raise "JIRA ticket id or existing JIRA Git Branch is required to run this process" unless tickets.any?
51
51
  tickets
52
52
  end
53
- def tickets_from_branch_and_arguments(ticket_ids, branch)
54
- tickets_from_arguments(ticket_ids) + tickets_from_branch(branch)
53
+ def tickets_from_arguments_or_branch(ticket_ids, branch)
54
+ ticket_ids.any? ? tickets_from_arguments(ticket_ids) : tickets_from_branch(branch)
55
55
  end
56
56
  def tickets_from_arguments(ticket_ids)
57
57
  ticket_ids.collect do |key|
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{socialcast-git-extensions}
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ryan Sonnek"]
12
- s.date = %q{2010-08-02}
12
+ s.date = %q{2010-08-06}
13
13
  s.description = %q{git extension scripts for socialcast workflow}
14
14
  s.email = %q{ryan@socialcast.com}
15
15
  s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-pending", "git-reset-staging", "git-start", "git-track", "git-update", "git-wtf"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socialcast-git-extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 1.1.0
10
+ version: 1.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-02 00:00:00 -05:00
18
+ date: 2010-08-06 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency