enginex 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/enginex.rb CHANGED
@@ -7,9 +7,8 @@ require "rails/generators"
7
7
  require "generators/rails/app/app_generator"
8
8
 
9
9
  # TODO Remove webrat hack file
10
- # TODO Remove Rails 3 application hack
11
10
  class Enginex < Thor::Group
12
- VERSION = "0.1.0".freeze
11
+ VERSION = "0.2.0".freeze
13
12
 
14
13
  include Thor::Actions
15
14
  check_unknown_options!
@@ -62,15 +61,11 @@ class Enginex < Thor::Group
62
61
  template "rails/application.rb", "test/dummy/config/application.rb", :force => true
63
62
  end
64
63
 
65
- def rails_3_beta_fix
66
- inject_into_class "test/dummy/config/application.rb", "Application",
67
- " config.root = File.expand_path('../..', __FILE__)\n\n"
68
- end
69
-
70
64
  say_step "Removing unneeded files"
71
65
 
72
66
  def remove_uneeded_rails_files
73
67
  inside "test/dummy" do
68
+ remove_file ".gitignore"
74
69
  remove_file "db/seeds.rb"
75
70
  remove_file "doc"
76
71
  remove_file "Gemfile"
@@ -116,4 +111,4 @@ class Enginex < Thor::Group
116
111
  def underscored
117
112
  @underscored ||= name.underscore
118
113
  end
119
- end
114
+ end
@@ -1,5 +1,6 @@
1
1
  .bundle/
2
- db/*.sqlite3
3
2
  log/*.log
4
- tmp/**/*
5
- pkg/
3
+ pkg/
4
+ test/dummy/db/*.sqlite3
5
+ test/dummy/log/*.log
6
+ test/dummy/tmp/
@@ -8,7 +8,7 @@ Rake::TestTask.new(:test) do |t|
8
8
  t.libs << 'lib'
9
9
  t.libs << 'test'
10
10
  t.pattern = 'test/**/*_test.rb'
11
- t.verbose = true
11
+ t.verbose = false
12
12
  end
13
13
 
14
14
  Rake::RDocTask.new(:rdoc) do |rdoc|
@@ -9,6 +9,7 @@ ActionMailer::Base.perform_deliveries = true
9
9
  ActionMailer::Base.default_url_options[:host] = "test.com"
10
10
 
11
11
  $:.unshift File.dirname(__FILE__)
12
+ Rails.backtrace_cleaner.remove_silencers!
12
13
 
13
14
  Webrat.configure do |config|
14
15
  config.mode = :rails
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enginex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-25 00:00:00 +01:00
12
+ date: 2010-03-03 00:00:00 +01:00
13
13
  default_executable: enginex
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency