trinidad_daemon 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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.4.1 (2011-01-18)
2
+
3
+ * Ensure the unix script is executable by default.
4
+
1
5
  == 0.4.0 (2011-01-13)
2
6
 
3
7
  * Generate Windows service.
@@ -3,7 +3,7 @@ require 'trinidad'
3
3
 
4
4
  module Trinidad
5
5
  module Daemon
6
- VERSION = '0.4.0'
6
+ VERSION = '0.4.1'
7
7
 
8
8
  def init
9
9
  end
@@ -3,6 +3,7 @@ module Trinidad
3
3
  require 'erb'
4
4
  require 'java'
5
5
  require 'rbconfig'
6
+ require 'fileutils'
6
7
 
7
8
  class Configuration
8
9
  def initialize(stdin = STDIN, stdout = STDOUT)
@@ -53,13 +54,13 @@ module Trinidad
53
54
  )
54
55
  ).result(binding)
55
56
 
56
- tmp_file = "#{ENV['TMP_DIR'] || '/tmp'}/trinidad"
57
+ puts "Moving trinidad to #{@output_path}"
58
+ tmp_file = "#{@output_path}/trinidad"
57
59
  File.open(tmp_file, 'w') do |file|
58
60
  file.write(daemon)
59
61
  end
60
62
 
61
- puts "Moving trinidad to #{@output_path}"
62
- `cp #{tmp_file} #{@output_path} && chmod u+x #{@output_path}`
63
+ FileUtils.chmod(0744, tmp_file)
63
64
  end
64
65
 
65
66
  def configure_windows_service
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'trinidad_daemon'
16
- s.version = '0.4.0'
17
- s.date = '2011-01-14'
16
+ s.version = '0.4.1'
17
+ s.date = '2011-01-18'
18
18
  s.rubyforge_project = 'trinidad_daemon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Calavera
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-14 00:00:00 +01:00
17
+ date: 2011-01-18 00:00:00 +01:00
18
18
  default_executable: trinidad_daemon_install
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency