bob 0.4.0 → 0.4.1

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.
data/bob.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "bob"
3
- s.version = "0.4.0"
4
- s.date = "2009-10-10"
3
+ s.version = "0.4.1"
4
+ s.date = "2009-10-12"
5
5
 
6
6
  s.description = "Bob the Builder will build your code. Simple."
7
7
  s.summary = "Bob builds!"
@@ -43,7 +43,7 @@ module Bob
43
43
 
44
44
  private
45
45
  def run(cmd, dir=nil)
46
- cmd = "(#{dir ? "cd #{dir} && " : ""}#{cmd} &>/dev/null)"
46
+ cmd = "(#{dir ? "cd #{dir} && " : ""}#{cmd} > /dev/null 2>&1)"
47
47
  Bob.logger.debug(cmd)
48
48
  system(cmd) || raise(Error, "Couldn't run SCM command `#{cmd}`")
49
49
  end
@@ -56,7 +56,7 @@ module Bob
56
56
  end
57
57
 
58
58
  def resolve(commit)
59
- commit == :head ? head : commit
59
+ commit == "HEAD" ? head : commit
60
60
  end
61
61
  end
62
62
  end
data/test/mixin/scm.rb CHANGED
@@ -35,7 +35,7 @@ module ScmTest
35
35
  repo.add_failing_commit
36
36
  repo.add_successful_commit
37
37
 
38
- buildable = BuilderStub.for(@repo, :head)
38
+ buildable = BuilderStub.for(@repo, "HEAD")
39
39
 
40
40
  buildable.build
41
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Nicol\xC3\xA1s Sanguinetti"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-10-10 00:00:00 +02:00
13
+ date: 2009-10-12 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements: []
82
82
 
83
83
  rubyforge_project: integrity
84
- rubygems_version: 1.3.3
84
+ rubygems_version: 1.3.5
85
85
  signing_key:
86
86
  specification_version: 3
87
87
  summary: Bob builds!