GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Resource-oriented open source Ruby framework for Web apps.
Homepage: http://rubywaves.com/
Clone URL: git://github.com/dyoder/waves.git
DRY approach to app::Configurations::Dependencies, plus preliminary jruby 
helper (only loaded if running in jruby)
ab5tract (author)
Tue Aug 26 08:52:29 -0700 2008
commit  b370a5ba3b0b5dbcdd0a63caf8ca0fc13c7cdac2
tree    9cdd8cb07a29c3fceafd0ab8739d6be248282b53
parent  7a05b59633d196caa64f37a29696685a00855496
...
26
27
28
29
 
 
 
 
 
 
 
 
 
 
 
 
30
31
32
...
26
27
28
 
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
0
@@ -26,7 +26,18 @@ gem = Gem::Specification.new do |gem|
0
   end
0
   gem.add_dependency('rakegen', '>= 0.6.6')
0
   gem.add_dependency('sequel', '>= 2.0.0')
0
- gem.add_dependency('autocode', '>= 1.0.0')
0
+ gem.add_dependency('dyoder-autocode', '>= 1.0.0')
0
+ gem.add_dependency('dyoder-filebase', '>= 0.3.0')
0
+ gem.add_dependency('functor', '>= 0.4.2')
0
+
0
+ # Unfortunately there are some gems that don't work in JRuby, so...
0
+ unless defined?(JRUBY_VERSION)
0
+ # Matz' Ruby dependencies here...
0
+ gem.add_dependency('RedCloth', '>= 4.0.0')
0
+ else
0
+ # JRuby compatible dependencies here...
0
+ gem.add_dependency('RedCloth', '= 3.0.4')
0
+ end
0
   
0
   gem.files = FileList[ 'app/**/*', 'app/**/.gitignore', 'lib/**/*.rb','lib/**/*.erb', "{doc,samples,verify}/**/*" ]
0
   gem.has_rdoc = true
...
18
19
20
21
 
 
 
22
23
24
...
18
19
20
 
21
22
23
24
25
26
0
@@ -18,7 +18,9 @@ module <%= @name %>
0
       # handler ::Rack::Handler::WEBrick, :BindAddress => host, :Port => port
0
       # handler ::Rack::Handler::Thin, :Host => host, :Port => port
0
 
0
- dependencies []
0
+ # 'deps' lets you easily check the environment for expected dependencies.
0
+ # See configurations/dependecies.rb for more info.
0
+ deps <%= @name %>::Configurations::Dependencies.deps
0
 
0
       application do
0
         use ::Rack::ShowExceptions
...
21
22
23
24
 
 
 
25
26
27
...
21
22
23
 
24
25
26
27
28
29
0
@@ -21,7 +21,9 @@ module <%= @name %>
0
       # handler ::Rack::Handler::WEBrick, :BindAddress => host, :Port => port
0
       # handler ::Rack::Handler::Thin, :Host => host, :Port => port
0
 
0
- dependencies []
0
+ # 'deps' lets you easily check the environment for expected dependencies.
0
+ # See configurations/dependecies.rb for more info.
0
+ deps <%= @name %>::Configurations::Dependencies.deps
0
 
0
       application do
0
         use ::Rack::Static, :urls => [ '/css/', '/javascript/', '/favicon.ico' ], :root => 'public'
...
142
143
144
145
146
 
147
148
149
...
184
185
186
187
 
188
189
190
...
142
143
144
 
 
145
146
147
148
...
183
184
185
 
186
187
188
189
0
@@ -142,8 +142,7 @@ module Waves
0
     # reloadable []
0
     class Default < Base
0
 
0
- %w( host port ports log reloadable database session debug root synchronize? dependencies ).
0
- each { |name| attribute(name) }
0
+ %w( host port ports log reloadable database session debug root synchronize? deps ).each { |name| attribute(name) }
0
 
0
       # Set the Rack handler, along with any specific options
0
       # that need to be passed to the handler's #run method.
0
@@ -184,7 +183,7 @@ module Waves
0
       session :duration => 30.minutes, :path => '/tmp/sessions'
0
       log :level => :info, :output => $stderr
0
       reloadable []
0
- dependencies []
0
+ deps []
0
     end
0
   end
0
 end
...
100
101
102
 
 
 
...
100
101
102
103
104
105
0
@@ -100,3 +100,6 @@ require 'layers/mvc'
0
 require 'layers/default_errors'
0
 require 'layers/inflect/english'
0
 require 'foundations/default'
0
+
0
+# VM specific helpers
0
+require 'helpers/jruby.rb' if defined?(JRUBY_VERSION)

Comments

    No one has commented yet.