padrino-gen 0.10.7 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/padrino-gen/generators/actions.rb +139 -102
- data/lib/padrino-gen/generators/app/app.rb.tt +55 -53
- data/lib/padrino-gen/generators/app.rb +16 -16
- data/lib/padrino-gen/generators/cli.rb +3 -3
- data/lib/padrino-gen/generators/components/actions.rb +1 -1
- data/lib/padrino-gen/generators/components/orms/activerecord.rb +22 -18
- data/lib/padrino-gen/generators/components/orms/couchrest.rb +1 -1
- data/lib/padrino-gen/generators/components/orms/datamapper.rb +2 -1
- data/lib/padrino-gen/generators/components/orms/{mini_record.rb → minirecord.rb} +9 -9
- data/lib/padrino-gen/generators/components/orms/mongoid.rb +60 -6
- data/lib/padrino-gen/generators/components/orms/mongomapper.rb +2 -2
- data/lib/padrino-gen/generators/components/orms/mongomatic.rb +2 -2
- data/lib/padrino-gen/generators/components/orms/ohm.rb +57 -10
- data/lib/padrino-gen/generators/components/orms/ripple.rb +1 -1
- data/lib/padrino-gen/generators/components/orms/sequel.rb +15 -6
- data/lib/padrino-gen/generators/components/stylesheets/compass.rb +1 -1
- data/lib/padrino-gen/generators/components/stylesheets/less.rb +1 -0
- data/lib/padrino-gen/generators/components/tests/bacon.rb +0 -2
- data/lib/padrino-gen/generators/components/tests/minitest.rb +0 -1
- data/lib/padrino-gen/generators/components/tests/riot.rb +0 -1
- data/lib/padrino-gen/generators/components/tests/rspec.rb +14 -15
- data/lib/padrino-gen/generators/components/tests/shoulda.rb +0 -1
- data/lib/padrino-gen/generators/components/tests/testspec.rb +0 -1
- data/lib/padrino-gen/generators/controller.rb +14 -11
- data/lib/padrino-gen/generators/mailer.rb +14 -11
- data/lib/padrino-gen/generators/migration.rb +5 -5
- data/lib/padrino-gen/generators/model.rb +8 -7
- data/lib/padrino-gen/generators/plugin.rb +15 -9
- data/lib/padrino-gen/generators/project/.gitignore +2 -1
- data/lib/padrino-gen/generators/project/config/apps.rb.tt +10 -8
- data/lib/padrino-gen/generators/project/config.ru +0 -0
- data/lib/padrino-gen/generators/project/public/favicon.ico +0 -0
- data/lib/padrino-gen/generators/project.rb +53 -25
- data/lib/padrino-gen/generators/runner.rb +1 -1
- data/lib/padrino-gen/generators/templates/Gemfile.tt +8 -3
- data/lib/padrino-gen/generators/templates/Rakefile.tt +8 -0
- data/lib/padrino-gen/generators/templates/controller.rb.tt +8 -9
- data/lib/padrino-gen/generators/templates/gem/README.md.tt +29 -0
- data/lib/padrino-gen/generators/templates/gem/gemspec.tt +19 -0
- data/lib/padrino-gen/generators/templates/gem/lib/libname/version.tt +3 -0
- data/lib/padrino-gen/generators/templates/gem/lib/libname.tt +6 -0
- data/lib/padrino-gen/generators/templates/helper.rb.tt +1 -1
- data/lib/padrino-gen/generators/templates/mailer.rb.tt +1 -1
- data/lib/padrino-gen/generators/templates/static/js/dojo.js +238 -1
- data/lib/padrino-gen/generators/templates/static/js/ext.js +38 -1
- data/lib/padrino-gen/generators/templates/static/js/jquery.js +4 -4
- data/lib/padrino-gen/generators/templates/static/js/mootools.js +335 -276
- data/lib/padrino-gen/generators/templates/static/js/protopak.js +1 -1
- data/lib/padrino-gen/generators/templates/static/js/right.js +7 -1
- data/lib/padrino-gen/generators/templates/static/ujs/jquery.js +76 -75
- data/lib/padrino-gen/padrino-tasks/activerecord.rb +8 -2
- data/lib/padrino-gen/padrino-tasks/database.rb +11 -0
- data/lib/padrino-gen/padrino-tasks/datamapper.rb +38 -12
- data/lib/padrino-gen/padrino-tasks/minirecord.rb +19 -0
- data/lib/padrino-gen/padrino-tasks/mongoid.rb +76 -18
- data/lib/padrino-gen/padrino-tasks/mongomapper.rb +9 -1
- data/lib/padrino-gen/padrino-tasks/sequel.rb +6 -1
- data/lib/padrino-gen.rb +2 -2
- data/padrino-gen.gemspec +0 -0
- data/test/helper.rb +1 -1
- data/test/test_app_generator.rb +23 -4
- data/test/test_controller_generator.rb +8 -8
- data/test/test_mailer_generator.rb +5 -5
- data/test/test_model_generator.rb +26 -23
- data/test/test_plugin_generator.rb +23 -0
- data/test/test_project_generator.rb +82 -47
- metadata +17 -17
- data/lib/padrino-gen/padrino-tasks/seed.rb +0 -5
@@ -33,7 +33,7 @@
|
|
33
33
|
# and then all delivered mail will use these settings unless otherwise specified.
|
34
34
|
#
|
35
35
|
|
36
|
-
<%= @app_name %>.mailer :<%= @short_name %> do
|
36
|
+
<%= @project_name %>::<%= @app_name %>.mailer :<%= @short_name %> do
|
37
37
|
<%- if @actions.nil? || @actions.empty? -%>
|
38
38
|
# Message definitions here...
|
39
39
|
<%- else -%>
|