Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ThisIsHatch/hatch
base: 57a2e50363
...
head fork: ThisIsHatch/hatch
compare: b82f38abee
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
1  .gitignore
@@ -3,3 +3,4 @@ pkg
test_project
.rake_tasks
*.gem
+.rvmrc
View
1  .rvmrc.example
@@ -0,0 +1 @@
+rvm 1.9.2@hatch
View
2  hatch.gemspec
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.rubygems_version = '1.3.5'
s.name = 'hatch'
- s.version = '0.0.5'
+ s.version = '0.0.6'
s.date = '2011-12-14'
s.summary = "Generate a Rails app using This is Hatch's best practices."
View
4 template/hatch.rb
@@ -106,6 +106,7 @@ def trout(destination_path)
say "Checkout bones gem"
empty_directory "vendor/gems"
git :clone => 'git@github.com:ThisIsHatch/bones.git vendor/gems/bones'
+git :clone => 'git@github.com:ThisIsHatch/hatch_auth.git vendor/gems/hatch_auth'
say "Create the Gemfile"
template "Gemfile.erb", "Gemfile", :force => true
@@ -137,7 +138,8 @@ def trout(destination_path)
RUBY
inject_into_class "config/application.rb", "Application", generators_config
replace_in_file 'config/application.rb', '# config.autoload_paths += %W(#{config.root}/extras)', 'config.autoload_paths += %W(#{config.root}/lib)'
-replace_in_file "config/application.rb", "Bundler.require *Rails.groups", "# Bundler.require *Rails.groups"
+#replace_in_file "config/application.rb", "Bundler.require *Rails.groups", "# Bundler.require *Rails.groups"
+replace_in_file "config/application.rb", "Bundler.require(*Rails.groups(:assets => %w(development test)))", "# Bundler.require(*Rails.groups(:assets => %w(development test)))"
insert_into_file "config/application.rb", " Bundler.require(:default, Rails.env)\n", :after => "if defined?(Bundler)\n"
action_mailer_host "development", "#{app_name}.local"

No commit comments for this range

Something went wrong with that request. Please try again.