contact_page 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/contact_page/application.js +15 -0
  6. data/app/assets/javascripts/contact_page/contact_messages.js +2 -0
  7. data/app/assets/stylesheets/contact_page/application.css +13 -0
  8. data/app/assets/stylesheets/contact_page/contact_messages.css +4 -0
  9. data/app/controllers/contact_page/application_controller.rb +4 -0
  10. data/app/controllers/contact_page/contact_messages_controller.rb +26 -0
  11. data/app/helpers/contact_page/application_helper.rb +4 -0
  12. data/app/helpers/contact_page/contact_messages_helper.rb +4 -0
  13. data/app/models/contact_page/contact_message.rb +11 -0
  14. data/app/views/contact_page/contact_messages/index.html.erb +39 -0
  15. data/app/views/layouts/contact_page/application.html.erb +14 -0
  16. data/config/routes.rb +3 -0
  17. data/db/migrate/20130503165641_create_contact_page_contact_messages.rb +13 -0
  18. data/lib/contact_page.rb +4 -0
  19. data/lib/contact_page/engine.rb +5 -0
  20. data/lib/contact_page/version.rb +3 -0
  21. data/lib/tasks/contact_page_tasks.rake +4 -0
  22. data/test/contact_page_test.rb +7 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/javascripts/application.js +15 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  27. data/test/dummy/app/controllers/application_controller.rb +3 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/test/dummy/config.ru +4 -0
  31. data/test/dummy/config/application.rb +59 -0
  32. data/test/dummy/config/boot.rb +10 -0
  33. data/test/dummy/config/database.yml +25 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +37 -0
  36. data/test/dummy/config/environments/production.rb +67 -0
  37. data/test/dummy/config/environments/test.rb +37 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/inflections.rb +15 -0
  40. data/test/dummy/config/initializers/mime_types.rb +5 -0
  41. data/test/dummy/config/initializers/secret_token.rb +7 -0
  42. data/test/dummy/config/initializers/session_store.rb +8 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +5 -0
  45. data/test/dummy/config/routes.rb +4 -0
  46. data/test/dummy/db/development.sqlite3 +0 -0
  47. data/test/dummy/db/schema.rb +26 -0
  48. data/test/dummy/log/development.log +936 -0
  49. data/test/dummy/public/404.html +26 -0
  50. data/test/dummy/public/422.html +26 -0
  51. data/test/dummy/public/500.html +25 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/script/rails +6 -0
  54. data/test/dummy/tmp/cache/assets/C44/150/sprockets%2F2022343c80844b68629ac03649f05aa5 +0 -0
  55. data/test/dummy/tmp/cache/assets/C58/9B0/sprockets%2F176f7888026a610920f7f30713bc577e +0 -0
  56. data/test/dummy/tmp/cache/assets/C81/370/sprockets%2F14b543a4c3bd12c021131101bdb18277 +0 -0
  57. data/test/dummy/tmp/cache/assets/CAD/350/sprockets%2Fcba8275b578257955c019c03802b5c3d +0 -0
  58. data/test/dummy/tmp/cache/assets/CD9/1C0/sprockets%2F90beed3420fdc50f1c079509d6223547 +0 -0
  59. data/test/dummy/tmp/cache/assets/CDF/BB0/sprockets%2F199007472b7dec5af2f20066724ebb69 +0 -0
  60. data/test/dummy/tmp/cache/assets/D0B/FD0/sprockets%2Fcb284d7998fc458178a9ef368ec97771 +0 -0
  61. data/test/dummy/tmp/cache/assets/D44/FB0/sprockets%2F127ed6caf0dd49d4786c9c8147442a2c +0 -0
  62. data/test/dummy/tmp/cache/assets/D79/770/sprockets%2F5d9c647bc7b31996eb607c03444cffbf +0 -0
  63. data/test/dummy/tmp/cache/assets/D8A/A50/sprockets%2Fac9d2c29ba54a630b04de109a5cee920 +0 -0
  64. data/test/dummy/tmp/cache/assets/DAA/9C0/sprockets%2Fc8ad6f6fe27c60f91cce0859b46c3b64 +0 -0
  65. data/test/dummy/tmp/cache/assets/DCC/4F0/sprockets%2F2f4510ec0caafd88c3ff8721ac5b689a +0 -0
  66. data/test/dummy/tmp/cache/assets/DE7/450/sprockets%2Fe7d109ad7d4aad610fa1b0bfb280b77b +0 -0
  67. data/test/dummy/tmp/cache/assets/E1B/1B0/sprockets%2Fa8f230faf2dd43bfe1eca2d050f395ac +0 -0
  68. data/test/fixtures/contact_page/contact_messages.yml +15 -0
  69. data/test/functional/contact_page/contact_messages_controller_test.rb +11 -0
  70. data/test/integration/navigation_test.rb +10 -0
  71. data/test/test_helper.rb +15 -0
  72. data/test/unit/contact_page/contact_message_test.rb +9 -0
  73. data/test/unit/helpers/contact_page/contact_messages_helper_test.rb +6 -0
  74. metadata +195 -0
@@ -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,15 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ first_name: MyString
5
+ last_name: MyString
6
+ email: MyString
7
+ phone_number: MyString
8
+ message: MyText
9
+
10
+ two:
11
+ first_name: MyString
12
+ last_name: MyString
13
+ email: MyString
14
+ phone_number: MyString
15
+ message: MyText
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ module ContactPage
4
+ class ContactMessagesControllerTest < ActionController::TestCase
5
+ test "should get index" do
6
+ get :index
7
+ assert_response :success
8
+ end
9
+
10
+ end
11
+ end
@@ -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
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ module ContactPage
4
+ class ContactMessageTest < ActiveSupport::TestCase
5
+ # test "the truth" do
6
+ # assert true
7
+ # end
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module ContactPage
4
+ class ContactMessagesHelperTest < ActionView::TestCase
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: contact_page
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mr. Nizzle
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-05-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Adds a simple contact page to your existing rails application
42
+ email:
43
+ - nizzle@nizzledev.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - app/assets/javascripts/contact_page/application.js
49
+ - app/assets/javascripts/contact_page/contact_messages.js
50
+ - app/assets/stylesheets/contact_page/application.css
51
+ - app/assets/stylesheets/contact_page/contact_messages.css
52
+ - app/controllers/contact_page/application_controller.rb
53
+ - app/controllers/contact_page/contact_messages_controller.rb
54
+ - app/helpers/contact_page/application_helper.rb
55
+ - app/helpers/contact_page/contact_messages_helper.rb
56
+ - app/models/contact_page/contact_message.rb
57
+ - app/views/contact_page/contact_messages/index.html.erb
58
+ - app/views/layouts/contact_page/application.html.erb
59
+ - config/routes.rb
60
+ - db/migrate/20130503165641_create_contact_page_contact_messages.rb
61
+ - lib/contact_page/engine.rb
62
+ - lib/contact_page/version.rb
63
+ - lib/contact_page.rb
64
+ - lib/tasks/contact_page_tasks.rake
65
+ - MIT-LICENSE
66
+ - Rakefile
67
+ - README.rdoc
68
+ - test/contact_page_test.rb
69
+ - test/dummy/app/assets/javascripts/application.js
70
+ - test/dummy/app/assets/stylesheets/application.css
71
+ - test/dummy/app/controllers/application_controller.rb
72
+ - test/dummy/app/helpers/application_helper.rb
73
+ - test/dummy/app/views/layouts/application.html.erb
74
+ - test/dummy/config/application.rb
75
+ - test/dummy/config/boot.rb
76
+ - test/dummy/config/database.yml
77
+ - test/dummy/config/environment.rb
78
+ - test/dummy/config/environments/development.rb
79
+ - test/dummy/config/environments/production.rb
80
+ - test/dummy/config/environments/test.rb
81
+ - test/dummy/config/initializers/backtrace_silencers.rb
82
+ - test/dummy/config/initializers/inflections.rb
83
+ - test/dummy/config/initializers/mime_types.rb
84
+ - test/dummy/config/initializers/secret_token.rb
85
+ - test/dummy/config/initializers/session_store.rb
86
+ - test/dummy/config/initializers/wrap_parameters.rb
87
+ - test/dummy/config/locales/en.yml
88
+ - test/dummy/config/routes.rb
89
+ - test/dummy/config.ru
90
+ - test/dummy/db/development.sqlite3
91
+ - test/dummy/db/schema.rb
92
+ - test/dummy/log/development.log
93
+ - test/dummy/public/404.html
94
+ - test/dummy/public/422.html
95
+ - test/dummy/public/500.html
96
+ - test/dummy/public/favicon.ico
97
+ - test/dummy/Rakefile
98
+ - test/dummy/README.rdoc
99
+ - test/dummy/script/rails
100
+ - test/dummy/tmp/cache/assets/C44/150/sprockets%2F2022343c80844b68629ac03649f05aa5
101
+ - test/dummy/tmp/cache/assets/C58/9B0/sprockets%2F176f7888026a610920f7f30713bc577e
102
+ - test/dummy/tmp/cache/assets/C81/370/sprockets%2F14b543a4c3bd12c021131101bdb18277
103
+ - test/dummy/tmp/cache/assets/CAD/350/sprockets%2Fcba8275b578257955c019c03802b5c3d
104
+ - test/dummy/tmp/cache/assets/CD9/1C0/sprockets%2F90beed3420fdc50f1c079509d6223547
105
+ - test/dummy/tmp/cache/assets/CDF/BB0/sprockets%2F199007472b7dec5af2f20066724ebb69
106
+ - test/dummy/tmp/cache/assets/D0B/FD0/sprockets%2Fcb284d7998fc458178a9ef368ec97771
107
+ - test/dummy/tmp/cache/assets/D44/FB0/sprockets%2F127ed6caf0dd49d4786c9c8147442a2c
108
+ - test/dummy/tmp/cache/assets/D79/770/sprockets%2F5d9c647bc7b31996eb607c03444cffbf
109
+ - test/dummy/tmp/cache/assets/D8A/A50/sprockets%2Fac9d2c29ba54a630b04de109a5cee920
110
+ - test/dummy/tmp/cache/assets/DAA/9C0/sprockets%2Fc8ad6f6fe27c60f91cce0859b46c3b64
111
+ - test/dummy/tmp/cache/assets/DCC/4F0/sprockets%2F2f4510ec0caafd88c3ff8721ac5b689a
112
+ - test/dummy/tmp/cache/assets/DE7/450/sprockets%2Fe7d109ad7d4aad610fa1b0bfb280b77b
113
+ - test/dummy/tmp/cache/assets/E1B/1B0/sprockets%2Fa8f230faf2dd43bfe1eca2d050f395ac
114
+ - test/fixtures/contact_page/contact_messages.yml
115
+ - test/functional/contact_page/contact_messages_controller_test.rb
116
+ - test/integration/navigation_test.rb
117
+ - test/test_helper.rb
118
+ - test/unit/contact_page/contact_message_test.rb
119
+ - test/unit/helpers/contact_page/contact_messages_helper_test.rb
120
+ homepage: https://rubygems.org/gems/contact_page
121
+ licenses: []
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ! '>='
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.0.3
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: A simple contact page rails mountable engine
143
+ test_files:
144
+ - test/contact_page_test.rb
145
+ - test/dummy/app/assets/javascripts/application.js
146
+ - test/dummy/app/assets/stylesheets/application.css
147
+ - test/dummy/app/controllers/application_controller.rb
148
+ - test/dummy/app/helpers/application_helper.rb
149
+ - test/dummy/app/views/layouts/application.html.erb
150
+ - test/dummy/config/application.rb
151
+ - test/dummy/config/boot.rb
152
+ - test/dummy/config/database.yml
153
+ - test/dummy/config/environment.rb
154
+ - test/dummy/config/environments/development.rb
155
+ - test/dummy/config/environments/production.rb
156
+ - test/dummy/config/environments/test.rb
157
+ - test/dummy/config/initializers/backtrace_silencers.rb
158
+ - test/dummy/config/initializers/inflections.rb
159
+ - test/dummy/config/initializers/mime_types.rb
160
+ - test/dummy/config/initializers/secret_token.rb
161
+ - test/dummy/config/initializers/session_store.rb
162
+ - test/dummy/config/initializers/wrap_parameters.rb
163
+ - test/dummy/config/locales/en.yml
164
+ - test/dummy/config/routes.rb
165
+ - test/dummy/config.ru
166
+ - test/dummy/db/development.sqlite3
167
+ - test/dummy/db/schema.rb
168
+ - test/dummy/log/development.log
169
+ - test/dummy/public/404.html
170
+ - test/dummy/public/422.html
171
+ - test/dummy/public/500.html
172
+ - test/dummy/public/favicon.ico
173
+ - test/dummy/Rakefile
174
+ - test/dummy/README.rdoc
175
+ - test/dummy/script/rails
176
+ - test/dummy/tmp/cache/assets/C44/150/sprockets%2F2022343c80844b68629ac03649f05aa5
177
+ - test/dummy/tmp/cache/assets/C58/9B0/sprockets%2F176f7888026a610920f7f30713bc577e
178
+ - test/dummy/tmp/cache/assets/C81/370/sprockets%2F14b543a4c3bd12c021131101bdb18277
179
+ - test/dummy/tmp/cache/assets/CAD/350/sprockets%2Fcba8275b578257955c019c03802b5c3d
180
+ - test/dummy/tmp/cache/assets/CD9/1C0/sprockets%2F90beed3420fdc50f1c079509d6223547
181
+ - test/dummy/tmp/cache/assets/CDF/BB0/sprockets%2F199007472b7dec5af2f20066724ebb69
182
+ - test/dummy/tmp/cache/assets/D0B/FD0/sprockets%2Fcb284d7998fc458178a9ef368ec97771
183
+ - test/dummy/tmp/cache/assets/D44/FB0/sprockets%2F127ed6caf0dd49d4786c9c8147442a2c
184
+ - test/dummy/tmp/cache/assets/D79/770/sprockets%2F5d9c647bc7b31996eb607c03444cffbf
185
+ - test/dummy/tmp/cache/assets/D8A/A50/sprockets%2Fac9d2c29ba54a630b04de109a5cee920
186
+ - test/dummy/tmp/cache/assets/DAA/9C0/sprockets%2Fc8ad6f6fe27c60f91cce0859b46c3b64
187
+ - test/dummy/tmp/cache/assets/DCC/4F0/sprockets%2F2f4510ec0caafd88c3ff8721ac5b689a
188
+ - test/dummy/tmp/cache/assets/DE7/450/sprockets%2Fe7d109ad7d4aad610fa1b0bfb280b77b
189
+ - test/dummy/tmp/cache/assets/E1B/1B0/sprockets%2Fa8f230faf2dd43bfe1eca2d050f395ac
190
+ - test/fixtures/contact_page/contact_messages.yml
191
+ - test/functional/contact_page/contact_messages_controller_test.rb
192
+ - test/integration/navigation_test.rb
193
+ - test/test_helper.rb
194
+ - test/unit/contact_page/contact_message_test.rb
195
+ - test/unit/helpers/contact_page/contact_messages_helper_test.rb