Top Level Namespace
Defined Under Namespace
Modules: Mongoid, Rails
Classes: BugTest, Person, Post
Instance Method Summary
collapse
Instance Method Details
#count_queries(&block) ⇒ Object
11
12
13
14
15
|
# File 'build/mongoid-8.1/examples/mongoid_test.rb', line 11
def count_queries(&block)
query_counter = Mongoid::QueryCounter.new
query_counter.instrument(&block)
query_counter.events.size
end
|
#standard_dependencies ⇒ Object
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'build/mongoid-8.1/gemfiles/standard.rb', line 1
def standard_dependencies
gem 'rake'
group :development do
gem 'yard'
platform :mri do
if !ENV['CI'] && !ENV['DOCKER'] && RUBY_VERSION < '3.0'
gem 'debase'
gem 'ruby-debug-ide'
end
end
gem 'erubi'
gem 'tilt'
end
group :development, :test do
gem 'rspec', '~> 3.12'
platform :mri do
gem 'byebug'
end
platform :jruby do
gem 'ruby-debug'
end
end
group :test do
gem 'timecop'
gem 'rspec-retry'
gem 'benchmark-ips'
gem 'fuubar'
gem 'rfc'
gem 'childprocess'
platform :mri do
gem 'timeout-interrupt'
end
end
end
|