grippy-doozer 0.1.3 → 0.1.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.
Files changed (51) hide show
  1. data/VERSION +1 -1
  2. data/doozer.gemspec +40 -3
  3. data/lib/doozer.rb +6 -1
  4. data/lib/doozer/app.rb +28 -19
  5. data/lib/doozer/configs.rb +18 -12
  6. data/lib/doozer/controller.rb +2 -2
  7. data/lib/doozer/exceptions.rb +12 -0
  8. data/lib/doozer/initializer.rb +8 -6
  9. data/lib/doozer/logger.rb +2 -1
  10. data/lib/doozer/partial.rb +3 -3
  11. data/lib/doozer/rackup/test.rb +2 -1
  12. data/lib/doozer/redirect.rb +1 -1
  13. data/lib/doozer/route.rb +34 -6
  14. data/lib/doozer/scripts/cluster.rb +9 -10
  15. data/lib/doozer/version.rb +1 -1
  16. data/lib/doozer/view_helpers.rb +100 -12
  17. data/lib/generator/generator.rb +0 -2
  18. data/templates/skeleton/config/environment.rb +1 -1
  19. data/templates/skeleton/config/routes.rb +2 -2
  20. data/test/doozer_test.rb +1 -1
  21. data/test/project/Rakefile +3 -0
  22. data/test/project/app/controllers/application_controller.rb +2 -0
  23. data/test/project/app/controllers/index_controller.rb +7 -0
  24. data/test/project/app/helpers/application_helper.rb +17 -0
  25. data/test/project/app/views/global/_header.html.erb +7 -0
  26. data/test/project/app/views/global/_navigation.html.erb +6 -0
  27. data/test/project/app/views/index/index.html.erb +108 -0
  28. data/test/project/app/views/layouts/default.html.erb +23 -0
  29. data/test/project/config/app.yml +31 -0
  30. data/test/project/config/database.yml +25 -0
  31. data/test/project/config/environment.rb +11 -0
  32. data/test/project/config/rack.rb +30 -0
  33. data/test/project/config/routes.rb +72 -0
  34. data/test/project/script/cluster +6 -0
  35. data/test/project/script/console +15 -0
  36. data/test/project/script/migrate +6 -0
  37. data/test/project/script/task +6 -0
  38. data/test/project/script/test +6 -0
  39. data/test/project/static/404.html +16 -0
  40. data/test/project/static/500.html +16 -0
  41. data/test/project/static/css/style.css +32 -0
  42. data/test/project/static/favicon.ico +0 -0
  43. data/test/project/static/js/application.js +1 -0
  44. data/test/project/static/js/jquery-1.3.min.js +19 -0
  45. data/test/project/static/robots.txt +5 -0
  46. data/test/project/test/fixtures/setup.rb +6 -0
  47. data/test/project/test/setup.rb +33 -0
  48. data/test/routing_test.rb +66 -0
  49. data/test/test_helper.rb +18 -2
  50. metadata +40 -3
  51. data/lib/doozer/README.rb +0 -40
data/test/test_helper.rb CHANGED
@@ -6,5 +6,21 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
7
7
  require 'doozer'
8
8
 
9
- class Test::Unit::TestCase
10
- end
9
+ class RoutingHelper < Test::Unit::TestCase
10
+
11
+ def setup
12
+ printf "\n Routing Helper setup... \n"
13
+ @app_path = File.join(File.dirname(__FILE__), 'project')
14
+
15
+ #--boot
16
+ Doozer::Initializer.boot(:test, app_path=@app_path)
17
+
18
+ #--instantiate Doozer::App
19
+ @app = Doozer::App.new(args={})
20
+
21
+ end
22
+
23
+ def default_test
24
+
25
+ end
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grippy-doozer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - grippy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-11 00:00:00 -07:00
12
+ date: 2009-08-14 00:00:00 -07:00
13
13
  default_executable: doozer
14
14
  dependencies: []
15
15
 
@@ -32,7 +32,6 @@ files:
32
32
  - bin/doozer
33
33
  - doozer.gemspec
34
34
  - lib/doozer.rb
35
- - lib/doozer/README.rb
36
35
  - lib/doozer/active_support/array.rb
37
36
  - lib/doozer/active_support/class.rb
38
37
  - lib/doozer/active_support/date_time.rb
@@ -41,6 +40,7 @@ files:
41
40
  - lib/doozer/app.rb
42
41
  - lib/doozer/configs.rb
43
42
  - lib/doozer/controller.rb
43
+ - lib/doozer/exceptions.rb
44
44
  - lib/doozer/extend.rb
45
45
  - lib/doozer/initializer.rb
46
46
  - lib/doozer/lib.rb
@@ -95,6 +95,34 @@ files:
95
95
  - templates/skeleton/test/fixtures/setup.rb
96
96
  - templates/skeleton/test/setup.rb
97
97
  - test/doozer_test.rb
98
+ - test/project/Rakefile
99
+ - test/project/app/controllers/application_controller.rb
100
+ - test/project/app/controllers/index_controller.rb
101
+ - test/project/app/helpers/application_helper.rb
102
+ - test/project/app/views/global/_header.html.erb
103
+ - test/project/app/views/global/_navigation.html.erb
104
+ - test/project/app/views/index/index.html.erb
105
+ - test/project/app/views/layouts/default.html.erb
106
+ - test/project/config/app.yml
107
+ - test/project/config/database.yml
108
+ - test/project/config/environment.rb
109
+ - test/project/config/rack.rb
110
+ - test/project/config/routes.rb
111
+ - test/project/script/cluster
112
+ - test/project/script/console
113
+ - test/project/script/migrate
114
+ - test/project/script/task
115
+ - test/project/script/test
116
+ - test/project/static/404.html
117
+ - test/project/static/500.html
118
+ - test/project/static/css/style.css
119
+ - test/project/static/favicon.ico
120
+ - test/project/static/js/application.js
121
+ - test/project/static/js/jquery-1.3.min.js
122
+ - test/project/static/robots.txt
123
+ - test/project/test/fixtures/setup.rb
124
+ - test/project/test/setup.rb
125
+ - test/routing_test.rb
98
126
  - test/test_helper.rb
99
127
  has_rdoc: true
100
128
  homepage: http://github.com/grippy/doozer
@@ -125,4 +153,13 @@ specification_version: 2
125
153
  summary: A little MVC framework for Rack applications.
126
154
  test_files:
127
155
  - test/doozer_test.rb
156
+ - test/project/app/controllers/application_controller.rb
157
+ - test/project/app/controllers/index_controller.rb
158
+ - test/project/app/helpers/application_helper.rb
159
+ - test/project/config/environment.rb
160
+ - test/project/config/rack.rb
161
+ - test/project/config/routes.rb
162
+ - test/project/test/fixtures/setup.rb
163
+ - test/project/test/setup.rb
164
+ - test/routing_test.rb
128
165
  - test/test_helper.rb
data/lib/doozer/README.rb DELETED
@@ -1,40 +0,0 @@
1
- # = What is Doozer?
2
- # * A lightweight, ORM agnostic, Rack (http://rack.rubyforge.org) compatible MVC framework.
3
- #
4
- # == Project Inspiration
5
- # * Doozer was initially a project I started working on for Google App Engine. It was eventually abandoned since GAE lacked (at the time and may still) proper support for migrations. I ported some of the code to Ruby mainly to learn the internals of Rack back in December 2008.
6
- # * Some of the more useful Rails conventions and methodologies (mostly the application structure, configuration, nonmenclature, scripts, and a few viewhelper methods).
7
- # * Clustering ala Mongrel::Cluster
8
- #
9
- # == Requirements
10
- # * Ruby < 1.9 (untestested on Ruby 1.9 as of now)
11
- # * Rack (http://rack.rubyforge.org) gem (0.9.1 or 1.0.0)
12
- # * An http server supported by Rack
13
- # * ActiveRecord, DataMapper or Sequel
14
- #
15
- # == Getting Started
16
- # 1. Create a folder called 'test' and checkout Doozer.
17
- # 2. From the root 'test' directory run 'ruby doozer/commands/scaffold.rb' to generate the base application skeleton.
18
- # 3. Fire up the application in development mode=> 'script/clusters -C start'.
19
- # 4. Navigate to http://localhost:9292
20
- #
21
- # == Configuration
22
- # * Doozer is configurable to use an ORM library of your choosing: ActiveRecord, DataMapper, or Sequel.
23
- # * By default, routes are handled by Doozer controllers or you can define other Rack compatible applications which handle specific request paths.
24
- # * Http server of your liking (Mongrel, Thin, Lighttpd, or anything supported by Rack).
25
- # * Multiple appservers.
26
- # * Static directories.
27
- #
28
- # == Useful Scripts
29
- # * Generate an application skeleton. Run 'ruby doozer/commands/scaffold.rb' (see Getting Started).
30
- # * Generate views, controllers, and models (depending on the configured ORM). Run 'script/generate -h' for more info.
31
- # * start/stop/restart your web server(s). Run 'script/clusters -h' for more info.
32
- # * Migrations up or down. 'script/migrate -h'.
33
- # * Tasks. Run 'script/task -h' for more info
34
- # * There is a rudimentary test command which allows you to run your own test suite for your application. Run 'script/test -h' for more info.
35
- #
36
- # == Current limitations:
37
- # * Doozer has no test suite. Tsk-tsk I know. In the works.
38
- # * Right now, it doesn't keep track of migration versions.
39
- # * Magic routes are turned off. These worked at one point. They may work again one day.
40
- # * No way to override a view template from inside an action.