Skip to content

Commit

Permalink
update sinatra-formhelpers gem first release
Browse files Browse the repository at this point in the history
  • Loading branch information
twilson63 committed Jun 15, 2009
1 parent ea48ae9 commit 5b9fe68
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ require 'rake'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "test-gem"
gem.summary = %Q{TODO}
gem.name = "sinatra-formhelpers"
gem.summary = %Q{use basic form helpers for generic form management}
gem.email = "tom@jackrussellsoftware.com"
gem.homepage = "http://github.com/twilson63/test-gem"
gem.homepage = "http://github.com/twilson63/sinatra-formhelpers"
gem.authors = ["twilson63"]
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
gem.add_runtime_dependency 'sinatra', ['>= 0.9.2.0']
gem.add_runtime_dependency 'activesupport', ['>= 2.3.2.0']


end

rescue LoadError
Expand Down
13 changes: 13 additions & 0 deletions lib/sinatra/formhelpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@

module Sinatra
module FormHelpers
# FormHelpers are a suite of helper methods
# built to make building forms in Sinatra
# a breeze.
#
# link "jackhq", "http://www.jackhq.com"
#
# label :person, :first_name
# text :person, :first_name
#
# area :person, :notes
#
# etc.

def link(content, href, options={})
tag :a, content, options.merge(:href => href)
end
Expand Down
55 changes: 55 additions & 0 deletions sinatra-formhelpers.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{sinatra-formhelpers}
s.version = "0.0.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["twilson63"]
s.date = %q{2009-06-14}
s.email = %q{tom@jackrussellsoftware.com}
s.extra_rdoc_files = [
"LICENSE",
"README",
"README.rdoc"
]
s.files = [
".document",
".gitignore",
"LICENSE",
"README",
"README.rdoc",
"Rakefile",
"Rakefile.backup",
"lib/sinatra/formhelpers.rb",
"test/contest.rb",
"test/formhelpers_test.rb",
"test/helper.rb"
]
s.homepage = %q{http://github.com/twilson63/sinatra-formhelpers}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.4}
s.summary = %q{use basic form helpers for generic form management}
s.test_files = [
"test/helper.rb",
"test/contest.rb",
"test/formhelpers_test.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2.0"])
s.add_runtime_dependency(%q<activesupport>, [">= 2.3.2.0"])
else
s.add_dependency(%q<sinatra>, [">= 0.9.2.0"])
s.add_dependency(%q<activesupport>, [">= 2.3.2.0"])
end
else
s.add_dependency(%q<sinatra>, [">= 0.9.2.0"])
s.add_dependency(%q<activesupport>, [">= 2.3.2.0"])
end
end

0 comments on commit 5b9fe68

Please sign in to comment.