technicalpickles-whenever 0.3.7 → 0.3.8

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.
@@ -34,8 +34,7 @@ module Whenever
34
34
 
35
35
  def lockrunify(output)
36
36
  path_required
37
- escaped_output = output
38
- %Q{/usr/bin/env lockrun --lockfile=#{lockfile_path} -- sh -c "#{escaped_output}"}
37
+ %Q{/usr/bin/env lockrun --lockfile=#{lockfile_path} -- sh -c '#{output}'}
39
38
  end
40
39
 
41
40
  def lockfile_path
data/lib/version.rb CHANGED
@@ -2,7 +2,7 @@ module Whenever
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 3
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -15,7 +15,7 @@ class OutputLockrunTest < Test::Unit::TestCase
15
15
  end
16
16
 
17
17
  should "output the command wrapped by lockrun with the default lockfile" do
18
- assert_match two_hours + %Q{ /usr/bin/env lockrun --lockfile=/some/directory/log/default.lockrun -- sh -c "blahblah"}, @output
18
+ assert_match two_hours + %Q{ /usr/bin/env lockrun --lockfile=/some/directory/log/default.lockrun -- sh -c 'blahblah'}, @output
19
19
  end
20
20
  end
21
21
 
@@ -30,10 +30,8 @@ class OutputLockrunTest < Test::Unit::TestCase
30
30
  file
31
31
  end
32
32
 
33
- "cd #{@path} && RAILS_ENV=#{@environment} /usr/bin/env rake #{task}"
34
-
35
33
  should "output the command wrapped by lockrun with the default lockfile" do
36
- assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/my/super/directory/log/default.lockrun -- sh -c "cd /my/super/directory && RAILS_ENV=production /usr/bin/env rake blahblah"}, @output
34
+ assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/my/super/directory/log/default.lockrun -- sh -c 'cd /my/super/directory && RAILS_ENV=production /usr/bin/env rake blahblah'}, @output
37
35
  end
38
36
  end
39
37
 
@@ -49,7 +47,7 @@ class OutputLockrunTest < Test::Unit::TestCase
49
47
  end
50
48
 
51
49
  should "output the command wrapped by lockrun with the default lockfile" do
52
- assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/my/directory/log/default.lockrun -- sh -c "/my/directory/script/runner -e production \"blahblah\""}, @output
50
+ assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/my/directory/log/default.lockrun -- sh -c '/my/directory/script/runner -e production "blahblah"'}, @output
53
51
  end
54
52
  end
55
53
 
@@ -65,7 +63,7 @@ class OutputLockrunTest < Test::Unit::TestCase
65
63
  end
66
64
 
67
65
  should "output the command wrapped by lockrun with the zomg lockfile" do
68
- assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/some/directory/log/zomg.lockrun -- sh -c "blahblah"}, @output
66
+ assert_includes %Q{#{two_hours} /usr/bin/env lockrun --lockfile=/some/directory/log/zomg.lockrun -- sh -c 'blahblah'}, @output
69
67
  end
70
68
  end
71
69
 
data/whenever.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{whenever}
5
- s.version = "0.3.7"
5
+ s.version = "0.3.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Javan Makhmali"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: technicalpickles-whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali