with_pid 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/require.rb +1 -1
  2. data/templates/bash.erb +3 -0
  3. metadata +17 -5
data/require.rb CHANGED
@@ -13,7 +13,7 @@ Require do
13
13
  name 'with_pid'
14
14
  homepage "http://github.com/winton/#{name}"
15
15
  summary "The simple way to create and monitor a Ruby daemon"
16
- version '0.1.2'
16
+ version '0.1.3'
17
17
  end
18
18
 
19
19
  rakefile do
data/templates/bash.erb CHANGED
@@ -5,6 +5,9 @@ CURDIR=`pwd`
5
5
  COMMAND="<%= options[:command] %>"
6
6
  PID_FILE="<%= options[:pid] %>"
7
7
 
8
+ export RAILS_ENV=<%= options[:environment] %>
9
+ export RACK_ENV=<%= options[:environment] %>
10
+
8
11
  mkdir -p <%= options[:pid_dir] %>
9
12
 
10
13
  case "<%= options[:action] %>" in
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_pid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 3
10
+ version: 0.1.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - Winton Welsh
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-04-26 00:00:00 -07:00
18
+ date: 2010-10-20 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -40,21 +46,27 @@ rdoc_options: []
40
46
  require_paths:
41
47
  - lib
42
48
  required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
43
50
  requirements:
44
51
  - - ">="
45
52
  - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
46
56
  version: "0"
47
- version:
48
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
49
59
  requirements:
50
60
  - - ">="
51
61
  - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
52
65
  version: "0"
53
- version:
54
66
  requirements: []
55
67
 
56
68
  rubyforge_project:
57
- rubygems_version: 1.3.5
69
+ rubygems_version: 1.3.7
58
70
  signing_key:
59
71
  specification_version: 3
60
72
  summary: The simple way to create and monitor a Ruby daemon