llab-generators 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.1.3 Changed the generator names and bug fixed
1
2
  v0.1.2 Forgot something in the application layout
2
3
  v0.1.1 Added author and description
3
4
  v0.1 initial submission
@@ -1,184 +1,188 @@
1
1
  require 'rails/generators/migration'
2
2
  require 'rails/generators/generated_attribute'
3
3
 
4
- class ScaffoldGenerator < Rails::Generators::Base
5
- include Rails::Generators::Migration
6
- no_tasks { attr_accessor :model_name, :model_attributes, :controller_actions }
7
-
8
- source_root File.expand_path('../templates', __FILE__)
9
- argument :model_name, :type => :string, :required => true, :banner => 'ModelName'
10
- argument :args_for_c_m, :type => :array, :default => [], :banner => 'controller_actions and model:attributes'
11
-
12
- class_option :skip_model, :desc => 'Don\'t generate a model or migration file.', :type => :boolean
13
- class_option :skip_migration, :desc => 'Dont generate migration file for model.', :type => :boolean
14
- class_option :skip_timestamps, :desc => 'Don\'t add timestamps to migration file.', :type => :boolean
15
- class_option :skip_controller, :desc => 'Don\'t generate controller, helper, or views.', :type => :boolean
16
- class_option :haml, :desc => 'Generate HAML views instead of ERB.', :type => :boolean, :default => true
17
-
18
- def initialize(*args, &block)
19
- super
20
-
21
- @controller_actions = []
22
- @model_attributes = []
23
- @skip_model = options.skip_model?
24
-
25
- args_for_c_m.each do |arg|
26
- if arg.include?(':')
27
- @model_attributes << Rails::Generators::GeneratedAttribute.new(*arg.split(':'))
28
- else
29
- @controller_actions << arg
30
- @controller_actions << 'create' if arg == 'new'
31
- @controller_actions << 'update' if arg == 'edit'
32
- end
33
- end
4
+ module Lab
5
+ module Generators
6
+ class ScaffoldGenerator < Rails::Generators::Base
7
+ include Rails::Generators::Migration
8
+ no_tasks { attr_accessor :model_name, :model_attributes, :controller_actions }
9
+
10
+ source_root File.expand_path('../templates', __FILE__)
11
+ argument :model_name, :type => :string, :required => true, :banner => 'ModelName'
12
+ argument :args_for_c_m, :type => :array, :default => [], :banner => 'controller_actions and model:attributes'
13
+
14
+ class_option :skip_model, :desc => 'Don\'t generate a model or migration file.', :type => :boolean
15
+ class_option :skip_migration, :desc => 'Dont generate migration file for model.', :type => :boolean
16
+ class_option :skip_timestamps, :desc => 'Don\'t add timestamps to migration file.', :type => :boolean
17
+ class_option :skip_controller, :desc => 'Don\'t generate controller, helper, or views.', :type => :boolean
18
+ class_option :haml, :desc => 'Generate HAML views instead of ERB.', :type => :boolean, :default => true
19
+
20
+ def initialize(*args, &block)
21
+ super
22
+
23
+ @controller_actions = []
24
+ @model_attributes = []
25
+ @skip_model = options.skip_model?
26
+
27
+ args_for_c_m.each do |arg|
28
+ if arg.include?(':')
29
+ @model_attributes << Rails::Generators::GeneratedAttribute.new(*arg.split(':'))
30
+ else
31
+ @controller_actions << arg
32
+ @controller_actions << 'create' if arg == 'new'
33
+ @controller_actions << 'update' if arg == 'edit'
34
+ end
35
+ end
34
36
 
35
- @controller_actions.uniq!
36
- @model_attributes.uniq!
37
+ @controller_actions.uniq!
38
+ @model_attributes.uniq!
37
39
 
38
- if @controller_actions.empty?
39
- @controller_actions = all_actions
40
- end
40
+ if @controller_actions.empty?
41
+ @controller_actions = all_actions
42
+ end
41
43
 
42
- if @model_attributes.empty?
43
- @skip_model = true # skip model if no attributes
44
- if model_exists?
45
- model_columns_for_attributes.each do |column|
46
- @model_attributes << Rails::Generators::GeneratedAttribute.new(column.name.to_s, column.type.to_s)
44
+ if @model_attributes.empty?
45
+ @skip_model = true # skip model if no attributes
46
+ if model_exists?
47
+ model_columns_for_attributes.each do |column|
48
+ @model_attributes << Rails::Generators::GeneratedAttribute.new(column.name.to_s, column.type.to_s)
49
+ end
50
+ else
51
+ @model_attributes << Rails::Generators::GeneratedAttribute.new('name', 'string')
52
+ end
47
53
  end
48
- else
49
- @model_attributes << Rails::Generators::GeneratedAttribute.new('name', 'string')
50
54
  end
51
- end
52
- end
53
55
 
54
- def create_model
55
- unless @skip_model
56
- template "model.rb", "app/models/#{singular_name}.rb"
57
- end
58
- end
56
+ def create_model
57
+ unless @skip_model
58
+ template "model.rb", "app/models/#{singular_name}.rb"
59
+ end
60
+ end
59
61
 
60
- def create_migration
61
- unless @skip_model || options.skip_migration?
62
- migration_template "migration.rb", "db/migrate/create_#{plural_name}.rb"
63
- end
64
- end
62
+ def create_migration
63
+ unless @skip_model || options.skip_migration?
64
+ migration_template "migration.rb", "db/migrate/create_#{plural_name}.rb"
65
+ end
66
+ end
65
67
 
66
- def create_controller
67
- unless options.skip_controller?
68
- template 'controller.rb', "app/controllers/#{plural_name}_controller.rb"
68
+ def create_controller
69
+ unless options.skip_controller?
70
+ template 'controller.rb', "app/controllers/#{plural_name}_controller.rb"
69
71
 
70
- template 'helper.rb', "app/helpers/#{plural_name}_helper.rb"
72
+ template 'helper.rb', "app/helpers/#{plural_name}_helper.rb"
71
73
 
72
- controller_actions.each do |action|
73
- if %w[index show new edit].include?(action) # Actions with templates
74
- template "views/#{view_language}/#{action}.html.#{view_language}", "app/views/#{plural_name}/#{action}.html.#{view_language}"
75
- end
76
- end
74
+ controller_actions.each do |action|
75
+ if %w[index show new edit].include?(action) # Actions with templates
76
+ template "views/#{view_language}/#{action}.html.#{view_language}", "app/views/#{plural_name}/#{action}.html.#{view_language}"
77
+ end
78
+ end
77
79
 
78
- if form_partial?
79
- template "views/#{view_language}/_form.html.#{view_language}", "app/views/#{plural_name}/_form.html.#{view_language}"
80
- end
80
+ if form_partial?
81
+ template "views/#{view_language}/_form.html.#{view_language}", "app/views/#{plural_name}/_form.html.#{view_language}"
82
+ end
81
83
 
82
- route "resources #{plural_name.to_sym.inspect}"
83
- end
84
- end
84
+ route "resources #{plural_name.to_sym.inspect}"
85
+ end
86
+ end
85
87
 
86
- private
87
- def form_partial?
88
- actions? :new, :edit
89
- end
88
+ private
89
+ def form_partial?
90
+ actions? :new, :edit
91
+ end
90
92
 
91
- def all_actions
92
- %w[index show new create edit update destroy]
93
- end
93
+ def all_actions
94
+ %w[index show new create edit update destroy]
95
+ end
94
96
 
95
- def action?(name)
96
- controller_actions.include? name.to_s
97
- end
97
+ def action?(name)
98
+ controller_actions.include? name.to_s
99
+ end
98
100
 
99
- def actions?(*names)
100
- names.all? { |name| action? name }
101
- end
101
+ def actions?(*names)
102
+ names.all? { |name| action? name }
103
+ end
102
104
 
103
- def singular_name
104
- model_name.underscore
105
- end
105
+ def singular_name
106
+ model_name.underscore
107
+ end
106
108
 
107
- def plural_name
108
- model_name.underscore.pluralize
109
- end
109
+ def plural_name
110
+ model_name.underscore.pluralize
111
+ end
110
112
 
111
- def class_name
112
- model_name.camelize
113
- end
113
+ def class_name
114
+ model_name.camelize
115
+ end
114
116
 
115
- def plural_class_name
116
- plural_name.camelize
117
- end
117
+ def plural_class_name
118
+ plural_name.camelize
119
+ end
118
120
 
119
- def controller_methods(dir_name)
120
- controller_actions.map do |action|
121
- read_template("#{dir_name}/#{action}.rb")
122
- end.join(" \n").strip
123
- end
121
+ def controller_methods(dir_name)
122
+ controller_actions.map do |action|
123
+ read_template("#{dir_name}/#{action}.rb")
124
+ end.join(" \n").strip
125
+ end
124
126
 
125
- def render_form
126
- if form_partial?
127
- if options.haml?
128
- "= render :partial => 'form', :locals => { :f => f, :submit_button => 'Go' }"
129
- else
130
- "<%= render :partial => 'form', :locals => { :f => f, :submit_button => 'Go' } %>"
127
+ def render_form
128
+ if form_partial?
129
+ if options.haml?
130
+ "= render :partial => 'form', :locals => { :f => f, :submit_button => 'Go' }"
131
+ else
132
+ "<%= render :partial => 'form', :locals => { :f => f, :submit_button => 'Go' } %>"
133
+ end
134
+ else
135
+ read_template("views/#{view_language}/_form.html.#{view_language}")
136
+ end
131
137
  end
132
- else
133
- read_template("views/#{view_language}/_form.html.#{view_language}")
134
- end
135
- end
136
138
 
137
- def items_path(suffix = 'path')
138
- if action? :index
139
- "#{plural_name}_#{suffix}"
140
- else
141
- "root_#{suffix}"
142
- end
143
- end
139
+ def items_path(suffix = 'path')
140
+ if action? :index
141
+ "#{plural_name}_#{suffix}"
142
+ else
143
+ "root_#{suffix}"
144
+ end
145
+ end
144
146
 
145
- def item_path(suffix = 'path')
146
- if action? :show
147
- "@#{singular_name}"
148
- else
149
- items_path(suffix)
150
- end
151
- end
147
+ def item_path(suffix = 'path')
148
+ if action? :show
149
+ "@#{singular_name}"
150
+ else
151
+ items_path(suffix)
152
+ end
153
+ end
152
154
 
153
- def model_columns_for_attributes
154
- class_name.constantize.columns.reject do |column|
155
- column.name.to_s =~ /^(id|created_at|updated_at)$/
156
- end
157
- end
155
+ def model_columns_for_attributes
156
+ class_name.constantize.columns.reject do |column|
157
+ column.name.to_s =~ /^(id|created_at|updated_at)$/
158
+ end
159
+ end
158
160
 
159
- def model_exists?
160
- File.exist? destination_path("app/models/#{singular_name}.rb")
161
- end
161
+ def model_exists?
162
+ File.exist? destination_path("app/models/#{singular_name}.rb")
163
+ end
162
164
 
163
- def read_template(relative_path)
164
- ERB.new(File.read(find_in_source_paths(relative_path)), nil, '-').result(binding)
165
- end
165
+ def read_template(relative_path)
166
+ ERB.new(File.read(find_in_source_paths(relative_path)), nil, '-').result(binding)
167
+ end
166
168
 
167
- def destination_path(path)
168
- File.join(destination_root, path)
169
- end
169
+ def destination_path(path)
170
+ File.join(destination_root, path)
171
+ end
170
172
 
171
- def view_language
172
- options.haml? ? 'haml' : 'erb'
173
- end
173
+ def view_language
174
+ options.haml? ? 'haml' : 'erb'
175
+ end
174
176
 
175
- # FIXME: Should be proxied to ActiveRecord::Generators::Base
176
- # Implement the required interface for Rails::Generators::Migration.
177
- def self.next_migration_number(dirname) #:nodoc:
178
- if ActiveRecord::Base.timestamped_migrations
179
- Time.now.utc.strftime("%Y%m%d%H%M%S")
180
- else
181
- "%.3d" % (current_migration_number(dirname) + 1)
182
- end
177
+ # FIXME: Should be proxied to ActiveRecord::Generators::Base
178
+ # Implement the required interface for Rails::Generators::Migration.
179
+ def self.next_migration_number(dirname) #:nodoc:
180
+ if ActiveRecord::Base.timestamped_migrations
181
+ Time.now.utc.strftime("%Y%m%d%H%M%S")
182
+ else
183
+ "%.3d" % (current_migration_number(dirname) + 1)
184
+ end
185
+ end
183
186
  end
187
+ end
184
188
  end
@@ -1,91 +1,95 @@
1
1
  require 'rails/generators/migration'
2
2
 
3
- class SetupGenerator < Rails::Generators::Base
4
- include Rails::Generators::Migration
5
- source_root File.expand_path('../templates', __FILE__)
6
- argument :app_name, :type => :string, :default => "My App"
3
+ module Lab
4
+ module Generators
5
+ class SetupGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+ source_root File.expand_path('../templates', __FILE__)
8
+ argument :app_name, :type => :string, :default => "My App"
7
9
 
8
- def initial_cleaning
9
- remove_file "public/index.html"
10
- remove_file "README"
11
- remove_file "public/images/rails.png"
12
- remove_file "app/views/layouts/application.html.erb"
13
- end
14
-
15
- def setup_gems
16
- append_file "Gemfile", "gem 'haml'\n"
17
- append_file "Gemfile", "gem 'devise'\n"
18
- append_file "Gemfile", "gem 'jquery-rails'\n"
19
- append_file "Gemfile", "gem 'declarative_authorization'\n"
20
- run "bundle install"
21
- end
10
+ def initial_cleaning
11
+ remove_file "public/index.html"
12
+ remove_file "README"
13
+ remove_file "public/images/rails.png"
14
+ remove_file "app/views/layouts/application.html.erb"
15
+ end
22
16
 
23
- def copy_static_assets
24
- copy_file "css/blueprint.css", "public/stylesheets/blueprint.css"
25
- copy_file "css/ie.css", "public/stylesheets/ie.css"
26
- copy_file "css/print.css", "public/stylesheets/print.css"
27
- copy_file "images/logo_learninglab.gif", "public/images/logo_learninglab.gif"
28
- copy_file "images/navbar_bkg.gif", "public/images/navbar_bkg.gif"
29
- copy_file "images/help_triangle.gif", "public/images/help_triangle.gif"
30
- copy_file "images/bullet_black.gif", "public/images/icons/bullet_black.gif"
31
- copy_file "images/notice.gif", "public/images/icons/notice.gif"
32
- copy_file "images/alert.gif", "public/images/icons/alert.gif"
33
- copy_file "images/error.gif", "public/images/icons/error.gif"
34
- copy_file "images/edit.gif", "public/images/icons/edit.gif"
35
- copy_file "images/new.gif", "public/images/icons/new.gif"
36
- end
17
+ def setup_gems
18
+ append_file "Gemfile", "gem 'haml'\n"
19
+ append_file "Gemfile", "gem 'devise'\n"
20
+ append_file "Gemfile", "gem 'jquery-rails'\n"
21
+ append_file "Gemfile", "gem 'declarative_authorization'\n"
22
+ run "bundle install"
23
+ end
37
24
 
38
- def create_layout
39
- template "layout.erb", "app/views/layouts/application.html.haml"
40
- copy_file "css/_constants.sass", "app/stylesheets/_constants.sass"
41
- copy_file "css/_mixins.sass", "app/stylesheets/_mixins.sass"
42
- copy_file "css/screen.sass", "app/stylesheets/screen.sass"
43
- copy_file "layout_helper.rb", "app/helpers/layout_helper.rb"
44
- end
25
+ def copy_static_assets
26
+ copy_file "css/blueprint.css", "public/stylesheets/blueprint.css"
27
+ copy_file "css/ie.css", "public/stylesheets/ie.css"
28
+ copy_file "css/print.css", "public/stylesheets/print.css"
29
+ copy_file "images/logo_learninglab.gif", "public/images/logo_learninglab.gif"
30
+ copy_file "images/navbar_bkg.gif", "public/images/navbar_bkg.gif"
31
+ copy_file "images/help_triangle.gif", "public/images/help_triangle.gif"
32
+ copy_file "images/bullet_black.gif", "public/images/icons/bullet_black.gif"
33
+ copy_file "images/notice.gif", "public/images/icons/notice.gif"
34
+ copy_file "images/alert.gif", "public/images/icons/alert.gif"
35
+ copy_file "images/error.gif", "public/images/icons/error.gif"
36
+ copy_file "images/edit.gif", "public/images/icons/edit.gif"
37
+ copy_file "images/new.gif", "public/images/icons/new.gif"
38
+ end
45
39
 
46
- def create_config
47
- copy_file "sass_config.rb", "config/initializers/sass_config.rb"
48
- template "root_index.erb", "app/views/info/index.html.haml"
49
- copy_file "info_controller.rb", "app/controllers/info_controller.rb"
50
- route "root :to => \"info#index\""
51
- end
40
+ def create_layout
41
+ template "layout.erb", "app/views/layouts/application.html.haml"
42
+ copy_file "css/_constants.sass", "app/stylesheets/_constants.sass"
43
+ copy_file "css/_mixins.sass", "app/stylesheets/_mixins.sass"
44
+ copy_file "css/screen.sass", "app/stylesheets/screen.sass"
45
+ copy_file "layout_helper.rb", "app/helpers/layout_helper.rb"
46
+ end
52
47
 
53
- def setup_jquery_rails
54
- run "rails generate jquery:install --ui"
55
- end
48
+ def create_config
49
+ copy_file "sass_config.rb", "config/initializers/sass_config.rb"
50
+ template "root_index.erb", "app/views/info/index.html.haml"
51
+ copy_file "info_controller.rb", "app/controllers/info_controller.rb"
52
+ route "root :to => \"info#index\""
53
+ end
56
54
 
57
- def setup_devise
58
- run "rails generate devise:install"
59
- inject_into_file "config/environments/development.rb", "config.action_mailer.default_url_options = { :host => 'localhost:3000' }", :before => "end\n"
60
- template "devise/devise_user.rb", "app/models/user.rb"
61
- migration_template "devise/devise_migration.rb", "db/migrate/devise_create_users.rb"
62
- route "resources :users"
63
- route "devise_for :users"
64
- template "devise/authorization_rules.rb", "config/authorization_rules.rb"
65
- template "devise/users_controller.rb", "app/controllers/users_controller.rb"
66
- copy_file "devise/views/login.haml", "app/views/devise/sessions/new.html.haml"
67
- copy_file "devise/views/forgot_password.haml", "app/views/devise/passwords/new.html.haml"
68
- copy_file "devise/views/change_password.haml", "app/views/devise/passwords/edit.html.haml"
69
- copy_file "devise/views/_form.html.haml", "app/views/users/_form.html.haml"
70
- copy_file "devise/views/edit.html.haml", "app/views/users/edit.html.haml"
71
- copy_file "devise/views/index.html.haml", "app/views/users/index.html.haml"
72
- copy_file "devise/views/new.html.haml", "app/views/users/new.html.haml"
73
- copy_file "devise/views/show.html.haml", "app/views/users/show.html.haml"
74
- inject_into_class "app/controllers/application_controller.rb", ApplicationController do
75
- " def permission_denied\n" +
76
- " redirect_to(root_url, :alert => \"You are not allowed to do this action.\")\n" +
77
- " end\n"
78
- end
79
- end
55
+ def setup_jquery_rails
56
+ run "rails generate jquery:install --ui"
57
+ end
80
58
 
81
- private
82
- # FIXME: Should be proxied to ActiveRecord::Generators::Base
83
- # Implement the required interface for Rails::Generators::Migration.
84
- def self.next_migration_number(dirname) #:nodoc:
85
- if ActiveRecord::Base.timestamped_migrations
86
- Time.now.utc.strftime("%Y%m%d%H%M%S")
87
- else
88
- "%.3d" % (current_migration_number(dirname) + 1)
59
+ def setup_devise
60
+ run "rails generate devise:install"
61
+ inject_into_file "config/environments/development.rb", "config.action_mailer.default_url_options = { :host => 'localhost:3000' }", :before => "end\n"
62
+ template "devise/devise_user.rb", "app/models/user.rb"
63
+ migration_template "devise/devise_migration.rb", "db/migrate/devise_create_users.rb"
64
+ route "resources :users"
65
+ route "devise_for :users"
66
+ template "devise/authorization_rules.rb", "config/authorization_rules.rb"
67
+ template "devise/users_controller.rb", "app/controllers/users_controller.rb"
68
+ copy_file "devise/views/login.haml", "app/views/devise/sessions/new.html.haml"
69
+ copy_file "devise/views/forgot_password.haml", "app/views/devise/passwords/new.html.haml"
70
+ copy_file "devise/views/change_password.haml", "app/views/devise/passwords/edit.html.haml"
71
+ copy_file "devise/views/_form.html.haml", "app/views/users/_form.html.haml"
72
+ copy_file "devise/views/edit.html.haml", "app/views/users/edit.html.haml"
73
+ copy_file "devise/views/index.html.haml", "app/views/users/index.html.haml"
74
+ copy_file "devise/views/new.html.haml", "app/views/users/new.html.haml"
75
+ copy_file "devise/views/show.html.haml", "app/views/users/show.html.haml"
76
+ inject_into_class "app/controllers/application_controller.rb", ApplicationController do
77
+ " def permission_denied\n" +
78
+ " redirect_to(root_url, :alert => \"You are not allowed to do this action.\")\n" +
79
+ " end\n"
80
+ end
89
81
  end
82
+
83
+ private
84
+ # FIXME: Should be proxied to ActiveRecord::Generators::Base
85
+ # Implement the required interface for Rails::Generators::Migration.
86
+ def self.next_migration_number(dirname) #:nodoc:
87
+ if ActiveRecord::Base.timestamped_migrations
88
+ Time.now.utc.strftime("%Y%m%d%H%M%S")
89
+ else
90
+ "%.3d" % (current_migration_number(dirname) + 1)
91
+ end
92
+ end
90
93
  end
94
+ end
91
95
  end
@@ -35,11 +35,11 @@
35
35
  = javascript_tag "$('#flash_box').fadeIn(3000).fadeOut(3000);"
36
36
  - if notice
37
37
  #notice
38
- = image_tag("icons/notice.gif"), :class => "icon"
38
+ = image_tag("icons/notice.gif", :class => "icon")
39
39
  = notice
40
40
  - if alert
41
41
  #alert
42
- = image_tag("icons/alert.gif"), :class => "icon"
42
+ = image_tag("icons/alert.gif", :class => "icon")
43
43
  = alert
44
44
 
45
45
  #content.container
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{llab-generators}
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Luca Tironi"]
9
- s.date = %q{2010-10-29}
9
+ s.date = %q{2010-11-11}
10
10
  s.description = %q{Some useful generators to setup and scaffold Rails applications.}
11
11
  s.email = %q{luca.tironi@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/generators/scaffold/USAGE", "lib/generators/scaffold/scaffold_generator.rb", "lib/generators/scaffold/templates/actions/create.rb", "lib/generators/scaffold/templates/actions/destroy.rb", "lib/generators/scaffold/templates/actions/edit.rb", "lib/generators/scaffold/templates/actions/index.rb", "lib/generators/scaffold/templates/actions/new.rb", "lib/generators/scaffold/templates/actions/show.rb", "lib/generators/scaffold/templates/actions/update.rb", "lib/generators/scaffold/templates/controller.rb", "lib/generators/scaffold/templates/helper.rb", "lib/generators/scaffold/templates/migration.rb", "lib/generators/scaffold/templates/model.rb", "lib/generators/scaffold/templates/views/haml/_form.html.haml", "lib/generators/scaffold/templates/views/haml/edit.html.haml", "lib/generators/scaffold/templates/views/haml/index.html.haml", "lib/generators/scaffold/templates/views/haml/new.html.haml", "lib/generators/scaffold/templates/views/haml/show.html.haml", "lib/generators/setup/USAGE", "lib/generators/setup/setup_generator.rb", "lib/generators/setup/templates/css/_constants.sass", "lib/generators/setup/templates/css/_mixins.sass", "lib/generators/setup/templates/css/blueprint.css", "lib/generators/setup/templates/css/ie.css", "lib/generators/setup/templates/css/print.css", "lib/generators/setup/templates/css/screen.sass", "lib/generators/setup/templates/devise/authorization_rules.rb", "lib/generators/setup/templates/devise/devise_migration.rb", "lib/generators/setup/templates/devise/devise_user.rb", "lib/generators/setup/templates/devise/users_controller.rb", "lib/generators/setup/templates/devise/views/_form.html.haml", "lib/generators/setup/templates/devise/views/change_password.haml", "lib/generators/setup/templates/devise/views/edit.html.haml", "lib/generators/setup/templates/devise/views/forgot_password.haml", "lib/generators/setup/templates/devise/views/index.html.haml", "lib/generators/setup/templates/devise/views/login.haml", "lib/generators/setup/templates/devise/views/new.html.haml", "lib/generators/setup/templates/devise/views/show.html.haml", "lib/generators/setup/templates/images/alert.gif", "lib/generators/setup/templates/images/bullet_black.gif", "lib/generators/setup/templates/images/edit.gif", "lib/generators/setup/templates/images/error.gif", "lib/generators/setup/templates/images/help_triangle.gif", "lib/generators/setup/templates/images/logo_learninglab.gif", "lib/generators/setup/templates/images/navbar_bkg.gif", "lib/generators/setup/templates/images/new.gif", "lib/generators/setup/templates/images/notice.gif", "lib/generators/setup/templates/info_controller.rb", "lib/generators/setup/templates/layout.erb", "lib/generators/setup/templates/layout_helper.rb", "lib/generators/setup/templates/root_index.erb", "lib/generators/setup/templates/sass_config.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llab-generators
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luca Tironi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-29 00:00:00 +02:00
18
+ date: 2010-11-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency