Skip to content

Commit 79b37b3

Browse files
committed
Added files
1 parent 0fb4ae4 commit 79b37b3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

lib/lathe/generators/mini_app/%app_path%.gemspec.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require "<%=app_path%>/version"
66
# Describe your gem and declare its dependencies:
77
Gem::Specification.new do |s|
88
s.name = "<%=app_path%>"
9-
s.version = <%=@package%>::VERSION
9+
s.version = <%=package%>::VERSION
1010
s.authors = ["dev@dehuinet.com"]
1111
s.email = ["dev@dehuinet.com"]
1212
s.homepage = ""

lib/lathe/generators/mini_app/Rakefile renamed to lib/lathe/generators/mini_app/Rakefile.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414

1515
RDoc::Task.new(:rdoc) do |rdoc|
1616
rdoc.rdoc_dir = 'rdoc'
17-
rdoc.title = 'MiniappStudy'
17+
rdoc.title = '<%=package%>'
1818
rdoc.options << '--line-numbers'
1919
rdoc.rdoc_files.include('README.rdoc')
2020
rdoc.rdoc_files.include('lib/**/*.rb')
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
class AddTypeTo<%=package%> < ActiveRecord::Migration
2+
def change
3+
4+
MiniApp.where(:name=>"<%=app_name%>").delete_all
5+
mini_app = <%=package%>::<%=app_class%>.new(:name=>"<%=app_name%>", :order_number=>90)
6+
mini_app.save!
7+
8+
end
9+
end

lib/lathe/generators/mini_app/db/migrate/%now%_add_type_to_mini_app.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)