pixelearth 0.0.2 → 0.0.3

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.
@@ -24,6 +24,8 @@ class ProjectFilesGenerator < Rails::Generators::Base
24
24
  puts `#{cmd}`
25
25
 
26
26
  #remove erb layout file here
27
+ cmd = "rm #{app_root}/app/views/layouts/application.html.erb"
28
+ puts `#{cmd}`
27
29
 
28
30
  #copy images
29
31
  cmd = "cp -vR #{gem_template_dir}/images/* #{app_root}/public/images/"
@@ -1,3 +1,3 @@
1
1
  module Pixelearth
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -182,9 +182,9 @@ module ActionController
182
182
  when 'create'
183
183
  title_h1 "New #{params[:controller].singularize.titleize} (with errors)"
184
184
  when 'show'
185
- title_h1 "#{params[:controller].singularize.titleize}: #{resource.name.titleize || resource.id }"
185
+ title_h1 "#{params[:controller].singularize.titleize}: #{begin resource.name.titleize rescue resource.id end }"
186
186
  when 'edit'
187
- title_h1 "Editing #{params[:controller].singularize.titleize}: #{resource.name.titleize || resource.id }"
187
+ title_h1 "Editing #{params[:controller].singularize.titleize}: #{begin resource.name.titleize rescue resource.id end}"
188
188
  when 'update'
189
189
  title_h1 "Editing #{params[:controller].singularize.titleize} (with errors)"
190
190
  when 'index'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pixelearth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Lieb