README_for_rails2.textile in bullet-4.3.0 vs README_for_rails2.textile in bullet-4.3.1
- old
+ new
@@ -42,11 +42,10 @@
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
Bullet.growl = true
Bullet.rails_logger = true
- Bullet.disable_browser_cache = true
Bullet.xmpp = { :account => 'bullets_account@jabber.org',
:password => 'bullets_password_for_jabber',
:receiver => 'your_account@jabber.org',
:show_online_status => true }
end
@@ -59,11 +58,10 @@
* <code>Bullet.alert</code>: pop up a JavaScript alert in the browser
* <code>Bullet.bullet_logger</code>: log to the Bullet log file (RAILS_ROOT/log/bullet.log)
* <code>Bullet.rails_logger</code>: add warnings directly to the Rails log
* <code>Bullet.console</code>: log warnings to your browser's console.log (Safari/Webkit browsers or Firefox w/Firebug installed)
* <code>Bullet.growl</code>: pop up Growl warnings if your system has Growl installed. Requires a little bit of configuration
-* <code>Bullet.disable_browser_cache</code>: disable browser cache which usually causes unexpected problems
****************************************************************************
h2. Log
@@ -150,29 +148,28 @@
The bullet plugin/gem use rack middleware for http request. If you want to bullet for without http server, such as job server. You can do like this:
<pre><code>
Bullet.start_request if Bullet.enable?
# run job
-if Bullet.enable?
- Bullet.growl_notification
- Bullet.log_notification('JobServer: ')
- Bullet.end_request
+if Bullet.enable? && Bullet.notification?
+ Bullet.perform_out_of_channel_notifications
end
+Bullet.end_request if Bullet.enable?
</code></pre>
Or you want to use it in test mode
<pre><code>
before(:each)
Bullet.start_request if Bullet.enable?
end
after(:each)
- if Bullet.enable?
+ if Bullet.enable? && Bullet.notification?
Bullet.perform_out_of_channel_notifications
- Bullet.end_request
end
+ Bullet.end_request if Bullet.enable?
end
</code></pre>
Don't forget enabling bullet in test environment.
@@ -251,11 +248,10 @@
Bullet.alert = true
Bullet.bullet_logger = true
Bullet.console = true
# Bullet.growl = true
Bullet.rails_logger = true
- Bullet.disable_browser_cache = true
end
</code></pre>
7. start server
@@ -399,6 +395,6 @@
</code></pre>
****************************************************************************
-Copyright (c) 2009 - 2012 Richard Huang (flyerhzm@gmail.com), released under the MIT license
+Copyright (c) 2009 - 2013 Richard Huang (flyerhzm@gmail.com), released under the MIT license