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 +4 -0
- data/lib/trinidad_daemon.rb +1 -1
- data/lib/trinidad_daemon/configuration.rb +4 -3
- data/trinidad_daemon.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/lib/trinidad_daemon.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
data/trinidad_daemon.gemspec
CHANGED
@@ -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.
|
17
|
-
s.date = '2011-01-
|
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
|
-
-
|
9
|
-
version: 0.4.
|
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-
|
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
|