trinidad_valve_extension 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -0,0 +1,11 @@
1
+ == 0.3.0 (2011-09-20)
2
+
3
+ * Correct hardcoded valve name to use variable
4
+
5
+ == 0.2.0 (2011-09-19)
6
+
7
+ * Replace system properties referenced by ${...} in valve parameters
8
+
9
+ == 0.1.0 (2011-09-18)
10
+
11
+ * Initial release
data/README CHANGED
@@ -11,7 +11,7 @@ jruby -S gem install trinidad_valve_extension
11
11
 
12
12
  # CONFIGURATION
13
13
 
14
- This extension will configure valves from a list of hashes that contain the properties that configure each valve. 'className' is used to define what valve class is being configured, just as when configuring tomcat using the traditional context.xml
14
+ This extension will configure valves from a list of hashes that contain the properties that configure each valve. 'className' is used to define what valve class is being configured, just as when configuring tomcat using the traditional context.xml. Substitutions are done with system properties for values referenced within ${}.
15
15
 
16
16
  To enable the extension, add the 'valve' element to the 'extensions' key and define at least one valve. An example of an AccessLogValve:
17
17
 
@@ -1,7 +1,7 @@
1
1
  module Trinidad
2
2
  module Extensions
3
3
  module Valve
4
- VERSION = '0.2'
4
+ VERSION = '0.3'
5
5
  end
6
6
 
7
7
  class ValveWebAppExtension < WebAppExtension
@@ -36,7 +36,7 @@ module Trinidad
36
36
  end
37
37
 
38
38
  def get_valve(valve_name)
39
- valve_class = Java::JavaClass.for_name "org.apache.catalina.valves.AccessLogValve"
39
+ valve_class = Java::JavaClass.for_name valve_name
40
40
  valve_instance = valve_class.constructor.new_instance.to_java
41
41
  end
42
42
 
@@ -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_valve_extension'
16
- s.version = '0.2'
17
- s.date = '2011-08-19'
16
+ s.version = '0.3'
17
+ s.date = '2011-08-20'
18
18
  s.rubyforge_project = 'trinidad_valve_extension'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,37 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: trinidad_valve_extension
3
- version: !ruby/object:Gem::Version
4
- version: '0.2'
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ version: "0.3"
6
9
  platform: ruby
7
- authors:
10
+ authors:
8
11
  - Michael Leinartas
9
12
  autorequire:
10
13
  bindir: bin
11
14
  cert_chain: []
12
- date: 2011-08-19 00:00:00.000000000 -05:00
15
+
16
+ date: 2011-08-20 00:00:00 -05:00
13
17
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
18
+ dependencies:
19
+ - !ruby/object:Gem::Dependency
16
20
  name: trinidad
17
- requirement: &2153328980 !ruby/object:Gem::Requirement
18
- none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ segments:
27
+ - 1
28
+ - 1
29
+ - 0
22
30
  version: 1.1.0
23
31
  type: :runtime
24
- prerelease: false
25
- version_requirements: *2153328980
26
- description: Trinidad extension to add and configure Tomcat valves. Built-in Tomcat
27
- valves are always available but any valve existing in the classpath can be used
32
+ version_requirements: *id001
33
+ description: Trinidad extension to add and configure Tomcat valves. Built-in Tomcat valves are always available but any valve existing in the classpath can be used
28
34
  email: mleinartas@gmail.com
29
35
  executables: []
36
+
30
37
  extensions: []
31
- extra_rdoc_files:
38
+
39
+ extra_rdoc_files:
32
40
  - README
33
41
  - LICENSE
34
- files:
42
+ files:
35
43
  - History.txt
36
44
  - LICENSE
37
45
  - README
@@ -41,27 +49,32 @@ files:
41
49
  has_rdoc: true
42
50
  homepage: http://github.com/mleinart/trinidad_valve_extension
43
51
  licenses: []
52
+
44
53
  post_install_message:
45
- rdoc_options:
54
+ rdoc_options:
46
55
  - --charset=UTF-8
47
- require_paths:
56
+ require_paths:
48
57
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- required_rubygems_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 0
64
+ version: "0"
65
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ version: "0"
61
72
  requirements: []
73
+
62
74
  rubyforge_project: trinidad_valve_extension
63
- rubygems_version: 1.6.2
75
+ rubygems_version: 1.3.6
64
76
  signing_key:
65
77
  specification_version: 2
66
78
  summary: Trinidad extension to add and configure Tomcat valves
67
79
  test_files: []
80
+