contact_form 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/.gitignore +7 -0
  2. data/Gemfile +17 -0
  3. data/Gemfile.lock +100 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.rdoc +43 -0
  6. data/Rakefile +40 -0
  7. data/app/assets/images/contact_form/.gitkeep +0 -0
  8. data/app/assets/javascripts/contact_form/application.js +15 -0
  9. data/app/assets/javascripts/contact_form/custom_contact_form.js +0 -0
  10. data/app/assets/stylesheets/contact_form/application.css +13 -0
  11. data/app/assets/stylesheets/contact_form/custom_contact_form.scss.css +1 -0
  12. data/app/assets/stylesheets/contact_form/forms.scss.css +69 -0
  13. data/app/controllers/contact_form/application_controller.rb +4 -0
  14. data/app/controllers/contact_form/forms_controller.rb +28 -0
  15. data/app/helpers/contact_form/application_helper.rb +16 -0
  16. data/app/mailers/contact_form/form_mailer.rb +17 -0
  17. data/app/models/contact_form/form.rb +25 -0
  18. data/app/validators/email_validator.rb +15 -0
  19. data/app/views/contact_form/form_mailer/auto_reply.html.erb +9 -0
  20. data/app/views/contact_form/form_mailer/new_contact.html.erb +16 -0
  21. data/app/views/contact_form/forms/new.html.erb +22 -0
  22. data/app/views/layouts/contact_form/application.html.erb +16 -0
  23. data/config/locales/contact_form.de.yml +24 -0
  24. data/config/locales/contact_form.en.yml +24 -0
  25. data/config/routes.rb +6 -0
  26. data/contact_form.gemspec +26 -0
  27. data/lib/contact_form.rb +4 -0
  28. data/lib/contact_form/engine.rb +5 -0
  29. data/lib/contact_form/version.rb +3 -0
  30. data/lib/generators/contact_form/all/all_generator.rb +21 -0
  31. data/lib/generators/contact_form/controllers/controllers_generator.rb +18 -0
  32. data/lib/generators/contact_form/install/install_generator.rb +23 -0
  33. data/lib/generators/contact_form/install/templates/contact_form.de.yml +24 -0
  34. data/lib/generators/contact_form/install/templates/contact_form.en.yml +24 -0
  35. data/lib/generators/contact_form/install/templates/contact_form.rb +1 -0
  36. data/lib/generators/contact_form/install/templates/contact_form.yml +3 -0
  37. data/lib/generators/contact_form/mailers/mailers_generator.rb +18 -0
  38. data/lib/generators/contact_form/models/models_generator.rb +18 -0
  39. data/lib/generators/contact_form/views/views_generator.rb +18 -0
  40. data/lib/tasks/contact_form_tasks.rake +4 -0
  41. data/script/rails +8 -0
  42. data/test/dummy/README.rdoc +261 -0
  43. data/test/dummy/Rakefile +7 -0
  44. data/test/dummy/app/assets/javascripts/application.js +15 -0
  45. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  46. data/test/dummy/app/controllers/application_controller.rb +3 -0
  47. data/test/dummy/app/helpers/application_helper.rb +2 -0
  48. data/test/dummy/app/mailers/.gitkeep +0 -0
  49. data/test/dummy/app/models/.gitkeep +0 -0
  50. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  51. data/test/dummy/config.ru +4 -0
  52. data/test/dummy/config/application.rb +59 -0
  53. data/test/dummy/config/boot.rb +10 -0
  54. data/test/dummy/config/contact_form.yml +3 -0
  55. data/test/dummy/config/database.yml +25 -0
  56. data/test/dummy/config/environment.rb +5 -0
  57. data/test/dummy/config/environments/development.rb +37 -0
  58. data/test/dummy/config/environments/production.rb +67 -0
  59. data/test/dummy/config/environments/test.rb +37 -0
  60. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  61. data/test/dummy/config/initializers/contact_form.rb +1 -0
  62. data/test/dummy/config/initializers/inflections.rb +15 -0
  63. data/test/dummy/config/initializers/mime_types.rb +5 -0
  64. data/test/dummy/config/initializers/secret_token.rb +7 -0
  65. data/test/dummy/config/initializers/session_store.rb +8 -0
  66. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  67. data/test/dummy/config/locales/contact_form.de.yml +24 -0
  68. data/test/dummy/config/locales/contact_form.en.yml +24 -0
  69. data/test/dummy/config/locales/en.yml +5 -0
  70. data/test/dummy/config/routes.rb +4 -0
  71. data/test/dummy/lib/assets/.gitkeep +0 -0
  72. data/test/dummy/log/.gitkeep +0 -0
  73. data/test/dummy/public/404.html +26 -0
  74. data/test/dummy/public/422.html +26 -0
  75. data/test/dummy/public/500.html +25 -0
  76. data/test/dummy/public/favicon.ico +0 -0
  77. data/test/dummy/script/rails +6 -0
  78. data/test/integration/navigation_test.rb +10 -0
  79. data/test/test_helper.rb +15 -0
  80. metadata +204 -0
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount ContactForm::Engine => "/contact_form"
4
+ end
File without changes
File without changes
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,204 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: contact_form
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Matthias Frick
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.8
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.8
30
+ - !ruby/object:Gem::Dependency
31
+ name: jquery-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
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: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: i18n
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
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: mail
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
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
+ - !ruby/object:Gem::Dependency
79
+ name: sqlite3
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: A simple contact form for a contact page.
95
+ email:
96
+ - matthias@frick-web.at
97
+ executables: []
98
+ extensions: []
99
+ extra_rdoc_files: []
100
+ files:
101
+ - .gitignore
102
+ - Gemfile
103
+ - Gemfile.lock
104
+ - MIT-LICENSE
105
+ - README.rdoc
106
+ - Rakefile
107
+ - app/assets/images/contact_form/.gitkeep
108
+ - app/assets/javascripts/contact_form/application.js
109
+ - app/assets/javascripts/contact_form/custom_contact_form.js
110
+ - app/assets/stylesheets/contact_form/application.css
111
+ - app/assets/stylesheets/contact_form/custom_contact_form.scss.css
112
+ - app/assets/stylesheets/contact_form/forms.scss.css
113
+ - app/controllers/contact_form/application_controller.rb
114
+ - app/controllers/contact_form/forms_controller.rb
115
+ - app/helpers/contact_form/application_helper.rb
116
+ - app/mailers/contact_form/form_mailer.rb
117
+ - app/models/contact_form/form.rb
118
+ - app/validators/email_validator.rb
119
+ - app/views/contact_form/form_mailer/auto_reply.html.erb
120
+ - app/views/contact_form/form_mailer/new_contact.html.erb
121
+ - app/views/contact_form/forms/new.html.erb
122
+ - app/views/layouts/contact_form/application.html.erb
123
+ - config/locales/contact_form.de.yml
124
+ - config/locales/contact_form.en.yml
125
+ - config/routes.rb
126
+ - contact_form.gemspec
127
+ - lib/contact_form.rb
128
+ - lib/contact_form/engine.rb
129
+ - lib/contact_form/version.rb
130
+ - lib/generators/contact_form/all/all_generator.rb
131
+ - lib/generators/contact_form/controllers/controllers_generator.rb
132
+ - lib/generators/contact_form/install/install_generator.rb
133
+ - lib/generators/contact_form/install/templates/contact_form.de.yml
134
+ - lib/generators/contact_form/install/templates/contact_form.en.yml
135
+ - lib/generators/contact_form/install/templates/contact_form.rb
136
+ - lib/generators/contact_form/install/templates/contact_form.yml
137
+ - lib/generators/contact_form/mailers/mailers_generator.rb
138
+ - lib/generators/contact_form/models/models_generator.rb
139
+ - lib/generators/contact_form/views/views_generator.rb
140
+ - lib/tasks/contact_form_tasks.rake
141
+ - script/rails
142
+ - test/dummy/README.rdoc
143
+ - test/dummy/Rakefile
144
+ - test/dummy/app/assets/javascripts/application.js
145
+ - test/dummy/app/assets/stylesheets/application.css
146
+ - test/dummy/app/controllers/application_controller.rb
147
+ - test/dummy/app/helpers/application_helper.rb
148
+ - test/dummy/app/mailers/.gitkeep
149
+ - test/dummy/app/models/.gitkeep
150
+ - test/dummy/app/views/layouts/application.html.erb
151
+ - test/dummy/config.ru
152
+ - test/dummy/config/application.rb
153
+ - test/dummy/config/boot.rb
154
+ - test/dummy/config/contact_form.yml
155
+ - test/dummy/config/database.yml
156
+ - test/dummy/config/environment.rb
157
+ - test/dummy/config/environments/development.rb
158
+ - test/dummy/config/environments/production.rb
159
+ - test/dummy/config/environments/test.rb
160
+ - test/dummy/config/initializers/backtrace_silencers.rb
161
+ - test/dummy/config/initializers/contact_form.rb
162
+ - test/dummy/config/initializers/inflections.rb
163
+ - test/dummy/config/initializers/mime_types.rb
164
+ - test/dummy/config/initializers/secret_token.rb
165
+ - test/dummy/config/initializers/session_store.rb
166
+ - test/dummy/config/initializers/wrap_parameters.rb
167
+ - test/dummy/config/locales/contact_form.de.yml
168
+ - test/dummy/config/locales/contact_form.en.yml
169
+ - test/dummy/config/locales/en.yml
170
+ - test/dummy/config/routes.rb
171
+ - test/dummy/lib/assets/.gitkeep
172
+ - test/dummy/log/.gitkeep
173
+ - test/dummy/public/404.html
174
+ - test/dummy/public/422.html
175
+ - test/dummy/public/500.html
176
+ - test/dummy/public/favicon.ico
177
+ - test/dummy/script/rails
178
+ - test/integration/navigation_test.rb
179
+ - test/test_helper.rb
180
+ homepage: https://github.com/mattherick/contact_form
181
+ licenses: []
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ none: false
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ requirements: []
199
+ rubyforge_project: contact_form
200
+ rubygems_version: 1.8.24
201
+ signing_key:
202
+ specification_version: 3
203
+ summary: contact_form-0.0.1
204
+ test_files: []