pointless_feedback 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +138 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/pointless_feedback/application.js +15 -0
  5. data/app/assets/stylesheets/pointless_feedback/application.css +13 -0
  6. data/app/controllers/pointless_feedback/messages_controller.rb +22 -0
  7. data/app/helpers/pointless_feedback/application_helper.rb +26 -0
  8. data/app/mailers/pointless_feedback/feedback_mailer.rb +16 -0
  9. data/app/models/pointless_feedback/message.rb +26 -0
  10. data/app/views/layouts/pointless_feedback/application.html.erb +14 -0
  11. data/app/views/pointless_feedback/feedback_mailer/feedback.html.erb +6 -0
  12. data/app/views/pointless_feedback/messages/new.html.erb +57 -0
  13. data/config/locales/en.yml +1 -0
  14. data/config/routes.rb +5 -0
  15. data/db/migrate/20130501182659_create_pointless_feedback_messages.rb +12 -0
  16. data/lib/generators/pointless_feedback/install_generator.rb +13 -0
  17. data/lib/generators/pointless_feedback/views_generator.rb +16 -0
  18. data/lib/generators/templates/pointless_feedback.rb +13 -0
  19. data/lib/pointless_feedback/controllers/helpers.rb +10 -0
  20. data/lib/pointless_feedback/engine.rb +13 -0
  21. data/lib/pointless_feedback/version.rb +3 -0
  22. data/lib/pointless_feedback.rb +32 -0
  23. data/lib/tasks/pointless_feedback_tasks.rake +4 -0
  24. data/test/dummy/README.rdoc +261 -0
  25. data/test/dummy/Rakefile +7 -0
  26. data/test/dummy/app/assets/javascripts/application.js +15 -0
  27. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/test/dummy/app/controllers/application_controller.rb +3 -0
  29. data/test/dummy/app/controllers/home_controller.rb +4 -0
  30. data/test/dummy/app/helpers/application_helper.rb +2 -0
  31. data/test/dummy/app/views/home/index.html.erb +1 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +16 -0
  33. data/test/dummy/config/application.rb +59 -0
  34. data/test/dummy/config/boot.rb +10 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +67 -0
  39. data/test/dummy/config/environments/test.rb +37 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/inflections.rb +15 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +7 -0
  44. data/test/dummy/config/initializers/session_store.rb +8 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +5 -0
  47. data/test/dummy/config/routes.rb +5 -0
  48. data/test/dummy/config.ru +4 -0
  49. data/test/dummy/db/development.sqlite3 +0 -0
  50. data/test/dummy/db/schema.rb +25 -0
  51. data/test/dummy/db/test.sqlite3 +0 -0
  52. data/test/dummy/log/development.log +187 -0
  53. data/test/dummy/log/test.log +9624 -0
  54. data/test/dummy/public/404.html +26 -0
  55. data/test/dummy/public/422.html +26 -0
  56. data/test/dummy/public/500.html +25 -0
  57. data/test/dummy/public/favicon.ico +0 -0
  58. data/test/dummy/script/rails +6 -0
  59. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  60. data/test/dummy/tmp/cache/assets/CDA/AF0/sprockets%2F2b009905de1eb97e693a12d62f76c221 +0 -0
  61. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  62. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  63. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  64. data/test/dummy/tmp/cache/assets/D72/890/sprockets%2F6208de944cfe6b5b3c3c37c89d32f41a +0 -0
  65. data/test/dummy/tmp/cache/assets/DD9/830/sprockets%2Fc25e8f936dbc8c2b26c7c7b3d7ff6d13 +0 -0
  66. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  67. data/test/dummy/tmp/cache/assets/E02/8C0/sprockets%2Fdcaacb4effc911c9573def4b74b82590 +0 -0
  68. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  69. data/test/dummy/tmp/capybara/capybara-201306030928415341101962.html +48 -0
  70. data/test/dummy/tmp/capybara/capybara-201306030937025132981181.html +48 -0
  71. data/test/dummy/tmp/capybara/capybara-201306030937083494523886.html +48 -0
  72. data/test/dummy/tmp/capybara/capybara-20130603093722783471600.html +65 -0
  73. data/test/dummy/tmp/capybara/capybara-20130603094056611257399.html +241 -0
  74. data/test/dummy/tmp/capybara/capybara-201306030944524823294090.html +14 -0
  75. data/test/dummy/tmp/capybara/capybara-20130828105343685535937.html +50 -0
  76. data/test/dummy/tmp/capybara/capybara-201308281055176538066301.html +52 -0
  77. data/test/dummy/tmp/capybara/capybara-201311071553562925508230.html +58 -0
  78. data/test/factories/messages.rb +8 -0
  79. data/test/functional/pointless_feedback/feedback_mailer_test.rb +25 -0
  80. data/test/functional/pointless_feedback/messages_controller_test.rb +61 -0
  81. data/test/generators/install_generator_test.rb +14 -0
  82. data/test/generators/views_generator_test.rb +14 -0
  83. data/test/integration/pointless_feedback/feedback_submission_test.rb +54 -0
  84. data/test/integration/pointless_feedback/main_app_root_url_test.rb +9 -0
  85. data/test/pointless_feedback_test.rb +7 -0
  86. data/test/test_helper.rb +26 -0
  87. data/test/tmp/app/views/pointless_feedback/messages/new.html.erb +57 -0
  88. data/test/unit/helpers/pointless_feedback/application_helper_test.rb +39 -0
  89. data/test/unit/pointless_feedback/message_test.rb +96 -0
  90. metadata +280 -0
@@ -0,0 +1,25 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130501182659) do
15
+
16
+ create_table "pointless_feedback_messages", :force => true do |t|
17
+ t.string "name"
18
+ t.string "email_address"
19
+ t.string "topic"
20
+ t.text "description"
21
+ t.datetime "created_at", :null => false
22
+ t.datetime "updated_at", :null => false
23
+ end
24
+
25
+ end
Binary file
@@ -0,0 +1,187 @@
1
+ Connecting to database specified by database.yml
2
+  (0.1ms) select sqlite_version(*)
3
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
4
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
6
+ Migrating to CreatePointlessFeedbackMessages (20130501182659)
7
+  (0.0ms) begin transaction
8
+  (0.3ms) CREATE TABLE "pointless_feedback_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email_address" varchar(255), "topic" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
9
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130501182659')
10
+  (0.8ms) commit transaction
11
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
12
+ Connecting to database specified by database.yml
13
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+  (0.1ms) select sqlite_version(*)
15
+  (2.5ms) CREATE TABLE "pointless_feedback_messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "email_address" varchar(255), "topic" varchar(255), "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
16
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
17
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.1ms) SELECT version FROM "schema_migrations"
19
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130501182659')
20
+ Connecting to database specified by database.yml
21
+  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22
+ Connecting to database specified by database.yml
23
+
24
+
25
+ Started GET "/" for 127.0.0.1 at 2013-11-07 15:49:01 -0700
26
+ Processing by HomeController#index as HTML
27
+ Rendered home/index.html.erb within layouts/application (3.2ms)
28
+ Compiled application.css (1ms) (pid 14125)
29
+ Compiled jquery.js (1ms) (pid 14125)
30
+ Compiled jquery_ujs.js (0ms) (pid 14125)
31
+ Compiled application.js (22ms) (pid 14125)
32
+ Completed 200 OK in 120ms (Views: 119.2ms | ActiveRecord: 0.0ms)
33
+
34
+
35
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:49:01 -0700
36
+ Served asset /application.css - 200 OK (2ms)
37
+
38
+
39
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:01 -0700
40
+ Served asset /application.js - 200 OK (2ms)
41
+
42
+
43
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:01 -0700
44
+ Served asset /jquery_ujs.js - 200 OK (1ms)
45
+
46
+
47
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:01 -0700
48
+ Served asset /jquery.js - 200 OK (1ms)
49
+
50
+
51
+ Started GET "/" for 127.0.0.1 at 2013-11-07 15:49:18 -0700
52
+ Processing by HomeController#index as HTML
53
+ Rendered home/index.html.erb within layouts/application (0.4ms)
54
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
55
+
56
+
57
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:49:18 -0700
58
+ Served asset /application.css - 304 Not Modified (0ms)
59
+
60
+
61
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:18 -0700
62
+ Served asset /jquery.js - 304 Not Modified (0ms)
63
+
64
+
65
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:18 -0700
66
+ Served asset /application.js - 304 Not Modified (0ms)
67
+
68
+
69
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:18 -0700
70
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
71
+
72
+
73
+ Started GET "/" for 127.0.0.1 at 2013-11-07 15:49:42 -0700
74
+ Processing by HomeController#index as HTML
75
+ Rendered home/index.html.erb within layouts/application (0.4ms)
76
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
77
+
78
+
79
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:43 -0700
80
+ Served asset /jquery.js - 304 Not Modified (0ms)
81
+
82
+
83
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:43 -0700
84
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
85
+
86
+
87
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:49:43 -0700
88
+ Served asset /application.css - 304 Not Modified (0ms)
89
+
90
+
91
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:43 -0700
92
+ Served asset /application.js - 304 Not Modified (0ms)
93
+
94
+
95
+ Started GET "/" for 127.0.0.1 at 2013-11-07 15:49:44 -0700
96
+ Processing by HomeController#index as HTML
97
+ Rendered home/index.html.erb within layouts/application (0.1ms)
98
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
99
+
100
+
101
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:49:44 -0700
102
+ Served asset /application.css - 304 Not Modified (0ms)
103
+
104
+
105
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:44 -0700
106
+ Served asset /jquery.js - 304 Not Modified (0ms)
107
+
108
+
109
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:44 -0700
110
+ Served asset /application.js - 304 Not Modified (0ms)
111
+
112
+
113
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:44 -0700
114
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
115
+
116
+
117
+ Started GET "/feedback" for 127.0.0.1 at 2013-11-07 15:49:48 -0700
118
+
119
+ ActionController::RoutingError (No route matches [GET] "/feedback"):
120
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
121
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
122
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
123
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
124
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
125
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
126
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
127
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
128
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
129
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
130
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
131
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
132
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
133
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
134
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
135
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
136
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
137
+ /Users/efatsi/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
138
+ /Users/efatsi/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
139
+ /Users/efatsi/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
140
+
141
+
142
+ Rendered /Users/efatsi/.rvm/gems/ruby-1.9.3-p392/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)
143
+
144
+
145
+ Started GET "/pointless_feedback" for 127.0.0.1 at 2013-11-07 15:49:54 -0700
146
+ Processing by PointlessFeedback::MessagesController#new as HTML
147
+ Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (8.6ms)
148
+ Completed 200 OK in 53ms (Views: 14.6ms | ActiveRecord: 7.9ms)
149
+
150
+
151
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:49:54 -0700
152
+ Served asset /application.css - 304 Not Modified (0ms)
153
+
154
+
155
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:54 -0700
156
+ Served asset /application.js - 304 Not Modified (0ms)
157
+
158
+
159
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:54 -0700
160
+ Served asset /jquery.js - 304 Not Modified (0ms)
161
+
162
+
163
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:49:54 -0700
164
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
165
+ Connecting to database specified by database.yml
166
+
167
+
168
+ Started GET "/pointless_feedback" for 127.0.0.1 at 2013-11-07 15:50:07 -0700
169
+ Processing by PointlessFeedback::MessagesController#new as HTML
170
+ Rendered /Users/efatsi/Desktop/Projects/Pointless_Corp/pointless-feedback/app/views/pointless_feedback/messages/new.html.erb within layouts/application (8.2ms)
171
+ Completed 200 OK in 44ms (Views: 23.8ms | ActiveRecord: 1.6ms)
172
+
173
+
174
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-11-07 15:50:08 -0700
175
+ Served asset /application.css - 304 Not Modified (1ms)
176
+
177
+
178
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-11-07 15:50:08 -0700
179
+ Served asset /jquery.js - 304 Not Modified (3ms)
180
+
181
+
182
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-11-07 15:50:08 -0700
183
+ Served asset /jquery_ujs.js - 304 Not Modified (2ms)
184
+
185
+
186
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-11-07 15:50:08 -0700
187
+ Served asset /application.js - 304 Not Modified (3ms)