nuatt-formtastic 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.textile +635 -0
  3. data/lib/formtastic.rb +24 -0
  4. data/lib/formtastic/form_builder.rb +75 -0
  5. data/lib/formtastic/helpers.rb +15 -0
  6. data/lib/formtastic/helpers/buttons_helper.rb +277 -0
  7. data/lib/formtastic/helpers/errors_helper.rb +124 -0
  8. data/lib/formtastic/helpers/fieldset_wrapper.rb +62 -0
  9. data/lib/formtastic/helpers/file_column_detection.rb +16 -0
  10. data/lib/formtastic/helpers/form_helper.rb +221 -0
  11. data/lib/formtastic/helpers/input_helper.rb +357 -0
  12. data/lib/formtastic/helpers/inputs_helper.rb +381 -0
  13. data/lib/formtastic/helpers/reflection.rb +12 -0
  14. data/lib/formtastic/helpers/semantic_form_helper.rb +11 -0
  15. data/lib/formtastic/html_attributes.rb +21 -0
  16. data/lib/formtastic/i18n.rb +32 -0
  17. data/lib/formtastic/inputs.rb +29 -0
  18. data/lib/formtastic/inputs/base.rb +50 -0
  19. data/lib/formtastic/inputs/base/associations.rb +33 -0
  20. data/lib/formtastic/inputs/base/choices.rb +88 -0
  21. data/lib/formtastic/inputs/base/collections.rb +94 -0
  22. data/lib/formtastic/inputs/base/database.rb +17 -0
  23. data/lib/formtastic/inputs/base/errors.rb +58 -0
  24. data/lib/formtastic/inputs/base/fileish.rb +23 -0
  25. data/lib/formtastic/inputs/base/grouped_collections.rb +77 -0
  26. data/lib/formtastic/inputs/base/hints.rb +31 -0
  27. data/lib/formtastic/inputs/base/html.rb +51 -0
  28. data/lib/formtastic/inputs/base/labelling.rb +53 -0
  29. data/lib/formtastic/inputs/base/naming.rb +54 -0
  30. data/lib/formtastic/inputs/base/options.rb +18 -0
  31. data/lib/formtastic/inputs/base/stringish.rb +30 -0
  32. data/lib/formtastic/inputs/base/timeish.rb +125 -0
  33. data/lib/formtastic/inputs/base/validations.rb +125 -0
  34. data/lib/formtastic/inputs/base/wrapping.rb +38 -0
  35. data/lib/formtastic/inputs/boolean_input.rb +87 -0
  36. data/lib/formtastic/inputs/check_boxes_input.rb +169 -0
  37. data/lib/formtastic/inputs/country_input.rb +66 -0
  38. data/lib/formtastic/inputs/date_input.rb +14 -0
  39. data/lib/formtastic/inputs/datetime_input.rb +9 -0
  40. data/lib/formtastic/inputs/email_input.rb +40 -0
  41. data/lib/formtastic/inputs/file_input.rb +42 -0
  42. data/lib/formtastic/inputs/hidden_input.rb +66 -0
  43. data/lib/formtastic/inputs/number_input.rb +72 -0
  44. data/lib/formtastic/inputs/numeric_input.rb +20 -0
  45. data/lib/formtastic/inputs/password_input.rb +40 -0
  46. data/lib/formtastic/inputs/phone_input.rb +41 -0
  47. data/lib/formtastic/inputs/radio_input.rb +146 -0
  48. data/lib/formtastic/inputs/search_input.rb +40 -0
  49. data/lib/formtastic/inputs/select_input.rb +208 -0
  50. data/lib/formtastic/inputs/string_input.rb +34 -0
  51. data/lib/formtastic/inputs/text_input.rb +47 -0
  52. data/lib/formtastic/inputs/time_input.rb +14 -0
  53. data/lib/formtastic/inputs/time_zone_input.rb +48 -0
  54. data/lib/formtastic/inputs/url_input.rb +40 -0
  55. data/lib/formtastic/localized_string.rb +96 -0
  56. data/lib/formtastic/railtie.rb +12 -0
  57. data/lib/formtastic/semantic_form_builder.rb +11 -0
  58. data/lib/formtastic/util.rb +25 -0
  59. data/lib/generators/formtastic/form/form_generator.rb +95 -0
  60. data/lib/generators/formtastic/install/install_generator.rb +23 -0
  61. data/lib/generators/templates/_form.html.erb +7 -0
  62. data/lib/generators/templates/_form.html.haml +5 -0
  63. data/lib/generators/templates/formtastic.css +145 -0
  64. data/lib/generators/templates/formtastic.rb +74 -0
  65. data/lib/generators/templates/formtastic_changes.css +14 -0
  66. data/lib/locale/en.yml +7 -0
  67. data/lib/tasks/verify_rcov.rb +44 -0
  68. metadata +206 -19
@@ -0,0 +1,7 @@
1
+ <%%= semantic_form_for @<%= name.underscore %> do |f| %>
2
+ <%%= f.inputs do %>
3
+ <% @attributes.each do |attribute| -%>
4
+ <%%= f.input :<%= attribute %> %>
5
+ <% end -%>
6
+ <%% end %>
7
+ <%% end %>
@@ -0,0 +1,5 @@
1
+ = semantic_form_for @<%= name.underscore %> do |f|
2
+ = f.inputs do
3
+ <% @attributes.each do |attribute| -%>
4
+ = f.input :<%= attribute %>
5
+ <% end -%>
@@ -0,0 +1,145 @@
1
+ /* -------------------------------------------------------------------------------------------------
2
+
3
+ It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
4
+ this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
5
+ This will allow you to update formtastic.css with new releases without clobbering your own changes.
6
+
7
+ This stylesheet forms part of the Formtastic Rails Plugin
8
+ (c) 2008 Justin French
9
+
10
+ --------------------------------------------------------------------------------------------------*/
11
+
12
+
13
+ /* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just form.formtastic
14
+ --------------------------------------------------------------------------------------------------*/
15
+ form.formtastic, form.formtastic ul, form.formtastic ol, form.formtastic li, form.formtastic fieldset, form.formtastic legend, form.formtastic input, form.formtastic textarea, form.formtastic select, form.formtastic p { margin:0; padding:0; }
16
+ form.formtastic fieldset { border:0; }
17
+ form.formtastic em, form.formtastic strong { font-style:normal; font-weight:normal; }
18
+ form.formtastic ol, form.formtastic ul { list-style:none; }
19
+ form.formtastic abbr, form.formtastic acronym { border:0; font-variant:normal; }
20
+ form.formtastic input, form.formtastic textarea, form.formtastic select { font-family:inherit; font-size:inherit; font-weight:inherit; }
21
+ form.formtastic input, form.formtastic textarea, form.formtastic select { font-size:100%; }
22
+ form.formtastic legend { white-space:normal; color:#000; }
23
+
24
+
25
+ /* SEMANTIC ERRORS
26
+ --------------------------------------------------------------------------------------------------*/
27
+ form.formtastic ul.errors { color:#cc0000; margin:0.5em 0 1.5em 25%; list-style:square; }
28
+ form.formtastic ul.errors li { padding:0; border:none; display:list-item; }
29
+
30
+
31
+ /* FIELDSETS & LISTS
32
+ --------------------------------------------------------------------------------------------------*/
33
+ form.formtastic fieldset { overflow:auto; } /* clearing contained floats */
34
+ form.formtastic fieldset.inputs { }
35
+ form.formtastic fieldset.buttons { padding-left:25%; }
36
+ form.formtastic fieldset ol { }
37
+ form.formtastic fieldset.buttons li { float:left; padding-right:0.5em; }
38
+
39
+ /* INPUT LIs
40
+ --------------------------------------------------------------------------------------------------*/
41
+ form.formtastic fieldset > ol > li { padding:0.5em 0; margin-top:-0.5em; margin-bottom:1em; } /* padding and negative margin juggling is for Firefox */
42
+ form.formtastic fieldset > ol > li { overflow:auto; } /* clearing contained floats */
43
+
44
+ form.formtastic fieldset > ol > li.required { }
45
+ form.formtastic fieldset > ol > li.optional { }
46
+ form.formtastic fieldset > ol > li.error { }
47
+
48
+
49
+ /* LABELS
50
+ --------------------------------------------------------------------------------------------------*/
51
+ form.formtastic fieldset > ol > li label { display:block; width:25%; float:left; padding-top:.2em; }
52
+ form.formtastic fieldset > ol > li > li label { line-height:100%; padding-top:0; }
53
+ form.formtastic fieldset > ol > li > li label input { line-height:100%; vertical-align:middle; margin-top:-0.1em;}
54
+
55
+
56
+ /* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
57
+ --------------------------------------------------------------------------------------------------*/
58
+ form.formtastic fieldset > ol > li fieldset { position:relative; }
59
+ form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:95%; left: 0px; }
60
+ form.formtastic fieldset > ol > li fieldset legend span { position:absolute; }
61
+ form.formtastic fieldset > ol > li fieldset legend.label label { position:absolute; }
62
+ form.formtastic fieldset > ol > li fieldset ol { float:left; width:74%; margin:0; padding:0 0 0 25%; }
63
+ form.formtastic fieldset > ol > li fieldset ol li { padding:0; border:0; }
64
+
65
+
66
+ /* INLINE HINTS
67
+ --------------------------------------------------------------------------------------------------*/
68
+ form.formtastic fieldset > ol > li p.inline-hints { color:#666; margin:0.5em 0 0 25%; }
69
+
70
+
71
+ /* INLINE ERRORS
72
+ --------------------------------------------------------------------------------------------------*/
73
+ form.formtastic fieldset > ol > li p.inline-errors { color:#cc0000; margin:0.5em 0 0 25%; }
74
+ form.formtastic fieldset > ol > li ul.errors { color:#cc0000; margin:0.5em 0 0 25%; list-style:square; }
75
+ form.formtastic fieldset > ol > li ul.errors li { padding:0; border:none; display:list-item; }
76
+
77
+
78
+ /* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE & SEARCH OVERRIDES
79
+ --------------------------------------------------------------------------------------------------*/
80
+ form.formtastic fieldset > ol > li.string input,
81
+ form.formtastic fieldset > ol > li.password input,
82
+ form.formtastic fieldset > ol > li.numeric input,
83
+ form.formtastic fieldset > ol > li.email input,
84
+ form.formtastic fieldset > ol > li.url input,
85
+ form.formtastic fieldset > ol > li.phone input,
86
+ form.formtastic fieldset > ol > li.search input { width:72%; }
87
+
88
+ form.formtastic fieldset > ol > li.string input[size],
89
+ form.formtastic fieldset > ol > li.password input[size],
90
+ form.formtastic fieldset > ol > li.numeric input[size],
91
+ form.formtastic fieldset > ol > li.email input[size],
92
+ form.formtastic fieldset > ol > li.url input[size],
93
+ form.formtastic fieldset > ol > li.phone input[size],
94
+ form.formtastic fieldset > ol > li.search input[size] { width:auto; max-width:72%; }
95
+
96
+
97
+ /* TEXTAREA OVERRIDES
98
+ --------------------------------------------------------------------------------------------------*/
99
+ form.formtastic fieldset > ol > li.text textarea { width:72%; }
100
+ form.formtastic fieldset > ol > li.text textarea[cols] { width:auto; max-width:72%; }
101
+
102
+
103
+ /* HIDDEN OVERRIDES
104
+ --------------------------------------------------------------------------------------------------*/
105
+ form.formtastic fieldset ol li.hidden { display:none; }
106
+
107
+ /* BOOLEAN OVERRIDES
108
+ --------------------------------------------------------------------------------------------------*/
109
+ form.formtastic fieldset > ol > li.boolean label { padding-left:25%; width:auto; }
110
+ form.formtastic fieldset > ol > li.boolean label input { margin:0 0.5em 0 0.2em; }
111
+
112
+
113
+ /* RADIO OVERRIDES
114
+ --------------------------------------------------------------------------------------------------*/
115
+ form.formtastic fieldset > ol > li.radio { }
116
+ form.formtastic fieldset > ol > li.radio fieldset { overflow:visible; }
117
+ form.formtastic fieldset > ol > li.radio fieldset ol { margin-bottom:-0.5em; }
118
+ form.formtastic fieldset > ol > li.radio fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
119
+ form.formtastic fieldset > ol > li.radio fieldset ol li label { float:none; width:100%; }
120
+ form.formtastic fieldset > ol > li.radio fieldset ol li label input { margin-right:0.2em; }
121
+
122
+
123
+ /* CHECK BOXES (COLLECTION) OVERRIDES
124
+ --------------------------------------------------------------------------------------------------*/
125
+ form.formtastic fieldset > ol > li.check_boxes { }
126
+ form.formtastic fieldset > ol > li.check_boxes fieldset { overflow:visible; }
127
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol { margin-bottom:-0.5em; }
128
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
129
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li label { float:none; width:100%; }
130
+ form.formtastic fieldset > ol > li.check_boxes fieldset ol li label input { margin-right:0.2em; }
131
+
132
+
133
+ /* DATE & TIME OVERRIDES
134
+ --------------------------------------------------------------------------------------------------*/
135
+ form.formtastic fieldset > ol > li.date fieldset ol li,
136
+ form.formtastic fieldset > ol > li.time fieldset ol li,
137
+ form.formtastic fieldset > ol > li.datetime fieldset ol li { float:left; width:auto; margin:0 .3em 0 0; }
138
+
139
+ form.formtastic fieldset > ol > li.date fieldset ol li label,
140
+ form.formtastic fieldset > ol > li.time fieldset ol li label,
141
+ form.formtastic fieldset > ol > li.datetime fieldset ol li label { display:none; }
142
+
143
+ form.formtastic fieldset > ol > li.date fieldset ol li label input,
144
+ form.formtastic fieldset > ol > li.time fieldset ol li label input,
145
+ form.formtastic fieldset > ol > li.datetime fieldset ol li label input { display:inline; margin:0; padding:0; }
@@ -0,0 +1,74 @@
1
+ # encoding: utf-8
2
+
3
+ # --------------------------------------------------------------------------------------------------
4
+ # Please note: If you're subclassing Formtastic::FormBuilder, Formtastic uses
5
+ # class_attribute for these configuration attributes instead of the deprecated
6
+ # class_inheritable_attribute. The behaviour is slightly different with subclasses (especially
7
+ # around attributes with Hash or Array) values, so make sure you understand what's happening.
8
+ # See the documentation for class_attribute in ActiveSupport for more information.
9
+ # --------------------------------------------------------------------------------------------------
10
+
11
+ # Set the default text field size when input is a string. Default is nil.
12
+ # Formtastic::FormBuilder.default_text_field_size = 50
13
+
14
+ # Set the default text area height when input is a text. Default is 20.
15
+ # Formtastic::FormBuilder.default_text_area_height = 5
16
+
17
+ # Set the default text area width when input is a text. Default is nil.
18
+ # Formtastic::FormBuilder.default_text_area_width = 50
19
+
20
+ # Should all fields be considered "required" by default?
21
+ # Rails 2 only, ignored by Rails 3 because it will never fall back to this default.
22
+ # Defaults to true.
23
+ # Formtastic::FormBuilder.all_fields_required_by_default = true
24
+
25
+ # Should select fields have a blank option/prompt by default?
26
+ # Defaults to true.
27
+ # Formtastic::FormBuilder.include_blank_for_select_by_default = true
28
+
29
+ # Set the string that will be appended to the labels/fieldsets which are required
30
+ # It accepts string or procs and the default is a localized version of
31
+ # '<abbr title="required">*</abbr>'. In other words, if you configure formtastic.required
32
+ # in your locale, it will replace the abbr title properly. But if you don't want to use
33
+ # abbr tag, you can simply give a string as below
34
+ # Formtastic::FormBuilder.required_string = "(required)"
35
+
36
+ # Set the string that will be appended to the labels/fieldsets which are optional
37
+ # Defaults to an empty string ("") and also accepts procs (see required_string above)
38
+ # Formtastic::FormBuilder.optional_string = "(optional)"
39
+
40
+ # Set the way inline errors will be displayed.
41
+ # Defaults to :sentence, valid options are :sentence, :list, :first and :none
42
+ # Formtastic::FormBuilder.inline_errors = :sentence
43
+ # Formtastic uses the following classes as default for hints, inline_errors and error list
44
+
45
+ # If you override the class here, please ensure to override it in your formtastic_changes.css stylesheet as well
46
+ # Formtastic::FormBuilder.default_hint_class = "inline-hints"
47
+ # Formtastic::FormBuilder.default_inline_error_class = "inline-errors"
48
+ # Formtastic::FormBuilder.default_error_list_class = "errors"
49
+
50
+ # Set the method to call on label text to transform or format it for human-friendly
51
+ # reading when formtastic is used without object. Defaults to :humanize.
52
+ # Formtastic::FormBuilder.label_str_method = :humanize
53
+
54
+ # Set the array of methods to try calling on parent objects in :select and :radio inputs
55
+ # for the text inside each @<option>@ tag or alongside each radio @<input>@. The first method
56
+ # that is found on the object will be used.
57
+ # Defaults to ["to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
58
+ # Formtastic::FormBuilder.collection_label_methods = [
59
+ # "to_label", "display_name", "full_name", "name", "title", "username", "login", "value", "to_s"]
60
+
61
+ # Additionally, you can customize the order for specific types of inputs.
62
+ # This is configured on a type basis and if a type is not found it will
63
+ # fall back to the default order as defined by #inline_order
64
+ # Formtastic::FormBuilder.custom_inline_order[:checkbox] = [:errors, :hints, :input]
65
+ # Formtastic::FormBuilder.custom_inline_order[:select] = [:hints, :input, :errors]
66
+
67
+ # Specifies if labels/hints for input fields automatically be looked up using I18n.
68
+ # Default value: true. Overridden for specific fields by setting value to true,
69
+ # i.e. :label => true, or :hint => true (or opposite depending on initialized value)
70
+ # Formtastic::FormBuilder.i18n_lookups_by_default = false
71
+
72
+ # You can add custom inputs or override parts of Formtastic by subclassing Formtastic::FormBuilder and
73
+ # specifying that class here. Defaults to Formtastic::FormBuilder.
74
+ # Formtastic::Helpers::FormHelper.builder = MyCustomBuilder
@@ -0,0 +1,14 @@
1
+ /* -------------------------------------------------------------------------------------------------
2
+
3
+ Load this stylesheet after formtastic.css in your layouts to override the CSS to suit your needs.
4
+ This will allow you to update formtastic.css with new releases without clobbering your own changes.
5
+
6
+ For example, to make the inline hint paragraphs a little darker in color than the standard #666:
7
+
8
+ form.formtastic fieldset > ol > li p.inline-hints { color:#333; }
9
+
10
+ HINT:
11
+ The following style may be *conditionally* included for improved support on older versions of IE(<8)
12
+ form.formtastic fieldset ol li fieldset legend { margin-left: -6px;}
13
+
14
+ --------------------------------------------------------------------------------------------------*/
@@ -0,0 +1,7 @@
1
+ en:
2
+ formtastic:
3
+ :yes: 'Yes'
4
+ :no: 'No'
5
+ :create: 'Create %{model}'
6
+ :update: 'Update %{model}'
7
+ :required: 'required'
@@ -0,0 +1,44 @@
1
+ require 'colored'
2
+
3
+ # @private
4
+ module RCov
5
+
6
+ class VerifyTask < Rake::TaskLib
7
+
8
+ attr_accessor :name
9
+ attr_accessor :index_html
10
+ attr_accessor :verbose
11
+ attr_accessor :threshold
12
+ attr_accessor :require_exact_threshold
13
+
14
+ def initialize(name=:verify_rcov)
15
+ @name = name
16
+ @index_html = 'coverage/index.html'
17
+ @verbose = true
18
+ @require_exact_threshold = true
19
+ yield self if block_given?
20
+ raise "Threshold must be set" if @threshold.nil?
21
+ define
22
+ end
23
+
24
+ def define
25
+ desc "Verify that rcov coverage is at least #{threshold}%"
26
+ task @name do
27
+ total_coverage = 0
28
+ File.open(index_html).each_line do |line|
29
+ if line =~ /<tt class='coverage_total'>\s*(\d+\.\d+)%\s*<\/tt>/
30
+ total_coverage = $1.to_f
31
+ break
32
+ end
33
+ end
34
+ output_coverage(total_coverage)
35
+ end
36
+ end
37
+
38
+ def output_coverage(total_coverage)
39
+ puts "Coverage: #{total_coverage}% (threshold: #{threshold}%)".green if verbose && total_coverage >= threshold
40
+ raise "Coverage must be at least #{threshold}% but was #{total_coverage}%".red if total_coverage < threshold
41
+ raise "Coverage has increased above the threshold of #{threshold}% to #{total_coverage}%. You should update your threshold value.".red if (total_coverage > threshold) and require_exact_threshold
42
+ end
43
+ end
44
+ end
metadata CHANGED
@@ -1,39 +1,226 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuatt-formtastic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
- authors: []
13
-
12
+ authors:
13
+ - Justin French
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-25 00:00:00 Z
19
- dependencies: []
20
-
21
- description:
22
- email:
18
+ date: 2011-01-07 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rails
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 7
29
+ segments:
30
+ - 3
31
+ - 0
32
+ - 0
33
+ version: 3.0.0
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 9
45
+ segments:
46
+ - 2
47
+ - 5
48
+ version: "2.5"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: rspec_tag_matchers
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 23
60
+ segments:
61
+ - 1
62
+ - 0
63
+ - 0
64
+ version: 1.0.0
65
+ type: :development
66
+ version_requirements: *id003
67
+ - !ruby/object:Gem::Dependency
68
+ name: hpricot
69
+ prerelease: false
70
+ requirement: &id004 !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ hash: 57
76
+ segments:
77
+ - 0
78
+ - 8
79
+ - 3
80
+ version: 0.8.3
81
+ type: :development
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ name: BlueCloth
85
+ prerelease: false
86
+ requirement: &id005 !ruby/object:Gem::Requirement
87
+ none: false
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ hash: 3
92
+ segments:
93
+ - 0
94
+ version: "0"
95
+ type: :development
96
+ version_requirements: *id005
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ prerelease: false
100
+ requirement: &id006 !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ~>
104
+ - !ruby/object:Gem::Version
105
+ hash: 7
106
+ segments:
107
+ - 0
108
+ - 6
109
+ version: "0.6"
110
+ type: :development
111
+ version_requirements: *id006
112
+ - !ruby/object:Gem::Dependency
113
+ name: rcov
114
+ prerelease: false
115
+ requirement: &id007 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ~>
119
+ - !ruby/object:Gem::Version
120
+ hash: 41
121
+ segments:
122
+ - 0
123
+ - 9
124
+ - 9
125
+ version: 0.9.9
126
+ type: :development
127
+ version_requirements: *id007
128
+ - !ruby/object:Gem::Dependency
129
+ name: colored
130
+ prerelease: false
131
+ requirement: &id008 !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ hash: 3
137
+ segments:
138
+ - 0
139
+ version: "0"
140
+ type: :development
141
+ version_requirements: *id008
142
+ description: A Rails form builder plugin/gem with semantically rich and accessible markup
143
+ email: justin@indent.com.au
23
144
  executables: []
24
145
 
25
146
  extensions: []
26
147
 
27
- extra_rdoc_files: []
28
-
29
- files: []
30
-
31
- homepage:
148
+ extra_rdoc_files:
149
+ - README.textile
150
+ files:
151
+ - lib/formtastic/form_builder.rb
152
+ - lib/formtastic/helpers/buttons_helper.rb
153
+ - lib/formtastic/helpers/errors_helper.rb
154
+ - lib/formtastic/helpers/fieldset_wrapper.rb
155
+ - lib/formtastic/helpers/file_column_detection.rb
156
+ - lib/formtastic/helpers/form_helper.rb
157
+ - lib/formtastic/helpers/input_helper.rb
158
+ - lib/formtastic/helpers/inputs_helper.rb
159
+ - lib/formtastic/helpers/reflection.rb
160
+ - lib/formtastic/helpers/semantic_form_helper.rb
161
+ - lib/formtastic/helpers.rb
162
+ - lib/formtastic/html_attributes.rb
163
+ - lib/formtastic/i18n.rb
164
+ - lib/formtastic/inputs/base/associations.rb
165
+ - lib/formtastic/inputs/base/choices.rb
166
+ - lib/formtastic/inputs/base/collections.rb
167
+ - lib/formtastic/inputs/base/database.rb
168
+ - lib/formtastic/inputs/base/errors.rb
169
+ - lib/formtastic/inputs/base/fileish.rb
170
+ - lib/formtastic/inputs/base/grouped_collections.rb
171
+ - lib/formtastic/inputs/base/hints.rb
172
+ - lib/formtastic/inputs/base/html.rb
173
+ - lib/formtastic/inputs/base/labelling.rb
174
+ - lib/formtastic/inputs/base/naming.rb
175
+ - lib/formtastic/inputs/base/options.rb
176
+ - lib/formtastic/inputs/base/stringish.rb
177
+ - lib/formtastic/inputs/base/timeish.rb
178
+ - lib/formtastic/inputs/base/validations.rb
179
+ - lib/formtastic/inputs/base/wrapping.rb
180
+ - lib/formtastic/inputs/base.rb
181
+ - lib/formtastic/inputs/boolean_input.rb
182
+ - lib/formtastic/inputs/check_boxes_input.rb
183
+ - lib/formtastic/inputs/country_input.rb
184
+ - lib/formtastic/inputs/date_input.rb
185
+ - lib/formtastic/inputs/datetime_input.rb
186
+ - lib/formtastic/inputs/email_input.rb
187
+ - lib/formtastic/inputs/file_input.rb
188
+ - lib/formtastic/inputs/hidden_input.rb
189
+ - lib/formtastic/inputs/number_input.rb
190
+ - lib/formtastic/inputs/numeric_input.rb
191
+ - lib/formtastic/inputs/password_input.rb
192
+ - lib/formtastic/inputs/phone_input.rb
193
+ - lib/formtastic/inputs/radio_input.rb
194
+ - lib/formtastic/inputs/search_input.rb
195
+ - lib/formtastic/inputs/select_input.rb
196
+ - lib/formtastic/inputs/string_input.rb
197
+ - lib/formtastic/inputs/text_input.rb
198
+ - lib/formtastic/inputs/time_input.rb
199
+ - lib/formtastic/inputs/time_zone_input.rb
200
+ - lib/formtastic/inputs/url_input.rb
201
+ - lib/formtastic/inputs.rb
202
+ - lib/formtastic/localized_string.rb
203
+ - lib/formtastic/railtie.rb
204
+ - lib/formtastic/semantic_form_builder.rb
205
+ - lib/formtastic/util.rb
206
+ - lib/formtastic.rb
207
+ - lib/generators/formtastic/form/form_generator.rb
208
+ - lib/generators/formtastic/install/install_generator.rb
209
+ - lib/generators/templates/_form.html.erb
210
+ - lib/generators/templates/_form.html.haml
211
+ - lib/generators/templates/formtastic.css
212
+ - lib/generators/templates/formtastic.rb
213
+ - lib/generators/templates/formtastic_changes.css
214
+ - lib/locale/en.yml
215
+ - lib/tasks/verify_rcov.rb
216
+ - MIT-LICENSE
217
+ - README.textile
218
+ homepage: http://github.com/justinfrench/formtastic/tree/master
32
219
  licenses: []
33
220
 
34
- post_install_message:
35
- rdoc_options: []
36
-
221
+ post_install_message: "\n ========================================================================\n Thanks for installing Formtastic!\n ------------------------------------------------------------------------\n You can now (optionally) run the generator to copy some stylesheets and\n a config initializer into your application:\n rails generate formtastic:install\n\n To generate some semantic form markup for your existing models, just run:\n rails generate formtastic:form MODEL_NAME\n\n Find out more and get involved:\n http://github.com/justinfrench/formtastic\n http://groups.google.com.au/group/formtastic\n http://twitter.com/formtastic\n ========================================================================\n "
222
+ rdoc_options:
223
+ - --charset=UTF-8
37
224
  require_paths:
38
225
  - lib
39
226
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -60,6 +247,6 @@ rubyforge_project:
60
247
  rubygems_version: 1.7.2
61
248
  signing_key:
62
249
  specification_version: 3
63
- summary: Formtastic gem for Nuatt
250
+ summary: A Rails form builder plugin/gem with semantically rich and accessible markup
64
251
  test_files: []
65
252