flipsasser-bullet 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec.opts ADDED
@@ -0,0 +1,8 @@
1
+ --colour
2
+ --format
3
+ specdoc
4
+ --reverse
5
+ --timeout
6
+ 20
7
+ --loadby
8
+ mtime
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'spec/autorun'
3
+ require 'active_record'
4
+
5
+ RAILS_ROOT = File.expand_path(__FILE__).split('/')[0..-6].join('/') unless defined? RAILS_ROOT
6
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/bullet/logger'))
7
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/bullet/active_record'))
8
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/bullet/association'))
9
+ require File.expand_path(File.join(File.dirname(__FILE__), '../lib/bullet'))
10
+ Bullet.enable = true
@@ -0,0 +1,9 @@
1
+ namespace :bullet do
2
+ namespace :log do
3
+ desc "Truncates the bullet log file to zero bytes"
4
+ task :clear do
5
+ f = File.open("log/bullet.log", "w")
6
+ f.close
7
+ end
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flipsasser-bullet
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Richard Huang
8
+ - Flip Sasser
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-08-27 00:00:00 -07:00
14
+ default_executable:
15
+ dependencies: []
16
+
17
+ description: The Bullet plugin is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries) or when you're using eager loading that isn't necessary.
18
+ email: flip@x451.com
19
+ executables: []
20
+
21
+ extensions: []
22
+
23
+ extra_rdoc_files:
24
+ - README.markdown
25
+ files:
26
+ - MIT-LICENSE
27
+ - README.markdown
28
+ - Rakefile
29
+ - VERSION
30
+ - bullet.gemspec
31
+ - lib/bullet.rb
32
+ - lib/bullet/active_record.rb
33
+ - lib/bullet/association.rb
34
+ - lib/bullet/logger.rb
35
+ - lib/bulletware.rb
36
+ - rails/init.rb
37
+ - spec/bullet_association_spec.rb
38
+ - spec/spec.opts
39
+ - spec/spec_helper.rb
40
+ - tasks/bullet_tasks.rake
41
+ has_rdoc: true
42
+ homepage: http://github.com/flipsasser/bullet
43
+ post_install_message:
44
+ rdoc_options:
45
+ - --charset=UTF-8
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
53
+ version:
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: "0"
59
+ version:
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.2.0
64
+ signing_key:
65
+ specification_version: 2
66
+ summary: A plugin to kill N+1 queries and unused eager loading
67
+ test_files:
68
+ - spec/bullet_association_spec.rb
69
+ - spec/spec_helper.rb