formtastic 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.textile +541 -0
- data/Rakefile +63 -0
- data/generators/form/USAGE +15 -0
- data/generators/form/form_generator.rb +114 -0
- data/generators/form/templates/view__form.html.erb +5 -0
- data/generators/form/templates/view__form.html.haml +4 -0
- data/generators/formtastic/formtastic_generator.rb +24 -0
- data/generators/formtastic/templates/formtastic.css +137 -0
- data/generators/formtastic/templates/formtastic.rb +47 -0
- data/generators/formtastic/templates/formtastic_changes.css +10 -0
- data/lib/formtastic.rb +1371 -0
- data/lib/justin_french/formtastic.rb +11 -0
- data/lib/locale/en.yml +8 -0
- data/rails/init.rb +4 -0
- data/spec/formtastic_spec.rb +3292 -0
- data/spec/test_helper.rb +27 -0
- metadata +72 -0
data/spec/test_helper.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
def smart_require(lib_name, gem_name, gem_version = '>= 0.0.0')
|
5
|
+
begin
|
6
|
+
require lib_name if lib_name
|
7
|
+
rescue LoadError
|
8
|
+
if gem_name
|
9
|
+
gem gem_name, gem_version
|
10
|
+
require lib_name if lib_name
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
smart_require 'spec', 'spec', '>= 1.2.6'
|
16
|
+
smart_require false, 'rspec-rails', '>= 1.2.6'
|
17
|
+
smart_require 'hpricot', 'hpricot', '>= 0.6.1'
|
18
|
+
smart_require 'rspec_hpricot_matchers', 'rspec_hpricot_matchers', '>= 1.0.0'
|
19
|
+
smart_require 'active_support', 'activesupport', '>= 2.3.4'
|
20
|
+
smart_require 'action_controller', 'actionpack', '>= 2.3.4'
|
21
|
+
smart_require 'action_view', 'actionpack', '>= 2.3.4'
|
22
|
+
|
23
|
+
Spec::Runner.configure do |config|
|
24
|
+
config.include(RspecHpricotMatchers)
|
25
|
+
end
|
26
|
+
|
27
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
metadata
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: formtastic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin French
|
8
|
+
autorequire: formtastic
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-16 00:00:00 +11:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: A Rails form builder plugin/gem with semantically rich and accessible markup
|
17
|
+
email: justin@indent.com.au
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.textile
|
24
|
+
files:
|
25
|
+
- MIT-LICENSE
|
26
|
+
- README.textile
|
27
|
+
- Rakefile
|
28
|
+
- generators/form/USAGE
|
29
|
+
- generators/form/form_generator.rb
|
30
|
+
- generators/form/templates/view__form.html.erb
|
31
|
+
- generators/form/templates/view__form.html.haml
|
32
|
+
- generators/formtastic/formtastic_generator.rb
|
33
|
+
- generators/formtastic/templates/formtastic.css
|
34
|
+
- generators/formtastic/templates/formtastic.rb
|
35
|
+
- generators/formtastic/templates/formtastic_changes.css
|
36
|
+
- lib/formtastic.rb
|
37
|
+
- lib/justin_french/formtastic.rb
|
38
|
+
- lib/locale/en.yml
|
39
|
+
- rails/init.rb
|
40
|
+
- spec/formtastic_spec.rb
|
41
|
+
- spec/test_helper.rb
|
42
|
+
has_rdoc: true
|
43
|
+
homepage: http://github.com/justinfrench/formtastic/tree/master
|
44
|
+
licenses: []
|
45
|
+
|
46
|
+
post_install_message:
|
47
|
+
rdoc_options:
|
48
|
+
- --charset=UTF-8
|
49
|
+
require_paths:
|
50
|
+
- lib
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: "0"
|
56
|
+
version:
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: "0"
|
62
|
+
version:
|
63
|
+
requirements: []
|
64
|
+
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 1.3.5
|
67
|
+
signing_key:
|
68
|
+
specification_version: 3
|
69
|
+
summary: A Rails form builder plugin/gem with semantically rich and accessible markup
|
70
|
+
test_files:
|
71
|
+
- spec/formtastic_spec.rb
|
72
|
+
- spec/test_helper.rb
|