flipsasser-bullet 1.1.0
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/MIT-LICENSE +20 -0
- data/README.markdown +197 -0
- data/Rakefile +32 -0
- data/VERSION +1 -0
- data/bullet.gemspec +55 -0
- data/lib/bullet.rb +21 -0
- data/lib/bullet/active_record.rb +62 -0
- data/lib/bullet/association.rb +277 -0
- data/lib/bullet/logger.rb +9 -0
- data/lib/bulletware.rb +25 -0
- data/rails/init.rb +1 -0
- data/spec/bullet_association_spec.rb +696 -0
- data/spec/spec.opts +8 -0
- data/spec/spec_helper.rb +10 -0
- data/tasks/bullet_tasks.rake +9 -0
- metadata +69 -0
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
@@ -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
|
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
|