feedbacker 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
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 => "support@wwidea.org", :from => 'support@wwidea.org', :reply_to => remark.user.email, :subject => "#{(defined? FEEDBACKER_EMAIL_PREFIX) ? FEEDBACKER_EMAIL_PREFIX : '[FEEDBACKER]'} Feedback Notification")
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
@@ -1,2 +1,3 @@
1
1
  Feedbacker::RemarkMethods::USER_NAME_METHOD = :first_last
2
- FEEDBACKER_EMAIL_PREFIX = '[FEEDBACKER]'
2
+ Feedbacker::EMAIL_PREFIX = '[FEEDBACKER]'
3
+ Feedbacker::EMAIL_TO = 'support@wwidea.org'
@@ -1,3 +1,3 @@
1
1
  module Feedbacker
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: feedbacker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
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