redmine_stagecoach 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
data/bin/stagecoach CHANGED
@@ -41,8 +41,8 @@ module Stagecoach
41
41
  # Checks validity of argument variables.
42
42
  # Ignore these checks with -t flag.
43
43
  unless opts[:testing_given]
44
- Config.setup if config["redmine_site"] == "none"
45
- Config.setup if config["redmine_api"] == "none"
44
+ Config.setup unless config["redmine_site"] == "none"
45
+ Config.setup unless config["redmine_api"] == "none"
46
46
 
47
47
  # Checks that command-line args are present and correct.
48
48
  Trollop::die :redmine, "issue number can only contain digits" if opts[:redmine] && opts[:redmine][/\D/]
@@ -99,7 +99,7 @@ module Stagecoach
99
99
  self.user = config["redmine_api_key"]
100
100
  end
101
101
 
102
- unless opts[:deploy] or opts[:push]
102
+ unless opts[:deploy_given] or opts[:push]
103
103
 
104
104
  # If no issue argument has been given.
105
105
  if opts[:github].nil? && opts[:redmine].nil?
@@ -293,8 +293,8 @@ module Stagecoach
293
293
 
294
294
  puts "Push successful."
295
295
  unless opts[:deploy_given]
296
- "stagecoach -d [branch_name] to deploy."
297
- "exiting..."
296
+ puts "stagecoach -d [branch_name] to deploy."
297
+ puts "Exiting..."
298
298
  exit
299
299
  end
300
300
  end
@@ -157,9 +157,9 @@ module Stagecoach
157
157
  puts "API Key: " + redmine_api_key if redmine_api_key
158
158
  puts "User ID: " + user_id if user_id
159
159
  CommandLine.line_break
160
- puts "Exiting..."
161
160
  end
162
-
161
+
162
+ puts "Complete! Exiting..."
163
163
  exit
164
164
 
165
165
  end
@@ -39,11 +39,11 @@ module Stagecoach
39
39
  erase(deletable_branches)
40
40
  else
41
41
  puts 'No branches deleted. Exiting...'
42
- exit
43
42
  end
44
43
  else
45
44
  puts 'No branches to delete. Exiting...'
46
45
  end
46
+ exit
47
47
  end
48
48
 
49
49
  def remote_branches
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "redmine_stagecoach"
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oli Barnett"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_stagecoach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -168,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  segments:
170
170
  - 0
171
- hash: -4182665487900455843
171
+ hash: -3540412411782168429
172
172
  required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements: