feedback_popup 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 (68) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +50 -0
  3. data/Rakefile +38 -0
  4. data/app/assets/javascripts/feedback_popup.coffee +70 -0
  5. data/app/assets/stylesheets/feedback_popup.sass +44 -0
  6. data/app/controllers/feedback_popup/messages_controller.rb +26 -0
  7. data/app/helpers/feedback_popup/feedback_popup_helper.rb +5 -0
  8. data/app/mailers/feedback_popup/mailer.rb +12 -0
  9. data/app/models/feedback_popup/message.rb +28 -0
  10. data/app/views/feedback_popup/_popup.html.erb +10 -0
  11. data/app/views/feedback_popup/mailer/feedback.text.erb +1 -0
  12. data/app/views/feedback_popup/messages/create.js.erb +1 -0
  13. data/config/locales/feedback_popup.en.yml +8 -0
  14. data/config/routes.rb +7 -0
  15. data/lib/feedback_popup.rb +24 -0
  16. data/lib/feedback_popup/version.rb +3 -0
  17. data/lib/tasks/feedback_popup_tasks.rake +4 -0
  18. data/test/dummy/README.rdoc +261 -0
  19. data/test/dummy/Rakefile +7 -0
  20. data/test/dummy/app/assets/javascripts/application.js +16 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +14 -0
  22. data/test/dummy/app/controllers/application_controller.rb +3 -0
  23. data/test/dummy/app/controllers/main_controller.rb +4 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/app/views/main/index.html.erb +1 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +68 -0
  29. data/test/dummy/config/boot.rb +10 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +37 -0
  33. data/test/dummy/config/environments/production.rb +67 -0
  34. data/test/dummy/config/environments/test.rb +37 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/feedback_popup.rb +7 -0
  37. data/test/dummy/config/initializers/inflections.rb +15 -0
  38. data/test/dummy/config/initializers/mime_types.rb +5 -0
  39. data/test/dummy/config/initializers/secret_token.rb +7 -0
  40. data/test/dummy/config/initializers/session_store.rb +8 -0
  41. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/test/dummy/config/locales/en.yml +5 -0
  43. data/test/dummy/config/routes.rb +61 -0
  44. data/test/dummy/db/development.sqlite3 +0 -0
  45. data/test/dummy/log/development.log +8613 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +25 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  52. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  53. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  54. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  55. data/test/dummy/tmp/cache/assets/D6D/F80/sprockets%2Fd4308d046bd1fa0798aae71ef449f2f1 +0 -0
  56. data/test/dummy/tmp/cache/assets/D6E/E30/sprockets%2Fe6acafa86150081916bf24ff89da236c +0 -0
  57. data/test/dummy/tmp/cache/assets/D7D/C60/sprockets%2F2ba12729add022620c2a5ffda9bb213c +0 -0
  58. data/test/dummy/tmp/cache/assets/D8F/E50/sprockets%2F123f8faffa8a34ba224620f1aed92b55 +0 -0
  59. data/test/dummy/tmp/cache/assets/D91/420/sprockets%2F0abf91d14dcabdf1d8128b14c53836f4 +0 -0
  60. data/test/dummy/tmp/cache/assets/DD5/3C0/sprockets%2F3cd299c7d86d7167a0ccbe90d84cce1c +0 -0
  61. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  62. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  63. data/test/dummy/tmp/cache/assets/E2B/B30/sprockets%2F3ecf6c2b6eae41733f069bcb95cbd4af +0 -0
  64. data/test/dummy/tmp/cache/assets/E83/0C0/sprockets%2Fabeaa97debaab439ec6f63dff3212ea3 +0 -0
  65. data/test/dummy/tmp/pids/server.pid +1 -0
  66. data/test/feedback_popup_test.rb +7 -0
  67. data/test/test_helper.rb +15 -0
  68. metadata +190 -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 @@
1
+ 63742
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class FeedbackPopupTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, FeedbackPopup
6
+ end
7
+ end
@@ -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,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: feedback_popup
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Levente Bagi
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &70364866327880 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70364866327880
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3
27
+ requirement: &70364866327300 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70364866327300
36
+ description: Simple feedback popup for Rails 3 applications.
37
+ email:
38
+ - bagilevi@gmail.com
39
+ executables: []
40
+ extensions: []
41
+ extra_rdoc_files: []
42
+ files:
43
+ - app/assets/javascripts/feedback_popup.coffee
44
+ - app/assets/stylesheets/feedback_popup.sass
45
+ - app/controllers/feedback_popup/messages_controller.rb
46
+ - app/helpers/feedback_popup/feedback_popup_helper.rb
47
+ - app/mailers/feedback_popup/mailer.rb
48
+ - app/models/feedback_popup/message.rb
49
+ - app/views/feedback_popup/_popup.html.erb
50
+ - app/views/feedback_popup/mailer/feedback.text.erb
51
+ - app/views/feedback_popup/messages/create.js.erb
52
+ - config/locales/feedback_popup.en.yml
53
+ - config/routes.rb
54
+ - lib/feedback_popup/version.rb
55
+ - lib/feedback_popup.rb
56
+ - lib/tasks/feedback_popup_tasks.rake
57
+ - MIT-LICENSE
58
+ - Rakefile
59
+ - README.md
60
+ - test/dummy/app/assets/javascripts/application.js
61
+ - test/dummy/app/assets/stylesheets/application.css
62
+ - test/dummy/app/controllers/application_controller.rb
63
+ - test/dummy/app/controllers/main_controller.rb
64
+ - test/dummy/app/helpers/application_helper.rb
65
+ - test/dummy/app/views/layouts/application.html.erb
66
+ - test/dummy/app/views/main/index.html.erb
67
+ - test/dummy/config/application.rb
68
+ - test/dummy/config/boot.rb
69
+ - test/dummy/config/database.yml
70
+ - test/dummy/config/environment.rb
71
+ - test/dummy/config/environments/development.rb
72
+ - test/dummy/config/environments/production.rb
73
+ - test/dummy/config/environments/test.rb
74
+ - test/dummy/config/initializers/backtrace_silencers.rb
75
+ - test/dummy/config/initializers/feedback_popup.rb
76
+ - test/dummy/config/initializers/inflections.rb
77
+ - test/dummy/config/initializers/mime_types.rb
78
+ - test/dummy/config/initializers/secret_token.rb
79
+ - test/dummy/config/initializers/session_store.rb
80
+ - test/dummy/config/initializers/wrap_parameters.rb
81
+ - test/dummy/config/locales/en.yml
82
+ - test/dummy/config/routes.rb
83
+ - test/dummy/config.ru
84
+ - test/dummy/db/development.sqlite3
85
+ - test/dummy/log/development.log
86
+ - test/dummy/public/404.html
87
+ - test/dummy/public/422.html
88
+ - test/dummy/public/500.html
89
+ - test/dummy/public/favicon.ico
90
+ - test/dummy/Rakefile
91
+ - test/dummy/README.rdoc
92
+ - test/dummy/script/rails
93
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
94
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
95
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
96
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
97
+ - test/dummy/tmp/cache/assets/D6D/F80/sprockets%2Fd4308d046bd1fa0798aae71ef449f2f1
98
+ - test/dummy/tmp/cache/assets/D6E/E30/sprockets%2Fe6acafa86150081916bf24ff89da236c
99
+ - test/dummy/tmp/cache/assets/D7D/C60/sprockets%2F2ba12729add022620c2a5ffda9bb213c
100
+ - test/dummy/tmp/cache/assets/D8F/E50/sprockets%2F123f8faffa8a34ba224620f1aed92b55
101
+ - test/dummy/tmp/cache/assets/D91/420/sprockets%2F0abf91d14dcabdf1d8128b14c53836f4
102
+ - test/dummy/tmp/cache/assets/DD5/3C0/sprockets%2F3cd299c7d86d7167a0ccbe90d84cce1c
103
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
104
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
105
+ - test/dummy/tmp/cache/assets/E2B/B30/sprockets%2F3ecf6c2b6eae41733f069bcb95cbd4af
106
+ - test/dummy/tmp/cache/assets/E83/0C0/sprockets%2Fabeaa97debaab439ec6f63dff3212ea3
107
+ - test/dummy/tmp/pids/server.pid
108
+ - test/feedback_popup_test.rb
109
+ - test/test_helper.rb
110
+ homepage: https://github.com/peerpost/feedback_popup
111
+ licenses: []
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ none: false
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ segments:
123
+ - 0
124
+ hash: 3426372579542185336
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
126
+ none: false
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ segments:
132
+ - 0
133
+ hash: 3426372579542185336
134
+ requirements: []
135
+ rubyforge_project:
136
+ rubygems_version: 1.8.17
137
+ signing_key:
138
+ specification_version: 3
139
+ summary: Simple feedback popup for Rails 3 applications.
140
+ test_files:
141
+ - test/dummy/app/assets/javascripts/application.js
142
+ - test/dummy/app/assets/stylesheets/application.css
143
+ - test/dummy/app/controllers/application_controller.rb
144
+ - test/dummy/app/controllers/main_controller.rb
145
+ - test/dummy/app/helpers/application_helper.rb
146
+ - test/dummy/app/views/layouts/application.html.erb
147
+ - test/dummy/app/views/main/index.html.erb
148
+ - test/dummy/config/application.rb
149
+ - test/dummy/config/boot.rb
150
+ - test/dummy/config/database.yml
151
+ - test/dummy/config/environment.rb
152
+ - test/dummy/config/environments/development.rb
153
+ - test/dummy/config/environments/production.rb
154
+ - test/dummy/config/environments/test.rb
155
+ - test/dummy/config/initializers/backtrace_silencers.rb
156
+ - test/dummy/config/initializers/feedback_popup.rb
157
+ - test/dummy/config/initializers/inflections.rb
158
+ - test/dummy/config/initializers/mime_types.rb
159
+ - test/dummy/config/initializers/secret_token.rb
160
+ - test/dummy/config/initializers/session_store.rb
161
+ - test/dummy/config/initializers/wrap_parameters.rb
162
+ - test/dummy/config/locales/en.yml
163
+ - test/dummy/config/routes.rb
164
+ - test/dummy/config.ru
165
+ - test/dummy/db/development.sqlite3
166
+ - test/dummy/log/development.log
167
+ - test/dummy/public/404.html
168
+ - test/dummy/public/422.html
169
+ - test/dummy/public/500.html
170
+ - test/dummy/public/favicon.ico
171
+ - test/dummy/Rakefile
172
+ - test/dummy/README.rdoc
173
+ - test/dummy/script/rails
174
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
175
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
176
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
177
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
178
+ - test/dummy/tmp/cache/assets/D6D/F80/sprockets%2Fd4308d046bd1fa0798aae71ef449f2f1
179
+ - test/dummy/tmp/cache/assets/D6E/E30/sprockets%2Fe6acafa86150081916bf24ff89da236c
180
+ - test/dummy/tmp/cache/assets/D7D/C60/sprockets%2F2ba12729add022620c2a5ffda9bb213c
181
+ - test/dummy/tmp/cache/assets/D8F/E50/sprockets%2F123f8faffa8a34ba224620f1aed92b55
182
+ - test/dummy/tmp/cache/assets/D91/420/sprockets%2F0abf91d14dcabdf1d8128b14c53836f4
183
+ - test/dummy/tmp/cache/assets/DD5/3C0/sprockets%2F3cd299c7d86d7167a0ccbe90d84cce1c
184
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
185
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
186
+ - test/dummy/tmp/cache/assets/E2B/B30/sprockets%2F3ecf6c2b6eae41733f069bcb95cbd4af
187
+ - test/dummy/tmp/cache/assets/E83/0C0/sprockets%2Fabeaa97debaab439ec6f63dff3212ea3
188
+ - test/dummy/tmp/pids/server.pid
189
+ - test/feedback_popup_test.rb
190
+ - test/test_helper.rb