trinidad_daemon 0.3.1 → 0.3.2
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/Rakefile +1 -1
- data/init.d/trinidad.erb +1 -1
- data/lib/trinidad_daemon.rb +1 -1
- data/lib/trinidad_daemon/configuration.rb +7 -0
- data/trinidad_daemon.gemspec +2 -2
- metadata +3 -3
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -95,7 +95,7 @@ task :release => :build do
|
|
95
95
|
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
96
96
|
sh "git tag v#{version}"
|
97
97
|
sh "git push origin master"
|
98
|
-
sh "git push
|
98
|
+
sh "git push --tags"
|
99
99
|
sh "gem push pkg/#{name}-#{version}.gem"
|
100
100
|
end
|
101
101
|
|
data/init.d/trinidad.erb
CHANGED
@@ -30,7 +30,7 @@ LOG_FILE=<%= @log_file %>
|
|
30
30
|
# Implements the jsvc Daemon interface.
|
31
31
|
MAIN_CLASS=com.msp.jsvc.JRubyDaemon
|
32
32
|
|
33
|
-
CLASSPATH=$JRUBY_HOME/lib/jruby.jar
|
33
|
+
CLASSPATH=$JRUBY_HOME/lib/jruby.jar:<%= @profiler_classpath %>$DAEMON_JAR:$JRUBY_JSVC_JAR
|
34
34
|
|
35
35
|
# TODO: Allow configuration or detect from the OS
|
36
36
|
JAVA_NATIVE_PROPS="-Djna.boot.library.path=$JRUBY_HOME/lib/native/linux-i386:$JRUBY_HOME/lib/native/linux-amd64 \
|
data/lib/trinidad_daemon.rb
CHANGED
@@ -22,6 +22,8 @@ module Trinidad
|
|
22
22
|
@trinidad_daemon_path = File.expand_path('../../trinidad_daemon.rb', __FILE__)
|
23
23
|
@jars_path = File.expand_path('../../../trinidad-libs', __FILE__)
|
24
24
|
|
25
|
+
@profiler_classpath = should_use_profile_jar? ? '$JRUBY_HOME/lib/profile.jar:' : ''
|
26
|
+
|
25
27
|
daemon = ERB.new(
|
26
28
|
File.read(
|
27
29
|
File.expand_path('../../init.d/trinidad.erb', File.dirname(__FILE__))
|
@@ -47,6 +49,11 @@ module Trinidad
|
|
47
49
|
Java::JavaLang::System.get_property("java.home")
|
48
50
|
end
|
49
51
|
|
52
|
+
# JRuby versions prior to v1.5.5 required an external profile.jar
|
53
|
+
def should_use_profile_jar?
|
54
|
+
JRUBY_VERSION.gsub(".", '').to_i < 155
|
55
|
+
end
|
56
|
+
|
50
57
|
def ask_path(question, default = nil)
|
51
58
|
File.expand_path(ask(question, default))
|
52
59
|
end
|
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.3.
|
17
|
-
s.date = '2010-
|
16
|
+
s.version = '0.3.2'
|
17
|
+
s.date = '2010-12-03'
|
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
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 2
|
9
|
+
version: 0.3.2
|
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: 2010-
|
17
|
+
date: 2010-12-03 00:00:00 +01:00
|
18
18
|
default_executable: trinidad_daemon_install
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|