hoodoo 1.8.1 → 1.8.2
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.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWVhNDU3MDkzMjA0YzIwNGRiMGJkZWVjN2JkY2E4OWRiZTQxOWZjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWJmZjQwY2I4M2I2MTExMmQ0MThlZjk3MTljYTIxMDM5N2E2YjFhZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODJmODQ3ZTljMTAwMDcyNDU1YTY2OWJhN2JiY2JkMDgzYzRiM2JmYmYzZTc5
|
10
|
+
NGQ3Yjc2YzEwMTZlODM1MjFhOTBlOTg0NTA4NGUzNmY5NGE4ODEzZjAzZmZj
|
11
|
+
YTEzNzdjMTA0OWY1YTc4NDQ0MWQxZDhlMmFkNTM2ZDg2OTM5OGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWIyNDk0OTE1NTU5MTFmNzU4OTgzZjY4ZjFjZDM0Zjg1NTAxNTVjNWM5YjJk
|
14
|
+
MjU5ZDVhY2YyZjkwODkwOWM1Zjk3ZDg0NDQxMmNhN2Y3ZmEzZTA4MDU4YzZk
|
15
|
+
YTdmM2FjNWQyYWUzMmNjNWE2ZWJjYWRlN2Q5MzUzNzc2ZDRmZjA=
|
@@ -23,9 +23,8 @@ module Hoodoo
|
|
23
23
|
# together in NewRelic's view of the world.
|
24
24
|
#
|
25
25
|
# This module self-registers with Hooodoo::Monkey and, provided
|
26
|
-
# that Hoodoo::Services::Middleware is defined at parse-time
|
27
|
-
#
|
28
|
-
# +false+, will be enabled by default.
|
26
|
+
# that Hoodoo::Services::Middleware is defined at parse-time,
|
27
|
+
# will be enabled by default.
|
29
28
|
#
|
30
29
|
module NewRelicTracedAMQP
|
31
30
|
|
@@ -166,8 +165,7 @@ module Hoodoo
|
|
166
165
|
end
|
167
166
|
end
|
168
167
|
|
169
|
-
# Register this class with the Hoodoo monkey patch engine
|
170
|
-
# non-production environment.
|
168
|
+
# Register this class with the Hoodoo monkey patch engine.
|
171
169
|
#
|
172
170
|
if defined?( Hoodoo::Client ) &&
|
173
171
|
defined?( Hoodoo::Client::Endpoint ) &&
|
@@ -179,9 +177,7 @@ module Hoodoo
|
|
179
177
|
)
|
180
178
|
|
181
179
|
if defined?( Hoodoo::Services ) &&
|
182
|
-
defined?( Hoodoo::Services::Middleware )
|
183
|
-
Hoodoo::Services::Middleware.respond_to?( :environment ) &&
|
184
|
-
Hoodoo::Services::Middleware.environment.production? != true
|
180
|
+
defined?( Hoodoo::Services::Middleware )
|
185
181
|
|
186
182
|
Hoodoo::Monkey.enable( extension_module: Hoodoo::Monkey::Patch::NewRelicTracedAMQP )
|
187
183
|
end
|
data/lib/hoodoo/version.rb
CHANGED
@@ -525,9 +525,12 @@ describe Hoodoo::ActiveRecord::Finder do
|
|
525
525
|
RSpecModelFinderTest.estimate_counts_with( nil )
|
526
526
|
end
|
527
527
|
|
528
|
-
|
528
|
+
# These must run in order else e.g. the ANALYZE might happen before the
|
529
|
+
# pre-ANALYZE test, breaking the results.
|
530
|
+
#
|
531
|
+
context 'estimate', :order => :defined do
|
529
532
|
before :each do
|
530
|
-
@
|
533
|
+
@initial_count = RSpecModelFinderTest.count
|
531
534
|
|
532
535
|
# The outer 'before' code ensures an accurate initial count of 3,
|
533
536
|
# but we're going add in a few more unestimated items.
|
@@ -539,10 +542,10 @@ describe Hoodoo::ActiveRecord::Finder do
|
|
539
542
|
@subsequent_accurate_count = RSpecModelFinderTest.count
|
540
543
|
end
|
541
544
|
|
542
|
-
it '
|
545
|
+
it 'may be initially inaccurate' do
|
543
546
|
finder = RSpecModelFinderTest.list( @list_params )
|
544
547
|
result = finder.estimated_dataset_size
|
545
|
-
expect( result ).to eq( @
|
548
|
+
expect( result ).to eq( @initial_count ).or( eq( @subsequent_accurate_count ) )
|
546
549
|
end
|
547
550
|
|
548
551
|
# The outer 'before' code kind of already tests this anyway since if
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoodoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loyalty New Zealand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kgio
|