ORM gem dependencies
Adds ORM plugin dependency ‘merb_#{orm}’ if we use any ORM.
orm | ORM to use |
String | Gem dependencies |
# File lib/merb-gen/app_generator.rb, line 28 28: def gems_for_orm(orm) 29: orm.to_sym == :none ? '' : %{gem "merb_#{orm}"} 30: end
Template enging gem dependencies
When using something else than erb we add merb plugin dependency for the template engine.
template_engine | Template engine to use |
String | Gem dependencies |
# File lib/merb-gen/app_generator.rb, line 42 42: def gems_for_template_engine(template_engine) 43: gems = '' 44: if template_engine != :erb 45: if template_engine.in?(:haml, :builder) 46: template_engine_plugin = "merb-#{template_engine}" 47: else 48: template_engine_plugin = "merb_#{template_engine}" 49: end 50: gems = %{gem "#{template_engine_plugin}"} 51: end 52: gems 53: end
Testing framework gem dependencies
If we use any other test framework than RSpec we must add dependency to the Gemfile. Merb depends on the RSpec so it’s default dependency.
test_framework | Testing framework to use |
String | Gem dependencies |
# File lib/merb-gen/app_generator.rb, line 65 65: def gems_for_testing_framework(testing_framework) 66: testing_framework == :rspec ? '' : %{gem "#{testing_framework}", :group => :test} 67: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.