sidekiq-benchmark 0.3.4 → 0.3.5
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 +4 -12
- data/.gitignore +2 -0
- data/lib/sidekiq-benchmark/testing.rb +10 -0
- data/lib/sidekiq-benchmark/version.rb +1 -1
- data/test/lib/testing.rb +18 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWM4OGYyNGU2ZmMzNDk1ZDY4MmZlNjQyNTUyNzFiNGRhOTdmNDUyNA==
|
3
|
+
metadata.gz: fdb92d78be7c844f1accc1fe2fbce4da0bf3c452
|
4
|
+
data.tar.gz: 0da7b23ced5a5ffe697c7a22d369630ce8f95a38
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MzQ3YTMwZWNjZjVlNWMwNGJiYjYzZmY5Y2ZkY2RhYzdiNDY2ODg5NTI3NDgw
|
11
|
-
ZGVhZTJkZDgyMTQ1ZTYwZmUxZjViNjJkMWIxMWZhNDdhMDUwNDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OWUwZmEwYjExODM4ZTFmMTIxOWIwNDI4ZWM0NjJkYmM3M2M0M2EyMTZiMzZm
|
14
|
-
NDBlOWRkMzJiNGVhNzFiNjFkMGQ2OTMzOTkyZDVkMzNlNGEzZDI4ODllODMw
|
15
|
-
MGJlYWNmZjE5MjIyMWZmYjhlODA3OTM3OWM3MTk5YTQwNjlhMTI=
|
6
|
+
metadata.gz: fcaa38d5d66d0e2740aa97fa9a35924b90d9cb42913efdc7a3122f414c1d2965a67ca29f5bd920deaad745099ed6bf4adc74e2b9e1d4cf97df425705a7f8dda2
|
7
|
+
data.tar.gz: 2ede84bb4dfa5fad54438391b5528e221317d980074ac7955cb7f0da5c71842a7e69e719d92f8a41dcebb79f6a57312de936f409a142e2d4dc639186e3259a75
|
data/test/lib/testing.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'sidekiq-benchmark/testing'
|
3
|
+
|
4
|
+
class Sidekiq::Benchmark::TestingTest < Minitest::Spec
|
5
|
+
describe 'Testing' do
|
6
|
+
before do
|
7
|
+
Sidekiq::Benchmark::Test.flush_db
|
8
|
+
@worker = Sidekiq::Benchmark::Test::WorkerMock.new
|
9
|
+
end
|
10
|
+
|
11
|
+
it "save nothing to redis" do
|
12
|
+
Sidekiq.redis do |conn|
|
13
|
+
total_time = conn.hget("#{@worker.benchmark.redis_key}:total", :job_time)
|
14
|
+
total_time.must_be_nil
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-benchmark
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Kosmatov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chartkick
|
@@ -136,10 +136,12 @@ files:
|
|
136
136
|
- README.md
|
137
137
|
- Rakefile
|
138
138
|
- lib/sidekiq-benchmark.rb
|
139
|
+
- lib/sidekiq-benchmark/testing.rb
|
139
140
|
- lib/sidekiq-benchmark/version.rb
|
140
141
|
- lib/sidekiq-benchmark/web.rb
|
141
142
|
- lib/sidekiq-benchmark/worker.rb
|
142
143
|
- sidekiq-benchmark.gemspec
|
144
|
+
- test/lib/testing.rb
|
143
145
|
- test/lib/web_test.rb
|
144
146
|
- test/lib/worker_test.rb
|
145
147
|
- test/test_helper.rb
|
@@ -171,6 +173,7 @@ specification_version: 4
|
|
171
173
|
summary: Adds benchmarking methods to Sidekiq workers, keeps metrics and adds tab
|
172
174
|
to Web UI to let you browse them.
|
173
175
|
test_files:
|
176
|
+
- test/lib/testing.rb
|
174
177
|
- test/lib/web_test.rb
|
175
178
|
- test/lib/worker_test.rb
|
176
179
|
- test/test_helper.rb
|