inherited_resources_views 0.1.0 → 0.1.1

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/Rakefile CHANGED
@@ -26,7 +26,7 @@ begin
26
26
  require 'jeweler'
27
27
  Jeweler::Tasks.new do |s|
28
28
  s.name = "inherited_resources_views"
29
- s.version = "0.1.0"
29
+ s.version = "0.1.1"
30
30
  s.summary = "A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!"
31
31
  s.description = "Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!"
32
32
  s.email = "ifredwu@gmail.com"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{inherited_resources_views}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Fred Wu"]
12
- s.date = %q{2010-08-05}
12
+ s.date = %q{2010-08-06}
13
13
  s.description = %q{Using Inherited Resources is an excellent way to reduce the amount of repetition in your controllers. But what about views? A lot of times resources share the same views, so why not DRY 'em up using Inherited Resources Views!}
14
14
  s.email = %q{ifredwu@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -1,7 +1,7 @@
1
1
  class InheritedResourcesViewsGenerator < Rails::Generators::Base
2
2
  desc "Generates inherited_resource_views templates."
3
3
 
4
- class_option :template_engine, :type => :string, :aliases => "-t", :default => "erb",
4
+ class_option :template_engine, :type => :string, :aliases => "-t",
5
5
  :desc => "Template engine for the views. Available options are 'erb' and 'haml'."
6
6
 
7
7
  def self.source_root
@@ -9,8 +9,8 @@ class InheritedResourcesViewsGenerator < Rails::Generators::Base
9
9
  end
10
10
 
11
11
  def copy_views
12
- case options[:template_engine]
13
- when "haml"
12
+ case options[:template_engine].to_sym
13
+ when :haml
14
14
  verify_haml_existence
15
15
  verify_haml_version
16
16
  create_and_copy_haml_views
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inherited_resources_views
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 25
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 0
9
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Fred Wu
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-08-05 00:00:00 +10:00
18
+ date: 2010-08-06 00:00:00 +10:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 13
28
30
  segments:
29
31
  - 1
30
32
  - 1
@@ -69,6 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
69
71
  requirements:
70
72
  - - ">="
71
73
  - !ruby/object:Gem::Version
74
+ hash: 3
72
75
  segments:
73
76
  - 0
74
77
  version: "0"
@@ -77,6 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
80
  requirements:
78
81
  - - ">="
79
82
  - !ruby/object:Gem::Version
83
+ hash: 3
80
84
  segments:
81
85
  - 0
82
86
  version: "0"