Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update manifest and gemspec info

  • Loading branch information...
commit 11aa38579b5ff2f7750ec39cdfa8b5028440b720 1 parent f05cda3
@vanntastic authored
View
1  Manifest.txt
@@ -12,6 +12,7 @@ app_generators/sinatra_app/templates/config.ru.erb
app_generators/sinatra_app/templates/config.yml
app_generators/sinatra_app/templates/config/deploy.rb.erb
app_generators/sinatra_app/templates/lib/module.rb.erb
+app_generators/sinatra_app/templates/lib/app_helper.rb.erb
app_generators/sinatra_app/templates/test/test_app_bacon.rb.erb
app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb
app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb
View
1  app_generators/sinatra_app/sinatra_app_generator.rb
@@ -46,6 +46,7 @@ def manifest
BASEDIRS.each { |path| m.directory path }
m.file 'config.yml', 'config.yml'
m.template 'lib/module.rb.erb', "lib/#{app_name}.rb"
+ m.template 'lib/app_helper.rb.erb', 'lib/app_helper.rb'
m.template 'test/test_helper.rb.erb', 'test/test_helper.rb'
m.template "test/test_app_#{test_framework}.rb.erb", "test/test_#{app_name}.rb"
m.template "views/#{view_framework}_index.erb", "views/index.#{view_framework}"
View
1  app_generators/sinatra_app/templates/app.rb.erb
@@ -7,6 +7,7 @@ require 'sinatra'
<%- end -%>
<%- unless tiny -%>
require File.join(File.dirname(__FILE__), 'lib', '<%= app_name %>')
+require File.join(File.dirname(__FILE__), 'lib', 'app_helper')
set :public, 'public'
set :views, 'views'
View
3  app_generators/sinatra_app/templates/lib/app_helper.rb.erb
@@ -0,0 +1,3 @@
+module AppHelper
+
+end
View
13 sinatra-gen.gemspec
@@ -1,16 +1,19 @@
+# -*- encoding: utf-8 -*-
+
Gem::Specification.new do |s|
s.name = %q{sinatra-gen}
s.version = "0.2.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Aaron Quint"]
- s.date = %q{2009-02-10}
+ s.authors = ["Aaron Quint","Vann Ek"]
+ s.date = %q{2009-03-25}
s.default_executable = %q{sinatra-gen}
- s.description = %q{sinatra-gen generates a common file structure and basic app files for a web app utilizing the sinatra framework. For more information on sinatra, check out http://sinatra.rubyforge.org}
- s.email = ["aaron@quirkey.com"]
+ s.description = %q{sinatra-gen generates a common file structure and basic app files for a web app utilizing the sinatra framework. For more information on sinatra, check out http://sinatrarb.com !! NOW WITH SUPPORT FOR SINATRA 0.9 (02/10/09)}
+ s.email = ["aaron@quirkey.com","ek.vann@gmail.com"]
s.executables = ["sinatra-gen"]
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
- s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "app_generators/sinatra_app/USAGE", "app_generators/sinatra_app/sinatra_app_generator.rb", "app_generators/sinatra_app/templates/Capfile", "app_generators/sinatra_app/templates/Rakefile.erb", "app_generators/sinatra_app/templates/app.rb.erb", "app_generators/sinatra_app/templates/config.ru.erb", "app_generators/sinatra_app/templates/config.yml", "app_generators/sinatra_app/templates/config/deploy.rb.erb", "app_generators/sinatra_app/templates/lib/module.rb.erb", "app_generators/sinatra_app/templates/test/test_app_bacon.rb.erb", "app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb", "app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb", "app_generators/sinatra_app/templates/test/test_app_spec.rb.erb", "app_generators/sinatra_app/templates/test/test_app_unit.rb.erb", "app_generators/sinatra_app/templates/test/test_helper.rb.erb", "app_generators/sinatra_app/templates/views/builder_index.erb", "app_generators/sinatra_app/templates/views/erb_index.erb", "app_generators/sinatra_app/templates/views/erb_layout.erb", "app_generators/sinatra_app/templates/views/haml_index.erb", "app_generators/sinatra_app/templates/views/haml_layout.erb", "bin/sinatra-gen", "lib/sinatra-gen.rb", "sinatra-gen.gemspec", "test/test_generator_helper.rb", "test/test_helper.rb", "test/test_sinatra_app_generator.rb"]
+ s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "app_generators/sinatra_app/USAGE", "app_generators/sinatra_app/sinatra_app_generator.rb", "app_generators/sinatra_app/templates/Capfile", "app_generators/sinatra_app/templates/Rakefile.erb", "app_generators/sinatra_app/templates/app.rb.erb", "app_generators/sinatra_app/templates/config.ru.erb", "app_generators/sinatra_app/templates/config.yml", "app_generators/sinatra_app/templates/config/deploy.rb.erb", "app_generators/sinatra_app/templates/lib/module.rb.erb",
+"app_generators/sinatra_app/templates/lib/app_helper.rb.erb", "app_generators/sinatra_app/templates/test/test_app_bacon.rb.erb", "app_generators/sinatra_app/templates/test/test_app_rspec.rb.erb", "app_generators/sinatra_app/templates/test/test_app_shoulda.rb.erb", "app_generators/sinatra_app/templates/test/test_app_spec.rb.erb", "app_generators/sinatra_app/templates/test/test_app_unit.rb.erb", "app_generators/sinatra_app/templates/test/test_helper.rb.erb", "app_generators/sinatra_app/templates/views/builder_index.erb", "app_generators/sinatra_app/templates/views/erb_index.erb", "app_generators/sinatra_app/templates/views/erb_layout.erb", "app_generators/sinatra_app/templates/views/haml_index.erb", "app_generators/sinatra_app/templates/views/haml_layout.erb", "bin/sinatra-gen", "lib/sinatra-gen.rb", "sinatra-gen.gemspec", "test/test_generator_helper.rb", "test/test_helper.rb", "test/test_sinatra_app_generator.rb"]
s.has_rdoc = true
s.homepage = %q{http://github.com/quirkey/sinatra-gen}
s.post_install_message = %q{PostInstall.txt}
View
1  test/test_sinatra_app_generator.rb
@@ -176,6 +176,7 @@ def assert_basic_paths_and_files
assert_generated_file 'Rakefile'
assert_generated_file 'config.yml'
assert_generated_module "lib/#{app_name}"
+ assert_generated_file "lib/app_helper.rb"
end
Please sign in to comment.
Something went wrong with that request. Please try again.