pointless_feedback 4.0.6 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -3
- data/lib/generators/templates/pointless_feedback.rb +11 -4
- data/lib/pointless_feedback/version.rb +1 -1
- metadata +29 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6504a3d51cee80b98447367511dccc8c4d7a156d41d5df3ee1053274f0bbf21
|
4
|
+
data.tar.gz: 02f9046a9b95abdb0b92742c29f4b2218f7b2a225534806f378fb2878fbd278f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c891dde55769166047db2cb393638dcfba10d5283cb3baf3e1906264e7b235feaf60587224ac265934ae2da15283df786a1fefa42eac231ffe8c5c014eef580
|
7
|
+
data.tar.gz: a06cacea7a96d0cc0cd970078d4605046d4dae9c0e6ff7c061a26c2f789ad02a9866279d35658bace837091715348b2e91786a71cb439c571e9c5c03b86e9152
|
data/README.md
CHANGED
@@ -72,12 +72,14 @@ feedback form that users can submit.
|
|
72
72
|
|
73
73
|
There are a number of configuration variables you can set in the initializer generated by `rails generate pointless_feedback:install`
|
74
74
|
|
75
|
-
|
76
|
-
Defaults to `['Error on page', 'Other']`. Populates the "Topic" dropdown for feedback submissions.
|
75
|
+
#### Email Configuration
|
77
76
|
|
78
77
|
**email_feedback:**
|
79
78
|
Defaults to `false`. If set to `true` will send feedback as an email.
|
80
79
|
|
80
|
+
**message_topics:**
|
81
|
+
Defaults to `['Error on page', 'Other']`. Populates the "Topic" dropdown for feedback submissions.
|
82
|
+
|
81
83
|
**send_from_submitter:**
|
82
84
|
Defaults to `false`. If set to `true` will use the submitted email address as the from address for feedback emails.
|
83
85
|
|
@@ -90,6 +92,22 @@ Specifies what address the feedback email is sent from.
|
|
90
92
|
**table_name:**
|
91
93
|
Defaults to engine's namespace, e.g. `pointless_feedback_messages`. Change to any desired table for `PointlessFeedback::Message` model.
|
92
94
|
|
95
|
+
**google_captcha_site_key & google_captcha_secret_key:**
|
96
|
+
If you'd like to block out the robots, set up a Google Captcha instance:
|
97
|
+
|
98
|
+
Do so here - http://www.google.com/recaptcha/admin. Be sure to configure it with the reCAPTCHA v2 `"I'm not a robot" Checkbox`. Then copy the site_key and secret_key into these config variables and PointlessFeedback will handle the rest!
|
99
|
+
|
100
|
+
#### Airtable Configuration
|
101
|
+
|
102
|
+
**airtable_api_key:**
|
103
|
+
Self explanatory, required if you want to export submitted feedback contents into an Airtable database.
|
104
|
+
|
105
|
+
**airtable_app_key:**
|
106
|
+
Self explanatory
|
107
|
+
|
108
|
+
**airtable_table_name:**
|
109
|
+
Self explanatory
|
110
|
+
|
93
111
|
## Customization
|
94
112
|
|
95
113
|
Pointless Feedback provides you with a simple setup that should cover most
|
@@ -159,7 +177,6 @@ to customize your redirect hook.
|
|
159
177
|
|
160
178
|
## Roadmap
|
161
179
|
|
162
|
-
- [ ] Add service to send to Unfuddle
|
163
180
|
- [ ] Add service to send to Github
|
164
181
|
- [ ] Add admin view for messages with comments
|
165
182
|
|
@@ -6,10 +6,17 @@ PointlessFeedback.setup do |config|
|
|
6
6
|
# ==> Email Configuration
|
7
7
|
# Configure feedback email properties (disabled by default)
|
8
8
|
# Variables needed for emailing feedback
|
9
|
-
# config.email_feedback
|
10
|
-
# config.send_from_submitter
|
11
|
-
# config.from_email
|
12
|
-
# config.to_emails
|
9
|
+
# config.email_feedback = false
|
10
|
+
# config.send_from_submitter = false
|
11
|
+
# config.from_email = 'feedback@pointlesscorp.com'
|
12
|
+
# config.to_emails = ['first@example.com', 'second@example.com']
|
13
|
+
|
14
|
+
# ==> Google reCAPTCHA Configuration
|
15
|
+
# If you'd like to enable Google reCAPTCHA,
|
16
|
+
# 1. Register your site at: https://www.google.com/recaptcha/admin
|
17
|
+
# 2. !! Ensure you opt for reCAPTCHA v2. Support for v3 is not here yet.
|
18
|
+
# 3. Grab the site and secret key and paste them here.
|
19
|
+
#
|
13
20
|
# config.google_captcha_site_key = nil
|
14
21
|
# config.google_captcha_secret_key = nil
|
15
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pointless_feedback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -229,48 +229,48 @@ signing_key:
|
|
229
229
|
specification_version: 4
|
230
230
|
summary: Simple Rails Engine to allow users to submit feedback
|
231
231
|
test_files:
|
232
|
-
- test/
|
233
|
-
- test/
|
232
|
+
- test/unit/pointless_feedback/captcha_test.rb
|
233
|
+
- test/unit/pointless_feedback/message_test.rb
|
234
|
+
- test/unit/helpers/pointless_feedback/application_helper_test.rb
|
234
235
|
- test/dummy/app/controllers/application_controller.rb
|
235
236
|
- test/dummy/app/controllers/home_controller.rb
|
236
|
-
- test/dummy/app/helpers/application_helper.rb
|
237
237
|
- test/dummy/app/views/home/index.html.erb
|
238
238
|
- test/dummy/app/views/layouts/application.html.erb
|
239
|
-
- test/dummy/
|
240
|
-
- test/dummy/
|
241
|
-
- test/dummy/
|
242
|
-
- test/dummy/config/
|
243
|
-
- test/dummy/config/
|
239
|
+
- test/dummy/app/assets/javascripts/application.js
|
240
|
+
- test/dummy/app/assets/stylesheets/application.css
|
241
|
+
- test/dummy/app/helpers/application_helper.rb
|
242
|
+
- test/dummy/config/routes.rb
|
243
|
+
- test/dummy/config/locales/en.yml
|
244
244
|
- test/dummy/config/environments/production.rb
|
245
|
+
- test/dummy/config/environments/development.rb
|
245
246
|
- test/dummy/config/environments/test.rb
|
247
|
+
- test/dummy/config/environment.rb
|
248
|
+
- test/dummy/config/application.rb
|
249
|
+
- test/dummy/config/database.yml
|
250
|
+
- test/dummy/config/boot.rb
|
246
251
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
247
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
248
|
-
- test/dummy/config/initializers/inflections.rb
|
249
252
|
- test/dummy/config/initializers/mime_types.rb
|
250
|
-
- test/dummy/config/initializers/
|
253
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
251
254
|
- test/dummy/config/initializers/session_store.rb
|
252
255
|
- test/dummy/config/initializers/wrap_parameters.rb
|
253
|
-
- test/dummy/config/
|
254
|
-
- test/dummy/config/
|
256
|
+
- test/dummy/config/initializers/secret_token.rb
|
257
|
+
- test/dummy/config/initializers/inflections.rb
|
255
258
|
- test/dummy/config.ru
|
256
|
-
- test/dummy/
|
257
|
-
- test/dummy/
|
258
|
-
- test/dummy/public/
|
259
|
+
- test/dummy/script/rails
|
260
|
+
- test/dummy/Rakefile
|
261
|
+
- test/dummy/public/favicon.ico
|
259
262
|
- test/dummy/public/422.html
|
260
263
|
- test/dummy/public/500.html
|
261
|
-
- test/dummy/public/
|
262
|
-
- test/dummy/
|
264
|
+
- test/dummy/public/404.html
|
265
|
+
- test/dummy/db/schema.rb
|
266
|
+
- test/dummy/log/test.log
|
263
267
|
- test/dummy/README.rdoc
|
264
|
-
- test/dummy/script/rails
|
265
|
-
- test/factories/messages.rb
|
266
|
-
- test/functional/pointless_feedback/feedback_mailer_test.rb
|
267
|
-
- test/functional/pointless_feedback/messages_controller_test.rb
|
268
|
-
- test/generators/install_generator_test.rb
|
269
|
-
- test/generators/views_generator_test.rb
|
270
268
|
- test/integration/pointless_feedback/feedback_submission_test.rb
|
271
269
|
- test/integration/pointless_feedback/main_app_root_url_test.rb
|
272
270
|
- test/pointless_feedback_test.rb
|
271
|
+
- test/factories/messages.rb
|
273
272
|
- test/test_helper.rb
|
274
|
-
- test/
|
275
|
-
- test/
|
276
|
-
- test/
|
273
|
+
- test/generators/install_generator_test.rb
|
274
|
+
- test/generators/views_generator_test.rb
|
275
|
+
- test/functional/pointless_feedback/messages_controller_test.rb
|
276
|
+
- test/functional/pointless_feedback/feedback_mailer_test.rb
|