formula 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +11 -10
  2. data/lib/formula/version.rb +1 -1
  3. metadata +3 -5
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@ Formula is a Rails form helper that generates awesome markup. The project aims t
4
4
 
5
5
  == Requirements
6
6
 
7
- The gem is tested with Ruby 1.9.2 and Rails 3.0.6 but may well work with other versions of Ruby and Rails.
7
+ The gem is tested with Ruby 1.9.2 and Rails 3.0.7 but may well work with other versions of Ruby and Rails.
8
8
 
9
9
  == Installation
10
10
 
@@ -19,24 +19,25 @@ The gem is tested with Ruby 1.9.2 and Rails 3.0.6 but may well work with other v
19
19
  <% end %>
20
20
 
21
21
  <% formula_form_for @user do |f| %>
22
- <%= f.input :email, :label => "Email:", :hint => "We promise never to bother you." %>
23
- <%= f.input :password, :label => "Password:", :hint => "Must be at least six characters." %>
22
+ <%= f.input :email, label: "Email:", hint: "We promise never to bother you." %>
23
+ <%= f.input :password, label: "Password:", hint: "Must be at least six characters." %>
24
24
  <%= f.button :submit %>
25
25
  <% end %>
26
26
 
27
27
  <% formula_form_for @company do |f|
28
- <%= f.input :url, :container => { :class => 'grid-04' } %>
29
- <%= f.input :phone, :container => { :class => 'grid-04' } %>
30
- <%= f.input :email, :container => { :class => 'grid-04' } %>
28
+ <%= f.input :url, container: { class: 'grid-04' }, input: { class: 'fill' } %>
29
+ <%= f.input :phone, container: { class: 'grid-04' }, input: { class: 'fill' } %>
30
+ <%= f.input :email, container: { class: 'grid-04' }, input: { class: 'fill' } %>
31
31
  <%= f.button :submit %>
32
32
  <% end %>
33
33
 
34
34
  <% formula_form_for @user do |f| %>
35
- <%= f.input :email, :label => "Email:" %>
36
- <%= f.input :password, :label => "Password:" %>
35
+ <%= f.input :email, label: "Email:" %>
36
+ <%= f.input :password, label: "Password:" %>
37
+ <%= f.input :gender, label: 'Gender:', as: :select, choices: User::GENDERS %>
37
38
  <% formula_fields_for @user.payment do |payment_f| %>
38
- <%= payment_f.input :credit_card_number, :label => 'Number:' %>
39
- <%= payment_f.input :credit_card_expiration, :label => 'Expiration:' %>
39
+ <%= payment_f.input :credit_card_number, label: 'Number:' %>
40
+ <%= payment_f.input :credit_card_expiration, label: 'Expiration:' %>
40
41
  <% end %>
41
42
  <%= f.button :submit %>
42
43
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: formula
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.6
5
+ version: 0.2.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Sylvestre
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-17 00:00:00 -04:00
14
- default_executable:
13
+ date: 2011-06-25 00:00:00 Z
15
14
  dependencies: []
16
15
 
17
16
  description: Formula is a Rails form generator that generates simple clean markup. The project aims to let users create semantically beautiful forms without introducing too much syntax. The goal is to make integrating advanced layout systems (such as grid systems) as simple as possible.
@@ -31,7 +30,6 @@ files:
31
30
  - LICENSE
32
31
  - Gemfile
33
32
  - Rakefile
34
- has_rdoc: true
35
33
  homepage: http://github.com/ksylvest/formula
36
34
  licenses: []
37
35
 
@@ -55,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
53
  requirements: []
56
54
 
57
55
  rubyforge_project:
58
- rubygems_version: 1.6.2
56
+ rubygems_version: 1.8.5
59
57
  signing_key:
60
58
  specification_version: 3
61
59
  summary: A great way to simplify complex forms