trinidad 1.3.3 → 1.3.4

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
+ == Trinidad 1.3.4 (2012-02-20)
2
+
3
+ * Do not explicitely load rack/handler/trinidad.rb, it solves load issues with trinidad_init_services.
4
+
1
5
  == Trinidad 1.3.3 (2012-02-16)
2
6
 
3
7
  * Fix issues loading the default configuration file from the rack handler
data/bin/trinidad CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  require "trinidad"
4
4
 
5
- opts = Trinidad::CommandLineParser.parse(ARGV)
5
+ Trinidad::CommandLineParser.parse(ARGV)
6
6
  Trinidad::Server.new(Trinidad.configuration).start
@@ -1,3 +1,8 @@
1
+ # NOTE: require 'rack/handler/trinidad' might get invoked 2 ways :
2
+ # 1. Rack::Handler.try_require('rack/handler', 'trinidad') during rackup
3
+ # in this case trinidad.rb might not yet been loaded
4
+ # 2. a user require (after trinidad.rb booted) - need to load rack first
5
+ require 'trinidad'
1
6
  require 'rack/handler'
2
7
  require 'rack/handler/servlet'
3
8
 
data/lib/trinidad.rb CHANGED
@@ -18,8 +18,7 @@ require 'trinidad/web_app'
18
18
  require 'trinidad/rails_web_app'
19
19
  require 'trinidad/rackup_web_app'
20
20
  require 'trinidad/war_web_app'
21
- require 'rack/handler/trinidad'
22
21
 
23
22
  module Trinidad
24
- VERSION = '1.3.3'
23
+ VERSION = '1.3.4'
25
24
  end
@@ -81,8 +81,8 @@ module Trinidad
81
81
  end
82
82
  end
83
83
 
84
- def war?; WebApp.war?(app_config); end
85
- def work_dir; web_app_dir; end
84
+ def war?; WebApp.war?(app_config); end
85
+ def work_dir; @app_config[:work_dir] || @config[:work_dir] || web_app_dir; end
86
86
  def environment; @app_config[:environment] || @config[:environment] || 'development'; end
87
87
 
88
88
  def solo?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: trinidad
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.3
5
+ version: 1.3.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Calavera
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-16 00:00:00 Z
13
+ date: 2012-02-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: trinidad_jars