trinidad 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ == 0.9.6 (2010-09-12)
2
+
3
+ * add option to specify the application directory path from the command line
4
+
5
+ == Trinidad_jars 0.3.1 (2010-09-12)
6
+
7
+ * update to Tomcat 7.0.2
8
+ * fix TRINIDAD-17: NPE when web app has a context path
9
+
1
10
  == 0.9.5 (2010-08-08)
2
11
 
3
12
  * fix TRINIDAD-15: trinidad defines String#camelize incompatibly with ActiveSupport: Argument is missing
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.5
1
+ 0.9.6
@@ -22,5 +22,5 @@ require 'trinidad/rackup_web_app'
22
22
 
23
23
 
24
24
  module Trinidad
25
- VERSION = File.read(File.expand_path('../../VERSION', __FILE__))
25
+ VERSION = File.read(File.expand_path('../../VERSION', __FILE__)).chomp
26
26
  end
@@ -42,6 +42,11 @@ module Trinidad
42
42
  opts.banner = 'Trinidad server default options:'
43
43
  opts.separator ''
44
44
 
45
+ opts.on('-d', '--dir WEB_APP_DIRECTORY', 'Web app directory path',
46
+ "default: #{Dir.pwd}") do |v|
47
+ default_options[:web_app_dir] = v
48
+ end
49
+
45
50
  opts.on('-e', '--env ENVIRONMENT', 'Rails environment',
46
51
  "default: #{default_options[:environment]}") do |v|
47
52
  default_options[:environment] = v
@@ -107,7 +112,7 @@ module Trinidad
107
112
  end
108
113
 
109
114
  opts.on('-v', '--version', 'display the current version') do
110
- puts File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp
115
+ puts "trinidad #{Trinidad::VERSION} (tomcat #{Trinidad::TOMCAT_VERSION})"
111
116
  exit
112
117
  end
113
118
 
@@ -116,4 +116,9 @@ describe Trinidad::CommandLineParser do
116
116
  options = subject.parse(args)
117
117
  options.has_key?(:bar).should be_true
118
118
  end
119
+
120
+ it "adds the application directory path with the option --dir" do
121
+ args = "--dir #{MOCK_WEB_APP_DIR}".split
122
+ subject.parse(args)[:web_app_dir].should == MOCK_WEB_APP_DIR
123
+ end
119
124
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinidad
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Calavera
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-08 00:00:00 +02:00
18
+ date: 2010-09-12 00:00:00 +02:00
19
19
  default_executable: trinidad
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency