twilson63-sinatra-formhelpers 0.1.0 → 0.1.1

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.
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  *.sw?
2
2
  .DS_Store
3
3
  coverage
4
- rdoc
5
4
  pkg
data/README.rdoc CHANGED
@@ -1,7 +1,33 @@
1
1
  = sinatra-formhelpers
2
+
3
+ <code>sinatra-formhelpers</code> is a suite of form helpers for sinatra.
2
4
 
3
- Description goes here.
5
+ link "google", "http://www.google.com" # Returns "<a href='http://www.google.com'>google</a>"
6
+ label :person, :first_name # Returns "<label for='person_first_name'>First Name</label>"
7
+ text :person, :first_name # Returns "<input name='person[first_name]' id='person_first_name' value='' type='text' />"
4
8
 
9
+ There are also helpers for (area, submit, image, radio, checkbox, and select)
10
+
11
+ To install it, run:
12
+
13
+ sudo gem install twilson63-sinatra-formhelpers -s http://gems.github.com
14
+
15
+ To include it in a Sinatra application, write:
16
+
17
+ require 'rubygems'
18
+ require 'sinatra/formhelpers'
19
+
20
+ If you're subclassing <code>Sinatra::Base</code>, then you need to call
21
+ <code>helpers</code> manually:
22
+
23
+ class MyApp < Sinatra::Base
24
+ helpers Sinatra::FormHelpers
25
+ # ...
26
+ end
27
+
28
+
5
29
  == Copyright
6
30
 
7
31
  Copyright (c) 2009 twilson63. See LICENSE for details.
32
+
33
+
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 0
4
+ :patch: 1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sinatra-formhelpers}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["twilson63"]
@@ -10,14 +10,12 @@ Gem::Specification.new do |s|
10
10
  s.email = %q{tom@jackrussellsoftware.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
13
- "README",
14
13
  "README.rdoc"
15
14
  ]
16
15
  s.files = [
17
16
  ".document",
18
17
  ".gitignore",
19
18
  "LICENSE",
20
- "README",
21
19
  "README.rdoc",
22
20
  "Rakefile",
23
21
  "Rakefile.backup",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilson63-sinatra-formhelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - twilson63
@@ -40,13 +40,11 @@ extensions: []
40
40
 
41
41
  extra_rdoc_files:
42
42
  - LICENSE
43
- - README
44
43
  - README.rdoc
45
44
  files:
46
45
  - .document
47
46
  - .gitignore
48
47
  - LICENSE
49
- - README
50
48
  - README.rdoc
51
49
  - Rakefile
52
50
  - Rakefile.backup
data/README DELETED
File without changes