rake_commit 0.8.0 → 0.9.0

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.
Files changed (3) hide show
  1. data/lib/prompt_line.rb +2 -2
  2. data/lib/svn.rb +1 -1
  3. metadata +3 -3
data/lib/prompt_line.rb CHANGED
@@ -14,7 +14,7 @@ class PromptLine
14
14
  break unless (input.empty? && saved_data.empty?)
15
15
  end
16
16
 
17
- if input.any?
17
+ unless input.empty?
18
18
  save(input)
19
19
  return input
20
20
  end
@@ -26,7 +26,7 @@ class PromptLine
26
26
  def message
27
27
  previous = saved_data
28
28
  previous_message = "\n"
29
- previous_message += "previous #{@attribute}: #{previous}\n" if previous.any?
29
+ previous_message += "previous #{@attribute}: #{previous}\n" unless previous.empty?
30
30
  puts previous_message
31
31
  "#{@attribute}: "
32
32
  end
data/lib/svn.rb CHANGED
@@ -35,7 +35,7 @@ class Svn
35
35
  def up
36
36
  output = Shell.backtick "svn up"
37
37
  puts output
38
- output.each do |line|
38
+ output.split("\n").each do |line|
39
39
  raise "SVN conflict detected. Please resolve conflicts before proceeding." if line[0,1] == "C"
40
40
  end
41
41
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 8
7
+ - 9
8
8
  - 0
9
- version: 0.8.0
9
+ version: 0.9.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Gross
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-10 00:00:00 -05:00
17
+ date: 2010-10-31 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20