rango 0.2 → 0.2.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (261) hide show
  1. data/.gitignore +9 -0
  2. data/.gitmodules +3 -0
  3. data/CHANGELOG +5 -0
  4. data/CONTRIBUTORS +1 -0
  5. data/Gemfile +20 -0
  6. data/LICENSE +1 -1
  7. data/README.textile +5 -4
  8. data/benchmarks/ab.rb +6 -0
  9. data/benchmarks/bm/boot.rb +20 -0
  10. data/{spec/rango/version_spec.rb → benchmarks/bm/callbacks.rb} +0 -0
  11. data/benchmarks/bm/request.rb +4 -0
  12. data/benchmarks/bm/routers.rb +22 -0
  13. data/benchmarks/bm/stack.rb +19 -0
  14. data/{spec/stubs/acqs/dir/lib.rb → benchmarks/bm/templates.rb} +0 -0
  15. data/benchmarks/helper.rb +7 -0
  16. data/benchmarks/stubs/merb-app/.gitignore +21 -0
  17. data/benchmarks/stubs/merb-app/Rakefile +35 -0
  18. data/benchmarks/stubs/merb-app/app/controllers/application.rb +4 -0
  19. data/benchmarks/stubs/merb-app/app/controllers/exceptions.rb +15 -0
  20. data/benchmarks/stubs/merb-app/app/helpers/global_helpers.rb +7 -0
  21. data/benchmarks/stubs/merb-app/app/models/user.rb +19 -0
  22. data/benchmarks/stubs/merb-app/app/views/exceptions/not_acceptable.html.erb +63 -0
  23. data/benchmarks/stubs/merb-app/app/views/exceptions/not_found.html.erb +47 -0
  24. data/benchmarks/stubs/merb-app/app/views/layout/application.html.erb +12 -0
  25. data/benchmarks/stubs/merb-app/autotest/discover.rb +4 -0
  26. data/benchmarks/stubs/merb-app/autotest/merb.rb +154 -0
  27. data/benchmarks/stubs/merb-app/autotest/merb_rspec.rb +167 -0
  28. data/benchmarks/stubs/merb-app/config/database.yml +33 -0
  29. data/benchmarks/stubs/merb-app/config/dependencies.rb +36 -0
  30. data/benchmarks/stubs/merb-app/config/environments/development.rb +17 -0
  31. data/benchmarks/stubs/merb-app/config/environments/production.rb +12 -0
  32. data/benchmarks/stubs/merb-app/config/environments/rake.rb +13 -0
  33. data/benchmarks/stubs/merb-app/config/environments/staging.rb +12 -0
  34. data/benchmarks/stubs/merb-app/config/environments/test.rb +14 -0
  35. data/benchmarks/stubs/merb-app/config/init.rb +26 -0
  36. data/benchmarks/stubs/merb-app/config/rack.rb +13 -0
  37. data/benchmarks/stubs/merb-app/config/router.rb +46 -0
  38. data/benchmarks/stubs/merb-app/doc/rdoc/generators/merb_generator.rb +1364 -0
  39. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/api_grease.js +640 -0
  40. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/index.html.erb +37 -0
  41. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.css +252 -0
  42. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb.rb +353 -0
  43. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/merb_doc_styles.css +492 -0
  44. data/benchmarks/stubs/merb-app/doc/rdoc/generators/template/merb/prototype.js +2515 -0
  45. data/benchmarks/stubs/merb-app/merb/merb-auth/setup.rb +46 -0
  46. data/benchmarks/stubs/merb-app/merb/merb-auth/strategies.rb +13 -0
  47. data/benchmarks/stubs/merb-app/merb/session/session.rb +11 -0
  48. data/benchmarks/stubs/merb-app/public/.htaccess +17 -0
  49. data/benchmarks/stubs/merb-app/public/favicon.ico +0 -0
  50. data/benchmarks/stubs/merb-app/public/images/merb.jpg +0 -0
  51. data/benchmarks/stubs/merb-app/public/javascripts/application.js +1 -0
  52. data/benchmarks/stubs/merb-app/public/javascripts/jquery.js +19 -0
  53. data/benchmarks/stubs/merb-app/public/merb.fcgi +22 -0
  54. data/benchmarks/stubs/merb-app/public/robots.txt +5 -0
  55. data/benchmarks/stubs/merb-app/public/stylesheets/master.css +119 -0
  56. data/{spec/stubs/acqs/dir/lib_spec.rb → benchmarks/stubs/merb-app/spec/spec.opts} +0 -0
  57. data/benchmarks/stubs/merb-app/spec/spec_helper.rb +27 -0
  58. data/benchmarks/stubs/merb-app/tasks/doc.thor +151 -0
  59. data/benchmarks/stubs/merb-app/tasks/merb.thor/app_script.rb +33 -0
  60. data/benchmarks/stubs/merb-app/tasks/merb.thor/common.rb +70 -0
  61. data/benchmarks/stubs/merb-app/tasks/merb.thor/gem_ext.rb +127 -0
  62. data/benchmarks/stubs/merb-app/tasks/merb.thor/main.thor +152 -0
  63. data/benchmarks/stubs/merb-app/tasks/merb.thor/ops.rb +95 -0
  64. data/benchmarks/stubs/merb-app/tasks/merb.thor/utils.rb +42 -0
  65. data/benchmarks/stubs/merb-core/.gitignore +21 -0
  66. data/benchmarks/stubs/merb-core/Rakefile +35 -0
  67. data/benchmarks/stubs/merb-core/app/controllers/application.rb +4 -0
  68. data/benchmarks/stubs/merb-core/app/controllers/exceptions.rb +15 -0
  69. data/benchmarks/stubs/merb-core/app/helpers/global_helpers.rb +7 -0
  70. data/benchmarks/stubs/merb-core/app/views/exceptions/not_acceptable.html.erb +63 -0
  71. data/benchmarks/stubs/merb-core/app/views/exceptions/not_found.html.erb +47 -0
  72. data/benchmarks/stubs/merb-core/app/views/layout/application.html.erb +12 -0
  73. data/benchmarks/stubs/merb-core/autotest/discover.rb +1 -0
  74. data/benchmarks/stubs/merb-core/autotest/merb.rb +151 -0
  75. data/benchmarks/stubs/merb-core/autotest/merb_rspec.rb +167 -0
  76. data/benchmarks/stubs/merb-core/config/environments/development.rb +17 -0
  77. data/benchmarks/stubs/merb-core/config/environments/production.rb +12 -0
  78. data/benchmarks/stubs/merb-core/config/environments/rake.rb +13 -0
  79. data/benchmarks/stubs/merb-core/config/environments/staging.rb +12 -0
  80. data/benchmarks/stubs/merb-core/config/environments/test.rb +14 -0
  81. data/benchmarks/stubs/merb-core/config/init.rb +27 -0
  82. data/benchmarks/stubs/merb-core/config/rack.rb +13 -0
  83. data/benchmarks/stubs/merb-core/config/router.rb +43 -0
  84. data/benchmarks/stubs/merb-core/doc/rdoc/generators/merb_generator.rb +1364 -0
  85. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/api_grease.js +640 -0
  86. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/index.html.erb +37 -0
  87. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.css +252 -0
  88. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb.rb +353 -0
  89. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/merb_doc_styles.css +492 -0
  90. data/benchmarks/stubs/merb-core/doc/rdoc/generators/template/merb/prototype.js +2515 -0
  91. data/benchmarks/stubs/merb-core/public/.htaccess +17 -0
  92. data/benchmarks/stubs/merb-core/public/favicon.ico +0 -0
  93. data/benchmarks/stubs/merb-core/public/images/merb.jpg +0 -0
  94. data/benchmarks/stubs/merb-core/public/javascripts/application.js +1 -0
  95. data/benchmarks/stubs/merb-core/public/merb.fcgi +22 -0
  96. data/benchmarks/stubs/merb-core/public/robots.txt +5 -0
  97. data/benchmarks/stubs/merb-core/public/stylesheets/master.css +119 -0
  98. data/{spec/stubs/acqs/lib.rb → benchmarks/stubs/merb-core/spec/spec.opts} +0 -0
  99. data/benchmarks/stubs/merb-core/spec/spec_helper.rb +22 -0
  100. data/benchmarks/stubs/merb-core/tasks/merb.thor/app_script.rb +33 -0
  101. data/benchmarks/stubs/merb-core/tasks/merb.thor/common.rb +70 -0
  102. data/benchmarks/stubs/merb-core/tasks/merb.thor/gem_ext.rb +127 -0
  103. data/benchmarks/stubs/merb-core/tasks/merb.thor/main.thor +152 -0
  104. data/benchmarks/stubs/merb-core/tasks/merb.thor/ops.rb +95 -0
  105. data/benchmarks/stubs/merb-core/tasks/merb.thor/utils.rb +42 -0
  106. data/benchmarks/stubs/merb-flat/.gitignore +21 -0
  107. data/benchmarks/stubs/merb-flat/README.txt +10 -0
  108. data/benchmarks/stubs/merb-flat/Rakefile +35 -0
  109. data/benchmarks/stubs/merb-flat/application.rb +17 -0
  110. data/benchmarks/stubs/merb-flat/config/framework.rb +9 -0
  111. data/benchmarks/stubs/merb-flat/config/init.rb +42 -0
  112. data/benchmarks/stubs/merb-flat/spec/spec_helper.rb +26 -0
  113. data/benchmarks/stubs/merb-flat/tasks/merb.thor/app_script.rb +33 -0
  114. data/benchmarks/stubs/merb-flat/tasks/merb.thor/common.rb +70 -0
  115. data/benchmarks/stubs/merb-flat/tasks/merb.thor/gem_ext.rb +127 -0
  116. data/benchmarks/stubs/merb-flat/tasks/merb.thor/main.thor +152 -0
  117. data/benchmarks/stubs/merb-flat/tasks/merb.thor/ops.rb +95 -0
  118. data/benchmarks/stubs/merb-flat/tasks/merb.thor/utils.rb +42 -0
  119. data/benchmarks/stubs/merb-flat/views/foo.html.erb +3 -0
  120. data/benchmarks/stubs/merb-very-flat/.gitignore +21 -0
  121. data/benchmarks/stubs/merb-very-flat/Rakefile +35 -0
  122. data/benchmarks/stubs/merb-very-flat/merb-very-flat.rb +61 -0
  123. data/benchmarks/stubs/merb-very-flat/spec/spec_helper.rb +26 -0
  124. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/app_script.rb +33 -0
  125. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/common.rb +70 -0
  126. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/gem_ext.rb +127 -0
  127. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/main.thor +152 -0
  128. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/ops.rb +95 -0
  129. data/benchmarks/stubs/merb-very-flat/tasks/merb.thor/utils.rb +42 -0
  130. data/benchmarks/stubs/rails/README +243 -0
  131. data/benchmarks/stubs/rails/Rakefile +10 -0
  132. data/benchmarks/stubs/rails/app/controllers/application_controller.rb +12 -0
  133. data/benchmarks/stubs/rails/app/helpers/application_helper.rb +5 -0
  134. data/benchmarks/stubs/rails/config/boot.rb +112 -0
  135. data/benchmarks/stubs/rails/config/database.yml +22 -0
  136. data/benchmarks/stubs/rails/config/environment.rb +43 -0
  137. data/benchmarks/stubs/rails/config/environments/development.rb +19 -0
  138. data/benchmarks/stubs/rails/config/environments/production.rb +30 -0
  139. data/benchmarks/stubs/rails/config/environments/test.rb +30 -0
  140. data/benchmarks/stubs/rails/config/initializers/backtrace_silencers.rb +9 -0
  141. data/benchmarks/stubs/rails/config/initializers/inflections.rb +12 -0
  142. data/benchmarks/stubs/rails/config/initializers/mime_types.rb +7 -0
  143. data/benchmarks/stubs/rails/config/initializers/new_rails_defaults.rb +21 -0
  144. data/benchmarks/stubs/rails/config/initializers/session_store.rb +17 -0
  145. data/benchmarks/stubs/rails/config/locales/en.yml +5 -0
  146. data/benchmarks/stubs/rails/config/routes.rb +45 -0
  147. data/benchmarks/stubs/rails/doc/README_FOR_APP +2 -0
  148. data/{spec/stubs/acqs/tasks.thor → benchmarks/stubs/rails/log/development.log} +0 -0
  149. data/{stubs/stack/content/TODO.txt → benchmarks/stubs/rails/log/production.log} +0 -0
  150. data/benchmarks/stubs/rails/log/server.log +0 -0
  151. data/benchmarks/stubs/rails/log/test.log +0 -0
  152. data/benchmarks/stubs/rails/public/404.html +30 -0
  153. data/benchmarks/stubs/rails/public/422.html +30 -0
  154. data/benchmarks/stubs/rails/public/500.html +30 -0
  155. data/benchmarks/stubs/rails/public/favicon.ico +0 -0
  156. data/benchmarks/stubs/rails/public/images/rails.png +0 -0
  157. data/benchmarks/stubs/rails/public/index.html +275 -0
  158. data/benchmarks/stubs/rails/public/javascripts/application.js +2 -0
  159. data/benchmarks/stubs/rails/public/javascripts/controls.js +963 -0
  160. data/benchmarks/stubs/rails/public/javascripts/dragdrop.js +973 -0
  161. data/benchmarks/stubs/rails/public/javascripts/effects.js +1128 -0
  162. data/benchmarks/stubs/rails/public/javascripts/prototype.js +4320 -0
  163. data/benchmarks/stubs/rails/public/robots.txt +5 -0
  164. data/benchmarks/stubs/rails/script/about +4 -0
  165. data/benchmarks/stubs/rails/script/console +3 -0
  166. data/benchmarks/stubs/rails/script/dbconsole +3 -0
  167. data/benchmarks/stubs/rails/script/destroy +3 -0
  168. data/benchmarks/stubs/rails/script/generate +3 -0
  169. data/benchmarks/stubs/rails/script/performance/benchmarker +3 -0
  170. data/benchmarks/stubs/rails/script/performance/profiler +3 -0
  171. data/benchmarks/stubs/rails/script/plugin +3 -0
  172. data/benchmarks/stubs/rails/script/runner +3 -0
  173. data/benchmarks/stubs/rails/script/server +3 -0
  174. data/benchmarks/stubs/rails/test/performance/browsing_test.rb +11 -0
  175. data/benchmarks/stubs/rails/test/test_helper.rb +40 -0
  176. data/benchmarks/stubs/ramaze.rb +0 -0
  177. data/benchmarks/stubs/sinatra.rb +11 -0
  178. data/bin/rango +2 -2
  179. data/deps.rip +7 -0
  180. data/deps.rip.rbe +7 -0
  181. data/gems/cache/abstract-1.0.0.gem +0 -0
  182. data/gems/cache/code-cleaner-0.1.gem +0 -0
  183. data/gems/cache/code-cleaner-0.2.gem +0 -0
  184. data/gems/cache/code-cleaner-0.3.gem +0 -0
  185. data/gems/cache/code-cleaner-0.4.gem +0 -0
  186. data/gems/cache/code-cleaner-0.5.gem +0 -0
  187. data/gems/cache/code-cleaner-0.6.gem +0 -0
  188. data/gems/cache/code-cleaner-0.7.gem +0 -0
  189. data/gems/cache/code-cleaner-0.8.1.gem +0 -0
  190. data/gems/cache/code-cleaner-0.8.gem +0 -0
  191. data/gems/cache/erubis-2.6.5.gem +0 -0
  192. data/gems/cache/extlib-0.9.14.gem +0 -0
  193. data/gems/cache/haml-2.2.16.gem +0 -0
  194. data/gems/cache/haml-2.2.17.gem +0 -0
  195. data/gems/cache/nake-0.0.2.gem +0 -0
  196. data/gems/cache/nake-0.0.3.gem +0 -0
  197. data/gems/cache/nake-0.0.5.gem +0 -0
  198. data/gems/cache/nake-0.0.6.gem +0 -0
  199. data/gems/cache/nake-0.0.8.gem +0 -0
  200. data/gems/cache/rack-1.0.1.gem +0 -0
  201. data/gems/cache/rack-1.1.0.gem +0 -0
  202. data/gems/cache/rspec-1.2.9.gem +0 -0
  203. data/gems/cache/rspec-1.3.0.gem +0 -0
  204. data/gems/cache/term-ansicolor-1.0.4.gem +0 -0
  205. data/gems/cache/tilt-0.4.gem +0 -0
  206. data/gems/cache/tilt-0.5.gem +0 -0
  207. data/lib/rango.rb +28 -28
  208. data/lib/rango/cli.rb +34 -0
  209. data/lib/rango/contrib/pagination/adapters/datamapper.rb +21 -17
  210. data/lib/rango/controller.rb +36 -4
  211. data/lib/rango/environments.rb +1 -15
  212. data/lib/rango/exceptions.rb +144 -86
  213. data/lib/rango/helpers.rb +10 -2
  214. data/lib/rango/mailer.rb +48 -0
  215. data/lib/rango/mixins/action_args.rb +5 -7
  216. data/lib/rango/mixins/filters.rb +18 -14
  217. data/lib/rango/mixins/message.rb +30 -24
  218. data/lib/rango/mixins/rendering.rb +54 -0
  219. data/lib/rango/orm/tasks/datamapper.nake +81 -0
  220. data/lib/rango/orm/tasks/sequel.nake +43 -0
  221. data/lib/rango/router/adapters/usher.rb +2 -1
  222. data/lib/rango/stacks/controller.rb +12 -0
  223. data/lib/rango/tasks/spec.nake +9 -0
  224. data/lib/rango/templates/exts/haml.rb +1 -1
  225. data/lib/rango/templates/exts/tilt.rb +10 -0
  226. data/lib/rango/templates/helpers.rb +29 -25
  227. data/lib/rango/templates/template.rb +7 -6
  228. data/rango.gemspec +52 -0
  229. data/rango.pre.gemspec +8 -0
  230. data/spec/rango/environments_spec.rb +1 -1
  231. data/spec/rango/exceptions_spec.rb +8 -7
  232. data/spec/rango/mixins/render_spec.rb +1 -1
  233. data/spec/rango/templates/template_spec.rb +1 -1
  234. data/stubs/stack/content/%name%.gemspec.rbt +52 -0
  235. data/stubs/stack/content/%name%.pre.gemspec.rbt +8 -0
  236. data/stubs/stack/content/CHANGELOG +0 -0
  237. data/stubs/stack/content/Gemfile.rbt +22 -11
  238. data/stubs/stack/content/README.textile.rbt +7 -0
  239. data/stubs/stack/content/config.ru.rbt +33 -62
  240. data/stubs/stack/content/deps.rip +0 -0
  241. data/stubs/stack/content/init.rb.rbt +14 -39
  242. data/stubs/stack/content/lib/%name%.rb.rbt +8 -0
  243. data/stubs/stack/content/lib/%name%/config.rb.rbt +0 -0
  244. data/stubs/stack/content/{environments.rb.rbt → lib/%name%/environments/development.rb.rbt} +5 -0
  245. data/stubs/stack/content/lib/%name%/environments/production.rb.rbt +0 -0
  246. data/stubs/stack/content/lib/%name%/environments/stagging.rb.rbt +0 -0
  247. data/stubs/stack/content/lib/%name%/initializers/middlewares.rb.rbt +5 -0
  248. data/stubs/stack/content/lib/%name%/initializers/urls.rb.rbt +24 -0
  249. data/stubs/stack/content/{models.rb.rbt → lib/%name%/models.rb.rbt} +7 -0
  250. data/stubs/stack/content/{views.rb.rbt → lib/%name%/views.rb.rbt} +2 -8
  251. data/stubs/stack/content/rackup.rb.rbt +41 -0
  252. data/stubs/stack/content/tasks.rb.rbt +52 -0
  253. data/stubs/stack/setup.rb +7 -1
  254. data/support/hooks/pre-commit +12 -0
  255. data/tasks.rb +49 -0
  256. metadata +250 -54
  257. data/Rakefile +0 -33
  258. data/lib/rango/rack/middlewares/email_obfuscator.rb +0 -25
  259. data/lib/rango/version.rb +0 -7
  260. data/stubs/stack/content/.rvmrc.rbt +0 -2
  261. data/stubs/stack/content/Rakefile.rbt +0 -12
@@ -3,19 +3,13 @@
3
3
  # http://wiki.github.com/botanicus/rango/controllers
4
4
 
5
5
  require "rango/helpers"
6
- require "rango/controller"
7
- require "rango/mixins/filters"
8
- require "rango/mixins/rendering"
9
- require "rango/mixins/message"
6
+ require "rango/stacks/controller"
10
7
  <% if RUBY_VERSION > "1.9.2" %>
11
8
  require "rango/mixins/action_args"
12
9
  <% end %>
13
10
 
14
11
  module <%= @name.camel_case %>
15
- class Application < Rango::Controller
16
- include Rango::FiltersMixin
17
- include Rango::MessageMixin
18
- include Rango::ExplicitRendering
12
+ class Application < Rango::StackController
19
13
  <% if RUBY_VERSION > "1.9.2" %>
20
14
  include Rango::ActionArgsMixin
21
15
  <% end %>
@@ -0,0 +1,41 @@
1
+ <%= shebang "./init.rb" %>
2
+ # encoding: utf-8
3
+
4
+ require "rack"
5
+ require "rango/rack/middlewares/basic"
6
+
7
+ require_relative "urls"
8
+
9
+ puts "~ Running rackup.rb"
10
+
11
+ <% if @warden %>
12
+
13
+ # warden authentication
14
+ # wiki.github.com/hassox/warden/setup
15
+ require "warden"
16
+
17
+ # See also wiki.github.com/hassox/warden/callbacks
18
+ Warden::Manager.serialize_into_session { |user| user.id }
19
+ Warden::Manager.serialize_from_session { |key| User.get(id) }
20
+
21
+ # Go to login
22
+ Warden::Manager.before_failure do |env, opts|
23
+ Login.route_to env, "login"
24
+ end
25
+
26
+ Warden::Strategies.add(:password) do
27
+ def authenticate!
28
+ User.new # TODO
29
+ end
30
+ end
31
+ <% end %>
32
+
33
+ # run config.ru
34
+ if File.basename($0).eql?("init.rb")
35
+ Rack::Builder.new do
36
+ app = self.instance_eval(::File.read("config.ru"))
37
+ Rack::Handler::Thin.run(app, Port: 4000)
38
+ end
39
+ else
40
+ Rack::Builder.new { self.instance_eval ::File.read("config.ru") }
41
+ end
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env nake
2
+ # encoding: utf-8
3
+
4
+ require_relative "gems/environment.rb"
5
+
6
+ # Boot environment
7
+ # This task isn't useful as is, but a lot of Rango tasks expect this
8
+ # will exist and take an optional argument with name of environment
9
+ Task.new(:environment) do |task|
10
+ task.hidden = true
11
+ task.define do |environment = nil, options|
12
+ RACK_ENV = environment || ENV["RACK_ENV"] || "development"
13
+ require_relative "init.rb"
14
+ end
15
+ end
16
+
17
+ #load "pupu/tasks/pupu.nake"
18
+ load "rango/tasks/spec.nake"
19
+ <% unless @orm.eql?("mongomapper") %>
20
+ load "rango/orm/tasks/<%= @orm %>.nake"
21
+ <% end %>
22
+
23
+ <% if @git_deployer %>
24
+ begin
25
+ load "git-deployer.nake"
26
+ Task["deployer:setup"].config[:servers] = {
27
+ server1: {
28
+ user: "TODO",
29
+ host: "TODO",
30
+ repo: "/var/sources/<%= @name %>.git",
31
+ path: "/var/www/<%= @name %>"
32
+ }
33
+ }
34
+ rescue LoadError
35
+ warn "You have to install git-deployer gem if you want to deploy to remote servers!"
36
+ end
37
+ <% end %>
38
+
39
+ <% if @code_cleaner %>
40
+ begin
41
+ load "code-cleaner.nake"
42
+ rescue LoadError
43
+ abort "You have to install code-cleaner gem!"
44
+ else
45
+ Task["hooks:whitespace:install"].tap do |task|
46
+ task.config[:path] = "bin"
47
+ task.config[:encoding] = "utf-8"
48
+ task.config[:whitelist] = '(bin/[^/]+|.+\.(rb|rake|nake|thor|task))$'
49
+ #task.config[:blacklist]
50
+ end
51
+ end
52
+ <% end %>
data/stubs/stack/setup.rb CHANGED
@@ -4,7 +4,10 @@
4
4
  # You can update context hash and register hooks. Don't forget to use merge! instead of merge, because you are
5
5
  # manipulating with one object, rather than returning new one.
6
6
 
7
- # rango create app blog --models=post,tag --controllers=posts,tags --router=usher|rack-router|rack-mount --template-engine=erubis
7
+ # rango create app blog --models=post,tag --controllers=posts,tags --router=usher|rack-router|rack-mount --template-engine=erubis --no-code-cleaner --no-git-deployer
8
+
9
+ require "base64"
10
+
8
11
  hook do |generator, context|
9
12
  models = [context[:models]].compact.flatten # the flatten thing: if you have --models=post, it would be just a string
10
13
  controllers = [context[:controllers]].compact.flatten
@@ -12,4 +15,7 @@ hook do |generator, context|
12
15
  context[:orm] = "datamapper" unless context[:orm]
13
16
  context[:router] = "usher" unless context[:router]
14
17
  context[:template_engine] = "haml" unless context[:template_engine]
18
+ context[:git_deployer] = true unless context.has_key?(:git_deployer)
19
+ context[:code_cleaner] = true unless context.has_key?(:git_deployer)
20
+ context[:email_hash] = Base64.encode64(context[:email])
15
21
  end
@@ -0,0 +1,12 @@
1
+ #!/bin/sh
2
+
3
+ echo "Entering pre-commit hook ..."
4
+
5
+ for file in $(git diff --staged --name-only); do
6
+ echo "Normalizing $file ..."
7
+ if test -f $file; then
8
+ if ./script/normalize.rb "$file"; then
9
+ git add $file # so the changes will be committed immediately
10
+ fi
11
+ fi
12
+ done
data/tasks.rb ADDED
@@ -0,0 +1,49 @@
1
+ #!./script/nake
2
+ # encoding: utf-8
3
+
4
+ begin
5
+ require_relative "gems/environment.rb"
6
+ rescue LoadError
7
+ abort "You have to install bundler and run gem bundle first!"
8
+ end
9
+
10
+ ENV["PATH"] = "script:#{ENV["PATH"]}"
11
+
12
+ require "nake/tasks/gem"
13
+ require "nake/tasks/spec"
14
+ require "nake/tasks/release"
15
+
16
+ begin
17
+ load "code-cleaner.nake"
18
+ Nake::Task["hooks:whitespace:install"].tap do |task|
19
+ task.config[:path] = "script"
20
+ task.config[:encoding] = "utf-8"
21
+ task.config[:whitelist] = '(bin/[^/]+|Gemfile|.+\.(rb|rake|nake|thor|task|gemspec))$'
22
+ end
23
+ rescue LoadError
24
+ warn "If you want to contribute to Rango, please install code-cleaner and then run ./tasks.rb hooks:whitespace:install to get Git pre-commit hook for removing trailing whitespace."
25
+ end
26
+
27
+ require_relative "lib/rango"
28
+
29
+ # Setup encoding, so all the operations
30
+ # with strings from another files will work
31
+ Encoding.default_internal = "utf-8"
32
+ Encoding.default_external = "utf-8"
33
+
34
+ Task[:build].config[:gemspec] = "rango.gemspec"
35
+ Task[:prerelease].config[:gemspec] = "rango.pre.gemspec"
36
+ Task[:release].config[:name] = "rango"
37
+ Task[:release].config[:version] = Rango::VERSION
38
+
39
+ # http://github.com/somebee/rbench/tree/master
40
+ Task.new(:bm) do |task|
41
+ task.description = "Run all benchmarks"
42
+ task.define do
43
+ abort "Benchmarks doesn't work at the moment"
44
+ require "rbench"
45
+ Dir["#{Dir.pwd}/benchmarks/bm/*.rb"].each do |benchmark|
46
+ load benchmark
47
+ end
48
+ end
49
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rango
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: 0.2.1.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
- date: 2009-12-25 00:00:00 +00:00
11
+ date: 2010-02-15 00:00:00 +00:00
12
12
  default_executable: rango
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
@@ -32,37 +32,245 @@ dependencies:
32
32
  version: "0"
33
33
  version:
34
34
  description: ""
35
- email: knava.bestvinensis@gmail.com
36
- executables:
37
- - rango
35
+ email: stastny@101ideas.cz
36
+ executables: []
37
+
38
38
  extensions: []
39
39
 
40
40
  extra_rdoc_files: []
41
41
 
42
42
  files:
43
+ - .gitignore
44
+ - .gitmodules
45
+ - CHANGELOG
46
+ - CONTRIBUTORS
47
+ - Gemfile
48
+ - LICENSE
49
+ - README.textile
50
+ - benchmarks/ab.rb
51
+ - benchmarks/bm/boot.rb
52
+ - benchmarks/bm/callbacks.rb
53
+ - benchmarks/bm/request.rb
54
+ - benchmarks/bm/routers.rb
55
+ - benchmarks/bm/stack.rb
56
+ - benchmarks/bm/templates.rb
57
+ - 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
43
220
  - bin/rango
221
+ - deps.rip
222
+ - 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
+ - lib/rango.rb
250
+ - lib/rango/cli.rb
251
+ - lib/rango/contrib/pagination.rb
252
+ - lib/rango/contrib/pagination/README.textile
253
+ - lib/rango/contrib/pagination/TODO
44
254
  - lib/rango/contrib/pagination/_pagination.html.haml
45
255
  - lib/rango/contrib/pagination/adapters/datamapper.rb
46
256
  - lib/rango/contrib/pagination/helpers.rb
47
257
  - lib/rango/contrib/pagination/page.rb
48
- - lib/rango/contrib/pagination/README.textile
49
258
  - lib/rango/contrib/pagination/strategies.rb
50
- - lib/rango/contrib/pagination/TODO
51
- - lib/rango/contrib/pagination.rb
52
259
  - lib/rango/contrib/syndication.rb
53
260
  - lib/rango/controller.rb
54
261
  - lib/rango/core_ext.rb
55
262
  - lib/rango/environments.rb
56
263
  - lib/rango/exceptions.rb
57
264
  - lib/rango/forms/form.rb
265
+ - lib/rango/gv.rb
58
266
  - lib/rango/gv/router.rb
59
267
  - lib/rango/gv/scaffolding.rb
60
268
  - lib/rango/gv/static.rb
61
- - lib/rango/gv.rb
269
+ - lib/rango/helpers.rb
62
270
  - lib/rango/helpers/assets.rb
63
271
  - lib/rango/helpers/general.rb
64
272
  - lib/rango/helpers/syntax.rb
65
- - lib/rango/helpers.rb
273
+ - lib/rango/mailer.rb
66
274
  - lib/rango/mini.rb
67
275
  - lib/rango/mini_render.rb
68
276
  - lib/rango/mixins/action_args.rb
@@ -75,24 +283,26 @@ files:
75
283
  - lib/rango/mixins/rendering.rb
76
284
  - lib/rango/orm/README.textile
77
285
  - lib/rango/orm/support/datamapper/fields.rb
286
+ - lib/rango/orm/tasks/datamapper.nake
78
287
  - lib/rango/orm/tasks/datamapper.rake
288
+ - lib/rango/orm/tasks/sequel.nake
79
289
  - lib/rango/orm/tasks/sequel.rake
80
290
  - lib/rango/path.rb
81
291
  - lib/rango/rack/middlewares/basic.rb
82
- - lib/rango/rack/middlewares/email_obfuscator.rb
83
292
  - lib/rango/rack/middlewares/encoding.rb
84
293
  - lib/rango/rack/middlewares/static.rb
85
294
  - lib/rango/rack/request.rb
295
+ - lib/rango/router.rb
86
296
  - lib/rango/router/adapters/rack_mount.rb
87
297
  - lib/rango/router/adapters/rack_router.rb
88
298
  - lib/rango/router/adapters/urlmap.rb
89
299
  - lib/rango/router/adapters/usher.rb
90
- - lib/rango/router.rb
91
300
  - lib/rango/stacks/controller.rb
92
301
  - lib/rango/stacks/mini.rb
93
302
  - lib/rango/support/cucumber/steps/given_steps.rb
94
303
  - lib/rango/support/cucumber/steps/then_steps.rb
95
304
  - lib/rango/support/cucumber/steps/when_steps.rb
305
+ - lib/rango/tasks/spec.nake
96
306
  - lib/rango/tasks/spec.rake
97
307
  - lib/rango/templates/exts/erubis.rb
98
308
  - lib/rango/templates/exts/haml.rb
@@ -100,8 +310,9 @@ files:
100
310
  - lib/rango/templates/helpers.rb
101
311
  - lib/rango/templates/template.rb
102
312
  - lib/rango/utils.rb
103
- - lib/rango/version.rb
104
- - lib/rango.rb
313
+ - rango.gemspec
314
+ - rango.pre.gemspec
315
+ - simple-templater.scope
105
316
  - spec/rango/contrib/pagination/adapters/datamapper_spec.rb
106
317
  - spec/rango/contrib/pagination/helpers_spec.rb
107
318
  - spec/rango/contrib/pagination/page_spec.rb
@@ -154,14 +365,9 @@ files:
154
365
  - spec/rango/templates/helpers_spec.rb
155
366
  - spec/rango/templates/template_spec.rb
156
367
  - spec/rango/utils_spec.rb
157
- - spec/rango/version_spec.rb
158
368
  - spec/rango_spec.rb
159
369
  - spec/spec.opts
160
370
  - spec/spec_helper.rb
161
- - spec/stubs/acqs/dir/lib.rb
162
- - spec/stubs/acqs/dir/lib_spec.rb
163
- - spec/stubs/acqs/lib.rb
164
- - spec/stubs/acqs/tasks.thor
165
371
  - spec/stubs/config.ru
166
372
  - spec/stubs/flat.rb
167
373
  - spec/stubs/templates/_basic.html.erb
@@ -204,62 +410,52 @@ files:
204
410
  - spec/stubs/templates/test.html.haml
205
411
  - spec/stubs/templates/variables.html.haml
206
412
  - stubs/features/content/env.rb
413
+ - stubs/features/content/shared/.gitignore
207
414
  - stubs/features/metadata.yml
208
415
  - stubs/flat/content/flat.ru.rbt
209
416
  - stubs/flat/metadata.yml
210
417
  - stubs/flat/postprocess.rb
211
418
  - stubs/flat/setup.rb
212
- - stubs/stack/content/config.ru.rbt
213
- - stubs/stack/content/environments.rb.rbt
419
+ - stubs/stack/content/%name%.gemspec.rbt
420
+ - stubs/stack/content/%name%.pre.gemspec.rbt
421
+ - stubs/stack/content/.gitignore
422
+ - stubs/stack/content/CHANGELOG
214
423
  - stubs/stack/content/Gemfile.rbt
424
+ - stubs/stack/content/README.textile.rbt
425
+ - stubs/stack/content/config.ru.rbt
426
+ - stubs/stack/content/deps.rip
215
427
  - stubs/stack/content/init.rb.rbt
216
- - stubs/stack/content/models.rb.rbt
217
- - stubs/stack/content/Rakefile.rbt
428
+ - stubs/stack/content/lib/%name%.rb.rbt
429
+ - stubs/stack/content/lib/%name%/config.rb.rbt
430
+ - stubs/stack/content/lib/%name%/environments/development.rb.rbt
431
+ - stubs/stack/content/lib/%name%/environments/production.rb.rbt
432
+ - stubs/stack/content/lib/%name%/environments/stagging.rb.rbt
433
+ - stubs/stack/content/lib/%name%/initializers/middlewares.rb.rbt
434
+ - stubs/stack/content/lib/%name%/initializers/urls.rb.rbt
435
+ - stubs/stack/content/lib/%name%/models.rb.rbt
436
+ - stubs/stack/content/lib/%name%/views.rb.rbt
437
+ - stubs/stack/content/media/.gitignore
438
+ - stubs/stack/content/rackup.rb.rbt
218
439
  - stubs/stack/content/spec/%name%/init_spec.rb.rbt
219
440
  - stubs/stack/content/spec/%name%/models_spec.rb.rbt
220
441
  - stubs/stack/content/spec/%name%/views_spec.rb.rbt
221
442
  - stubs/stack/content/spec/spec.opts
222
443
  - stubs/stack/content/spec/spec_helper.rb
444
+ - stubs/stack/content/tasks.rb.rbt
223
445
  - stubs/stack/content/templates/base.html.haml.rbt
224
446
  - stubs/stack/content/templates/errors/404.html.haml
225
447
  - stubs/stack/content/templates/errors/500.html.haml
226
448
  - stubs/stack/content/templates/index.html.haml
227
- - stubs/stack/content/TODO.txt
228
- - stubs/stack/content/views.rb.rbt
229
449
  - stubs/stack/metadata.yml
230
450
  - stubs/stack/postprocess.rb
231
451
  - stubs/stack/setup.rb
232
- - CHANGELOG
233
- - CONTRIBUTORS
234
- - LICENSE
235
- - Rakefile
236
- - README.textile
237
- - simple-templater.scope
238
- - stubs/features/content/shared/.gitignore
239
- - stubs/stack/content/.gitignore
240
- - stubs/stack/content/.rvmrc.rbt
241
- - stubs/stack/content/log/.gitignore
242
- - stubs/stack/content/media/.gitignore
452
+ - support/hooks/pre-commit
453
+ - tasks.rb
243
454
  has_rdoc: true
244
455
  homepage: http://github.com/botanicus/rango
245
456
  licenses: []
246
457
 
247
- post_install_message: |-
248
- Version 0.2.0, 24/12/2009
249
- * Sequel support
250
- * Logger is now configurable, you don't have to use any particular one
251
- * Rango doesn't depend on RubyExts anymore
252
- * Fixed status and headers settings in controller
253
- * Fixed partial, extend_block and created includes for required-like functionality for templates
254
- * Generators refactored, better env support
255
- * Rango::Controller#redirect returns escaped location URL
256
- * More modularity and granularity, Rango now plays nicely with other frameworks
257
- * Refactored controller and it's now possible to write strategies for arguments passed to views
258
- * ActionArgs for passing data from params to views (default behaviour in stack application)
259
- * Rango itself use bundler rather than git submodules
260
- * rake hooks will install task for removing whitespace in pre-commit hook, contributors should use it!
261
- * Template helpers can work with paths relative to current template via ./path.html resp. ../path.html. All other paths are relative to the template paths.
262
- * Use simple-logger as a default logger or standar logger if the simple-logger isn't installed.
458
+ post_install_message:
263
459
  rdoc_options: []
264
460
 
265
461
  require_paths:
@@ -272,9 +468,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
272
468
  version:
273
469
  required_rubygems_version: !ruby/object:Gem::Requirement
274
470
  requirements:
275
- - - ">="
471
+ - - ">"
276
472
  - !ruby/object:Gem::Version
277
- version: "0"
473
+ version: 1.3.1
278
474
  version:
279
475
  requirements: []
280
476