Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make padrino more vim friendly.

  • Loading branch information...
commit 81c70db9ac2528537e04b1d67bc653b971ddc8f5 1 parent 3389edf
@DAddYE DAddYE authored
Showing with 302 additions and 302 deletions.
  1. +1 −1  .gitignore
  2. +1 −1  README.rdoc
  3. +1 −1  load_paths.rb
  4. +1 −1  padrino-admin/README.rdoc
  5. +5 −5 padrino-admin/lib/padrino-admin/access_control.rb
  6. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt
  7. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt
  8. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt
  9. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt
  10. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt
  11. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt
  12. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt
  13. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb
  14. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb
  15. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css
  16. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css
  17. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css
  18. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css
  19. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css
  20. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css
  21. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css
  22. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css
  23. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt
  24. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt
  25. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt
  26. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt
  27. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt
  28. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt
  29. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt
  30. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt
  31. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt
  32. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt
  33. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt
  34. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt
  35. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt
  36. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt
  37. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt
  38. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt
  39. +1 −1  padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt
  40. +1 −1  padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb
  41. +1 −1  padrino-admin/lib/padrino-admin/helpers/view_helpers.rb
  42. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/da.yml
  43. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/de.yml
  44. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/en.yml
  45. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/es.yml
  46. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/fr.yml
  47. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/hu.yml
  48. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/it.yml
  49. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/nl.yml
  50. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/no.yml
  51. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/pl.yml
  52. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml
  53. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/ru.yml
  54. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/tr.yml
  55. +1 −1  padrino-admin/lib/padrino-admin/locale/admin/uk.yml
  56. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/da.yml
  57. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/de.yml
  58. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/en.yml
  59. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/es.yml
  60. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/fr.yml
  61. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/hu.yml
  62. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/it.yml
  63. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/nl.yml
  64. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/no.yml
  65. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/pl.yml
  66. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml
  67. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/ru.yml
  68. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/tr.yml
  69. +1 −1  padrino-admin/lib/padrino-admin/locale/orm/uk.yml
  70. +2 −2 padrino-admin/lib/padrino-admin/utils/crypt.rb
  71. +1 −1  padrino-admin/padrino-admin.gemspec
  72. +1 −1  padrino-admin/test/fixtures/data_mapper.rb
  73. +1 −1  padrino-admin/test/generators/test_admin_page_generator.rb
  74. +1 −1  padrino-admin/test/helper.rb
  75. +1 −1  padrino-cache/lib/padrino-cache.rb
  76. +2 −2 padrino-cache/lib/padrino-cache/helpers/cache_store.rb
  77. +1 −1  padrino-cache/lib/padrino-cache/helpers/fragment.rb
  78. +2 −2 padrino-cache/lib/padrino-cache/helpers/page.rb
  79. +1 −1  padrino-cache/lib/padrino-cache/store/file.rb
  80. +1 −1  padrino-cache/lib/padrino-cache/store/memcache.rb
  81. +1 −1  padrino-cache/lib/padrino-cache/store/memory.rb
  82. +1 −1  padrino-cache/lib/padrino-cache/store/redis.rb
  83. +1 −1  padrino-cache/padrino-cache.gemspec
  84. +1 −1  padrino-cache/test/test_padrino_cache.rb
  85. +1 −1  padrino-core/README.rdoc
  86. +2 −2 padrino-core/lib/padrino-core.rb
  87. +3 −3 padrino-core/lib/padrino-core/application.rb
  88. +3 −3 padrino-core/lib/padrino-core/application/rendering.rb
  89. +4 −4 padrino-core/lib/padrino-core/application/routing.rb
  90. +1 −1  padrino-core/lib/padrino-core/caller.rb
  91. +1 −1  padrino-core/lib/padrino-core/cli/adapter.rb
  92. +1 −1  padrino-core/lib/padrino-core/cli/rake.rb
  93. +1 −1  padrino-core/lib/padrino-core/command.rb
  94. BIN  padrino-core/lib/padrino-core/images/404.png
  95. BIN  padrino-core/lib/padrino-core/images/500.png
  96. +1 −1  padrino-core/lib/padrino-core/loader.rb
  97. +1 −1  padrino-core/lib/padrino-core/logger.rb
  98. +2 −2 padrino-core/lib/padrino-core/mounter.rb
  99. +1 −1  padrino-core/lib/padrino-core/router.rb
  100. +1 −1  padrino-core/lib/padrino-core/server.rb
  101. +1 −1  padrino-core/lib/padrino-core/support_lite.rb
  102. +1 −1  padrino-core/lib/padrino-core/tasks.rb
  103. +1 −1  padrino-core/test/fixtures/apps/complex.rb
  104. +1 −1  padrino-core/test/fixtures/apps/simple.rb
  105. +1 −1  padrino-core/test/fixtures/dependencies/a.rb
  106. +1 −1  padrino-core/test/fixtures/dependencies/b.rb
  107. +1 −1  padrino-core/test/fixtures/dependencies/c.rb
  108. +1 −1  padrino-core/test/fixtures/dependencies/d.rb
  109. +1 −1  padrino-core/test/test_application.rb
  110. +1 −1  padrino-core/test/test_core.rb
  111. +1 −1  padrino-core/test/test_logger.rb
  112. +1 −1  padrino-core/test/test_mounter.rb
  113. +1 −1  padrino-core/test/test_reloader_complex.rb
  114. +1 −1  padrino-core/test/test_reloader_simple.rb
  115. +1 −1  padrino-core/test/test_rendering.rb
  116. +1 −1  padrino-core/test/test_restful_routing.rb
  117. +1 −1  padrino-core/test/test_router.rb
  118. +1 −1  padrino-gen/README.rdoc
  119. +1 −1  padrino-gen/lib/padrino-gen.rb
  120. +1 −1  padrino-gen/lib/padrino-gen/command.rb
  121. +1 −1  padrino-gen/lib/padrino-gen/generators/app.rb
  122. +1 −1  padrino-gen/lib/padrino-gen/generators/app/app.rb.tt
  123. +1 −1  padrino-gen/lib/padrino-gen/generators/cli.rb
  124. +1 −1  padrino-gen/lib/padrino-gen/generators/components/actions.rb
  125. +1 −1  padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb
  126. +1 −1  padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb
  127. +1 −1  padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb
  128. +1 −1  padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb
  129. +1 −1  padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb
  130. +1 −1  padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb
  131. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb
  132. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb
  133. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb
  134. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb
  135. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb
  136. +1 −1  padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb
  137. +1 −1  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb
  138. +1 −1  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss
  139. +1 −1  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss
  140. +1 −1  padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb
  141. +1 −1  padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb
  142. +1 −1  padrino-gen/lib/padrino-gen/generators/controller.rb
  143. +1 −1  padrino-gen/lib/padrino-gen/generators/mailer.rb
  144. +1 −1  padrino-gen/lib/padrino-gen/generators/migration.rb
  145. +1 −1  padrino-gen/lib/padrino-gen/generators/plugin.rb
  146. +1 −1  padrino-gen/lib/padrino-gen/generators/project/config/boot.rb
  147. +1 −1  padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt
  148. +1 −1  padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt
  149. +1 −1  padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt
  150. +1 −1  padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt
  151. +1 −1  padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb
  152. +1 −1  padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb
  153. +1 −1  padrino-gen/test/fixtures/admin_template.rb
  154. +1 −1  padrino-gen/test/fixtures/git_template.rb
  155. +1 −1  padrino-gen/test/fixtures/plugin_template.rb
  156. +1 −1  padrino-gen/test/fixtures/rake_template.rb
  157. +1 −1  padrino-gen/test/helper.rb
  158. +1 −1  padrino-gen/test/test_cli.rb
  159. +1 −1  padrino-gen/test/test_generator.rb
  160. +1 −1  padrino-gen/test/test_mailer_generator.rb
  161. +1 −1  padrino-gen/test/test_migration_generator.rb
  162. +1 −1  padrino-helpers/README.rdoc
  163. +1 −1  padrino-helpers/lib/padrino-helpers.rb
  164. +1 −1  padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb
  165. +3 −3 padrino-helpers/lib/padrino-helpers/form_builder/abstract_form_builder.rb
  166. +3 −3 padrino-helpers/lib/padrino-helpers/form_builder/standard_form_builder.rb
  167. +1 −1  padrino-helpers/lib/padrino-helpers/form_helpers.rb
  168. +1 −1  padrino-helpers/lib/padrino-helpers/format_helpers.rb
  169. +1 −1  padrino-helpers/lib/padrino-helpers/locale/da.yml
  170. +1 −1  padrino-helpers/lib/padrino-helpers/locale/en.yml
  171. +1 −1  padrino-helpers/lib/padrino-helpers/locale/es.yml
  172. +1 −1  padrino-helpers/lib/padrino-helpers/locale/hu.yml
  173. +1 −1  padrino-helpers/lib/padrino-helpers/locale/it.yml
  174. +1 −1  padrino-helpers/lib/padrino-helpers/locale/no.yml
  175. +1 −1  padrino-helpers/lib/padrino-helpers/locale/pl.yml
  176. +1 −1  padrino-helpers/lib/padrino-helpers/locale/pt_br.yml
  177. +1 −1  padrino-helpers/lib/padrino-helpers/locale/ru.yml
  178. +1 −1  padrino-helpers/lib/padrino-helpers/locale/tr.yml
  179. +1 −1  padrino-helpers/lib/padrino-helpers/locale/uk.yml
  180. +1 −1  padrino-helpers/lib/padrino-helpers/number_helpers.rb
  181. +3 −3 padrino-helpers/lib/padrino-helpers/output_helpers.rb
  182. +1 −1  padrino-helpers/lib/padrino-helpers/output_helpers/abstract_handler.rb
  183. +1 −1  padrino-helpers/lib/padrino-helpers/output_helpers/erb_handler.rb
  184. +1 −1  padrino-helpers/lib/padrino-helpers/output_helpers/haml_handler.rb
  185. +1 −1  padrino-helpers/lib/padrino-helpers/output_helpers/slim_handler.rb
  186. +1 −1  padrino-helpers/lib/padrino-helpers/render_helpers.rb
  187. +1 −1  padrino-helpers/lib/padrino-helpers/tag_helpers.rb
  188. +1 −1  padrino-helpers/lib/padrino-helpers/translation_helpers.rb
  189. +1 −1  padrino-helpers/padrino-helpers.gemspec
  190. +1 −1  padrino-helpers/test/fixtures/markup_app/app.rb
  191. +1 −1  padrino-helpers/test/fixtures/markup_app/views/capture_concat.erb
  192. +1 −1  padrino-helpers/test/fixtures/markup_app/views/content_for.erb
  193. +1 −1  padrino-helpers/test/fixtures/markup_app/views/content_for.haml
  194. +1 −1  padrino-helpers/test/fixtures/markup_app/views/content_for.slim
  195. +1 −1  padrino-helpers/test/fixtures/markup_app/views/content_tag.erb
  196. +1 −1  padrino-helpers/test/fixtures/markup_app/views/current_engine.erb
  197. +1 −1  padrino-helpers/test/fixtures/markup_app/views/current_engine.haml
  198. +1 −1  padrino-helpers/test/fixtures/markup_app/views/current_engine.slim
  199. +1 −1  padrino-helpers/test/fixtures/markup_app/views/fields_for.erb
  200. +1 −1  padrino-helpers/test/fixtures/markup_app/views/fields_for.haml
  201. +1 −1  padrino-helpers/test/fixtures/markup_app/views/fields_for.slim
  202. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_for.erb
  203. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_for.haml
  204. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_for.slim
  205. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_tag.erb
  206. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_tag.haml
  207. +1 −1  padrino-helpers/test/fixtures/markup_app/views/form_tag.slim
  208. +1 −1  padrino-helpers/test/fixtures/markup_app/views/link_to.erb
  209. +1 −1  padrino-helpers/test/fixtures/markup_app/views/link_to.haml
  210. +1 −1  padrino-helpers/test/fixtures/markup_app/views/link_to.slim
  211. +1 −1  padrino-helpers/test/fixtures/markup_app/views/mail_to.erb
  212. +1 −1  padrino-helpers/test/fixtures/markup_app/views/mail_to.haml
  213. +1 −1  padrino-helpers/test/fixtures/markup_app/views/mail_to.slim
  214. +1 −1  padrino-helpers/test/fixtures/markup_app/views/meta_tag.erb
  215. +1 −1  padrino-helpers/test/fixtures/markup_app/views/meta_tag.haml
  216. +1 −1  padrino-helpers/test/fixtures/markup_app/views/meta_tag.slim
  217. +1 −1  padrino-helpers/test/fixtures/markup_app/views/partials/_erb.erb
  218. +1 −1  padrino-helpers/test/fixtures/markup_app/views/partials/_haml.haml
  219. +1 −1  padrino-helpers/test/fixtures/markup_app/views/partials/_slim.slim
  220. +1 −1  padrino-helpers/test/fixtures/markup_app/views/simple_partial.erb
  221. +1 −1  padrino-helpers/test/fixtures/markup_app/views/simple_partial.haml
  222. +1 −1  padrino-helpers/test/fixtures/markup_app/views/simple_partial.slim
  223. +1 −1  padrino-helpers/test/fixtures/render_app/app.rb
  224. +1 −1  padrino-helpers/test/fixtures/render_app/views/current_engine.haml
  225. +1 −1  padrino-helpers/test/fixtures/render_app/views/current_engines/_erb.erb
  226. +1 −1  padrino-helpers/test/fixtures/render_app/views/current_engines/_haml.haml
  227. +1 −1  padrino-helpers/test/fixtures/render_app/views/current_engines/_slim.slim
  228. +1 −1  padrino-helpers/test/fixtures/render_app/views/erb/test.erb
  229. +1 −1  padrino-helpers/test/fixtures/render_app/views/explicit_engine.haml
  230. +1 −1  padrino-helpers/test/fixtures/render_app/views/haml/test.haml
  231. +1 −1  padrino-helpers/test/fixtures/render_app/views/template/_user.haml
  232. +1 −1  padrino-helpers/test/fixtures/render_app/views/template/haml_template.haml
  233. +1 −1  padrino-helpers/test/fixtures/render_app/views/template/some_template.haml
  234. +1 −1  padrino-helpers/test/helper.rb
  235. +1 −1  padrino-helpers/test/test_asset_tag_helpers.rb
  236. +1 −1  padrino-helpers/test/test_form_helpers.rb
  237. +1 −1  padrino-helpers/test/test_format_helpers.rb
  238. +1 −1  padrino-helpers/test/test_number_helpers.rb
  239. +1 −1  padrino-helpers/test/test_output_helpers.rb
  240. +1 −1  padrino-helpers/test/test_render_helpers.rb
  241. +1 −1  padrino-helpers/test/test_tag_helpers.rb
  242. +1 −1  padrino-mailer/README.rdoc
  243. +1 −1  padrino-mailer/lib/padrino-mailer.rb
  244. +2 −2 padrino-mailer/lib/padrino-mailer/base.rb
  245. +3 −3 padrino-mailer/lib/padrino-mailer/ext.rb
  246. +3 −3 padrino-mailer/lib/padrino-mailer/helpers.rb
  247. +1 −1  padrino-mailer/lib/padrino-mailer/mime.rb
  248. +1 −1  padrino-mailer/padrino-mailer.gemspec
  249. +1 −1  padrino-mailer/test/fixtures/basic.erb
  250. +1 −1  padrino-mailer/test/fixtures/layout.erb
  251. +1 −1  padrino-mailer/test/fixtures/padrino_app/app.rb
  252. +1 −1  padrino-mailer/test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb
  253. +1 −1  padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/anniversary.erb
  254. +1 −1  padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/birthday.erb
  255. +1 −1  padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/foo_message.erb
  256. +1 −1  padrino-mailer/test/fixtures/padrino_app/views/mailers/sample/helper_message.erb
  257. +1 −1  padrino-mailer/test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb
  258. +1 −1  padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb
  259. +1 −1  padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/birthday.erb
  260. +1 −1  padrino-mailer/test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb
  261. +1 −1  padrino-mailer/test/fixtures/views/mailers/alternate/foo.erb
  262. +1 −1  padrino-mailer/test/fixtures/views/mailers/bar.erb
  263. +1 −1  padrino-mailer/test/fixtures/views/mailers/i18n/hello.en.erb
  264. +1 −1  padrino-mailer/test/fixtures/views/mailers/i18n/hello.it.erb
  265. +1 −1  padrino-mailer/test/fixtures/views/mailers/layouts/sample.erb
  266. +1 −1  padrino-mailer/test/fixtures/views/mailers/multipart/basic.html.erb
  267. +1 −1  padrino-mailer/test/fixtures/views/mailers/multipart/basic.plain.erb
  268. +1 −1  padrino-mailer/test/fixtures/views/mailers/sample/foo.erb
  269. +1 −1  padrino-mailer/test/helper.rb
  270. +1 −1  padrino-mailer/test/test_email.rb
  271. +1 −1  padrino-mailer/test/test_message.rb
  272. +1 −1  padrino-mailer/test/test_padrino_mailer.rb
  273. +1 −1  padrino-mailer/test/test_part.rb
  274. +1 −1  padrino/README.rdoc
  275. +1 −1  padrino/padrino.gemspec
  276. +1 −1  padrino/test/helper.rb
  277. +1 −1  padrino/test/test_padrino.rb
View
2  .gitignore
@@ -1,5 +1,5 @@
-.bundle
Gemfile.lock
+.bundle
.rvmrc
.yardoc
*.rbc
View
2  README.rdoc
@@ -81,4 +81,4 @@ The individual Padrino sub-gems also contain README's which outlines their funct
== Copyright
-Copyright (c) 2011 Padrino. See LICENSE for details.
+Copyright (c) 2011 Padrino. See LICENSE for details.
View
2  load_paths.rb
@@ -3,4 +3,4 @@
else
require 'rubygems'
end
-require 'bundler/setup'
+require 'bundler/setup'
View
2  padrino-admin/README.rdoc
@@ -67,4 +67,4 @@ For a more complete look at using the Admin panel functionality and access featu
== Copyright
-Copyright (c) 2011 Padrino. See LICENSE for details.
+Copyright (c) 2011 Padrino. See LICENSE for details.
View
10 padrino-admin/lib/padrino-admin/access_control.rb
@@ -1,6 +1,6 @@
module Padrino
module Admin
- class AccessControlError < StandardError ## @private
+ class AccessControlError < StandardError # @private
end
##
# This module give to a padrino application an access control functionality
@@ -22,7 +22,7 @@ def registered(app)
end
class Base
- def initialize ## @private
+ def initialize # @private
@roles, @authorizations, @project_modules = [], [], []
end
@@ -80,7 +80,7 @@ def allowed?(account=nil, path=nil)
class Authorization
attr_reader :allowed, :denied, :project_modules, :roles
- def initialize(*roles, &block) ## @private
+ def initialize(*roles, &block) # @private
@roles = roles
@allowed = []
@denied = []
@@ -117,7 +117,7 @@ def project_module(name, path)
class ProjectModule
attr_reader :name
- def initialize(name, path) ## @private
+ def initialize(name, path) # @private
@name, @path = name, path
end
@@ -146,4 +146,4 @@ def path(prefix=nil)
end # ProjectModule
end # AccessControl
end # Admin
-end # Padrino
+end # Padrino
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/activerecord.rb.tt
@@ -35,4 +35,4 @@ class Account < ActiveRecord::Base
def password_required
crypted_password.blank? || password.present?
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/couchrest.rb.tt
@@ -63,4 +63,4 @@ class Account < CouchRest::Model::Base
errors.add(:email, "is not unique")
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/datamapper.rb.tt
@@ -52,4 +52,4 @@ class Account
def encrypt_password
self.crypted_password = ::BCrypt::Password.create(password) if password.present?
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/mongoid.rb.tt
@@ -50,4 +50,4 @@ class Account
def password_required
crypted_password.blank? || self.password.present?
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/mongomapper.rb.tt
@@ -43,4 +43,4 @@ class Account
def password_required
crypted_password.blank? || password.present?
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/seeds.rb.tt
@@ -25,4 +25,4 @@ else
account.errors.full_messages.each { |m| shell.say " - #{m}" }
end
-shell.say ""
+shell.say ""
View
2  padrino-admin/lib/padrino-admin/generators/templates/account/sequel.rb.tt
@@ -49,4 +49,4 @@ class Account < ::Sequel::Model
def password_required
crypted_password.blank? || password.present?
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/app/controllers/base.rb
@@ -3,4 +3,4 @@
get :index, :map => "/" do
render "base/index"
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/app/controllers/sessions.rb
@@ -22,4 +22,4 @@
set_current_account(nil)
redirect url(:sessions, :new)
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/base.css
@@ -92,4 +92,4 @@ ul.list li .item .avatar{float:left;margin:0 5px 5px 0;width:30px;height:30px;}
#box .block h2{padding:10px 15px;margin:0;}
#box .block .content{padding:10px 20px;}
/* custom */
-.code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
+.code{font-family: Courier, 'Courier New', monospace;color:#36393D;}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/amro/style.css
@@ -361,4 +361,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/blue/style.css
@@ -284,4 +284,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/djime-cerulean/style.css
@@ -302,4 +302,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/olive/style.css
@@ -342,4 +342,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/orange/style.css
@@ -266,4 +266,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/reidb-greenish/style.css
@@ -299,4 +299,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/assets/stylesheets/themes/ruby/style.css
@@ -278,4 +278,4 @@ ul.list li .item .avatar {
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-webkit-border-bottom-right-radius: 4px;
-}
+}
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/_sidebar.erb.tt
@@ -10,4 +10,4 @@
<li><%%= link_to "Link 1" %></li>
<li><%%= link_to "Link 1" %></li>
</ul>
-</div>
+</div>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/app/base/index.erb.tt
@@ -14,4 +14,4 @@
</div>
</div>
</div>
-<%% content_for :sidebar, partial("base/sidebar") %>
+<%% content_for :sidebar, partial("base/sidebar") %>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/app/layouts/application.erb.tt
@@ -41,4 +41,4 @@
</div>
</div>
</body>
-</html>
+</html>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/app/sessions/new.erb.tt
@@ -53,4 +53,4 @@
</div>
</div>
</body>
-</html>
+</html>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/page/_form.erb.tt
@@ -8,4 +8,4 @@
<div class="group navform wat-cf">
<%%= f.submit pat(:save), :class => :button %>
<%%= f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button %>
-</div>
+</div>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/page/edit.erb.tt
@@ -15,4 +15,4 @@
</div>
</div>
</div>
-<%% content_for :sidebar, partial("base/sidebar") %>
+<%% content_for :sidebar, partial("base/sidebar") %>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/page/index.erb.tt
@@ -33,4 +33,4 @@
</div>
</div>
</div>
-<%% content_for :sidebar, partial("base/sidebar") %>
+<%% content_for :sidebar, partial("base/sidebar") %>
View
2  padrino-admin/lib/padrino-admin/generators/templates/erb/page/new.erb.tt
@@ -14,4 +14,4 @@
</div>
</div>
</div>
-<%% content_for :sidebar, partial("base/sidebar") %>
+<%% content_for :sidebar, partial("base/sidebar") %>
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/_sidebar.haml.tt
@@ -8,4 +8,4 @@
%h3 Links
%ul.navigation
%li=link_to "Link 1"
- %li=link_to "Link 2"
+ %li=link_to "Link 2"
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/app/base/index.haml.tt
@@ -22,4 +22,4 @@
%span.hightlight
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
--content_for :sidebar, partial("base/sidebar")
+-content_for :sidebar, partial("base/sidebar")
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/app/layouts/application.haml.tt
@@ -28,4 +28,4 @@
=Time.now.year
Your Site - Powered by
=link_to "Padrino v.#{Padrino.version}", "http://padrino.github.com", :target => :_blank
- #sidebar=yield_content :sidebar
+ #sidebar=yield_content :sidebar
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/app/sessions/new.haml.tt
@@ -27,4 +27,4 @@
%label.label.right Bypass login?
.right=check_box_tag :bypass
.group.navform.wat-cf
- .right=submit_tag('Sign In', :class => :button)
+ .right=submit_tag('Sign In', :class => :button)
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/page/_form.haml.tt
@@ -9,4 +9,4 @@
.group.navform.wat-cf
=f.submit pat(:save), :class => :button
- =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
+ =f.submit pat(:cancel), :onclick => "window.location='#{url(:<%= @orm.name_plural %>, :index)}';return false", :class => :button
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/page/edit.haml.tt
@@ -12,4 +12,4 @@
-form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :update, :id => @<%= @orm.name_singular %>.id), :method => :put, :class => :form do |f|
=partial "<%= @orm.name_plural %>/form", :locals => { :f => f }
--content_for :sidebar, partial("base/sidebar")
+-content_for :sidebar, partial("base/sidebar")
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/page/index.haml.tt
@@ -26,4 +26,4 @@
.actions-bar.wat-cf
.actions="&nbsp;"
--content_for :sidebar, partial("base/sidebar")
+-content_for :sidebar, partial("base/sidebar")
View
2  padrino-admin/lib/padrino-admin/generators/templates/haml/page/new.haml.tt
@@ -11,4 +11,4 @@
-form_for :<%= @orm.name_singular %>, url(:<%= @orm.name_plural %>, :create), :class => :form do |f|
=partial "<%= @orm.name_plural %>/form", :locals => { :f => f }
--content_for :sidebar, partial("base/sidebar")
+-content_for :sidebar, partial("base/sidebar")
View
2  padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt
@@ -44,4 +44,4 @@ Admin.controllers :<%= @orm.name_plural %> do
end
redirect url(:<%= @orm.name_plural %>, :index)
end
-end
+end
View
2  padrino-admin/lib/padrino-admin/helpers/authentication_helpers.rb
@@ -99,4 +99,4 @@ def login_from_session
end # AuthenticationHelpers
end # Helpers
end # Admin
-end # Padrino
+end # Padrino
View
2  padrino-admin/lib/padrino-admin/helpers/view_helpers.rb
@@ -46,4 +46,4 @@ def model_translate(model)
end # ViewHelpers
end # Helpers
end # Admin
-end # Padrino
+end # Padrino
View
2  padrino-admin/lib/padrino-admin/locale/admin/da.yml
@@ -13,4 +13,4 @@ da:
all: Alle
profile: Profil
settings: Indstillinger
- logout: Log ud
+ logout: Log ud
View
2  padrino-admin/lib/padrino-admin/locale/admin/de.yml
@@ -13,4 +13,4 @@ de:
all: Alle
profile: Benutzerkonto
settings: Einstellungen
- logout: Abmelden
+ logout: Abmelden
View
2  padrino-admin/lib/padrino-admin/locale/admin/en.yml
@@ -13,4 +13,4 @@ en:
all: All
profile: Profile
settings: Settings
- logout: Logout
+ logout: Logout
View
2  padrino-admin/lib/padrino-admin/locale/admin/es.yml
@@ -13,4 +13,4 @@ es:
all: Todos
profile: Perfil
settings: Configuración
- logout: Cerrar sesión
+ logout: Cerrar sesión
View
2  padrino-admin/lib/padrino-admin/locale/admin/fr.yml
@@ -13,4 +13,4 @@ fr:
all: Tous
profile: Profile
settings: Paramètres
- logout: Déconnexion
+ logout: Déconnexion
View
2  padrino-admin/lib/padrino-admin/locale/admin/hu.yml
@@ -13,4 +13,4 @@ hu:
all: mind
profile: adatlap
settings: beállítások
- logout: kilépés
+ logout: kilépés
View
2  padrino-admin/lib/padrino-admin/locale/admin/it.yml
@@ -13,4 +13,4 @@ it:
all: Tutti
profile: Profilo
settings: Impostazioni
- logout: Esci
+ logout: Esci
View
2  padrino-admin/lib/padrino-admin/locale/admin/nl.yml
@@ -13,4 +13,4 @@ nl:
all: Alle
profile: Profiel
settings: Voorkeuren
- logout: Afmelden
+ logout: Afmelden
View
2  padrino-admin/lib/padrino-admin/locale/admin/no.yml
@@ -13,4 +13,4 @@
all: Alle
profile: Profil
settings: Instillinger
- logout: Logg ut
+ logout: Logg ut
View
2  padrino-admin/lib/padrino-admin/locale/admin/pl.yml
@@ -13,4 +13,4 @@ pl:
all: Wszystkie
profile: Profil
settings: Ustawienia
- logout: Wyloguj
+ logout: Wyloguj
View
2  padrino-admin/lib/padrino-admin/locale/admin/pt_br.yml
@@ -13,4 +13,4 @@ pt_br:
all: Todos
profile: Perfil
settings: Preferências
- logout: Sair
+ logout: Sair
View
2  padrino-admin/lib/padrino-admin/locale/admin/ru.yml
@@ -13,4 +13,4 @@ ru:
all: Все
profile: Профиль
settings: Настройки
- logout: Выход
+ logout: Выход
View
2  padrino-admin/lib/padrino-admin/locale/admin/tr.yml
@@ -13,4 +13,4 @@ tr:
all: Hepsi
profile: Profil
settings: Ayarlar
- logout: Çıkış
+ logout: Çıkış
View
2  padrino-admin/lib/padrino-admin/locale/admin/uk.yml
@@ -13,4 +13,4 @@ uk:
all: Всі
profile: Профіль
settings: Налаштування
- logout: Вихід
+ logout: Вихід
View
2  padrino-admin/lib/padrino-admin/locale/orm/da.yml
@@ -23,4 +23,4 @@ da:
even: "skal være lige"
record_invalid: "Valideringsfejl: %{errors}"
content_type: "fileformatet er ikke understøttet"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/de.yml
@@ -23,4 +23,4 @@ de:
even: "muss gerade sein"
record_invalid: "Validierung schlug fehl: %{errors}"
content_type: "Datei-Format wird nicht unterstützt"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/en.yml
@@ -23,4 +23,4 @@ en:
even: "must be even"
record_invalid: "Validation failed: %{errors}"
content_type: "file format not supported"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/es.yml
@@ -23,4 +23,4 @@ es:
even: "debe ser par"
record_invalid: "Fallo la validación: %{errors}"
content_type: "formato de archivo no soportado"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/fr.yml
@@ -23,4 +23,4 @@ fr:
even: "doit être pair"
record_invalid: "La validation a échoué: %{errors}"
content_type: "format de fichier non pris en charge"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/hu.yml
@@ -23,4 +23,4 @@ hu:
even: ": párosnak kell lennie"
record_invalid: "Érvénytelen: %{errors}"
content_type: ": a fájl formátuma nem támogatott"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/it.yml
@@ -23,4 +23,4 @@ it:
even: "deve essere pari"
record_invalid: "Validazione fallita: %{errors}"
content_type: "il seguente tipo di file non è supportato"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/nl.yml
@@ -23,4 +23,4 @@ nl:
even: "moet even zijn"
record_invalid: "Validatie mislukt: %{errors}"
content_type: "bestandsformaat niet ondersteund"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/no.yml
@@ -23,4 +23,4 @@
even: "skal være lik"
record_invalid: "Valideringsfeil: %{errors}"
content_type: "fileformatet er ikke støttet"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/pl.yml
@@ -24,4 +24,4 @@ pl:
even: "musi być parzyste"
record_invalid: "Negatywne sprawdzenie poprawności: %{errors}"
content_type: "nieodozwolony format pliku"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/pt_br.yml
@@ -23,4 +23,4 @@ pt_br:
even: "deve ser par"
record_invalid: "Falha na validação: %{errors}"
content_type: "o seguinte tipo de arquivo não é suportado"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/ru.yml
@@ -23,4 +23,4 @@ ru:
even: "должно быть четным"
record_invalid: "Проверка не удалась: %{errors}"
content_type: "формат файла не поддерживается"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/tr.yml
@@ -23,4 +23,4 @@ tr:
even: "çift olmalı"
record_invalid: "Doğrulama gerçekleşmedi: %{errors}"
content_type: "Dosya biçimi desteklenmiyor"
- activerecord: *activemodel
+ activerecord: *activemodel
View
2  padrino-admin/lib/padrino-admin/locale/orm/uk.yml
@@ -23,4 +23,4 @@ uk:
even: "повинно бути парним"
record_invalid: "Перевірка не вдалася: %{errors}"
content_type: "формат файлу не підтримується"
- activerecord: *activemodel
+ activerecord: *activemodel
View
4 padrino-admin/lib/padrino-admin/utils/crypt.rb
@@ -26,7 +26,7 @@ def encrypt(password)
end
private
- def build_cipher(type, password) ## @private
+ def build_cipher(type, password) # @private
cipher = OpenSSL::Cipher::Cipher.new("DES-EDE3-CBC").send(type)
cipher.pkcs5_keyivgen(password)
cipher
@@ -34,4 +34,4 @@ def build_cipher(type, password) ## @private
end # Crypt
end # Utils
end # Admin
-end # Padrino
+end # Padrino
View
2  padrino-admin/padrino-admin.gemspec
@@ -24,4 +24,4 @@ Gem::Specification.new do |s|
s.add_dependency("padrino-core", Padrino.version)
s.add_dependency("padrino-helpers", Padrino.version)
-end
+end
View
2  padrino-admin/test/fixtures/data_mapper.rb
@@ -92,4 +92,4 @@ def password_required
%w(News Press HowTo).each do |c|
admin.categories.create(:name => c)
editor.categories.create(:name => c)
-end
+end
View
2  padrino-admin/test/generators/test_admin_page_generator.rb
@@ -129,4 +129,4 @@ def teardown
assert_match_in_file 'role.project_module :pages, "/pages"', "#{@apptmp}/sample_project/admin/app.rb"
end
end
-end
+end
View
2  padrino-admin/test/helper.rb
@@ -89,4 +89,4 @@ def method_missing(name, *args, &block)
end
alias :response :last_response
-end
+end
View
2  padrino-cache/lib/padrino-cache.rb
@@ -90,7 +90,7 @@ def registered(app)
end
alias :included :registered
- def padrino_route_added(route, verb, path, args, options, block) ## @private
+ def padrino_route_added(route, verb, path, args, options, block) # @private
Padrino::Cache::Helpers::Page.padrino_route_added(route, verb, path, args, options, block)
end
end
View
4 padrino-cache/lib/padrino-cache/helpers/cache_store.rb
@@ -1,7 +1,7 @@
module Padrino
module Cache
module Helpers
- module CacheStore ## @private
+ module CacheStore # @private
def expire(*key)
if key.size == 1 and key.first.is_a?(String)
settings.cache.delete(key)
@@ -12,4 +12,4 @@ def expire(*key)
end # CacheStore
end # Helpers
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/lib/padrino-cache/helpers/fragment.rb
@@ -57,4 +57,4 @@ def cache(key, opts = nil, &block)
end # Fragment
end # Helpers
end # Cache
-end # Padrino
+end # Padrino
View
4 padrino-cache/lib/padrino-cache/helpers/page.rb
@@ -54,7 +54,7 @@ def cache_key(name)
@_cache_key = name
end
- def self.padrino_route_added(route, verb, path, args, options, block) ## @private
+ def self.padrino_route_added(route, verb, path, args, options, block) # @private
if route.cache and %w(GET HEAD).include?(verb)
route.add_before_filter(Proc.new {
if settings.caching?
@@ -83,4 +83,4 @@ def self.padrino_route_added(route, verb, path, args, options, block) ## @privat
end # Page
end # Helpers
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/lib/padrino-cache/store/file.rb
@@ -96,4 +96,4 @@ def init
end # File
end # Store
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/lib/padrino-cache/store/memcache.rb
@@ -77,4 +77,4 @@ def flush
end # Memcached
end # Store
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/lib/padrino-cache/store/memory.rb
@@ -88,4 +88,4 @@ def flush
end # Memory
end # Store
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/lib/padrino-cache/store/redis.rb
@@ -73,4 +73,4 @@ def flush
end # Redis
end # Store
end # Cache
-end # Padrino
+end # Padrino
View
2  padrino-cache/padrino-cache.gemspec
@@ -23,4 +23,4 @@ Gem::Specification.new do |s|
s.rdoc_options = ["--charset=UTF-8"]
s.add_runtime_dependency("padrino-core", Padrino.version)
-end
+end
View
2  padrino-cache/test/test_padrino_cache.rb
@@ -190,4 +190,4 @@ def teardown
get "/foo"
assert_equal 500, status
end
-end
+end
View
2  padrino-core/README.rdoc
@@ -291,4 +291,4 @@ For a complete overview of Padrino terminal commands, check out the
== Copyright
-Copyright (c) 2011 Padrino. See LICENSE for details.
+Copyright (c) 2011 Padrino. See LICENSE for details.
View
4 padrino-core/lib/padrino-core.rb
@@ -9,7 +9,7 @@
PADRINO_ROOT = ENV["PADRINO_ROOT"] ||= File.dirname(Padrino.first_caller) unless defined?(PADRINO_ROOT)
module Padrino
- class ApplicationLoadError < RuntimeError ## @private
+ class ApplicationLoadError < RuntimeError # @private
end
class << self
@@ -116,4 +116,4 @@ def use(m, *args, &block)
middleware << [m, args, block]
end
end # self
-end # Padrino
+end # Padrino
View
6 padrino-core/lib/padrino-core/application.rb
@@ -1,5 +1,5 @@
module Padrino
- class ApplicationSetupError < RuntimeError ## @private
+ class ApplicationSetupError < RuntimeError # @private
end
##
@@ -11,7 +11,7 @@ class Application < Sinatra::Base
class << self
- def inherited(base) ## @private
+ def inherited(base) # @private
logger.devel "Setup #{base}"
CALLERS_TO_IGNORE.concat(PADRINO_IGNORE_CALLERS)
base.default_configuration!
@@ -256,4 +256,4 @@ def render(*args)
end
end # render method
end # Application
-end # Padrino
+end # Padrino
View
6 padrino-core/lib/padrino-core/application/rendering.rb
@@ -6,7 +6,7 @@ module Padrino
# enhanced layout functionality, locale enabled rendering, among other features.
#
module Rendering
- class TemplateNotFound < RuntimeError ## @private
+ class TemplateNotFound < RuntimeError # @private
end
##
@@ -90,7 +90,7 @@ def fetch_layout_path(given_layout=nil)
module InstanceMethods
attr_reader :current_engine
- def content_type(type=nil, params={}) ## @private
+ def content_type(type=nil, params={}) # @private
type.nil? ? @_content_type : super(type, params)
end
@@ -225,4 +225,4 @@ def locale
end
end # InstanceMethods
end # Rendering
-end # Padrino
+end # Padrino
View
8 padrino-core/lib/padrino-core/application/routing.rb
@@ -1,7 +1,7 @@
require 'http_router' unless defined?(HttpRouter)
require 'padrino-core/support_lite' unless defined?(SupportLite)
-class Sinatra::Request ## @private
+class Sinatra::Request # @private
attr_accessor :route_obj
def controller
@@ -9,7 +9,7 @@ def controller
end
end
-class HttpRouter ## @private
+class HttpRouter # @private
def rewrite_partial_path_info(env, request); end
def rewrite_path_info(env, request); end
@@ -53,7 +53,7 @@ def process_destination_path(path, env)
end
end
- class Route ## @private
+ class Route # @private
attr_reader :before_filters, :after_filters
attr_accessor :custom_conditions, :use_layout, :controller, :cache
@@ -125,7 +125,7 @@ module Routing
CONTENT_TYPE_ALIASES = { :htm => :html } unless defined?(CONTENT_TYPE_ALIASES)
ROUTE_PRIORITY = {:high => 0, :normal => 1, :low => 2} unless defined?(ROUTE_PRIORITY)
- class UnrecognizedException < RuntimeError ## @private
+ class UnrecognizedException < RuntimeError # @private
end
##
View
2  padrino-core/lib/padrino-core/caller.rb
@@ -42,4 +42,4 @@ def self.caller_files
reject { |file,line| PADRINO_IGNORE_CALLERS.any? { |pattern| file =~ pattern } }.
map { |file,line| file }
end
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/cli/adapter.rb
@@ -21,4 +21,4 @@ def stop(options)
end # self
end # Adapter
end # Cli
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/cli/rake.rb
@@ -21,4 +21,4 @@ def self.init(init=false)
def shell
@_shell ||= Thor::Base.shell.new
-end
+end
View
2  padrino-core/lib/padrino-core/command.rb
@@ -24,4 +24,4 @@ def self.ruby_command
ruby
end
end
-end # Padrino
+end # Padrino
View
BIN  padrino-core/lib/padrino-core/images/404.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  padrino-core/lib/padrino-core/images/500.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  padrino-core/lib/padrino-core/loader.rb
@@ -179,4 +179,4 @@ def set_load_paths(*paths)
$:.uniq!; load_paths.uniq!
end
end # self
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/logger.rb
@@ -347,7 +347,7 @@ def extract_content_length(headers)
end # Logger
end # Padrino
-module Kernel ## @private
+module Kernel # @private
##
# Define a logger available every where in our app
#
View
4 padrino-core/lib/padrino-core/mounter.rb
@@ -9,7 +9,7 @@ module Padrino
# Mounter.new("blog_app", :app_file => "/path/to/blog/app.rb").to("/blog")
#
class Mounter
- class MounterException < RuntimeError ## @private
+ class MounterException < RuntimeError # @private
end
attr_accessor :name, :uri_root, :app_file, :app_class, :app_root, :app_obj, :app_host
@@ -189,4 +189,4 @@ def mount(name, options={})
Mounter.new(name, options)
end
end # Mounter
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/router.rb
@@ -76,4 +76,4 @@ def call(env)
[404, {"Content-Type" => "text/plain", "X-Cascade" => "pass"}, ["Not Found: #{rPath}"]]
end
end # Router
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/server.rb
@@ -67,4 +67,4 @@ def self.detect_rack_handler
fail "Server handler (#{Handlers.join(', ')}) not found."
end
end # Server
-end # Padrino
+end # Padrino
View
2  padrino-core/lib/padrino-core/support_lite.rb
@@ -144,4 +144,4 @@ def self.glob_require(glob_pattern, file_path=nil)
##
# Used to know if this file has already been required
#
-module SupportLite; end
+module SupportLite; end
View
2  padrino-core/lib/padrino-core/tasks.rb
@@ -20,4 +20,4 @@ def self.files
@files ||= []
end
end # Tasks
-end # Padrino
+end # Padrino
View
2  padrino-core/test/fixtures/apps/complex.rb
@@ -29,4 +29,4 @@ class Complex2Demo < Padrino::Application
Complex2Demo.controllers do
end
-Padrino.load!
+Padrino.load!
View
2  padrino-core/test/fixtures/apps/simple.rb
@@ -30,4 +30,4 @@ class SimpleDemo < Padrino::Application
# Then run it from your console: ruby -I"lib" test/fixtures/apps/simple.rb
#
-Padrino.load!
+Padrino.load!
View
2  padrino-core/test/fixtures/dependencies/a.rb
@@ -6,4 +6,4 @@
# But here we need some of b.rb
A_result = [B, C]
-A = "A"
+A = "A"
View
2  padrino-core/test/fixtures/dependencies/b.rb
@@ -1,4 +1,4 @@
# But here we need some of c.rb and a.rb
B_result = C
-B = "B"
+B = "B"
View
2  padrino-core/test/fixtures/dependencies/c.rb
@@ -1 +1 @@
-C = "C"
+C = "C"
View
2  padrino-core/test/fixtures/dependencies/d.rb
@@ -1,4 +1,4 @@
D = 0 unless defined?(D)
D += 1
-raise "SomeThing"
+raise "SomeThing"
View
2  padrino-core/test/test_application.rb
@@ -80,4 +80,4 @@ def teardown
end # content_type to :html
end # application functionality
-end
+end
View
2  padrino-core/test/test_core.rb
@@ -76,4 +76,4 @@ class Foo < Padrino::Application; end
assert_equal "yes", res["Middleware-Called"]
end
end
-end
+end
View
2  padrino-core/test/test_logger.rb
@@ -88,4 +88,4 @@ def setup_logger(options={})
end
end
end
-end
+end
View
2  padrino-core/test/test_mounter.rb
@@ -173,4 +173,4 @@ class ::PublicApp < Padrino::Application
assert_equal File.read(__FILE__), res.body
end
end
-end
+end
View
2  padrino-core/test/test_reloader_complex.rb
@@ -70,4 +70,4 @@ class TestComplexReloader < Test::Unit::TestCase
end
end
end
-end
+end
View
2  padrino-core/test/test_reloader_simple.rb
@@ -94,4 +94,4 @@ class TestSimpleReloader < Test::Unit::TestCase
assert_equal 0, @app.templates.size
end
end
-end
+end
View
2  padrino-core/test/test_rendering.rb
@@ -434,4 +434,4 @@ def is; "IS."; end
assert_equal 'THIS. IS. SPARTA!', body
end
end
-end
+end
View
2  padrino-core/test/test_restful_routing.rb
@@ -30,4 +30,4 @@ class TestRouting < Test::Unit::TestCase
delete "/parents/1/hi"
assert_equal "/parents/1/hi delete", body
end
-end
+end
View
2  padrino-core/test/test_router.rb
@@ -143,4 +143,4 @@ def setup
res = Rack::MockRequest.new(Padrino.application).get("/foo/", "HTTP_HOST" => "bar.padrino.org")
assert res.ok?
end
-end
+end
View
2  padrino-gen/README.rdoc
@@ -160,4 +160,4 @@ To learn more about the mailer generator, check out the guide to
== Copyright
-Copyright (c) 2011 Padrino. See LICENSE for details.
+Copyright (c) 2011 Padrino. See LICENSE for details.
View
2  padrino-gen/lib/padrino-gen.rb
@@ -74,4 +74,4 @@ def load_components!
##
# We add our tasks to padrino-core
#
-Padrino::Tasks.files << Dir[File.dirname(__FILE__) + "/padrino-gen/padrino-tasks/**/*.rb"]
+Padrino::Tasks.files << Dir[File.dirname(__FILE__) + "/padrino-gen/padrino-tasks/**/*.rb"]
View
2  padrino-gen/lib/padrino-gen/command.rb
@@ -9,4 +9,4 @@ def self.bin_gen(*args)
@_padrino_gen_bin ||= [Padrino.ruby_command, File.expand_path("../../../bin/padrino-gen", __FILE__)]
args.empty? ? @_padrino_gen_bin : system(args.unshift(@_padrino_gen_bin).join(" "))
end
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/app.rb
@@ -51,4 +51,4 @@ def create_app
end
end # App
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/app/app.rb.tt
@@ -56,4 +56,4 @@ class <%= @app_name %> < Padrino::Application
# render 'errors/505'
# end
#
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/cli.rb
@@ -50,4 +50,4 @@ def setup
end
end # Cli
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/components/actions.rb
@@ -117,4 +117,4 @@ def controller_actions(fields)
end # Actions
end # Components
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/components/mocks/mocha.rb
@@ -6,4 +6,4 @@ def setup_mock
else
insert_mocking_include "Mocha::API"
end
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/mocks/rr.rb
@@ -8,4 +8,4 @@ def setup_mock
else
insert_mocking_include "RR::Adapters::RRMethods", :path => "test/test_config.rb"
end
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/renderers/erb.rb
@@ -1,3 +1,3 @@
def setup_renderer
require_dependencies 'erubis', :version => "~> 2.7.0"
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/renderers/haml.rb
@@ -1,3 +1,3 @@
def setup_renderer
require_dependencies 'haml'
-end
View
2  padrino-gen/lib/padrino-gen/generators/components/renderers/liquid.rb
@@ -1,4 +1,4 @@
def setup_renderer
require_dependencies 'liquid', :version => "= 2.1.2"
require_dependencies 'liquify'
-end
View
2  padrino-gen/lib/padrino-gen/generators/components/renderers/slim.rb
@@ -1,3 +1,3 @@
def setup_renderer
require_dependencies 'slim'
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/dojo.rb
@@ -7,4 +7,4 @@ def setup_script
copy_file('templates/static/ujs/dojo.js', destination_root("/public/javascripts/dojo-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/extcore.rb
@@ -7,4 +7,4 @@ def setup_script
copy_file('templates/static/ujs/ext.js', destination_root("/public/javascripts/ext-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/jquery.rb
@@ -7,4 +7,4 @@ def setup_script
copy_file('templates/static/ujs/jquery.js', destination_root("/public/javascripts/jquery-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/mootools.rb
@@ -7,4 +7,4 @@ def setup_script
copy_file('templates/static/ujs/mootools.js', destination_root("/public/javascripts/mootools-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/prototype.rb
@@ -9,4 +9,4 @@ def setup_script
copy_file('templates/static/ujs/prototype.js', destination_root("/public/javascripts/prototype-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/scripts/rightjs.rb
@@ -7,4 +7,4 @@ def setup_script
copy_file('templates/static/ujs/right.js', destination_root("/public/javascripts/right-ujs.js"))
end
create_file(destination_root('/public/javascripts/application.js'), "// Put your application scripts here")
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass.rb
@@ -36,4 +36,4 @@ def setup_stylesheet
inject_into_file destination_root('/app/app.rb'), COMPASS_REGISTER, :after => "register Padrino::Helpers\n"
directory "components/stylesheets/compass/", destination_root('/app/stylesheets')
-end
View
2  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/application.scss
@@ -40,4 +40,4 @@ form.bp {
#sidebar {
@include column(3); }
#content {
- @include column(21, true); } }
+ @include column(21, true); } }
View
2  padrino-gen/lib/padrino-gen/generators/components/stylesheets/compass/partials/_base.scss
@@ -7,4 +7,4 @@ $blueprint-grid-margin: 10px;
// Use this to calculate the width based on the total width.
// Or you can set !blueprint_grid_width to a fixed value and unset !blueprint_container_size -- it will be calculated for you.
-$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin;
+$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin;
View
2  padrino-gen/lib/padrino-gen/generators/components/stylesheets/less.rb
@@ -19,4 +19,4 @@ def setup_stylesheet
require_dependencies 'less', 'rack-less'
initializer :less, LESS_INIT
empty_directory destination_root('/app/stylesheets')
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/components/stylesheets/sass.rb
@@ -12,4 +12,4 @@ def setup_stylesheet
require_dependencies 'sass'
initializer :sass, SASS_INIT.chomp
empty_directory destination_root('/app/stylesheets')
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/controller.rb
@@ -46,4 +46,4 @@ def create_controller
end
end # Controller
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/mailer.rb
@@ -44,4 +44,4 @@ def create_mailer
end
end # Mailer
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/migration.rb
@@ -41,4 +41,4 @@ def create_migration
end
end # Migration
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/plugin.rb
@@ -54,4 +54,4 @@ def setup_plugin
end
end # Plugins
end # Generators
-end # Padrino
+end # Padrino
View
2  padrino-gen/lib/padrino-gen/generators/project/config/boot.rb
@@ -26,4 +26,4 @@
Padrino.after_load do
end
-Padrino.load!
+Padrino.load!
View
2  padrino-gen/lib/padrino-gen/generators/templates/controller.rb.tt
@@ -19,4 +19,4 @@
# end
<%= @actions %>
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/templates/helper.rb.tt
@@ -4,4 +4,4 @@
# def simple_helper_method
# ...
# end
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/templates/initializer.rb.tt
@@ -2,4 +2,4 @@ module <%= "#{@_init_name.to_s.camelize}Initializer" %>
def self.registered(app)
<%= @_init_data %>
end
-end
+end
View
2  padrino-gen/lib/padrino-gen/generators/templates/mailer.rb.tt
@@ -45,4 +45,4 @@
<%- end -%>
<%- end -%>
-end
+end
View
2  padrino-gen/lib/padrino-gen/padrino-tasks/seed.rb
@@ -2,4 +2,4 @@
task :seed => :environment do
seed_file = Padrino.root('db', 'seeds.rb')
load(seed_file) if File.exist?(seed_file)
-end
+end
View
2  padrino-gen/lib/padrino-gen/padrino-tasks/sequel.rb
@@ -34,4 +34,4 @@
end
end
end
-end
+end
View
2  padrino-gen/test/fixtures/admin_template.rb
@@ -4,4 +4,4 @@
rake "ar:create"
generate :admin
rake "ar:migrate"
-generate :admin_page, "post"
+generate :admin_page, "post"
View
2  padrino-gen/test/fixtures/git_template.rb
@@ -1,4 +1,4 @@
project :test => :rspec, :orm => :activerecord
git :init
git :add, "."
-git :commit, "hello"
View
2  padrino-gen/test/fixtures/plugin_template.rb
@@ -10,4 +10,4 @@
HOPTOAD
require_dependencies 'rack_hoptoad', :require => 'rack/hoptoad'
initializer :hoptoad,HOPTOAD
-inject_into_file destination_root('/app/app.rb')," enable :raise_errors\n", :after => "configure do\n"
+inject_into_file destination_root('/app/app.rb')," enable :raise_errors\n", :after => "configure do\n"
View
2  padrino-gen/test/fixtures/rake_template.rb
@@ -6,4 +6,4 @@
# }
# end
# RAKE
-rake "custom"
+rake "custom"
View
2  padrino-gen/test/helper.rb
@@ -151,4 +151,4 @@ def logger # # @private
@logger = nil
end
end
-end