trinidad_daemon 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.3.2
2
+
3
+ * Remove profile.jar from init script since it's no more bundled with JRuby distribution.
4
+
1
5
  == 0.3.1
2
6
 
3
7
  * Use absolute path for configuration options
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 origin v#{version}"
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:$JRUBY_HOME/lib/profile.jar:$DAEMON_JAR:$JRUBY_JSVC_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 \
@@ -3,7 +3,7 @@ require 'trinidad'
3
3
 
4
4
  module Trinidad
5
5
  module Daemon
6
- VERSION = '0.3.1'
6
+ VERSION = '0.3.2'
7
7
 
8
8
  def init
9
9
  end
@@ -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
@@ -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.1'
17
- s.date = '2010-11-04'
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
- - 1
9
- version: 0.3.1
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-11-04 00:00:00 -07:00
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