Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but 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
1  .gitignore
View
@@ -3,3 +3,4 @@ pkg
test_project
.rake_tasks
*.gem
+.rvmrc
1  .rvmrc.example
View
@@ -0,0 +1 @@
+rvm 1.9.2@hatch
2  hatch.gemspec
View
@@ -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."
4 template/hatch.rb
View
@@ -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.