waves-stable 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/app/Rakefile +72 -0
- data/app/bin/waves-console +4 -0
- data/app/bin/waves-server +4 -0
- data/app/configurations/development.rb.erb +31 -0
- data/app/configurations/mapping.rb.erb +14 -0
- data/app/configurations/production.rb.erb +31 -0
- data/app/controllers/.gitignore +0 -0
- data/app/doc/.gitignore +0 -0
- data/app/helpers/.gitignore +0 -0
- data/app/lib/application.rb.erb +5 -0
- data/app/lib/tasks/.gitignore +0 -0
- data/app/log/.gitignore +0 -0
- data/app/models/.gitignore +0 -0
- data/app/public/css/.gitignore +0 -0
- data/app/public/flash/.gitignore +0 -0
- data/app/public/images/.gitignore +0 -0
- data/app/public/javascript/.gitignore +0 -0
- data/app/schema/migrations/.gitignore +0 -0
- data/app/startup.rb +5 -0
- data/app/templates/errors/not_found_404.mab +2 -0
- data/app/templates/errors/server_error_500.mab +2 -0
- data/app/templates/layouts/default.mab +14 -0
- data/app/tmp/sessions/.gitignore +0 -0
- data/app/views/.gitignore +0 -0
- data/bin/waves +84 -0
- data/bin/waves-console +4 -0
- data/bin/waves-server +4 -0
- data/doc/HISTORY +44 -0
- data/doc/LICENSE +22 -0
- data/lib/commands/waves-console.rb +21 -0
- data/lib/commands/waves-server.rb +55 -0
- data/lib/controllers/base.rb +11 -0
- data/lib/controllers/mixin.rb +165 -0
- data/lib/dispatchers/base.rb +67 -0
- data/lib/dispatchers/default.rb +81 -0
- data/lib/foundations/default.rb +27 -0
- data/lib/foundations/simple.rb +30 -0
- data/lib/helpers/asset_helper.rb +67 -0
- data/lib/helpers/common.rb +66 -0
- data/lib/helpers/default.rb +13 -0
- data/lib/helpers/form.rb +40 -0
- data/lib/helpers/formatting.rb +30 -0
- data/lib/helpers/model.rb +33 -0
- data/lib/helpers/number_helper.rb +25 -0
- data/lib/helpers/tag_helper.rb +58 -0
- data/lib/helpers/url_helper.rb +77 -0
- data/lib/helpers/view.rb +24 -0
- data/lib/layers/default_errors.rb +26 -0
- data/lib/layers/inflect/english.rb +24 -0
- data/lib/layers/inflect/english/rules.rb +88 -0
- data/lib/layers/inflect/english/string.rb +24 -0
- data/lib/layers/mvc.rb +54 -0
- data/lib/layers/orm/active_record.rb +92 -0
- data/lib/layers/orm/active_record/migrations/empty.rb.erb +9 -0
- data/lib/layers/orm/active_record/tasks/generate.rb +28 -0
- data/lib/layers/orm/active_record/tasks/schema.rb +22 -0
- data/lib/layers/orm/data_mapper.rb +38 -0
- data/lib/layers/orm/filebase.rb +22 -0
- data/lib/layers/orm/migration.rb +79 -0
- data/lib/layers/orm/sequel.rb +86 -0
- data/lib/layers/orm/sequel/migrations/empty.rb.erb +9 -0
- data/lib/layers/orm/sequel/tasks/generate.rb +28 -0
- data/lib/layers/orm/sequel/tasks/schema.rb +16 -0
- data/lib/layers/simple.rb +32 -0
- data/lib/layers/simple_errors.rb +23 -0
- data/lib/mapping/mapping.rb +289 -0
- data/lib/mapping/pretty_urls.rb +96 -0
- data/lib/renderers/erubis.rb +63 -0
- data/lib/renderers/haml.rb +45 -0
- data/lib/renderers/markaby.rb +33 -0
- data/lib/renderers/mixin.rb +50 -0
- data/lib/runtime/application.rb +69 -0
- data/lib/runtime/blackboard.rb +57 -0
- data/lib/runtime/configuration.rb +185 -0
- data/lib/runtime/console.rb +20 -0
- data/lib/runtime/debugger.rb +9 -0
- data/lib/runtime/logger.rb +59 -0
- data/lib/runtime/mime_types.rb +22 -0
- data/lib/runtime/request.rb +78 -0
- data/lib/runtime/response.rb +40 -0
- data/lib/runtime/response_mixin.rb +38 -0
- data/lib/runtime/response_proxy.rb +30 -0
- data/lib/runtime/server.rb +107 -0
- data/lib/runtime/session.rb +66 -0
- data/lib/tasks/cluster.rb +26 -0
- data/lib/tasks/gem.rb +31 -0
- data/lib/tasks/generate.rb +80 -0
- data/lib/utilities/hash.rb +31 -0
- data/lib/utilities/inflect.rb +110 -0
- data/lib/utilities/integer.rb +24 -0
- data/lib/utilities/module.rb +21 -0
- data/lib/utilities/object.rb +25 -0
- data/lib/utilities/proc.rb +16 -0
- data/lib/utilities/string.rb +49 -0
- data/lib/utilities/symbol.rb +10 -0
- data/lib/utilities/tempfile.rb +9 -0
- data/lib/views/base.rb +9 -0
- data/lib/views/mixin.rb +110 -0
- data/lib/waves.rb +84 -0
- data/samples/blog/Rakefile +14 -0
- data/samples/blog/bin/waves-console +3 -0
- data/samples/blog/bin/waves-server +3 -0
- data/samples/blog/configurations/development.rb +31 -0
- data/samples/blog/configurations/mapping.rb +23 -0
- data/samples/blog/configurations/production.rb +30 -0
- data/samples/blog/doc/EMTPY +0 -0
- data/samples/blog/lib/application.rb +5 -0
- data/samples/blog/models/comment.rb +14 -0
- data/samples/blog/models/entry.rb +14 -0
- data/samples/blog/public/css/site.css +2 -0
- data/samples/blog/public/javascript/site.js +13 -0
- data/samples/blog/schema/migrations/001_initial_schema.rb +17 -0
- data/samples/blog/schema/migrations/002_add_comments.rb +18 -0
- data/samples/blog/schema/migrations/templates/empty.rb.erb +9 -0
- data/samples/blog/startup.rb +6 -0
- data/samples/blog/templates/comment/add.mab +10 -0
- data/samples/blog/templates/comment/list.mab +6 -0
- data/samples/blog/templates/entry/editor.mab +13 -0
- data/samples/blog/templates/entry/list.mab +11 -0
- data/samples/blog/templates/entry/show.mab +9 -0
- data/samples/blog/templates/entry/summary.mab +5 -0
- data/samples/blog/templates/errors/not_found_404.mab +2 -0
- data/samples/blog/templates/errors/server_error_500.mab +2 -0
- data/samples/blog/templates/layouts/default.mab +17 -0
- data/verify/app_generation/helpers.rb +24 -0
- data/verify/app_generation/startup.rb +39 -0
- data/verify/blackboard/blackboard_verify.rb +92 -0
- data/verify/blackboard/helpers.rb +5 -0
- data/verify/configurations/attributes.rb +37 -0
- data/verify/configurations/helpers.rb +1 -0
- data/verify/configurations/rack_integration.rb +29 -0
- data/verify/controllers/base.rb +37 -0
- data/verify/controllers/helpers.rb +13 -0
- data/verify/controllers/interface.rb +51 -0
- data/verify/core/helpers.rb +3 -0
- data/verify/core/utilities.rb +177 -0
- data/verify/foundations/default.rb +86 -0
- data/verify/foundations/default_application/Rakefile +14 -0
- data/verify/foundations/default_application/bin/waves-console +3 -0
- data/verify/foundations/default_application/bin/waves-server +3 -0
- data/verify/foundations/default_application/configurations/development.rb +26 -0
- data/verify/foundations/default_application/configurations/mapping.rb +14 -0
- data/verify/foundations/default_application/configurations/production.rb +30 -0
- data/verify/foundations/default_application/controllers/default.rb +15 -0
- data/verify/foundations/default_application/controllers/loaded.rb +15 -0
- data/verify/foundations/default_application/defaultapplication.db +0 -0
- data/verify/foundations/default_application/helpers/loaded.rb +10 -0
- data/verify/foundations/default_application/lib/application.rb +5 -0
- data/verify/foundations/default_application/models/default.rb +13 -0
- data/verify/foundations/default_application/models/loaded.rb +13 -0
- data/verify/foundations/default_application/schema/migrations/templates/empty.rb.erb +9 -0
- data/verify/foundations/default_application/startup.rb +7 -0
- data/verify/foundations/default_application/templates/errors/not_found_404.mab +2 -0
- data/verify/foundations/default_application/templates/errors/server_error_500.mab +2 -0
- data/verify/foundations/default_application/templates/layouts/default.mab +14 -0
- data/verify/foundations/default_application/views/default.rb +7 -0
- data/verify/foundations/default_application/views/loaded.rb +15 -0
- data/verify/foundations/helpers.rb +1 -0
- data/verify/foundations/simple.rb +25 -0
- data/verify/helpers.rb +76 -0
- data/verify/layers/data_mapper/association_verify.rb +87 -0
- data/verify/layers/default_errors.rb +29 -0
- data/verify/layers/helpers.rb +1 -0
- data/verify/layers/migration.rb +33 -0
- data/verify/layers/sequel/model.rb +41 -0
- data/verify/mapping/always.rb +19 -0
- data/verify/mapping/filters.rb +65 -0
- data/verify/mapping/handle.rb +24 -0
- data/verify/mapping/helpers.rb +7 -0
- data/verify/mapping/matches.rb +27 -0
- data/verify/mapping/named.rb +29 -0
- data/verify/mapping/options.rb +17 -0
- data/verify/mapping/path.rb +40 -0
- data/verify/mapping/response_proxy.rb +50 -0
- data/verify/mapping/threaded.rb +25 -0
- data/verify/requests/helpers.rb +16 -0
- data/verify/requests/request.rb +73 -0
- data/verify/requests/response.rb +59 -0
- data/verify/requests/session.rb +54 -0
- data/verify/views/helpers.rb +1 -0
- data/verify/views/rendering.rb +34 -0
- data/verify/views/templates/foo.erb +0 -0
- data/verify/views/templates/moo.erb +0 -0
- data/verify/views/templates/moo.mab +0 -0
- metadata +439 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
# require 'test_helper' because RubyMate needs help
|
2
|
+
require File.join(File.dirname(__FILE__), "helpers")
|
3
|
+
|
4
|
+
specification "Requests can be made threaded for event driven servers" do
|
5
|
+
|
6
|
+
before do
|
7
|
+
mapping.clear
|
8
|
+
threaded( '/upload', {:method => :post} ) { 'This is threaded.' }
|
9
|
+
path( '/foo' ) { "The server says, 'bar!'" }
|
10
|
+
end
|
11
|
+
|
12
|
+
specify 'Post to upload should be threaded' do
|
13
|
+
req = Waves::Request.new( ::Rack::MockRequest.env_for('/upload', {:method => 'POST'}) )
|
14
|
+
::Waves::Dispatchers::Default.new.deferred?(req).should == true
|
15
|
+
post('/upload').body.should == 'This is threaded.'
|
16
|
+
end
|
17
|
+
|
18
|
+
specify 'Get to foo should not be threaded' do
|
19
|
+
req = Waves::Request.new( ::Rack::MockRequest.env_for('/foo', {:method => 'GET'}) )
|
20
|
+
::Waves::Dispatchers::Default.new.deferred?(req).should == false
|
21
|
+
get('/foo').body.should == "The server says, 'bar!'"
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__) , "..", "helpers")
|
2
|
+
|
3
|
+
module TestRequests
|
4
|
+
module Configurations
|
5
|
+
class Default
|
6
|
+
# stub!(:session).and_return(:duration => 30.minutes, :path => '/tmp/sessions')
|
7
|
+
::BasePath = File.dirname(__FILE__) / :tmp
|
8
|
+
stub!(:session).and_return(:duration => 30.minutes, :path => ::BasePath)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
def env_for(uri="/", options={})
|
15
|
+
Rack::MockRequest.env_for(uri,options)
|
16
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# require 'test_helper' because RubyMate needs help
|
2
|
+
require File.join(File.dirname(__FILE__) , "helpers")
|
3
|
+
|
4
|
+
describe "A Waves request instance" do
|
5
|
+
|
6
|
+
before do
|
7
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
8
|
+
@request = Waves::Request.new(env_for)
|
9
|
+
end
|
10
|
+
|
11
|
+
it "has session, response, and blackboard objects" do
|
12
|
+
@request.session.class.should == Waves::Session
|
13
|
+
@request.response.class.should == Waves::Response
|
14
|
+
@request.blackboard.class.should == Waves::Blackboard
|
15
|
+
end
|
16
|
+
|
17
|
+
it "provides an accessor to the Rack request" do
|
18
|
+
@request.rack_request.class.should == Rack::Request
|
19
|
+
end
|
20
|
+
|
21
|
+
it "wraps some useful Rack data in more elegant methods" do
|
22
|
+
@request.rack_request.should.receive(:path_info)
|
23
|
+
@request.path
|
24
|
+
|
25
|
+
@request.rack_request.should.receive(:host)
|
26
|
+
@request.domain
|
27
|
+
|
28
|
+
@request.rack_request.env.should.receive(:[]).with('CONTENT_TYPE')
|
29
|
+
@request.content_type
|
30
|
+
end
|
31
|
+
|
32
|
+
it "delegates unknown methods to the Rack request" do
|
33
|
+
@request.rack_request.should.receive(:chitty_bang_bang)
|
34
|
+
@request.chitty_bang_bang
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
describe "The HTTP request method" do
|
40
|
+
|
41
|
+
before do
|
42
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "is determined in a straightforward manner for straightforward requests" do
|
46
|
+
@get = Waves::Request.new(env_for("/", :method => 'GET'))
|
47
|
+
@post = Waves::Request.new(env_for("/", :method => 'POST'))
|
48
|
+
@put = Waves::Request.new(env_for("/", :method => 'PUT'))
|
49
|
+
@delete = Waves::Request.new(env_for("/", :method => 'DELETE'))
|
50
|
+
|
51
|
+
@get.method.should == :get
|
52
|
+
@post.method.should == :post
|
53
|
+
@put.method.should == :put
|
54
|
+
@delete.method.should == :delete
|
55
|
+
end
|
56
|
+
|
57
|
+
it "can be set with the '_method' query param on a POST" do
|
58
|
+
@url_put = Waves::Request.new(env_for("/?_method=put", :method => 'POST'))
|
59
|
+
@url_delete = Waves::Request.new(env_for("/?_method=delete", :method => 'POST'))
|
60
|
+
|
61
|
+
@url_put.method.should == :put; @url_put.put?.should.be.true
|
62
|
+
@url_delete.method.should == :delete; @url_delete.delete?.should.be.true
|
63
|
+
end
|
64
|
+
|
65
|
+
it "can be set with the '_method' body param on a POST" do
|
66
|
+
@body_put = Waves::Request.new(env_for("/", :method => 'POST', :input => '_method=put'))
|
67
|
+
@body_delete = Waves::Request.new(env_for("/", :method => 'POST', :input => '_method=delete'))
|
68
|
+
|
69
|
+
@body_put.method.should == :put; @body_put.put?.should.be.true
|
70
|
+
@body_delete.method.should == :delete
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# require 'test_helper' because RubyMate needs help
|
2
|
+
require File.join(File.dirname(__FILE__) , "helpers")
|
3
|
+
|
4
|
+
describe "An instance of Waves::Response" do
|
5
|
+
|
6
|
+
before do
|
7
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
8
|
+
@request = Waves::Request.new(env_for)
|
9
|
+
@response = Waves::Response.new(@request)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "has a Rack::Response" do
|
13
|
+
@response.rack_response.class.should == Rack::Response
|
14
|
+
end
|
15
|
+
|
16
|
+
it "has a Waves::Request" do
|
17
|
+
@response.request.class.should == Waves::Request
|
18
|
+
end
|
19
|
+
|
20
|
+
it "can access the session for the current request" do
|
21
|
+
@response.session.class.should == Waves::Session
|
22
|
+
end
|
23
|
+
|
24
|
+
it "provides setter methods for commonly used headers" do
|
25
|
+
@response.rack_response.should.receive(:[]=).with('Content-Type', 'text/javascript')
|
26
|
+
@response.content_type = 'text/javascript'
|
27
|
+
|
28
|
+
@response.rack_response.should.receive(:[]=).with('Content-Length', '42')
|
29
|
+
@response.content_length = '42'
|
30
|
+
|
31
|
+
@response.rack_response.should.receive(:[]=).with('Location', '/here/')
|
32
|
+
@response.location = '/here/'
|
33
|
+
|
34
|
+
@response.rack_response.should.receive(:[]=).with('Expires', 'Thu, 09 Aug 2007 05:22:55 GMT')
|
35
|
+
@response.expires = 'Thu, 09 Aug 2007 05:22:55 GMT'
|
36
|
+
end
|
37
|
+
|
38
|
+
it "delegates unknown methods to the Rack response" do
|
39
|
+
@response.rack_response.should.receive(:mclintock!)
|
40
|
+
@response.mclintock!
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
describe "Waves::Response#finish" do
|
46
|
+
|
47
|
+
before do
|
48
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
49
|
+
@request = Waves::Request.new(env_for)
|
50
|
+
@response = Waves::Response.new(@request)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "saves the request session and calls Rack::Response#finish" do
|
54
|
+
@response.session.should.receive(:save)
|
55
|
+
@response.rack_response.should.receive(:finish)
|
56
|
+
@response.finish
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# require 'test_helper' because RubyMate needs help
|
2
|
+
require File.join(File.dirname(__FILE__) , "helpers")
|
3
|
+
|
4
|
+
SessionData = "--- \nmoo: cow\n"
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
describe "An new instance of Waves::Session" do
|
9
|
+
|
10
|
+
|
11
|
+
before do
|
12
|
+
FileUtils.mkdir(BasePath) unless File.exist?(BasePath)
|
13
|
+
Waves::Session.stub!(:generate_session_id).and_return("fake_session")
|
14
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
15
|
+
end
|
16
|
+
|
17
|
+
after do
|
18
|
+
FileUtils.rm Dir["#{BasePath}/fake_session"]
|
19
|
+
FileUtils.rmdir BasePath
|
20
|
+
end
|
21
|
+
|
22
|
+
it "loads data from a session file if one exists" do
|
23
|
+
File.write(BasePath / :fake_session, SessionData)
|
24
|
+
@request = Waves::Request.new(env_for)
|
25
|
+
session = @request.session
|
26
|
+
session.to_hash.should == { 'moo' => 'cow'}
|
27
|
+
end
|
28
|
+
|
29
|
+
it "is empty when no session file exists" do
|
30
|
+
Waves::Session.stub!(:generate_session_id).and_return("other_session")
|
31
|
+
@request = Waves::Request.new(env_for)
|
32
|
+
session = @request.session
|
33
|
+
session.to_hash.should.be.empty
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
describe "Session values" do
|
39
|
+
|
40
|
+
before do
|
41
|
+
Waves::Session.stub!(:base_path).and_return(BasePath)
|
42
|
+
@request = Waves::Request.new(env_for)
|
43
|
+
end
|
44
|
+
|
45
|
+
it "can be read and written using [] and []=" do
|
46
|
+
session = Waves::Session.new(@request)
|
47
|
+
session['moo'].should.be.nil
|
48
|
+
session['moo'] = 'bull'
|
49
|
+
session['moo'].should == 'bull'
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__) , "..", "helpers")
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# require 'test_helper' because RubyMate needs help
|
2
|
+
require File.join(File.dirname(__FILE__) , "helpers")
|
3
|
+
|
4
|
+
Dir.chdir(File.dirname(__FILE__)) do
|
5
|
+
class TestView
|
6
|
+
include Waves::Views::Mixin
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "Waves::Views" do
|
10
|
+
|
11
|
+
it "provides a list of Renderers" do
|
12
|
+
Waves::Views.renderers.should.respond_to :[]
|
13
|
+
end
|
14
|
+
|
15
|
+
it "defines an error for missing templates" do
|
16
|
+
defined?(Waves::Views::NoTemplateError).should.not.be.nil
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "A class which has included Waves::Views::Mixin" do
|
22
|
+
|
23
|
+
before do
|
24
|
+
@view = TestView.new(mock(:request))
|
25
|
+
end
|
26
|
+
|
27
|
+
it "uses the first renderer for which it can find a template file with the associated extension" do
|
28
|
+
@view.renderer("foo").should == Waves::Renderers::Erubis
|
29
|
+
@view.renderer("moo").should == Waves::Renderers::Erubis
|
30
|
+
@view.renderer("bleat").should == nil
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,439 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: waves-stable
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.7.7
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Yoder
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-07-21 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: mongrel
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: "0"
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: rack
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "0"
|
32
|
+
version:
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: markaby
|
35
|
+
version_requirement:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: "0"
|
41
|
+
version:
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: erubis
|
44
|
+
version_requirement:
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: "0"
|
50
|
+
version:
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: haml
|
53
|
+
version_requirement:
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: "0"
|
59
|
+
version:
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: RedCloth
|
62
|
+
version_requirement:
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
version:
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: metaid
|
71
|
+
version_requirement:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: "0"
|
77
|
+
version:
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: extensions
|
80
|
+
version_requirement:
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: "0"
|
86
|
+
version:
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: live_console
|
89
|
+
version_requirement:
|
90
|
+
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: "0"
|
95
|
+
version:
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: choice
|
98
|
+
version_requirement:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: "0"
|
104
|
+
version:
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: daemons
|
107
|
+
version_requirement:
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: "0"
|
113
|
+
version:
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: rakegen
|
116
|
+
version_requirement:
|
117
|
+
version_requirements: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: "0"
|
122
|
+
version:
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: sequel
|
125
|
+
version_requirement:
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 2.0.0
|
131
|
+
version:
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: autocode
|
134
|
+
version_requirement:
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.0.0
|
140
|
+
version:
|
141
|
+
description:
|
142
|
+
email: dan@zeraweb.com
|
143
|
+
executables:
|
144
|
+
- waves
|
145
|
+
- waves-server
|
146
|
+
- waves-console
|
147
|
+
extensions: []
|
148
|
+
|
149
|
+
extra_rdoc_files: []
|
150
|
+
|
151
|
+
files:
|
152
|
+
- app/bin
|
153
|
+
- app/bin/waves-console
|
154
|
+
- app/bin/waves-server
|
155
|
+
- app/configurations
|
156
|
+
- app/configurations/development.rb.erb
|
157
|
+
- app/configurations/mapping.rb.erb
|
158
|
+
- app/configurations/production.rb.erb
|
159
|
+
- app/controllers
|
160
|
+
- app/doc
|
161
|
+
- app/helpers
|
162
|
+
- app/lib
|
163
|
+
- app/lib/application.rb.erb
|
164
|
+
- app/lib/tasks
|
165
|
+
- app/log
|
166
|
+
- app/models
|
167
|
+
- app/public
|
168
|
+
- app/public/css
|
169
|
+
- app/public/flash
|
170
|
+
- app/public/images
|
171
|
+
- app/public/javascript
|
172
|
+
- app/Rakefile
|
173
|
+
- app/schema
|
174
|
+
- app/schema/migrations
|
175
|
+
- app/startup.rb
|
176
|
+
- app/templates
|
177
|
+
- app/templates/errors
|
178
|
+
- app/templates/errors/not_found_404.mab
|
179
|
+
- app/templates/errors/server_error_500.mab
|
180
|
+
- app/templates/layouts
|
181
|
+
- app/templates/layouts/default.mab
|
182
|
+
- app/tmp
|
183
|
+
- app/tmp/sessions
|
184
|
+
- app/views
|
185
|
+
- app/controllers/.gitignore
|
186
|
+
- app/doc/.gitignore
|
187
|
+
- app/helpers/.gitignore
|
188
|
+
- app/lib/tasks/.gitignore
|
189
|
+
- app/log/.gitignore
|
190
|
+
- app/models/.gitignore
|
191
|
+
- app/public/css/.gitignore
|
192
|
+
- app/public/flash/.gitignore
|
193
|
+
- app/public/images/.gitignore
|
194
|
+
- app/public/javascript/.gitignore
|
195
|
+
- app/schema/migrations/.gitignore
|
196
|
+
- app/tmp/sessions/.gitignore
|
197
|
+
- app/views/.gitignore
|
198
|
+
- lib/commands/waves-console.rb
|
199
|
+
- lib/commands/waves-server.rb
|
200
|
+
- lib/controllers/base.rb
|
201
|
+
- lib/controllers/mixin.rb
|
202
|
+
- lib/dispatchers/base.rb
|
203
|
+
- lib/dispatchers/default.rb
|
204
|
+
- lib/foundations/default.rb
|
205
|
+
- lib/foundations/simple.rb
|
206
|
+
- lib/helpers/asset_helper.rb
|
207
|
+
- lib/helpers/common.rb
|
208
|
+
- lib/helpers/default.rb
|
209
|
+
- lib/helpers/form.rb
|
210
|
+
- lib/helpers/formatting.rb
|
211
|
+
- lib/helpers/model.rb
|
212
|
+
- lib/helpers/number_helper.rb
|
213
|
+
- lib/helpers/tag_helper.rb
|
214
|
+
- lib/helpers/url_helper.rb
|
215
|
+
- lib/helpers/view.rb
|
216
|
+
- lib/layers/default_errors.rb
|
217
|
+
- lib/layers/inflect/english/rules.rb
|
218
|
+
- lib/layers/inflect/english/string.rb
|
219
|
+
- lib/layers/inflect/english.rb
|
220
|
+
- lib/layers/mvc.rb
|
221
|
+
- lib/layers/orm/active_record/tasks/generate.rb
|
222
|
+
- lib/layers/orm/active_record/tasks/schema.rb
|
223
|
+
- lib/layers/orm/active_record.rb
|
224
|
+
- lib/layers/orm/data_mapper.rb
|
225
|
+
- lib/layers/orm/filebase.rb
|
226
|
+
- lib/layers/orm/migration.rb
|
227
|
+
- lib/layers/orm/sequel/tasks/generate.rb
|
228
|
+
- lib/layers/orm/sequel/tasks/schema.rb
|
229
|
+
- lib/layers/orm/sequel.rb
|
230
|
+
- lib/layers/simple.rb
|
231
|
+
- lib/layers/simple_errors.rb
|
232
|
+
- lib/mapping/mapping.rb
|
233
|
+
- lib/mapping/pretty_urls.rb
|
234
|
+
- lib/renderers/erubis.rb
|
235
|
+
- lib/renderers/haml.rb
|
236
|
+
- lib/renderers/markaby.rb
|
237
|
+
- lib/renderers/mixin.rb
|
238
|
+
- lib/runtime/application.rb
|
239
|
+
- lib/runtime/blackboard.rb
|
240
|
+
- lib/runtime/configuration.rb
|
241
|
+
- lib/runtime/console.rb
|
242
|
+
- lib/runtime/debugger.rb
|
243
|
+
- lib/runtime/logger.rb
|
244
|
+
- lib/runtime/mime_types.rb
|
245
|
+
- lib/runtime/request.rb
|
246
|
+
- lib/runtime/response.rb
|
247
|
+
- lib/runtime/response_mixin.rb
|
248
|
+
- lib/runtime/response_proxy.rb
|
249
|
+
- lib/runtime/server.rb
|
250
|
+
- lib/runtime/session.rb
|
251
|
+
- lib/tasks/cluster.rb
|
252
|
+
- lib/tasks/gem.rb
|
253
|
+
- lib/tasks/generate.rb
|
254
|
+
- lib/utilities/hash.rb
|
255
|
+
- lib/utilities/inflect.rb
|
256
|
+
- lib/utilities/integer.rb
|
257
|
+
- lib/utilities/module.rb
|
258
|
+
- lib/utilities/object.rb
|
259
|
+
- lib/utilities/proc.rb
|
260
|
+
- lib/utilities/string.rb
|
261
|
+
- lib/utilities/symbol.rb
|
262
|
+
- lib/utilities/tempfile.rb
|
263
|
+
- lib/views/base.rb
|
264
|
+
- lib/views/mixin.rb
|
265
|
+
- lib/waves.rb
|
266
|
+
- lib/layers/orm/active_record/migrations/empty.rb.erb
|
267
|
+
- lib/layers/orm/sequel/migrations/empty.rb.erb
|
268
|
+
- doc/HISTORY
|
269
|
+
- doc/LICENSE
|
270
|
+
- samples/blog
|
271
|
+
- samples/blog/bin
|
272
|
+
- samples/blog/bin/waves-console
|
273
|
+
- samples/blog/bin/waves-server
|
274
|
+
- samples/blog/configurations
|
275
|
+
- samples/blog/configurations/development.rb
|
276
|
+
- samples/blog/configurations/mapping.rb
|
277
|
+
- samples/blog/configurations/production.rb
|
278
|
+
- samples/blog/doc
|
279
|
+
- samples/blog/doc/EMTPY
|
280
|
+
- samples/blog/lib
|
281
|
+
- samples/blog/lib/application.rb
|
282
|
+
- samples/blog/models
|
283
|
+
- samples/blog/models/comment.rb
|
284
|
+
- samples/blog/models/entry.rb
|
285
|
+
- samples/blog/public
|
286
|
+
- samples/blog/public/css
|
287
|
+
- samples/blog/public/css/site.css
|
288
|
+
- samples/blog/public/javascript
|
289
|
+
- samples/blog/public/javascript/site.js
|
290
|
+
- samples/blog/Rakefile
|
291
|
+
- samples/blog/schema
|
292
|
+
- samples/blog/schema/migrations
|
293
|
+
- samples/blog/schema/migrations/001_initial_schema.rb
|
294
|
+
- samples/blog/schema/migrations/002_add_comments.rb
|
295
|
+
- samples/blog/schema/migrations/templates
|
296
|
+
- samples/blog/schema/migrations/templates/empty.rb.erb
|
297
|
+
- samples/blog/startup.rb
|
298
|
+
- samples/blog/templates
|
299
|
+
- samples/blog/templates/comment
|
300
|
+
- samples/blog/templates/comment/add.mab
|
301
|
+
- samples/blog/templates/comment/list.mab
|
302
|
+
- samples/blog/templates/entry
|
303
|
+
- samples/blog/templates/entry/editor.mab
|
304
|
+
- samples/blog/templates/entry/list.mab
|
305
|
+
- samples/blog/templates/entry/show.mab
|
306
|
+
- samples/blog/templates/entry/summary.mab
|
307
|
+
- samples/blog/templates/errors
|
308
|
+
- samples/blog/templates/errors/not_found_404.mab
|
309
|
+
- samples/blog/templates/errors/server_error_500.mab
|
310
|
+
- samples/blog/templates/layouts
|
311
|
+
- samples/blog/templates/layouts/default.mab
|
312
|
+
- verify/app_generation
|
313
|
+
- verify/app_generation/helpers.rb
|
314
|
+
- verify/app_generation/startup.rb
|
315
|
+
- verify/blackboard
|
316
|
+
- verify/blackboard/blackboard_verify.rb
|
317
|
+
- verify/blackboard/helpers.rb
|
318
|
+
- verify/configurations
|
319
|
+
- verify/configurations/attributes.rb
|
320
|
+
- verify/configurations/helpers.rb
|
321
|
+
- verify/configurations/rack_integration.rb
|
322
|
+
- verify/controllers
|
323
|
+
- verify/controllers/base.rb
|
324
|
+
- verify/controllers/helpers.rb
|
325
|
+
- verify/controllers/interface.rb
|
326
|
+
- verify/core
|
327
|
+
- verify/core/helpers.rb
|
328
|
+
- verify/core/utilities.rb
|
329
|
+
- verify/foundations
|
330
|
+
- verify/foundations/default.rb
|
331
|
+
- verify/foundations/default_application
|
332
|
+
- verify/foundations/default_application/bin
|
333
|
+
- verify/foundations/default_application/bin/waves-console
|
334
|
+
- verify/foundations/default_application/bin/waves-server
|
335
|
+
- verify/foundations/default_application/configurations
|
336
|
+
- verify/foundations/default_application/configurations/development.rb
|
337
|
+
- verify/foundations/default_application/configurations/mapping.rb
|
338
|
+
- verify/foundations/default_application/configurations/production.rb
|
339
|
+
- verify/foundations/default_application/controllers
|
340
|
+
- verify/foundations/default_application/controllers/default.rb
|
341
|
+
- verify/foundations/default_application/controllers/loaded.rb
|
342
|
+
- verify/foundations/default_application/defaultapplication.db
|
343
|
+
- verify/foundations/default_application/doc
|
344
|
+
- verify/foundations/default_application/helpers
|
345
|
+
- verify/foundations/default_application/helpers/loaded.rb
|
346
|
+
- verify/foundations/default_application/lib
|
347
|
+
- verify/foundations/default_application/lib/application.rb
|
348
|
+
- verify/foundations/default_application/lib/tasks
|
349
|
+
- verify/foundations/default_application/log
|
350
|
+
- verify/foundations/default_application/models
|
351
|
+
- verify/foundations/default_application/models/default.rb
|
352
|
+
- verify/foundations/default_application/models/loaded.rb
|
353
|
+
- verify/foundations/default_application/public
|
354
|
+
- verify/foundations/default_application/public/css
|
355
|
+
- verify/foundations/default_application/public/flash
|
356
|
+
- verify/foundations/default_application/public/images
|
357
|
+
- verify/foundations/default_application/public/javascript
|
358
|
+
- verify/foundations/default_application/Rakefile
|
359
|
+
- verify/foundations/default_application/schema
|
360
|
+
- verify/foundations/default_application/schema/migrations
|
361
|
+
- verify/foundations/default_application/schema/migrations/templates
|
362
|
+
- verify/foundations/default_application/schema/migrations/templates/empty.rb.erb
|
363
|
+
- verify/foundations/default_application/startup.rb
|
364
|
+
- verify/foundations/default_application/templates
|
365
|
+
- verify/foundations/default_application/templates/errors
|
366
|
+
- verify/foundations/default_application/templates/errors/not_found_404.mab
|
367
|
+
- verify/foundations/default_application/templates/errors/server_error_500.mab
|
368
|
+
- verify/foundations/default_application/templates/layouts
|
369
|
+
- verify/foundations/default_application/templates/layouts/default.mab
|
370
|
+
- verify/foundations/default_application/tmp
|
371
|
+
- verify/foundations/default_application/tmp/sessions
|
372
|
+
- verify/foundations/default_application/views
|
373
|
+
- verify/foundations/default_application/views/default.rb
|
374
|
+
- verify/foundations/default_application/views/loaded.rb
|
375
|
+
- verify/foundations/helpers.rb
|
376
|
+
- verify/foundations/simple.rb
|
377
|
+
- verify/helpers.rb
|
378
|
+
- verify/layers
|
379
|
+
- verify/layers/data_mapper
|
380
|
+
- verify/layers/data_mapper/association_verify.rb
|
381
|
+
- verify/layers/default_errors.rb
|
382
|
+
- verify/layers/helpers.rb
|
383
|
+
- verify/layers/migration.rb
|
384
|
+
- verify/layers/sequel
|
385
|
+
- verify/layers/sequel/model.rb
|
386
|
+
- verify/mapping
|
387
|
+
- verify/mapping/always.rb
|
388
|
+
- verify/mapping/filters.rb
|
389
|
+
- verify/mapping/handle.rb
|
390
|
+
- verify/mapping/helpers.rb
|
391
|
+
- verify/mapping/matches.rb
|
392
|
+
- verify/mapping/named.rb
|
393
|
+
- verify/mapping/options.rb
|
394
|
+
- verify/mapping/path.rb
|
395
|
+
- verify/mapping/response_proxy.rb
|
396
|
+
- verify/mapping/threaded.rb
|
397
|
+
- verify/requests
|
398
|
+
- verify/requests/helpers.rb
|
399
|
+
- verify/requests/request.rb
|
400
|
+
- verify/requests/response.rb
|
401
|
+
- verify/requests/session.rb
|
402
|
+
- verify/views
|
403
|
+
- verify/views/helpers.rb
|
404
|
+
- verify/views/rendering.rb
|
405
|
+
- verify/views/templates
|
406
|
+
- verify/views/templates/foo.erb
|
407
|
+
- verify/views/templates/moo.erb
|
408
|
+
- verify/views/templates/moo.mab
|
409
|
+
- bin/waves
|
410
|
+
- bin/waves-server
|
411
|
+
- bin/waves-console
|
412
|
+
has_rdoc: true
|
413
|
+
homepage: http://rubywaves.com
|
414
|
+
post_install_message:
|
415
|
+
rdoc_options: []
|
416
|
+
|
417
|
+
require_paths:
|
418
|
+
- lib
|
419
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
420
|
+
requirements:
|
421
|
+
- - ">="
|
422
|
+
- !ruby/object:Gem::Version
|
423
|
+
version: 1.8.6
|
424
|
+
version:
|
425
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
426
|
+
requirements:
|
427
|
+
- - ">="
|
428
|
+
- !ruby/object:Gem::Version
|
429
|
+
version: "0"
|
430
|
+
version:
|
431
|
+
requirements: []
|
432
|
+
|
433
|
+
rubyforge_project: waves
|
434
|
+
rubygems_version: 1.2.0
|
435
|
+
signing_key:
|
436
|
+
specification_version: 2
|
437
|
+
summary: Open-source framework for building Ruby-based Web applications.
|
438
|
+
test_files: []
|
439
|
+
|