activemodel-form 0.0.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.
Files changed (46) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +3 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +71 -0
  5. data/Rakefile +16 -0
  6. data/activemodel-form.gemspec +25 -0
  7. data/example/.gitignore +15 -0
  8. data/example/Gemfile +13 -0
  9. data/example/README.md +9 -0
  10. data/example/app/controllers/application_controller.rb +3 -0
  11. data/example/app/controllers/forms_controller.rb +25 -0
  12. data/example/app/views/forms/new.html.erb +24 -0
  13. data/example/app/views/layouts/application.html.erb +13 -0
  14. data/example/config/application.rb +62 -0
  15. data/example/config/boot.rb +6 -0
  16. data/example/config/database.yml +11 -0
  17. data/example/config/environment.rb +5 -0
  18. data/example/config/environments/development.rb +37 -0
  19. data/example/config/environments/production.rb +67 -0
  20. data/example/config/environments/test.rb +37 -0
  21. data/example/config/initializers/backtrace_silencers.rb +7 -0
  22. data/example/config/initializers/formtastic.rb +90 -0
  23. data/example/config/initializers/inflections.rb +15 -0
  24. data/example/config/initializers/mime_types.rb +5 -0
  25. data/example/config/initializers/secret_token.rb +7 -0
  26. data/example/config/initializers/session_store.rb +8 -0
  27. data/example/config/initializers/simple_form.rb +138 -0
  28. data/example/config/initializers/wrap_parameters.rb +14 -0
  29. data/example/config/routes.rb +8 -0
  30. data/example/config.ru +4 -0
  31. data/example/public/404.html +26 -0
  32. data/example/public/422.html +26 -0
  33. data/example/public/500.html +25 -0
  34. data/example/public/favicon.ico +0 -0
  35. data/example/public/robots.txt +5 -0
  36. data/example/script/rails +6 -0
  37. data/lib/active_model/form/attributes.rb +107 -0
  38. data/lib/active_model/form/version.rb +5 -0
  39. data/lib/active_model/form.rb +85 -0
  40. data/lib/activemodel-form.rb +1 -0
  41. data/spec/boolean_attribute_form_spec.rb +24 -0
  42. data/spec/date_time_form_spec.rb +27 -0
  43. data/spec/integer_attribute_form_spec.rb +24 -0
  44. data/spec/model_name_spec.rb +17 -0
  45. data/spec/spec_helper.rb +6 -0
  46. metadata +165 -0
metadata ADDED
@@ -0,0 +1,165 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activemodel-form
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Martin Schürrer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activemodel
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.7
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.7
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.7
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.7
46
+ - !ruby/object:Gem::Dependency
47
+ name: rake
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: pry
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: ActiveModel with support for booleans and datetimes in form helpers
79
+ email:
80
+ - martin@schuerrer.org
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - .gitignore
86
+ - Gemfile
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - activemodel-form.gemspec
91
+ - example/.gitignore
92
+ - example/Gemfile
93
+ - example/README.md
94
+ - example/app/controllers/application_controller.rb
95
+ - example/app/controllers/forms_controller.rb
96
+ - example/app/views/forms/new.html.erb
97
+ - example/app/views/layouts/application.html.erb
98
+ - example/config.ru
99
+ - example/config/application.rb
100
+ - example/config/boot.rb
101
+ - example/config/database.yml
102
+ - example/config/environment.rb
103
+ - example/config/environments/development.rb
104
+ - example/config/environments/production.rb
105
+ - example/config/environments/test.rb
106
+ - example/config/initializers/backtrace_silencers.rb
107
+ - example/config/initializers/formtastic.rb
108
+ - example/config/initializers/inflections.rb
109
+ - example/config/initializers/mime_types.rb
110
+ - example/config/initializers/secret_token.rb
111
+ - example/config/initializers/session_store.rb
112
+ - example/config/initializers/simple_form.rb
113
+ - example/config/initializers/wrap_parameters.rb
114
+ - example/config/routes.rb
115
+ - example/public/404.html
116
+ - example/public/422.html
117
+ - example/public/500.html
118
+ - example/public/favicon.ico
119
+ - example/public/robots.txt
120
+ - example/script/rails
121
+ - lib/active_model/form.rb
122
+ - lib/active_model/form/attributes.rb
123
+ - lib/active_model/form/version.rb
124
+ - lib/activemodel-form.rb
125
+ - spec/boolean_attribute_form_spec.rb
126
+ - spec/date_time_form_spec.rb
127
+ - spec/integer_attribute_form_spec.rb
128
+ - spec/model_name_spec.rb
129
+ - spec/spec_helper.rb
130
+ homepage: ''
131
+ licenses: []
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ segments:
143
+ - 0
144
+ hash: 1195423181198266534
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ none: false
147
+ requirements:
148
+ - - ! '>='
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ segments:
152
+ - 0
153
+ hash: 1195423181198266534
154
+ requirements: []
155
+ rubyforge_project:
156
+ rubygems_version: 1.8.24
157
+ signing_key:
158
+ specification_version: 3
159
+ summary: ''
160
+ test_files:
161
+ - spec/boolean_attribute_form_spec.rb
162
+ - spec/date_time_form_spec.rb
163
+ - spec/integer_attribute_form_spec.rb
164
+ - spec/model_name_spec.rb
165
+ - spec/spec_helper.rb