lib/hanami/generators/application/container/Gemfile.tt in hanami-0.7.3 vs lib/hanami/generators/application/container/Gemfile.tt in hanami-0.8.0
- old
+ new
@@ -1,10 +1,11 @@
source 'https://rubygems.org'
gem 'bundler'
gem 'rake'
<%- if config[:hanami_head] -%>
+
gem 'hanami-utils', require: false, github: 'hanami/utils'
gem 'hanami-router', require: false, github: 'hanami/router'
gem 'hanami-validations', require: false, github: 'hanami/validations'
gem 'hanami-helpers', require: false, github: 'hanami/helpers'
gem 'hanami-controller', require: false, github: 'hanami/controller'
@@ -12,16 +13,34 @@
gem 'hanami-model', require: false, github: 'hanami/model'
gem 'hanami-mailer', require: false, github: 'hanami/mailer'
gem 'hanami-assets', require: false, github: 'hanami/assets'
gem 'hanami', github: 'hanami/hanami'
<%- else -%>
-gem 'hanami', '<%= Hanami::VERSION %>'
+gem 'hanami', '<%= config[:hanami_version] %>'
gem 'hanami-model', '<%= config[:hanami_model_version] %>'
<%- end -%>
+<%- if config[:database_config][:gem] -%>
-<%- if config[:database_config][:gem] %>
gem '<%= config[:database_config][:gem] %>'
<%- end -%>
+<%- case config[:template] -%>
+<%- when 'slim' -%>
+
+gem 'slim'
+<%- when 'haml' -%>
+
+gem 'haml'
+<%- end -%>
+
+group :development do
+ # Code reloading
+ # See: http://hanamirb.org/guides/applications/code-reloading
+ gem 'shotgun'
+end
+
+group :test, :development do
+ gem 'dotenv', '~> 2.0'
+end
group :test do
<%- if config[:test] == 'rspec' -%>
gem 'rspec'
<%- else -%>