trinidad_daemon 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt ADDED
@@ -0,0 +1,11 @@
1
+ == 0.3.0
2
+
3
+ * Remove init script extension
4
+
5
+ == 0.2.0
6
+
7
+ * Fix several bugs
8
+
9
+ == 0.1.0
10
+
11
+ * Initial release
data/README CHANGED
@@ -38,7 +38,7 @@ When the installation process finishes you can use the script trinidad-daemon.sh
38
38
  generated to launch the server as a daemon with the options start|stop|restart,
39
39
  i.e:
40
40
 
41
- $ /etc/init.d/trinidad-daemon.sh restart
41
+ $ /etc/init.d/trinidad restart
42
42
 
43
43
  == Copyright
44
44
 
@@ -19,7 +19,6 @@ APP_PATH=<%= @app_path %>
19
19
  RUBY_SCRIPT=<%= @trinidad_daemon_path %>
20
20
  JRUBY_JSVC_JAR=<%= "#{@jars_path}/jruby-jsvc.jar" %>
21
21
  DAEMON_JAR=<%= "#{@jars_path}/commons-daemon.jar" %>
22
- BSF_JAR=<%= "#{@jars_path}/bsf.jar" %>
23
22
 
24
23
  # Add here the options that Trinidad needs to run your application,
25
24
  # but DO NOT delete the -d option, i.e -e production
@@ -33,8 +32,6 @@ MAIN_CLASS=com.msp.jsvc.JRubyDaemon
33
32
 
34
33
  CLASSPATH=$JRUBY_HOME/lib/jruby.jar:$JRUBY_HOME/lib/profile.jar:$DAEMON_JAR:$JRUBY_JSVC_JAR
35
34
 
36
- echo "CLASSPATH : $CLASSPATH"
37
-
38
35
  # TODO: Allow configuration or detect from the OS
39
36
  JAVA_NATIVE_PROPS="-Djna.boot.library.path=$JRUBY_HOME/lib/native/linux-i386:$JRUBY_HOME/lib/native/linux-amd64 \
40
37
  -Djffi.boot.library.path=$JRUBY_HOME/lib/native/i386-Linux:$JRUBY_HOME/lib/native/s390x-Linux:$JRUBY_HOME/lib/native/x86_64-Linux"
@@ -24,11 +24,11 @@ module Trinidad
24
24
 
25
25
  daemon = ERB.new(
26
26
  File.read(
27
- File.expand_path('../../init.d/trinidad-daemon.sh.erb', File.dirname(__FILE__))
27
+ File.expand_path('../../init.d/trinidad.erb', File.dirname(__FILE__))
28
28
  )
29
29
  ).result(binding)
30
30
 
31
- tmp_file = "#{ENV['TMP_DIR'] || '/tmp'}/trinidad-daemon.sh"
31
+ tmp_file = "#{ENV['TMP_DIR'] || '/tmp'}/trinidad"
32
32
  File.open(tmp_file, 'w') do |file|
33
33
  file.write(daemon)
34
34
  end
@@ -3,7 +3,7 @@ require 'trinidad'
3
3
 
4
4
  module Trinidad
5
5
  module Daemon
6
- VERSION = '0.2.0'
6
+ VERSION = '0.3.0'
7
7
 
8
8
  def init
9
9
  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.2.0'
17
- s.date = '2010-09-14'
16
+ s.version = '0.3.0'
17
+ s.date = '2010-10-13'
18
18
  s.rubyforge_project = 'trinidad_daemon'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -51,11 +51,12 @@ Gem::Specification.new do |s|
51
51
  ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
52
52
  # = MANIFEST =
53
53
  s.files = %w[
54
+ History.txt
54
55
  LICENSE
55
56
  README
56
57
  Rakefile
57
58
  bin/trinidad_daemon_install
58
- init.d/trinidad-daemon.sh.erb
59
+ init.d/trinidad.erb
59
60
  lib/trinidad_daemon.rb
60
61
  lib/trinidad_daemon/configuration.rb
61
62
  trinidad-libs/commons-daemon.jar
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
7
+ - 3
8
8
  - 0
9
- version: 0.2.0
9
+ version: 0.3.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Calavera
@@ -14,13 +14,14 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-14 00:00:00 +02:00
17
+ date: 2010-10-13 00:00:00 +02:00
18
18
  default_executable: trinidad_daemon_install
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: trinidad
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
@@ -41,11 +42,12 @@ extra_rdoc_files:
41
42
  - README
42
43
  - LICENSE
43
44
  files:
45
+ - History.txt
44
46
  - LICENSE
45
47
  - README
46
48
  - Rakefile
47
49
  - bin/trinidad_daemon_install
48
- - init.d/trinidad-daemon.sh.erb
50
+ - init.d/trinidad.erb
49
51
  - lib/trinidad_daemon.rb
50
52
  - lib/trinidad_daemon/configuration.rb
51
53
  - trinidad-libs/commons-daemon.jar
@@ -55,23 +57,17 @@ has_rdoc: true
55
57
  homepage: http://github.com/calavera/trinidad_daemon
56
58
  licenses: []
57
59
 
58
- post_install_message: |+
59
-
60
- ------------------------------------------------------------------------------------
61
-
62
- Please now run:
63
-
64
- $ jruby -S trinidad_daemon_install
65
-
66
- to complete the installation.
67
-
68
- ------------------------------------------------------------------------------------
69
-
60
+ post_install_message: "\n\
61
+ ------------------------------------------------------------------------------------\n\n\
62
+ Please now run:\n\n $ jruby -S trinidad_daemon_install\n\n\
63
+ to complete the installation.\n\n\
64
+ ------------------------------------------------------------------------------------\n\n"
70
65
  rdoc_options:
71
66
  - --charset=UTF-8
72
67
  require_paths:
73
68
  - lib
74
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
75
71
  requirements:
76
72
  - - ">="
77
73
  - !ruby/object:Gem::Version
@@ -79,6 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
75
  - 0
80
76
  version: "0"
81
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
82
79
  requirements:
83
80
  - - ">="
84
81
  - !ruby/object:Gem::Version
@@ -88,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
85
  requirements: []
89
86
 
90
87
  rubyforge_project: trinidad_daemon
91
- rubygems_version: 1.3.6
88
+ rubygems_version: 1.3.7
92
89
  signing_key:
93
90
  specification_version: 2
94
91
  summary: Trinidad daemon based on Apache Commons Daemon