launch-agent 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ module LaunchAgent
11
11
 
12
12
  daemon = @opts[:daemon]
13
13
  interval = @opts[:interval]
14
- env = @opts[:env].split(',')
14
+ env = (@opts[:env] || '').split(',')
15
15
  wdir = @opts[:wdir]
16
16
  agent = nil
17
17
 
@@ -1,4 +1,4 @@
1
1
  module LaunchAgent
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
4
4
 
@@ -33,6 +33,16 @@ describe CLI::OptionParser do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'empty env' do
37
+ let(:opts) do
38
+ @opts.merge(
39
+ :env => nil,
40
+ :daemon => true)
41
+ end
42
+
43
+ it_should_behave_like 'valid agent'
44
+ end
45
+
36
46
  describe 'empty options' do
37
47
  let(:opts) do
38
48
  @opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: launch-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2012-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  segments:
118
118
  - 0
119
- hash: -3804420004878315494
119
+ hash: 2863205438131634813
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements:
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  version: '0'
126
126
  segments:
127
127
  - 0
128
- hash: -3804420004878315494
128
+ hash: 2863205438131634813
129
129
  requirements: []
130
130
  rubyforge_project:
131
131
  rubygems_version: 1.8.24