sidekiq-job_alert 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb0621c1266a4c0061b2303482323a5ec789e547
4
- data.tar.gz: '00815882b44e8d23d2f4cfb35bef765ad1dd394b'
3
+ metadata.gz: 61d8b95029b32cce87334cac985d3554194962cc
4
+ data.tar.gz: 6c6e9c7b2422bec752bbd9115ec70f5d553800dd
5
5
  SHA512:
6
- metadata.gz: 8c26d15ea9231d4c7cf79b24b3029ea2c76399c4c9a1713c6777ac40de9e7c8210fb95fff6854a9c7e1115132683a851d9ca7aab10b68469c2af7495e81147af
7
- data.tar.gz: 81172f2fc2a9aa8b490f76e563b3758d031614e3c6bc98c036d837f95777f7e3bf07ea33ca90d3511b6897ce7aaba54e65723722c5d757f3824c09284e0178e5
6
+ metadata.gz: 9bdcd52fd95dd63130aa7e21697bdde21b834bb36664990ba0c8f5e9db881a78f283fdc69ec8b1086929fc1fb513551a4ca9a9b28acc3c218266e994e6be797f
7
+ data.tar.gz: '084968499cb9aabad0c9f1e87ea7c804d39b8105eaad0429d31dc76036a543686d9d1b973a2e64c2c3370ee301d546190b9a79f13c5a6abc794c4de840cfd79e'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-job_alert (0.1.0)
4
+ sidekiq-job_alert (0.1.2)
5
5
  sidekiq (~> 4.2.1)
6
6
  slack-notifier (~> 2.3.2)
7
7
  thor
@@ -15,21 +15,21 @@ GEM
15
15
  rack (2.0.7)
16
16
  rack-protection (2.0.7)
17
17
  rack
18
- rake (10.4.2)
18
+ rake (10.5.0)
19
19
  redis (3.3.5)
20
- rspec (3.6.0)
21
- rspec-core (~> 3.6.0)
22
- rspec-expectations (~> 3.6.0)
23
- rspec-mocks (~> 3.6.0)
24
- rspec-core (3.6.0)
25
- rspec-support (~> 3.6.0)
26
- rspec-expectations (3.6.0)
20
+ rspec (3.8.0)
21
+ rspec-core (~> 3.8.0)
22
+ rspec-expectations (~> 3.8.0)
23
+ rspec-mocks (~> 3.8.0)
24
+ rspec-core (3.8.2)
25
+ rspec-support (~> 3.8.0)
26
+ rspec-expectations (3.8.4)
27
27
  diff-lcs (>= 1.2.0, < 2.0)
28
- rspec-support (~> 3.6.0)
29
- rspec-mocks (3.6.0)
28
+ rspec-support (~> 3.8.0)
29
+ rspec-mocks (3.8.1)
30
30
  diff-lcs (>= 1.2.0, < 2.0)
31
- rspec-support (~> 3.6.0)
32
- rspec-support (3.6.0)
31
+ rspec-support (~> 3.8.0)
32
+ rspec-support (3.8.2)
33
33
  sidekiq (4.2.10)
34
34
  concurrent-ruby (~> 1.0)
35
35
  connection_pool (~> 2.2, >= 2.2.0)
data/README.md CHANGED
@@ -19,7 +19,7 @@ Or install it yourself as:
19
19
  $ gem install sidekiq-job_alert
20
20
 
21
21
  ## Usage
22
- 1. copy `sidekiq_job_alert.yml` to your local and config it
22
+ - copy `sidekiq_job_alert.yml` to your local and config it
23
23
 
24
24
  ```yaml
25
25
  :webhook_url: "YOUR SLACK INCOMING WEBHOOK"
@@ -41,12 +41,18 @@ Or install it yourself as:
41
41
  :limit: 0 # Only send alert when queue_2's jobs over limit
42
42
  ```
43
43
 
44
- 2. run
44
+ - run
45
45
 
46
46
  ```ruby
47
47
  sidekiq_job_alert alert --config ./sidekiq_job_alert.yml
48
48
  ```
49
49
 
50
+ or
51
+
52
+ ```ruby
53
+ Sidekiq::JobAlert::Notifier.new('config/sidekiq_job_alert.yml').call
54
+ ```
55
+
50
56
  ## Development
51
57
 
52
58
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module JobAlert
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-job_alert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - feng.zhang