exception_notification_moderate 0.0.1 → 0.0.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba7d707671895680667c6ea84677b1e183a2ca16
4
- data.tar.gz: 7f3fcf7dd6cc62c5c80b18efb510f5ead07c30de
3
+ metadata.gz: 23b3a5fe475a9a0b6f1d21f96690fd2e46867391
4
+ data.tar.gz: 03c22ea2d71fb47f920351d5f807714a6777cd23
5
5
  SHA512:
6
- metadata.gz: 1d900b565b765f84391ef589751c791cabfd80579f5ac26c8a007f68f98b166200d3edb6faee2753b8f302e0a7b4cc0e06d03238784216f3b2449d688ae3c886
7
- data.tar.gz: fc6d7df9e6c9c03bec0c96a65d822fc1dbc90f0791ed4b0a054e6af4cf7af91c1231369779450be3331ac2ea93825694901a77adfab9ea69ba83107d3264d0ad
6
+ metadata.gz: f99851e321960f1ab9f7db595dbd71dc93a5952ed616002a9548a25268c6f91f0d5759ec0a751995cc30bf744829d6a074f01c3efe8d6fa637b2692ce19ee736
7
+ data.tar.gz: 7a5391de76bd6c6dab0c3b5190ccdb9b489308dae1420c2619b44e9ac9e0ff70e96732d1aba2970af896c0fce895cf4a6308ecad7a8b3f8c7f6e067f70c99852
data/README.md CHANGED
@@ -28,7 +28,7 @@ Or install it yourself as:
28
28
 
29
29
  ```
30
30
  ExceptionNotificationModerate.configure do |config|
31
- config.redis_host = 'localhost:6379'
31
+ config.redis_host = 'localhost'
32
32
  config.logger = Logger.new('./log/ex_notification.log')
33
33
  end
34
34
  ```
@@ -6,5 +6,6 @@ require 'exception_notification_moderate/exception_notifier'
6
6
  module ExceptionNotificationModerate
7
7
  include ActiveSupport::Configurable
8
8
  config_accessor :redis_host
9
+ config_accessor :redis_url
9
10
  config_accessor :logger
10
11
  end
@@ -31,7 +31,11 @@ module ExceptionNotifier
31
31
  end
32
32
 
33
33
  def redis
34
- Redis.new(host: ExceptionNotificationModerate.redis_host)
34
+ if ExceptionNotificationModerate.redis_host
35
+ Redis.new(host: ExceptionNotificationModerate.redis_host)
36
+ elsif ExceptionNotificationModerate.redis_url
37
+ Redis.new(host: ExceptionNotificationModerate.redis_url)
38
+ end
35
39
  end
36
40
  end
37
41
  end
@@ -1,3 +1,3 @@
1
1
  module ExceptionNotificationModerate
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exception_notification_moderate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryonext
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exception_notification
@@ -184,3 +184,4 @@ summary: Notify same exception moderate.
184
184
  test_files:
185
185
  - spec/exception_notification_moderate_spec.rb
186
186
  - spec/spec_helper.rb
187
+ has_rdoc: