bullet 2.0.0.rc2 → 2.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -164,8 +164,7 @@ end
164
164
 
165
165
  after(:each)
166
166
  if Bullet.enable?
167
- Bullet.growl_notification
168
- Bullet.log_notification('Test: ')
167
+ Bullet.perform_out_of_channel_notifications
169
168
  Bullet.end_request
170
169
  end
171
170
  end
@@ -184,8 +184,7 @@ end
184
184
 
185
185
  after(:each)
186
186
  if Bullet.enable?
187
- Bullet.growl_notification
188
- Bullet.log_notification('Test: ')
187
+ Bullet.perform_out_of_channel_notifications
189
188
  Bullet.end_request
190
189
  end
191
190
  end
@@ -29,13 +29,13 @@ module Bullet
29
29
  end
30
30
 
31
31
  def present_inline
32
- return unless self.presenter.respond_to? :inline
33
- self.presenter.send( :inline, self )
32
+ return unless self.presenter.respond_to? :inline_notify
33
+ self.presenter.send( :inline_notify, self )
34
34
  end
35
35
 
36
36
  def present_out_of_channel
37
- return unless self.presenter.respond_to? :out_of_channel
38
- self.presenter.send( :out_of_channel, self )
37
+ return unless self.presenter.respond_to? :out_of_channel_notify
38
+ self.presenter.send( :out_of_channel_notify, self )
39
39
  end
40
40
 
41
41
  def eql?( other )
@@ -8,7 +8,7 @@ module Bullet
8
8
  @logger
9
9
  end
10
10
 
11
- def self.out_of_channel( notice )
11
+ def self.out_of_channel_notify( notice )
12
12
  return unless active?
13
13
  @logger.info notice.full_notice
14
14
  @logger_file.flush
@@ -7,7 +7,7 @@ module Bullet
7
7
  @growl
8
8
  end
9
9
 
10
- def self.out_of_channel( notice )
10
+ def self.out_of_channel_notify( notice )
11
11
  return unless active?
12
12
  notify( notice.standard_notice )
13
13
  end
@@ -5,7 +5,7 @@ module Bullet
5
5
  Bullet.alert
6
6
  end
7
7
 
8
- def self.inline( notice )
8
+ def self.inline_notify( notice )
9
9
  return '' unless self.active?
10
10
 
11
11
  JavascriptHelpers::wrap_js_association "alert( #{notice.standard_notice.inspect} ); "
@@ -5,7 +5,7 @@ module Bullet
5
5
  Bullet.console
6
6
  end
7
7
 
8
- def self.inline( notice )
8
+ def self.inline_notify( notice )
9
9
  return '' unless active?
10
10
 
11
11
  code = <<-CODE
@@ -5,7 +5,7 @@ module Bullet
5
5
  Bullet.rails_logger
6
6
  end
7
7
 
8
- def self.out_of_channel( notice )
8
+ def self.out_of_channel_notify( notice )
9
9
  return unless active?
10
10
  Rails.logger.warn ''
11
11
  Rails.logger.warn notice.full_notice
@@ -9,7 +9,7 @@ module Bullet
9
9
  @xmpp
10
10
  end
11
11
 
12
- def self.out_of_channel( notice )
12
+ def self.out_of_channel_notify( notice )
13
13
  return unless active?
14
14
  notify( notice.standard_notice )
15
15
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "2.0.0.rc2"
3
+ VERSION = "2.0.0.rc3"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 977940591
4
+ hash: 977940588
5
5
  prerelease: true
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
- - rc2
11
- version: 2.0.0.rc2
10
+ - rc3
11
+ version: 2.0.0.rc3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Richard Huang
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-07 00:00:00 +08:00
19
+ date: 2010-11-02 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies: []
22
22
 
@@ -32,37 +32,37 @@ extra_rdoc_files:
32
32
  - README.textile
33
33
  - README_for_rails2.textile
34
34
  files:
35
- - lib/bullet.rb
36
- - lib/bullet/notification_collector.rb
37
- - lib/bullet/notification/base.rb
38
- - lib/bullet/notification/counter_cache.rb
39
- - lib/bullet/notification/n_plus_one_query.rb
40
- - lib/bullet/notification/unused_eager_loading.rb
41
- - lib/bullet/version.rb
35
+ - lib/bullet/action_controller2.rb
36
+ - lib/bullet/active_record2.rb
37
+ - lib/bullet/active_record3.rb
38
+ - lib/bullet/detector/association.rb
42
39
  - lib/bullet/detector/base.rb
43
- - lib/bullet/detector/unused_eager_association.rb
44
40
  - lib/bullet/detector/counter.rb
45
- - lib/bullet/detector/association.rb
46
41
  - lib/bullet/detector/n_plus_one_query.rb
42
+ - lib/bullet/detector/unused_eager_association.rb
47
43
  - lib/bullet/detector.rb
48
- - lib/bullet/presenter/rails_logger.rb
44
+ - lib/bullet/notification/base.rb
45
+ - lib/bullet/notification/counter_cache.rb
46
+ - lib/bullet/notification/n_plus_one_query.rb
47
+ - lib/bullet/notification/unused_eager_loading.rb
48
+ - lib/bullet/notification.rb
49
+ - lib/bullet/notification_collector.rb
49
50
  - lib/bullet/presenter/base.rb
50
- - lib/bullet/presenter/javascript_alert.rb
51
- - lib/bullet/presenter/javascript_helpers.rb
51
+ - lib/bullet/presenter/bullet_logger.rb
52
52
  - lib/bullet/presenter/growl.rb
53
+ - lib/bullet/presenter/javascript_alert.rb
53
54
  - lib/bullet/presenter/javascript_console.rb
54
- - lib/bullet/presenter/bullet_logger.rb
55
+ - lib/bullet/presenter/javascript_helpers.rb
56
+ - lib/bullet/presenter/rails_logger.rb
55
57
  - lib/bullet/presenter/xmpp.rb
56
- - lib/bullet/registry.rb
57
- - lib/bullet/notification.rb
58
- - lib/bullet/active_record2.rb
58
+ - lib/bullet/presenter.rb
59
59
  - lib/bullet/rack.rb
60
+ - lib/bullet/registry/association.rb
60
61
  - lib/bullet/registry/base.rb
61
62
  - lib/bullet/registry/object.rb
62
- - lib/bullet/registry/association.rb
63
- - lib/bullet/action_controller2.rb
64
- - lib/bullet/active_record3.rb
65
- - lib/bullet/presenter.rb
63
+ - lib/bullet/registry.rb
64
+ - lib/bullet/version.rb
65
+ - lib/bullet.rb
66
66
  - MIT-LICENSE
67
67
  - README.textile
68
68
  - README_for_rails2.textile