rango 0.2.3 → 0.2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (281) hide show
  1. data/.gitignore +2 -2
  2. data/CHANGELOG +9 -0
  3. data/CONTRIBUTORS +0 -1
  4. data/Gemfile +2 -6
  5. data/lib/rango.rb +10 -7
  6. data/lib/rango/cli.rb +1 -1
  7. data/lib/rango/contrib/pagination/adapters/sequel.rb +6 -2
  8. data/lib/rango/controller.rb +24 -20
  9. data/lib/rango/core_ext.rb +54 -59
  10. data/lib/rango/exceptions.rb +2 -2
  11. data/lib/rango/gv/router.rb +1 -1
  12. data/lib/rango/gv/scaffolding.rb +0 -1
  13. data/lib/rango/mailer.rb +20 -40
  14. data/lib/rango/mixins/action_args.rb +8 -7
  15. data/lib/rango/mixins/filters.rb +1 -0
  16. data/lib/rango/mixins/message.rb +37 -33
  17. data/lib/rango/mixins/rack-flash.rb +44 -0
  18. data/{benchmarks/stubs/merb-app/spec/spec.opts → lib/rango/orm/tasks/ripple.nake} +0 -0
  19. data/lib/rango/rack/request.rb +12 -15
  20. data/lib/rango/router.rb +7 -3
  21. data/lib/rango/router/adapters/crudtree.rb +8 -1
  22. data/lib/rango/router/adapters/rack_mount.rb +5 -1
  23. data/lib/rango/router/adapters/usher.rb +5 -2
  24. data/lib/rango/stacks/controller.rb +0 -1
  25. data/lib/rango/templates/exts/haml.rb +14 -15
  26. data/lib/rango/templates/exts/tilt.rb +16 -23
  27. data/lib/rango/templates/helpers.rb +10 -1
  28. data/lib/rango/templates/template.rb +4 -4
  29. data/lib/rango/utils.rb +4 -2
  30. data/lib/rango/version.rb +5 -0
  31. data/rango.gemspec +3 -2
  32. data/{benchmarks/stubs/merb-core/spec/spec.opts → spec/rango/cli_spec.rb} +0 -0
  33. data/{benchmarks/stubs/rails/log/development.log → spec/rango/contrib/pagination/adapters/sequel_spec.rb} +0 -0
  34. data/spec/rango/controller_spec.rb +12 -0
  35. data/spec/rango/core_ext_spec.rb +61 -0
  36. data/spec/rango/environments_spec.rb +1 -0
  37. data/spec/rango/exceptions_spec.rb +1 -28
  38. data/{benchmarks/stubs/rails/log/production.log → spec/rango/mailer_spec.rb} +0 -0
  39. data/spec/rango/mixins/action_args_spec.rb +0 -4
  40. data/spec/rango/mixins/message_spec.rb +20 -10
  41. data/{benchmarks/stubs/rails/log/server.log → spec/rango/mixins/rack-flash_spec.rb} +0 -0
  42. data/spec/rango/rack/request_spec.rb +11 -0
  43. data/{benchmarks/stubs/rails/log/test.log → spec/rango/router/adapters/crudtree_spec.rb} +0 -0
  44. data/spec/rango/templates/helpers_spec.rb +19 -5
  45. data/spec/rango/templates/template_spec.rb +1 -20
  46. data/{benchmarks/stubs/rails/public/favicon.ico → spec/rango/version_spec.rb} +0 -0
  47. data/spec/spec_helper.rb +18 -4
  48. data/stubs/stack/content/%name%.gemspec.rbt +0 -0
  49. data/stubs/stack/content/%name%.pre.gemspec.rbt +1 -2
  50. data/stubs/stack/content/.gitignore +2 -5
  51. data/stubs/stack/content/Gemfile.rbt +23 -46
  52. data/stubs/stack/content/config.ru.rbt +9 -21
  53. data/stubs/stack/content/init.rb.rbt +10 -10
  54. data/stubs/stack/content/lib/%name%.rb.rbt +37 -4
  55. data/stubs/stack/content/lib/%name%/initializers/01_database.rb.rbt +16 -0
  56. data/stubs/stack/content/lib/%name%/initializers/05_templates.rb.rbt +13 -0
  57. data/stubs/stack/content/lib/%name%/initializers/10_pagination.rb.rbt +8 -0
  58. data/stubs/stack/content/lib/%name%/initializers/15_warden.rb.rbt +26 -0
  59. data/stubs/stack/content/lib/%name%/initializers/45_middlewares.rb.rbt +17 -0
  60. data/stubs/stack/content/lib/%name%/initializers/50_router.rb.rbt +7 -0
  61. data/stubs/stack/content/lib/%name%/{initializers/urls.rb.rbt → urls.rb.rbt} +3 -0
  62. data/stubs/stack/content/lib/%name%/views.rb.rbt +4 -1
  63. data/stubs/stack/content/templates/index.html.haml +1 -1
  64. data/{gems → vendor}/cache/abstract-1.0.0.gem +0 -0
  65. data/vendor/cache/code-cleaner-0.8.2.gem +0 -0
  66. data/{gems → vendor}/cache/erubis-2.6.5.gem +0 -0
  67. data/vendor/cache/haml-2.2.21.gem +0 -0
  68. data/{gems → vendor}/cache/nake-0.0.8.gem +0 -0
  69. data/vendor/cache/rack-1.1.0.gem +0 -0
  70. data/{gems → vendor}/cache/rspec-1.3.0.gem +0 -0
  71. data/vendor/cache/term-ansicolor-1.0.5.gem +0 -0
  72. data/vendor/cache/tilt-0.8.gem +0 -0
  73. metadata +63 -239
  74. data/benchmarks/stubs/merb-app/.gitignore +0 -21
  75. data/benchmarks/stubs/merb-app/Rakefile +0 -35
  76. data/benchmarks/stubs/merb-app/app/controllers/application.rb +0 -4
  77. data/benchmarks/stubs/merb-app/app/controllers/exceptions.rb +0 -15
  78. data/benchmarks/stubs/merb-app/app/helpers/global_helpers.rb +0 -7
  79. data/benchmarks/stubs/merb-app/app/models/user.rb +0 -19
  80. data/benchmarks/stubs/merb-app/app/views/exceptions/not_acceptable.html.erb +0 -63
  81. data/benchmarks/stubs/merb-app/app/views/exceptions/not_found.html.erb +0 -47
  82. data/benchmarks/stubs/merb-app/app/views/layout/application.html.erb +0 -12
  83. data/benchmarks/stubs/merb-app/autotest/discover.rb +0 -4
  84. data/benchmarks/stubs/merb-app/autotest/merb.rb +0 -154
  85. data/benchmarks/stubs/merb-app/autotest/merb_rspec.rb +0 -167
  86. data/benchmarks/stubs/merb-app/config/database.yml +0 -33
  87. data/benchmarks/stubs/merb-app/config/dependencies.rb +0 -36
  88. data/benchmarks/stubs/merb-app/config/environments/development.rb +0 -17
  89. data/benchmarks/stubs/merb-app/config/environments/production.rb +0 -12
  90. data/benchmarks/stubs/merb-app/config/environments/rake.rb +0 -13
  91. data/benchmarks/stubs/merb-app/config/environments/staging.rb +0 -12
  92. data/benchmarks/stubs/merb-app/config/environments/test.rb +0 -14
  93. data/benchmarks/stubs/merb-app/config/init.rb +0 -26
  94. data/benchmarks/stubs/merb-app/config/rack.rb +0 -13
  95. data/benchmarks/stubs/merb-app/config/router.rb +0 -46
  96. data/benchmarks/stubs/merb-app/doc/rdoc/generators/merb_generator.rb +0 -1364
  97. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/api_grease.js +0 -640
  98. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/index.html.erb +0 -37
  99. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.css +0 -252
  100. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.rb +0 -353
  101. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb_doc_styles.css +0 -492
  102. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/prototype.js +0 -2515
  103. data/benchmarks/stubs/merb-app/merb/merb-auth/setup.rb +0 -46
  104. data/benchmarks/stubs/merb-app/merb/merb-auth/strategies.rb +0 -13
  105. data/benchmarks/stubs/merb-app/merb/session/session.rb +0 -11
  106. data/benchmarks/stubs/merb-app/public/.htaccess +0 -17
  107. data/benchmarks/stubs/merb-app/public/favicon.ico +0 -0
  108. data/benchmarks/stubs/merb-app/public/images/merb.jpg +0 -0
  109. data/benchmarks/stubs/merb-app/public/javascripts/application.js +0 -1
  110. data/benchmarks/stubs/merb-app/public/javascripts/jquery.js +0 -19
  111. data/benchmarks/stubs/merb-app/public/merb.fcgi +0 -22
  112. data/benchmarks/stubs/merb-app/public/robots.txt +0 -5
  113. data/benchmarks/stubs/merb-app/public/stylesheets/master.css +0 -119
  114. data/benchmarks/stubs/merb-app/spec/spec_helper.rb +0 -27
  115. data/benchmarks/stubs/merb-app/tasks/doc.thor +0 -151
  116. data/benchmarks/stubs/merb-app/tasks/merb.thor/app_script.rb +0 -33
  117. data/benchmarks/stubs/merb-app/tasks/merb.thor/common.rb +0 -70
  118. data/benchmarks/stubs/merb-app/tasks/merb.thor/gem_ext.rb +0 -127
  119. data/benchmarks/stubs/merb-app/tasks/merb.thor/main.thor +0 -152
  120. data/benchmarks/stubs/merb-app/tasks/merb.thor/ops.rb +0 -95
  121. data/benchmarks/stubs/merb-app/tasks/merb.thor/utils.rb +0 -42
  122. data/benchmarks/stubs/merb-core/.gitignore +0 -21
  123. data/benchmarks/stubs/merb-core/Rakefile +0 -35
  124. data/benchmarks/stubs/merb-core/app/controllers/application.rb +0 -4
  125. data/benchmarks/stubs/merb-core/app/controllers/exceptions.rb +0 -15
  126. data/benchmarks/stubs/merb-core/app/helpers/global_helpers.rb +0 -7
  127. data/benchmarks/stubs/merb-core/app/views/exceptions/not_acceptable.html.erb +0 -63
  128. data/benchmarks/stubs/merb-core/app/views/exceptions/not_found.html.erb +0 -47
  129. data/benchmarks/stubs/merb-core/app/views/layout/application.html.erb +0 -12
  130. data/benchmarks/stubs/merb-core/autotest/discover.rb +0 -1
  131. data/benchmarks/stubs/merb-core/autotest/merb.rb +0 -151
  132. data/benchmarks/stubs/merb-core/autotest/merb_rspec.rb +0 -167
  133. data/benchmarks/stubs/merb-core/config/environments/development.rb +0 -17
  134. data/benchmarks/stubs/merb-core/config/environments/production.rb +0 -12
  135. data/benchmarks/stubs/merb-core/config/environments/rake.rb +0 -13
  136. data/benchmarks/stubs/merb-core/config/environments/staging.rb +0 -12
  137. data/benchmarks/stubs/merb-core/config/environments/test.rb +0 -14
  138. data/benchmarks/stubs/merb-core/config/init.rb +0 -27
  139. data/benchmarks/stubs/merb-core/config/rack.rb +0 -13
  140. data/benchmarks/stubs/merb-core/config/router.rb +0 -43
  141. data/benchmarks/stubs/merb-core/doc/rdoc/generators/merb_generator.rb +0 -1364
  142. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/api_grease.js +0 -640
  143. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/index.html.erb +0 -37
  144. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.css +0 -252
  145. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.rb +0 -353
  146. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb_doc_styles.css +0 -492
  147. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/prototype.js +0 -2515
  148. data/benchmarks/stubs/merb-core/public/.htaccess +0 -17
  149. data/benchmarks/stubs/merb-core/public/favicon.ico +0 -0
  150. data/benchmarks/stubs/merb-core/public/images/merb.jpg +0 -0
  151. data/benchmarks/stubs/merb-core/public/javascripts/application.js +0 -1
  152. data/benchmarks/stubs/merb-core/public/merb.fcgi +0 -22
  153. data/benchmarks/stubs/merb-core/public/robots.txt +0 -5
  154. data/benchmarks/stubs/merb-core/public/stylesheets/master.css +0 -119
  155. data/benchmarks/stubs/merb-core/spec/spec_helper.rb +0 -22
  156. data/benchmarks/stubs/merb-core/tasks/merb.thor/app_script.rb +0 -33
  157. data/benchmarks/stubs/merb-core/tasks/merb.thor/common.rb +0 -70
  158. data/benchmarks/stubs/merb-core/tasks/merb.thor/gem_ext.rb +0 -127
  159. data/benchmarks/stubs/merb-core/tasks/merb.thor/main.thor +0 -152
  160. data/benchmarks/stubs/merb-core/tasks/merb.thor/ops.rb +0 -95
  161. data/benchmarks/stubs/merb-core/tasks/merb.thor/utils.rb +0 -42
  162. data/benchmarks/stubs/merb-flat/.gitignore +0 -21
  163. data/benchmarks/stubs/merb-flat/README.txt +0 -10
  164. data/benchmarks/stubs/merb-flat/Rakefile +0 -35
  165. data/benchmarks/stubs/merb-flat/application.rb +0 -17
  166. data/benchmarks/stubs/merb-flat/config/framework.rb +0 -9
  167. data/benchmarks/stubs/merb-flat/config/init.rb +0 -42
  168. data/benchmarks/stubs/merb-flat/spec/spec_helper.rb +0 -26
  169. data/benchmarks/stubs/merb-flat/tasks/merb.thor/app_script.rb +0 -33
  170. data/benchmarks/stubs/merb-flat/tasks/merb.thor/common.rb +0 -70
  171. data/benchmarks/stubs/merb-flat/tasks/merb.thor/gem_ext.rb +0 -127
  172. data/benchmarks/stubs/merb-flat/tasks/merb.thor/main.thor +0 -152
  173. data/benchmarks/stubs/merb-flat/tasks/merb.thor/ops.rb +0 -95
  174. data/benchmarks/stubs/merb-flat/tasks/merb.thor/utils.rb +0 -42
  175. data/benchmarks/stubs/merb-flat/views/foo.html.erb +0 -3
  176. data/benchmarks/stubs/merb-very-flat/.gitignore +0 -21
  177. data/benchmarks/stubs/merb-very-flat/Rakefile +0 -35
  178. data/benchmarks/stubs/merb-very-flat/merb-very-flat.rb +0 -61
  179. data/benchmarks/stubs/merb-very-flat/spec/spec_helper.rb +0 -26
  180. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/app_script.rb +0 -33
  181. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/common.rb +0 -70
  182. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/gem_ext.rb +0 -127
  183. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/main.thor +0 -152
  184. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/ops.rb +0 -95
  185. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/utils.rb +0 -42
  186. data/benchmarks/stubs/rails/README +0 -243
  187. data/benchmarks/stubs/rails/Rakefile +0 -10
  188. data/benchmarks/stubs/rails/app/controllers/application_controller.rb +0 -12
  189. data/benchmarks/stubs/rails/app/helpers/application_helper.rb +0 -5
  190. data/benchmarks/stubs/rails/config/boot.rb +0 -112
  191. data/benchmarks/stubs/rails/config/database.yml +0 -22
  192. data/benchmarks/stubs/rails/config/environment.rb +0 -43
  193. data/benchmarks/stubs/rails/config/environments/development.rb +0 -19
  194. data/benchmarks/stubs/rails/config/environments/production.rb +0 -30
  195. data/benchmarks/stubs/rails/config/environments/test.rb +0 -30
  196. data/benchmarks/stubs/rails/config/initializers/backtrace_silencers.rb +0 -9
  197. data/benchmarks/stubs/rails/config/initializers/inflections.rb +0 -12
  198. data/benchmarks/stubs/rails/config/initializers/mime_types.rb +0 -7
  199. data/benchmarks/stubs/rails/config/initializers/new_rails_defaults.rb +0 -21
  200. data/benchmarks/stubs/rails/config/initializers/session_store.rb +0 -17
  201. data/benchmarks/stubs/rails/config/locales/en.yml +0 -5
  202. data/benchmarks/stubs/rails/config/routes.rb +0 -45
  203. data/benchmarks/stubs/rails/doc/README_FOR_APP +0 -2
  204. data/benchmarks/stubs/rails/public/404.html +0 -30
  205. data/benchmarks/stubs/rails/public/422.html +0 -30
  206. data/benchmarks/stubs/rails/public/500.html +0 -30
  207. data/benchmarks/stubs/rails/public/images/rails.png +0 -0
  208. data/benchmarks/stubs/rails/public/index.html +0 -275
  209. data/benchmarks/stubs/rails/public/javascripts/application.js +0 -2
  210. data/benchmarks/stubs/rails/public/javascripts/controls.js +0 -963
  211. data/benchmarks/stubs/rails/public/javascripts/dragdrop.js +0 -973
  212. data/benchmarks/stubs/rails/public/javascripts/effects.js +0 -1128
  213. data/benchmarks/stubs/rails/public/javascripts/prototype.js +0 -4320
  214. data/benchmarks/stubs/rails/public/robots.txt +0 -5
  215. data/benchmarks/stubs/rails/script/about +0 -4
  216. data/benchmarks/stubs/rails/script/console +0 -3
  217. data/benchmarks/stubs/rails/script/dbconsole +0 -3
  218. data/benchmarks/stubs/rails/script/destroy +0 -3
  219. data/benchmarks/stubs/rails/script/generate +0 -3
  220. data/benchmarks/stubs/rails/script/performance/benchmarker +0 -3
  221. data/benchmarks/stubs/rails/script/performance/profiler +0 -3
  222. data/benchmarks/stubs/rails/script/plugin +0 -3
  223. data/benchmarks/stubs/rails/script/runner +0 -3
  224. data/benchmarks/stubs/rails/script/server +0 -3
  225. data/benchmarks/stubs/rails/test/performance/browsing_test.rb +0 -11
  226. data/benchmarks/stubs/rails/test/test_helper.rb +0 -40
  227. data/benchmarks/stubs/ramaze.rb +0 -0
  228. data/benchmarks/stubs/sinatra.rb +0 -11
  229. data/gems/cache/code-cleaner-0.1.gem +0 -0
  230. data/gems/cache/code-cleaner-0.2.gem +0 -0
  231. data/gems/cache/code-cleaner-0.3.gem +0 -0
  232. data/gems/cache/code-cleaner-0.4.gem +0 -0
  233. data/gems/cache/code-cleaner-0.5.gem +0 -0
  234. data/gems/cache/code-cleaner-0.6.gem +0 -0
  235. data/gems/cache/code-cleaner-0.7.gem +0 -0
  236. data/gems/cache/code-cleaner-0.8.1.gem +0 -0
  237. data/gems/cache/code-cleaner-0.8.gem +0 -0
  238. data/gems/cache/extlib-0.9.14.gem +0 -0
  239. data/gems/cache/haml-2.2.16.gem +0 -0
  240. data/gems/cache/haml-2.2.17.gem +0 -0
  241. data/gems/cache/nake-0.0.2.gem +0 -0
  242. data/gems/cache/nake-0.0.3.gem +0 -0
  243. data/gems/cache/nake-0.0.5.gem +0 -0
  244. data/gems/cache/nake-0.0.6.gem +0 -0
  245. data/gems/cache/rack-1.0.1.gem +0 -0
  246. data/gems/cache/rack-1.1.0.gem +0 -0
  247. data/gems/cache/rspec-1.2.9.gem +0 -0
  248. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  249. data/gems/cache/tilt-0.4.gem +0 -0
  250. data/gems/cache/tilt-0.5.gem +0 -0
  251. data/lib/rango/forms/form.rb +0 -30
  252. data/lib/rango/helpers.rb +0 -31
  253. data/lib/rango/helpers/assets.rb +0 -46
  254. data/lib/rango/helpers/general.rb +0 -53
  255. data/lib/rango/helpers/syntax.rb +0 -30
  256. data/lib/rango/mixins/chainable.rb +0 -66
  257. data/lib/rango/mixins/http_caching.rb +0 -78
  258. data/lib/rango/router/adapters/rack_router.rb +0 -7
  259. data/lib/rango/templates/exts/erubis.rb +0 -65
  260. data/spec/rango/forms/form_spec.rb +0 -0
  261. data/spec/rango/helpers/assets_spec.rb +0 -0
  262. data/spec/rango/helpers/general_spec.rb +0 -0
  263. data/spec/rango/helpers/syntax_spec.rb +0 -0
  264. data/spec/rango/helpers_spec.rb +0 -0
  265. data/spec/rango/rack/middlewares/email_obfuscator_spec.rb +0 -0
  266. data/spec/rango/router/adapters/rack_router_spec.rb +0 -0
  267. data/spec/rango/templates/exts/erubis_spec.rb +0 -0
  268. data/spec/stubs/templates/_basic.html.erb +0 -6
  269. data/spec/stubs/templates/basic.html.erb +0 -6
  270. data/spec/stubs/templates/capture.html.erb +0 -11
  271. data/spec/stubs/templates/context.html.erb +0 -6
  272. data/spec/stubs/templates/erubis.html.erubis +0 -2
  273. data/spec/stubs/templates/exception.html.erb +0 -1
  274. data/spec/stubs/templates/inheritance/capture/erb/base.html.erb +0 -3
  275. data/spec/stubs/templates/inheritance/capture/erb/index.html.erb +0 -4
  276. data/spec/stubs/templates/inheritance/capture/erubis/base.html.erubis +0 -3
  277. data/spec/stubs/templates/inheritance/capture/erubis/index.html.erubis +0 -4
  278. data/stubs/stack/content/lib/%name%/config.rb.rbt +0 -0
  279. data/stubs/stack/content/lib/%name%/initializers/middlewares.rb.rbt +0 -5
  280. data/stubs/stack/content/rackup.rb.rbt +0 -41
  281. data/support/hooks/pre-commit +0 -12
@@ -1,12 +1,15 @@
1
1
  # encoding: utf-8
2
2
 
3
+ # Enable downloading gems from gemcutter
4
+ source :gemcutter
5
+
3
6
  # === Usage === #
4
- # Run gem bundle for installation. You have to have bundler gem installed.
7
+ # Run bundle install for installation and bundle pack for
8
+ # locking gem packages (not the gems themselves) into vendor.
9
+ # You have to have bundler gem installed.
5
10
 
6
- # http://github.com/wycats/bundler
7
- # http://litanyagainstfear.com/blog/2009/10/14/gem-bundler-is-the-future
8
- # http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today
9
- # http://www.engineyard.com/blog/2009/using-the-rubygems-bundler-for-your-app
11
+ # http://github.com/carlhuda/bundler
12
+ # http://yehudakatz.com/2010/02/01/bundler-0-9-heading-toward-1-0
10
13
 
11
14
  # === Shared Gems === #
12
15
  # Specify a dependency on rango. When the bundler downloads gems,
@@ -15,7 +18,6 @@
15
18
  # rango stack
16
19
  gem "rango"#, git: "git://github.com/botanicus/rango.git"
17
20
  gem "rack"#, git: "git://github.com/rack/rack.git"
18
- gem "tilt"#, git: "git://github.com/rtomayko/tilt.git"
19
21
 
20
22
  gem "nake"#, git: "git://github.com/botanicus/nake.git"
21
23
  <% if @code_cleaner %>
@@ -25,7 +27,6 @@ gem "code-cleaner"#, git: "git://github.com/botanicus/code-cleaner.git"
25
27
  gem "git-deployer"#, git: "git://github.com/botanicus/git-deployer.git"
26
28
  <% end %>
27
29
 
28
- gem "helpers"#, git: "git://github.com/botanicus/helpers.git"
29
30
  # rack middlewares
30
31
  gem "multigiri"#, git: "git://github.com/botanicus/multigiri.git"
31
32
 
@@ -39,13 +40,11 @@ gem "rack-mount"#, git: "git://github.com/josh/rack-mount.git"
39
40
  gem "rack-router"#, git: "git://github.com/carllerche/rack-router.git"
40
41
  <% end %>
41
42
 
42
- # template engine
43
- <% case @template_engine %>
44
- <% when "haml" %>
43
+ gem "tilt"#, git: "git://github.com/rtomayko/tilt.git"
45
44
  gem "haml"#, git: "git://github.com/nex3/haml.git"
46
- <% when "erubis" %>
47
- gem "erubis"#, git: "git://github.com/genki/erubis.git"
48
- <% end %>
45
+ gem "helpers"#, git: "git://github.com/botanicus/helpers.git"
46
+ gem "pupu"#, git: "git://github.com/botanicus/pupu.git"
47
+ gem "media-path"#, git: "git://github.com/botanicus/media-path.git" # for asset helpers
49
48
 
50
49
  # ORM
51
50
  <% case @orm %>
@@ -60,31 +59,32 @@ gem "sequel"#, git: "git://github.com/jeremyevans/sequel.git"
60
59
  <% when "mongomapper" %>
61
60
  gem "mongo_mapper"#, git: "git://github.com/jnunemaker/mongomapper.git"
62
61
 
62
+ <% when "ripple" %>
63
+ gem "ripple"#, git: "git://github.com/seancribbs/ripple.git"
64
+
63
65
  <% end %>
64
- # NOTE: do not use require_as: nil because if you do so, bundler will require the library anyway
66
+ # NOTE: do not use require: nil because if you do so, bundler will require the library anyway
65
67
  # Check last section of http://wiki.github.com/merb/merb/howto-using-the-bundler for more informations
66
- only(:bundle) do
68
+ group(:bundle) do
67
69
  gem "thin"#, git: "git://github.com/macournoyer/thin.git" # there seems to be some problems with latest thin
68
70
  #gem "unicorn"#, git: "git://repo.or.cz/unicorn.git"
69
71
  gem "racksh"#, git: "git://github.com/sickill/racksh.git"
70
72
  gem "shotgun"#, git: "git://github.com/rtomayko/shotgun.git"
71
73
  end
72
- <% if @warden %>
74
+
73
75
  gem "warden"
74
- <% end %>
75
76
 
76
77
  gem "simple-logger"#, git: "git://github.com/botanicus/simple-logger.git"
77
- gem "media-path"#, git: "git://github.com/botanicus/media-path.git" # for asset helpers
78
78
 
79
79
  # === Environment-Specific Setup === #
80
- except(:stage, :production) do
80
+ group(:development, :test) do
81
81
  <% case @orm %>
82
82
  <% when "datamapper" %>
83
83
  gem "do_sqlite3"#, git: "git://github.com/datamapper/do.git"
84
84
  <% end %>
85
85
  end
86
86
 
87
- only(:stage, :production) do
87
+ group(:stage, :production) do
88
88
  <% case @orm %>
89
89
  <% when "datamapper" %>
90
90
  gem "do_mysql"#, git: "git://github.com/datamapper/do.git"
@@ -93,35 +93,12 @@ only(:stage, :production) do
93
93
  <% end %>
94
94
  end
95
95
 
96
- only(:test, :cucumber) do
96
+ group(:test, :cucumber) do
97
97
  gem "rspec"#, git: "git://github.com/dchelimsky/rspec.git"
98
- gem "rack-test", require_as: "rack/test"#, git: "git://github.com/brynary/rack-test.git"
98
+ gem "rack-test", require: "rack/test"#, git: "git://github.com/brynary/rack-test.git"
99
99
  gem "webrat"#, git: "git://github.com/brynary/webrat.git"
100
100
  end
101
101
 
102
- only(:cucumber) do
102
+ group(:cucumber) do
103
103
  gem "cucumber"#, git: "git://github.com/aslakhellesoy/cucumber.git"
104
104
  end
105
-
106
- # === Bundler Setup === #
107
- # Specify where the bundled gems should be stashed. This directory will
108
- # be a gem repository where all gems are downloaded to and installed to.
109
- #
110
- # This is an optional setting.
111
- # The default is: vendor/gems
112
- bundle_path "gems"
113
-
114
- # Specify where gem executables should be copied to.
115
- #
116
- # This is an optional setting.
117
- # The default is: bin
118
- bin_path "bin"
119
-
120
- # Specify that rubygems should be completely disabled. This means that it
121
- # will be impossible to require it and that available gems will be
122
- # limited exclusively to gems that have been bundled.
123
- #
124
- # The default is to automatically require rubygems. There is also a
125
- # `disable_system_gems` option that will limit available rubygems to
126
- # the ones that have been bundled.
127
- disable_rubygems
@@ -1,36 +1,24 @@
1
- <%= shebang "./bin/shotgun", %w[-p 4000 -s thin] %>
1
+ #!/usr/bin/env rackup -p 4000 -s thin
2
2
  # encoding: utf-8
3
3
 
4
4
  # Shebang:
5
- # - bin/shotgun
5
+ # - bin/shotgun: doesn't work for some reason, it doesn't read this file at all
6
6
  # - bin/rackup
7
7
 
8
8
  # Try to keep this file as small as possible.
9
9
  # You should put here rack-specific stuff which means mainly
10
10
  # middleware initialization (Rack::Builder#use) and setting
11
- # rack endpoint (Rack::Builder#run). Middleware setup should be placed into rackup.rb
11
+ # rack endpoint (Rack::Builder#run). Development middleware
12
+ # setup should be placed into rackup.rb. However generic
13
+ # middleware setup should be placed in lib/app/initializers,
14
+ # so it can be reusable in case the application run as a
15
+ # mountable application.
12
16
 
13
17
  # In fact
14
18
  # - It's a stupid idea to evaluate the whole file in context of a Rack::Builder instance
15
19
  # - You can't use __END__ in config.ru because of the eval
16
20
  # - File vs. Rack::File
17
21
 
18
- unless __FILE__.eql?("(eval)")
19
- require "init.rb"
20
- require "rackup.rb"
21
- else
22
- puts "~ Running config.ru #{self.inspect}"
23
- use Rango::Middlewares::Basic
22
+ require ::File.expand_path("../init.rb", __FILE__)
24
23
 
25
- # <% if @warden %>
26
- # use Warden::Manager do |manager|
27
- # manager.default_strategies :password
28
- # # Rango::Controller has class method call which will call Rango::Controller.reroute(action),
29
- # # for example Login.route_to(:login) which will set login action of Login controller as default
30
- # # Internally it just rewrites env["rango.controller"] and env["rango.action"] to "Login", resp. "login"
31
- # manager.failure_app = Login
32
- # end
33
- #
34
- # <% end %>
35
- run lambda { |env| [200, Hash.new, ["hey"]] }
36
- end
24
+ run <%= @name.snake_case %>.rack#.to_app
@@ -1,8 +1,4 @@
1
- <% if RUBY_PLATFORM.eql?("java") %>
2
- <%= shebang rubypath, ["--1.9", "--disable-gems"] %>
3
- <% else %>
4
- <%= shebang rubypath, ["--disable-gems"] %>
5
- <% end %>
1
+ #!/usr/bin/env ruby
6
2
  # encoding: utf-8
7
3
 
8
4
  # default encoding setup
@@ -15,22 +11,26 @@ Encoding.default_external = "utf-8"
15
11
 
16
12
  # bundler
17
13
  begin
18
- require_relative "gems/environment.rb"
19
- rescue LoadError => exception
20
- abort "LoadError during loading gems/environment: #{exception.message}\nRun gem bundle to fix it."
14
+ # Require the preresolved locked set of gems.
15
+ require File.expand_path("../.bundle/environment", __FILE__)
16
+ rescue LoadError
17
+ # Fallback on doing the resolve at runtime.
18
+ require "rubygems"
19
+ require "bundler"
20
+ Bundler.setup
21
21
  end
22
22
 
23
23
  require "rango"
24
24
 
25
25
  # we need to load dependencies before boot, so bootloaders will be called
26
26
  Rango.logger.info("Loading dependencies for #{Rango.environment}")
27
- Bundler.require_env(Rango.environment)
28
- Rango.boot
29
27
 
30
28
  $LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
31
29
 
32
30
  require "<%= @name %>"
33
31
 
32
+ Rango.boot
33
+
34
34
  # Available arguments:
35
35
  # ./init.rb -i
36
36
  # ./init.rb -i file
@@ -1,8 +1,41 @@
1
1
  # encoding: utf-8
2
2
 
3
+ require "pathname"
4
+ require "rack/builder"
5
+
6
+ module <%= @name.camel_case %>
7
+ def self.root
8
+ @@root ||= File.expand_path("../<%= @name %>", __FILE__)
9
+ end
10
+
11
+ def self.path
12
+ @@path ||= Pathname.new(self.root)
13
+ end
14
+
15
+ def self.rack
16
+ @@rack ||= Rack::Builder.new
17
+ end
18
+
19
+ def self.rackup(&block)
20
+ self.rack.instance_eval(&block)
21
+ return self.rack
22
+ end
23
+ end
24
+
3
25
  # initializers
4
- require "<%= @name %>/initializers/url.rb"
26
+ Rango.logger.info("Loading initializers ...")
27
+ Dir["#{<%= @name.camel_case %>.root}/initializers/*.rb"].each do |path|
28
+ Rango.logger.debug("Loading initializer #{File.basename(path)}")
29
+ require path
30
+ end
31
+
32
+ # load models
33
+ Rango.logger.info("Loading models ...")
34
+ Dir["#{<%= @name.camel_case %>.root}/models/**/*.rb"].each do |path|
35
+ Rango.logger.debug("Loading model #{File.basename(path)}")
36
+ require path
37
+ end
5
38
 
6
- # after environment is set
7
- require "<%= @name %>/views.rb"
8
- require "<%= @name %>/models.rb"
39
+ # load views
40
+ Rango.logger.info("Loading views ...")
41
+ require "<%= @name %>/views"
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+
3
+ <% case @orm %>
4
+ <% when "sequel" %>
5
+ require "sequel"
6
+
7
+ module Megasamolepky
8
+ def self.db
9
+ @@db ||= Sequel.connect("do:sqlite3:db/#{Rango.environment}.db")
10
+ end
11
+ end
12
+
13
+ Sequel::Model.db = MS.db
14
+ Sequel::Model.plugin(:validation_helpers)
15
+ Sequel::Model.plugin(:timestamps)
16
+ <% end %>
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+
3
+ require "haml"
4
+ # require "pupu/adapters/rango"
5
+ require "helpers/adapters/rango"
6
+
7
+ # Haml setup
8
+ Rango.after_boot(:tilt) do
9
+ Tilt::HamlTemplate.options[:format] = :html5
10
+ end
11
+
12
+ # FIXME: WTF, such a mess!
13
+ # Rango.media_root = Pupu.media_root = MediaPath.media_root = "public" # TODO: Rango should do it!
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+
3
+ require "rango/contrib/pagination"
4
+
5
+ Rango.after_boot(:pagination) do
6
+ Rango::Controller.send(:include, Rango::Pagination::PaginationMixin) # TODO: this shouldn't be necessary
7
+ Rango::Pagination::Strategies::PageNumberOnTheEndOfRouteExcludeFirstPage.activate
8
+ end
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+ require "warden"
4
+
5
+ # wiki.github.com/hassox/warden/setup
6
+ # MS.rack.use Warden::Manager do |manager|
7
+ # manager.default_strategies :password
8
+ # manager.failure_app = Admin::Authentication.dispatcher(:login)
9
+ # end
10
+
11
+ Warden::Manager.serialize_into_session { |user| user.email }
12
+ Warden::Manager.serialize_from_session { |email| User[email] }
13
+
14
+ # NOTE: params are provided by Rack, so we can't use params[:key]
15
+ Warden::Strategies.add(:password) do
16
+ def valid?
17
+ (params["email"] && ! params["email"].empty?) &&
18
+ (params["password"] && ! params["password"].empty?)
19
+ end
20
+
21
+ def authenticate!
22
+ user = User.authenticate(params["email"], params["password"])
23
+ # user.nil? ? fail!("Could not log in") : success!(user) # standard warden way
24
+ user.nil? ? raise(Rango::Exceptions::Unauthorized) : success!(user) # so we can rescue it from controller
25
+ end
26
+ end
@@ -0,0 +1,17 @@
1
+ # encoding: utf-8
2
+
3
+ require "rango/rack/middlewares/basic"
4
+
5
+ require "multigiri"
6
+ require "multigiri/email_obfuscator"
7
+ # require "multigiri/google_analytics"
8
+ require "multigiri/html5"
9
+ require "multigiri/link_checker"
10
+ require "multigiri/default_attributes"
11
+ require "multigiri/minify"
12
+
13
+ Rango.after_boot(:rackup) do
14
+ <%= @name.camel_case %>.rackup do
15
+ use Rango::Middlewares::Basic
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+
3
+ Rango.after_boot(:setup_router) do
4
+ Rango::Router.use(:usher)
5
+ require "<%= @name %>/urls"
6
+ <%= @name.camel_case %>.rackup { run Rango::Router.app }
7
+ end
@@ -1,12 +1,15 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  # http://wiki.github.com/botanicus/rango/routers
4
+ require "rango/router"
5
+
4
6
  Rango::Router.use(:<%= @router.to_sym %>)
5
7
 
6
8
  <% case @router %>
7
9
  <% when "usher" %>
8
10
  # http://github.com/joshbuddy/usher
9
11
  Rango::Router.app = Usher::Interface.for(:rack) do
12
+ default(<%= @name.camel_case %>::Application.dispatcher(:not_found_handler)) # route not found to the controller so we can properly rescue it
10
13
  get("/").to(<%= @name.camel_case %>::ShowCase.dispatcher(:index)).name(:showcase)
11
14
  end
12
15
  <% when "rack-mount" %>
@@ -2,7 +2,6 @@
2
2
 
3
3
  # http://wiki.github.com/botanicus/rango/controllers
4
4
 
5
- require "rango/helpers"
6
5
  require "rango/stacks/controller"
7
6
  <% if RUBY_VERSION > "1.9.2" %>
8
7
  require "rango/mixins/action_args"
@@ -30,6 +29,10 @@ module <%= @name.camel_case %>
30
29
  end
31
30
  end
32
31
 
32
+ def not_found_handler
33
+ raise NotFound, "No route found"
34
+ end
35
+
33
36
  class ShowCase < Application
34
37
  def index
35
38
  render "index.html"
@@ -11,7 +11,7 @@
11
11
  #next-steps
12
12
  %h2 Next Steps
13
13
  %ul
14
- %li Run specs: <code>rake spec</code>
14
+ %li Run specs: <code>./tasks.rb spec</code>
15
15
 
16
16
  #documentation
17
17
  %h2 Documentation
File without changes
File without changes
File without changes
Binary file
metadata CHANGED
@@ -1,36 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rango
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 4
9
+ - 1
10
+ version: 0.2.4.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain:
11
- date: 2010-03-05 00:00:00 +00:00
17
+ date: 2010-03-23 00:00:00 +00:00
12
18
  default_executable: rango
13
19
  dependencies:
14
20
  - !ruby/object:Gem::Dependency
15
21
  name: simple-templater
16
- type: :development
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
19
24
  requirements:
20
25
  - - ">="
21
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 0
30
+ - 1
31
+ - 2
22
32
  version: 0.0.1.2
23
- version:
33
+ type: :development
34
+ version_requirements: *id001
24
35
  - !ruby/object:Gem::Dependency
25
36
  name: bundler
26
- type: :development
27
- version_requirement:
28
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
29
39
  requirements:
30
40
  - - ">="
31
41
  - !ruby/object:Gem::Version
32
- version: "0"
33
- version:
42
+ segments:
43
+ - 0
44
+ - 9
45
+ version: "0.9"
46
+ type: :development
47
+ version_requirements: *id002
34
48
  description: ""
35
49
  email: stastny@101ideas.cz
36
50
  executables: []
@@ -55,197 +69,9 @@ files:
55
69
  - benchmarks/bm/stack.rb
56
70
  - benchmarks/bm/templates.rb
57
71
  - benchmarks/helper.rb
58
- - benchmarks/stubs/merb-app/.gitignore
59
- - benchmarks/stubs/merb-app/Rakefile
60
- - benchmarks/stubs/merb-app/app/controllers/application.rb
61
- - benchmarks/stubs/merb-app/app/controllers/exceptions.rb
62
- - benchmarks/stubs/merb-app/app/helpers/global_helpers.rb
63
- - benchmarks/stubs/merb-app/app/models/user.rb
64
- - benchmarks/stubs/merb-app/app/views/exceptions/not_acceptable.html.erb
65
- - benchmarks/stubs/merb-app/app/views/exceptions/not_found.html.erb
66
- - benchmarks/stubs/merb-app/app/views/layout/application.html.erb
67
- - benchmarks/stubs/merb-app/autotest/discover.rb
68
- - benchmarks/stubs/merb-app/autotest/merb.rb
69
- - benchmarks/stubs/merb-app/autotest/merb_rspec.rb
70
- - benchmarks/stubs/merb-app/config/database.yml
71
- - benchmarks/stubs/merb-app/config/dependencies.rb
72
- - benchmarks/stubs/merb-app/config/environments/development.rb
73
- - benchmarks/stubs/merb-app/config/environments/production.rb
74
- - benchmarks/stubs/merb-app/config/environments/rake.rb
75
- - benchmarks/stubs/merb-app/config/environments/staging.rb
76
- - benchmarks/stubs/merb-app/config/environments/test.rb
77
- - benchmarks/stubs/merb-app/config/init.rb
78
- - benchmarks/stubs/merb-app/config/rack.rb
79
- - benchmarks/stubs/merb-app/config/router.rb
80
- - benchmarks/stubs/merb-app/doc/rdoc/generators/merb_generator.rb
81
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/api_grease.js
82
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/index.html.erb
83
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.css
84
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.rb
85
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb_doc_styles.css
86
- - benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/prototype.js
87
- - benchmarks/stubs/merb-app/merb/merb-auth/setup.rb
88
- - benchmarks/stubs/merb-app/merb/merb-auth/strategies.rb
89
- - benchmarks/stubs/merb-app/merb/session/session.rb
90
- - benchmarks/stubs/merb-app/public/.htaccess
91
- - benchmarks/stubs/merb-app/public/favicon.ico
92
- - benchmarks/stubs/merb-app/public/images/merb.jpg
93
- - benchmarks/stubs/merb-app/public/javascripts/application.js
94
- - benchmarks/stubs/merb-app/public/javascripts/jquery.js
95
- - benchmarks/stubs/merb-app/public/merb.fcgi
96
- - benchmarks/stubs/merb-app/public/robots.txt
97
- - benchmarks/stubs/merb-app/public/stylesheets/master.css
98
- - benchmarks/stubs/merb-app/spec/spec.opts
99
- - benchmarks/stubs/merb-app/spec/spec_helper.rb
100
- - benchmarks/stubs/merb-app/tasks/doc.thor
101
- - benchmarks/stubs/merb-app/tasks/merb.thor/app_script.rb
102
- - benchmarks/stubs/merb-app/tasks/merb.thor/common.rb
103
- - benchmarks/stubs/merb-app/tasks/merb.thor/gem_ext.rb
104
- - benchmarks/stubs/merb-app/tasks/merb.thor/main.thor
105
- - benchmarks/stubs/merb-app/tasks/merb.thor/ops.rb
106
- - benchmarks/stubs/merb-app/tasks/merb.thor/utils.rb
107
- - benchmarks/stubs/merb-core/.gitignore
108
- - benchmarks/stubs/merb-core/Rakefile
109
- - benchmarks/stubs/merb-core/app/controllers/application.rb
110
- - benchmarks/stubs/merb-core/app/controllers/exceptions.rb
111
- - benchmarks/stubs/merb-core/app/helpers/global_helpers.rb
112
- - benchmarks/stubs/merb-core/app/views/exceptions/not_acceptable.html.erb
113
- - benchmarks/stubs/merb-core/app/views/exceptions/not_found.html.erb
114
- - benchmarks/stubs/merb-core/app/views/layout/application.html.erb
115
- - benchmarks/stubs/merb-core/autotest/discover.rb
116
- - benchmarks/stubs/merb-core/autotest/merb.rb
117
- - benchmarks/stubs/merb-core/autotest/merb_rspec.rb
118
- - benchmarks/stubs/merb-core/config/environments/development.rb
119
- - benchmarks/stubs/merb-core/config/environments/production.rb
120
- - benchmarks/stubs/merb-core/config/environments/rake.rb
121
- - benchmarks/stubs/merb-core/config/environments/staging.rb
122
- - benchmarks/stubs/merb-core/config/environments/test.rb
123
- - benchmarks/stubs/merb-core/config/init.rb
124
- - benchmarks/stubs/merb-core/config/rack.rb
125
- - benchmarks/stubs/merb-core/config/router.rb
126
- - benchmarks/stubs/merb-core/doc/rdoc/generators/merb_generator.rb
127
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/api_grease.js
128
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/index.html.erb
129
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.css
130
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.rb
131
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb_doc_styles.css
132
- - benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/prototype.js
133
- - benchmarks/stubs/merb-core/public/.htaccess
134
- - benchmarks/stubs/merb-core/public/favicon.ico
135
- - benchmarks/stubs/merb-core/public/images/merb.jpg
136
- - benchmarks/stubs/merb-core/public/javascripts/application.js
137
- - benchmarks/stubs/merb-core/public/merb.fcgi
138
- - benchmarks/stubs/merb-core/public/robots.txt
139
- - benchmarks/stubs/merb-core/public/stylesheets/master.css
140
- - benchmarks/stubs/merb-core/spec/spec.opts
141
- - benchmarks/stubs/merb-core/spec/spec_helper.rb
142
- - benchmarks/stubs/merb-core/tasks/merb.thor/app_script.rb
143
- - benchmarks/stubs/merb-core/tasks/merb.thor/common.rb
144
- - benchmarks/stubs/merb-core/tasks/merb.thor/gem_ext.rb
145
- - benchmarks/stubs/merb-core/tasks/merb.thor/main.thor
146
- - benchmarks/stubs/merb-core/tasks/merb.thor/ops.rb
147
- - benchmarks/stubs/merb-core/tasks/merb.thor/utils.rb
148
- - benchmarks/stubs/merb-flat/.gitignore
149
- - benchmarks/stubs/merb-flat/README.txt
150
- - benchmarks/stubs/merb-flat/Rakefile
151
- - benchmarks/stubs/merb-flat/application.rb
152
- - benchmarks/stubs/merb-flat/config/framework.rb
153
- - benchmarks/stubs/merb-flat/config/init.rb
154
- - benchmarks/stubs/merb-flat/spec/spec_helper.rb
155
- - benchmarks/stubs/merb-flat/tasks/merb.thor/app_script.rb
156
- - benchmarks/stubs/merb-flat/tasks/merb.thor/common.rb
157
- - benchmarks/stubs/merb-flat/tasks/merb.thor/gem_ext.rb
158
- - benchmarks/stubs/merb-flat/tasks/merb.thor/main.thor
159
- - benchmarks/stubs/merb-flat/tasks/merb.thor/ops.rb
160
- - benchmarks/stubs/merb-flat/tasks/merb.thor/utils.rb
161
- - benchmarks/stubs/merb-flat/views/foo.html.erb
162
- - benchmarks/stubs/merb-very-flat/.gitignore
163
- - benchmarks/stubs/merb-very-flat/Rakefile
164
- - benchmarks/stubs/merb-very-flat/merb-very-flat.rb
165
- - benchmarks/stubs/merb-very-flat/spec/spec_helper.rb
166
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/app_script.rb
167
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/common.rb
168
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/gem_ext.rb
169
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/main.thor
170
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/ops.rb
171
- - benchmarks/stubs/merb-very-flat/tasks/merb.thor/utils.rb
172
- - benchmarks/stubs/rails/README
173
- - benchmarks/stubs/rails/Rakefile
174
- - benchmarks/stubs/rails/app/controllers/application_controller.rb
175
- - benchmarks/stubs/rails/app/helpers/application_helper.rb
176
- - benchmarks/stubs/rails/config/boot.rb
177
- - benchmarks/stubs/rails/config/database.yml
178
- - benchmarks/stubs/rails/config/environment.rb
179
- - benchmarks/stubs/rails/config/environments/development.rb
180
- - benchmarks/stubs/rails/config/environments/production.rb
181
- - benchmarks/stubs/rails/config/environments/test.rb
182
- - benchmarks/stubs/rails/config/initializers/backtrace_silencers.rb
183
- - benchmarks/stubs/rails/config/initializers/inflections.rb
184
- - benchmarks/stubs/rails/config/initializers/mime_types.rb
185
- - benchmarks/stubs/rails/config/initializers/new_rails_defaults.rb
186
- - benchmarks/stubs/rails/config/initializers/session_store.rb
187
- - benchmarks/stubs/rails/config/locales/en.yml
188
- - benchmarks/stubs/rails/config/routes.rb
189
- - benchmarks/stubs/rails/doc/README_FOR_APP
190
- - benchmarks/stubs/rails/log/development.log
191
- - benchmarks/stubs/rails/log/production.log
192
- - benchmarks/stubs/rails/log/server.log
193
- - benchmarks/stubs/rails/log/test.log
194
- - benchmarks/stubs/rails/public/404.html
195
- - benchmarks/stubs/rails/public/422.html
196
- - benchmarks/stubs/rails/public/500.html
197
- - benchmarks/stubs/rails/public/favicon.ico
198
- - benchmarks/stubs/rails/public/images/rails.png
199
- - benchmarks/stubs/rails/public/index.html
200
- - benchmarks/stubs/rails/public/javascripts/application.js
201
- - benchmarks/stubs/rails/public/javascripts/controls.js
202
- - benchmarks/stubs/rails/public/javascripts/dragdrop.js
203
- - benchmarks/stubs/rails/public/javascripts/effects.js
204
- - benchmarks/stubs/rails/public/javascripts/prototype.js
205
- - benchmarks/stubs/rails/public/robots.txt
206
- - benchmarks/stubs/rails/script/about
207
- - benchmarks/stubs/rails/script/console
208
- - benchmarks/stubs/rails/script/dbconsole
209
- - benchmarks/stubs/rails/script/destroy
210
- - benchmarks/stubs/rails/script/generate
211
- - benchmarks/stubs/rails/script/performance/benchmarker
212
- - benchmarks/stubs/rails/script/performance/profiler
213
- - benchmarks/stubs/rails/script/plugin
214
- - benchmarks/stubs/rails/script/runner
215
- - benchmarks/stubs/rails/script/server
216
- - benchmarks/stubs/rails/test/performance/browsing_test.rb
217
- - benchmarks/stubs/rails/test/test_helper.rb
218
- - benchmarks/stubs/ramaze.rb
219
- - benchmarks/stubs/sinatra.rb
220
72
  - bin/rango
221
73
  - deps.rip
222
74
  - deps.rip.rbe
223
- - gems/cache/abstract-1.0.0.gem
224
- - gems/cache/code-cleaner-0.1.gem
225
- - gems/cache/code-cleaner-0.2.gem
226
- - gems/cache/code-cleaner-0.3.gem
227
- - gems/cache/code-cleaner-0.4.gem
228
- - gems/cache/code-cleaner-0.5.gem
229
- - gems/cache/code-cleaner-0.6.gem
230
- - gems/cache/code-cleaner-0.7.gem
231
- - gems/cache/code-cleaner-0.8.1.gem
232
- - gems/cache/code-cleaner-0.8.gem
233
- - gems/cache/erubis-2.6.5.gem
234
- - gems/cache/extlib-0.9.14.gem
235
- - gems/cache/haml-2.2.16.gem
236
- - gems/cache/haml-2.2.17.gem
237
- - gems/cache/nake-0.0.2.gem
238
- - gems/cache/nake-0.0.3.gem
239
- - gems/cache/nake-0.0.5.gem
240
- - gems/cache/nake-0.0.6.gem
241
- - gems/cache/nake-0.0.8.gem
242
- - gems/cache/rack-1.0.1.gem
243
- - gems/cache/rack-1.1.0.gem
244
- - gems/cache/rspec-1.2.9.gem
245
- - gems/cache/rspec-1.3.0.gem
246
- - gems/cache/term-ansicolor-1.0.4.gem
247
- - gems/cache/tilt-0.4.gem
248
- - gems/cache/tilt-0.5.gem
249
75
  - lib/rango.rb
250
76
  - lib/rango/cli.rb
251
77
  - lib/rango/contrib/pagination.rb
@@ -262,30 +88,25 @@ files:
262
88
  - lib/rango/core_ext.rb
263
89
  - lib/rango/environments.rb
264
90
  - lib/rango/exceptions.rb
265
- - lib/rango/forms/form.rb
266
91
  - lib/rango/gv.rb
267
92
  - lib/rango/gv/router.rb
268
93
  - lib/rango/gv/scaffolding.rb
269
94
  - lib/rango/gv/static.rb
270
- - lib/rango/helpers.rb
271
- - lib/rango/helpers/assets.rb
272
- - lib/rango/helpers/general.rb
273
- - lib/rango/helpers/syntax.rb
274
95
  - lib/rango/mailer.rb
275
96
  - lib/rango/mini.rb
276
97
  - lib/rango/mini_render.rb
277
98
  - lib/rango/mixins/action_args.rb
278
- - lib/rango/mixins/chainable.rb
279
99
  - lib/rango/mixins/filters.rb
280
- - lib/rango/mixins/http_caching.rb
281
100
  - lib/rango/mixins/logger.rb
282
101
  - lib/rango/mixins/message.rb
102
+ - lib/rango/mixins/rack-flash.rb
283
103
  - lib/rango/mixins/render.rb
284
104
  - lib/rango/mixins/rendering.rb
285
105
  - lib/rango/orm/README.textile
286
106
  - lib/rango/orm/support/datamapper/fields.rb
287
107
  - lib/rango/orm/tasks/datamapper.nake
288
108
  - lib/rango/orm/tasks/datamapper.rake
109
+ - lib/rango/orm/tasks/ripple.nake
289
110
  - lib/rango/orm/tasks/sequel.nake
290
111
  - lib/rango/orm/tasks/sequel.rake
291
112
  - lib/rango/path.rb
@@ -296,7 +117,6 @@ files:
296
117
  - lib/rango/router.rb
297
118
  - lib/rango/router/adapters/crudtree.rb
298
119
  - lib/rango/router/adapters/rack_mount.rb
299
- - lib/rango/router/adapters/rack_router.rb
300
120
  - lib/rango/router/adapters/urlmap.rb
301
121
  - lib/rango/router/adapters/usher.rb
302
122
  - lib/rango/stacks/controller.rb
@@ -306,16 +126,18 @@ files:
306
126
  - lib/rango/support/cucumber/steps/when_steps.rb
307
127
  - lib/rango/tasks/spec.nake
308
128
  - lib/rango/tasks/spec.rake
309
- - lib/rango/templates/exts/erubis.rb
310
129
  - lib/rango/templates/exts/haml.rb
311
130
  - lib/rango/templates/exts/tilt.rb
312
131
  - lib/rango/templates/helpers.rb
313
132
  - lib/rango/templates/template.rb
314
133
  - lib/rango/utils.rb
134
+ - lib/rango/version.rb
315
135
  - rango.gemspec
316
136
  - rango.pre.gemspec
317
137
  - simple-templater.scope
138
+ - spec/rango/cli_spec.rb
318
139
  - spec/rango/contrib/pagination/adapters/datamapper_spec.rb
140
+ - spec/rango/contrib/pagination/adapters/sequel_spec.rb
319
141
  - spec/rango/contrib/pagination/helpers_spec.rb
320
142
  - spec/rango/contrib/pagination/page_spec.rb
321
143
  - spec/rango/contrib/pagination/strategies_spec.rb
@@ -325,15 +147,11 @@ files:
325
147
  - spec/rango/core_ext_spec.rb
326
148
  - spec/rango/environments_spec.rb
327
149
  - spec/rango/exceptions_spec.rb
328
- - spec/rango/forms/form_spec.rb
329
150
  - spec/rango/gv/router_spec.rb
330
151
  - spec/rango/gv/scaffolding_spec.rb
331
152
  - spec/rango/gv/static_spec.rb
332
153
  - spec/rango/gv_spec.rb
333
- - spec/rango/helpers/assets_spec.rb
334
- - spec/rango/helpers/general_spec.rb
335
- - spec/rango/helpers/syntax_spec.rb
336
- - spec/rango/helpers_spec.rb
154
+ - spec/rango/mailer_spec.rb
337
155
  - spec/rango/mini_render_spec.rb
338
156
  - spec/rango/mini_spec.rb
339
157
  - spec/rango/mixins/action_args_spec.rb
@@ -342,17 +160,17 @@ files:
342
160
  - spec/rango/mixins/http_caching_spec.rb
343
161
  - spec/rango/mixins/logger_spec.rb
344
162
  - spec/rango/mixins/message_spec.rb
163
+ - spec/rango/mixins/rack-flash_spec.rb
345
164
  - spec/rango/mixins/render_spec.rb
346
165
  - spec/rango/mixins/rendering_spec.rb
347
166
  - spec/rango/orm/support/datamapper/fields_spec.rb
348
167
  - spec/rango/path_spec.rb
349
168
  - spec/rango/rack/middlewares/basic_spec.rb
350
- - spec/rango/rack/middlewares/email_obfuscator_spec.rb
351
169
  - spec/rango/rack/middlewares/encoding_spec.rb
352
170
  - spec/rango/rack/middlewares/static_spec.rb
353
171
  - spec/rango/rack/request_spec.rb
172
+ - spec/rango/router/adapters/crudtree_spec.rb
354
173
  - spec/rango/router/adapters/rack_mount_spec.rb
355
- - spec/rango/router/adapters/rack_router_spec.rb
356
174
  - spec/rango/router/adapters/urlmap_spec.rb
357
175
  - spec/rango/router/adapters/usher_spec.rb
358
176
  - spec/rango/router_spec.rb
@@ -361,34 +179,28 @@ files:
361
179
  - spec/rango/support/cucumber/steps/given_steps_spec.rb
362
180
  - spec/rango/support/cucumber/steps/then_steps_spec.rb
363
181
  - spec/rango/support/cucumber/steps/when_steps_spec.rb
364
- - spec/rango/templates/exts/erubis_spec.rb
365
182
  - spec/rango/templates/exts/haml_spec.rb
366
183
  - spec/rango/templates/exts/tilt_spec.rb
367
184
  - spec/rango/templates/helpers_spec.rb
368
185
  - spec/rango/templates/template_spec.rb
369
186
  - spec/rango/utils_spec.rb
187
+ - spec/rango/version_spec.rb
370
188
  - spec/rango_spec.rb
371
189
  - spec/spec.opts
372
190
  - spec/spec_helper.rb
373
191
  - spec/stubs/config.ru
374
192
  - spec/stubs/flat.rb
375
- - spec/stubs/templates/_basic.html.erb
376
- - spec/stubs/templates/basic.html.erb
377
193
  - spec/stubs/templates/block/block.html.haml
378
194
  - spec/stubs/templates/block/blocks.html.haml
379
195
  - spec/stubs/templates/block/error.html.haml
380
196
  - spec/stubs/templates/block/getter.html.haml
381
197
  - spec/stubs/templates/block/value.html.haml
382
- - spec/stubs/templates/capture.html.erb
383
- - spec/stubs/templates/context.html.erb
384
198
  - spec/stubs/templates/context_id.html.haml
385
199
  - spec/stubs/templates/enhance_block/basic.html.haml
386
200
  - spec/stubs/templates/enhance_block/error.html.haml
387
201
  - spec/stubs/templates/enhance_block/name_error.html.haml
388
202
  - spec/stubs/templates/enhance_block/nil.html.haml
389
203
  - spec/stubs/templates/enhance_block/standalone.html.haml
390
- - spec/stubs/templates/erubis.html.erubis
391
- - spec/stubs/templates/exception.html.erb
392
204
  - spec/stubs/templates/extend_block/basic.html.haml
393
205
  - spec/stubs/templates/extend_block/error.html.haml
394
206
  - spec/stubs/templates/extend_block/error2.html.haml
@@ -402,10 +214,6 @@ files:
402
214
  - spec/stubs/templates/index.html.haml
403
215
  - spec/stubs/templates/inheritance/basic/base.html.haml
404
216
  - spec/stubs/templates/inheritance/basic/index.html.haml
405
- - spec/stubs/templates/inheritance/capture/erb/base.html.erb
406
- - spec/stubs/templates/inheritance/capture/erb/index.html.erb
407
- - spec/stubs/templates/inheritance/capture/erubis/base.html.erubis
408
- - spec/stubs/templates/inheritance/capture/erubis/index.html.erubis
409
217
  - spec/stubs/templates/inheritance/capture/haml/base.html.haml
410
218
  - spec/stubs/templates/inheritance/capture/haml/index.html.haml
411
219
  - spec/stubs/templates/library.html.haml
@@ -428,16 +236,19 @@ files:
428
236
  - stubs/stack/content/deps.rip
429
237
  - stubs/stack/content/init.rb.rbt
430
238
  - stubs/stack/content/lib/%name%.rb.rbt
431
- - stubs/stack/content/lib/%name%/config.rb.rbt
432
239
  - stubs/stack/content/lib/%name%/environments/development.rb.rbt
433
240
  - stubs/stack/content/lib/%name%/environments/production.rb.rbt
434
241
  - stubs/stack/content/lib/%name%/environments/stagging.rb.rbt
435
- - stubs/stack/content/lib/%name%/initializers/middlewares.rb.rbt
436
- - stubs/stack/content/lib/%name%/initializers/urls.rb.rbt
242
+ - stubs/stack/content/lib/%name%/initializers/01_database.rb.rbt
243
+ - stubs/stack/content/lib/%name%/initializers/05_templates.rb.rbt
244
+ - stubs/stack/content/lib/%name%/initializers/10_pagination.rb.rbt
245
+ - stubs/stack/content/lib/%name%/initializers/15_warden.rb.rbt
246
+ - stubs/stack/content/lib/%name%/initializers/45_middlewares.rb.rbt
247
+ - stubs/stack/content/lib/%name%/initializers/50_router.rb.rbt
437
248
  - stubs/stack/content/lib/%name%/models.rb.rbt
249
+ - stubs/stack/content/lib/%name%/urls.rb.rbt
438
250
  - stubs/stack/content/lib/%name%/views.rb.rbt
439
251
  - stubs/stack/content/media/.gitignore
440
- - stubs/stack/content/rackup.rb.rbt
441
252
  - stubs/stack/content/spec/%name%/init_spec.rb.rbt
442
253
  - stubs/stack/content/spec/%name%/models_spec.rb.rbt
443
254
  - stubs/stack/content/spec/%name%/views_spec.rb.rbt
@@ -451,17 +262,27 @@ files:
451
262
  - stubs/stack/metadata.yml
452
263
  - stubs/stack/postprocess.rb
453
264
  - stubs/stack/setup.rb
454
- - support/hooks/pre-commit
455
265
  - tasks.rb
266
+ - vendor/cache/abstract-1.0.0.gem
267
+ - vendor/cache/code-cleaner-0.8.2.gem
268
+ - vendor/cache/erubis-2.6.5.gem
269
+ - vendor/cache/haml-2.2.21.gem
270
+ - vendor/cache/nake-0.0.8.gem
271
+ - vendor/cache/rack-1.1.0.gem
272
+ - vendor/cache/rspec-1.3.0.gem
273
+ - vendor/cache/term-ansicolor-1.0.5.gem
274
+ - vendor/cache/tilt-0.8.gem
456
275
  has_rdoc: true
457
276
  homepage: http://github.com/botanicus/rango
458
277
  licenses: []
459
278
 
460
- post_install_message: "[\e[32mVersion 0.2.3\e[0m] Experimental support for bundler 0.9\n\
461
- [\e[32mVersion 0.2.3\e[0m] Controller#redirect takes a block where you get the exception, so you can set headers etc\n\
462
- [\e[32mVersion 0.2.3\e[0m] [FIX] Cookies are passed into the redirect request\n\
463
- [\e[32mVersion 0.2.3\e[0m] [FIX] All non-http exceptions which occur in controller are captured and passed to rescue_http_error as a new instance of InternalServerError, except development environment where we want to get the Rack error screen.\n\
464
- [\e[32mVersion 0.2.3\e[0m] [FIX] Fixed encoding problem in messages. It's actually Rack fault, but hey.\n"
279
+ post_install_message: "[\e[32mVersion 0.2.4\e[0m] Removed all helpers, if you need some, use http://github.com/botanicus/helpers\n\
280
+ [\e[32mVersion 0.2.4\e[0m] [FEATURE] Added rango/mailer with mail helper for sending e-mails\n\
281
+ [\e[32mVersion 0.2.4\e[0m] Rango.root & Rango.media_path are now instances of Pathname rather than String\n\
282
+ [\e[32mVersion 0.2.4\e[0m] rango/environments are no longer optional\n\
283
+ [\e[32mVersion 0.2.4\e[0m] Ripple support in stack generator\n\
284
+ [\e[32mVersion 0.2.4\e[0m] Removed Erubis support, since it doesn't support <%= block(&block) %> so it's useless for us\n\
285
+ [\e[32mVersion 0.2.4\e[0m] Specs are green again\n"
465
286
  rdoc_options: []
466
287
 
467
288
  require_paths:
@@ -470,18 +291,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
470
291
  requirements:
471
292
  - - ~>
472
293
  - !ruby/object:Gem::Version
294
+ segments:
295
+ - 1
296
+ - 9
473
297
  version: "1.9"
474
- version:
475
298
  required_rubygems_version: !ruby/object:Gem::Requirement
476
299
  requirements:
477
300
  - - ">="
478
301
  - !ruby/object:Gem::Version
302
+ segments:
303
+ - 0
479
304
  version: "0"
480
- version:
481
305
  requirements: []
482
306
 
483
307
  rubyforge_project: rango
484
- rubygems_version: 1.3.5
308
+ rubygems_version: 1.3.6
485
309
  signing_key:
486
310
  specification_version: 3
487
311
  summary: Rango is ultralightweight, ultracustomizable, ultracool web framework deeply inspired by Django.