gitcycle 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/gitcycle.gemspec +1 -1
  2. data/lib/gitcycle.rb +4 -3
  3. metadata +4 -4
data/gitcycle.gemspec CHANGED
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "gitcycle"
9
- s.version = '0.1.7'
9
+ s.version = '0.1.8'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
data/lib/gitcycle.rb CHANGED
@@ -175,7 +175,7 @@ class Gitcycle
175
175
  run("git checkout #{qa_branch['source']}")
176
176
 
177
177
  if issues[1..-1].empty?
178
- if issues.first = 'pass'
178
+ if issues.first == 'pass'
179
179
  puts "Merging '#{branch}' into '#{qa_branch['source']}'.\n".green
180
180
  run("git merge #{branch}")
181
181
  run("git push origin #{qa_branch['source']}")
@@ -196,7 +196,7 @@ class Gitcycle
196
196
  end
197
197
 
198
198
  branches.each do |branch|
199
- if issues.first = 'pass'
199
+ if issues.first == 'pass'
200
200
  merge_remote_branch(
201
201
  :user => branch['user'],
202
202
  :repo => branch['repo'].split(':'),
@@ -213,7 +213,7 @@ class Gitcycle
213
213
  end
214
214
  end
215
215
 
216
- if issues.first = 'pass'
216
+ if issues.first == 'pass'
217
217
  puts "\nMarking Lighthouse tickets as 'pending-approval'.\n".green
218
218
  branches = branches.collect do |b|
219
219
  { :name => b['branch'], :repo => b['repo'], :user => b['user'] }
@@ -550,6 +550,7 @@ class Gitcycle
550
550
  end
551
551
 
552
552
  def save_config
553
+ FileUtils.mkdir_p(File.dirname(@config_path))
553
554
  File.open(@config_path, 'w') do |f|
554
555
  f.write(YAML.dump(@config))
555
556
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitcycle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Winton Welsh
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-18 00:00:00 -08:00
18
+ date: 2012-01-19 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency