rails3-generators 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.6.0
@@ -1,5 +1,5 @@
1
1
  require 'generators/haml'
2
- require 'generators/erb/scaffold/scaffold_generator'
2
+ require 'rails/generators/erb/scaffold/scaffold_generator'
3
3
 
4
4
  module Haml
5
5
  module Generators
@@ -11,12 +11,15 @@ module Haml
11
11
  template "layout.haml.erb",
12
12
  File.join("app/views/layouts", controller_class_path, "#{controller_file_name}.html.haml")
13
13
  end
14
+
15
+ def copy_view_files
16
+ views = available_views
17
+ views.delete("index") if options[:singleton]
14
18
 
15
- protected
16
-
17
- def copy_view(view)
19
+ views.each do |view|
18
20
  template "#{view}.haml.erb", File.join("app/views", controller_file_path, "#{view}.html.haml")
19
21
  end
22
+ end
20
23
 
21
24
  end
22
25
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3-generators}
8
- s.version = "0.5.4"
8
+ s.version = "0.6.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jose Valim", "Anuj Dutta", "Paul Berry", "Jeff Tucker", "Louis T.", "Jai-Gouk Kim", "Darcy Laycock", "Guillaume Belleguic"]
12
- s.date = %q{2010-04-02}
12
+ s.date = %q{2010-04-12}
13
13
  s.description = %q{Rails 3 compatible generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, and Mongoid}
14
14
  s.email = %q{andre@arko.net}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
8
- - 4
9
- version: 0.5.4
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Valim
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2010-04-02 00:00:00 -04:00
24
+ date: 2010-04-12 00:00:00 -07:00
25
25
  default_executable:
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency