enginex 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/enginex.rb +3 -8
- data/lib/templates/gitignore +4 -3
- data/lib/templates/root/Rakefile.tt +1 -1
- data/lib/templates/root/test/test_helper.rb +1 -0
- metadata +2 -2
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.
|
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
|
data/lib/templates/gitignore
CHANGED
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.
|
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-
|
12
|
+
date: 2010-03-03 00:00:00 +01:00
|
13
13
|
default_executable: enginex
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|