feedbacker 0.1.2 → 0.1.3
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.
- data/README.md +57 -0
- data/app/mailers/feedback_mailer.rb +1 -1
- data/config/initializers/feedbacker.rb +2 -1
- data/lib/feedbacker/version.rb +1 -1
- metadata +2 -2
- data/README +0 -34
data/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
Feedbacker
|
2
|
+
==========
|
3
|
+
|
4
|
+
Feedbacker provides a tab for users to contact developers from within the application
|
5
|
+
|
6
|
+
Assumptions
|
7
|
+
-----------
|
8
|
+
|
9
|
+
Feedbacker assumes that you're using...
|
10
|
+
|
11
|
+
* At least Rails 3.1.3
|
12
|
+
* The Rails Asset Pipeline
|
13
|
+
* Jquery
|
14
|
+
* and probably some other things that we've failed to mention.
|
15
|
+
|
16
|
+
Installation
|
17
|
+
------------
|
18
|
+
1. Add the following to your Gemfile.
|
19
|
+
|
20
|
+
gem :feedbacker
|
21
|
+
|
22
|
+
2. Run `bundle install`
|
23
|
+
|
24
|
+
3. Add the following line to your application layout.
|
25
|
+
|
26
|
+
<%= javascript_include_tag :feedbacker %>
|
27
|
+
|
28
|
+
4. Add the following line to your application layout before you call application.css. Override default settings in application.css.
|
29
|
+
|
30
|
+
<%= stylesheet_link_tag :feedbacker %>
|
31
|
+
|
32
|
+
5. Add the following line at at appropriate position in your application layout.
|
33
|
+
|
34
|
+
<%= render(:partial => 'feedbacker/tab') unless current_user.is_guest? %>
|
35
|
+
|
36
|
+
6. Add the folllowing line to config/application.rb.
|
37
|
+
|
38
|
+
config.paths['db/migrate'] = Feedbacker::Engine.paths['db/migrate'].existent
|
39
|
+
|
40
|
+
7. Run `rake db:migrate` to add remarks table.
|
41
|
+
|
42
|
+
8. Create feedbacker.rb in config/initializers and add the following line.
|
43
|
+
|
44
|
+
Feedbacker::EMAIL_TO = 'support@yourdomain.com'
|
45
|
+
|
46
|
+
9. (Optional) You may also add either or both of the following lines and edit to taste. Defaults are shown.
|
47
|
+
|
48
|
+
Feedbacker::RemarkMethods::USER_NAME_METHOD = :first_last
|
49
|
+
Feedbacker::EMAIL_PREFIX = '[FEEDBACKER]'
|
50
|
+
|
51
|
+
Copyright (c) 2009 WWIDEA, Inc. released under the MIT license
|
52
|
+
|
53
|
+
|
54
|
+
Contributions
|
55
|
+
-------------
|
56
|
+
|
57
|
+
If have improvements to contribute to this gem, please feel free to fork, commit with tests (if applicable), and then send a pull request. Thank You!
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class FeedbackMailer < ActionMailer::Base
|
2
2
|
def feedback(remark)
|
3
3
|
@remark = remark
|
4
|
-
mail(:to =>
|
4
|
+
mail(:to => Feedbacker::EMAIL_TO, :from => Feedbacker::EMAIL_TO, :reply_to => remark.user.email, :subject => "#{(defined? Feedbacker::EMAIL_PREFIX) ? Feedbacker::EMAIL_PREFIX : '[FEEDBACKER]'} Feedback Notification")
|
5
5
|
end
|
6
6
|
end
|
data/lib/feedbacker/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: feedbacker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jonathan S. Garvin
|
@@ -28,7 +28,7 @@ extra_rdoc_files: []
|
|
28
28
|
files:
|
29
29
|
- .gitignore
|
30
30
|
- MIT-LICENSE
|
31
|
-
- README
|
31
|
+
- README.md
|
32
32
|
- Rakefile
|
33
33
|
- app/assets/images/feedback_tab.png
|
34
34
|
- app/assets/images/feedback_tab_bottom.png
|
data/README
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
Feedbacker
|
2
|
-
==========
|
3
|
-
|
4
|
-
Feedbacker provides a tab for users to contact developers from within the application
|
5
|
-
|
6
|
-
|
7
|
-
Assumptions
|
8
|
-
===========
|
9
|
-
|
10
|
-
Feedbacker assumes that you're using...
|
11
|
-
At least Rails 3.1.3
|
12
|
-
The Rails Asset Pipeline
|
13
|
-
Jquery
|
14
|
-
|
15
|
-
Installation
|
16
|
-
============
|
17
|
-
1. Add the following to your Gemfile
|
18
|
-
gem :feedbacker
|
19
|
-
|
20
|
-
2. Run `bundle install`
|
21
|
-
|
22
|
-
3. Add the following line to your application layout
|
23
|
-
<%= javascript_include_tag :feedbacker %>
|
24
|
-
|
25
|
-
4. Add the following line to your application layout before you call application.css. Override default settings in application.css
|
26
|
-
<%= stylesheet_link_tag :feedbacker %>
|
27
|
-
|
28
|
-
5. Add the following line right after the body tag in your application layout
|
29
|
-
<%= render(:partial => 'feedbacker/tab') unless current_user.is_guest? %>
|
30
|
-
|
31
|
-
6. Add the folllowing line to config/application.rb
|
32
|
-
config.paths['db/migrate'] = Feedbacker::Engine.paths['db/migrate'].existent
|
33
|
-
|
34
|
-
Copyright (c) 2009 WWIDEA, Inc. released under the MIT license
|