mumukit-nuntius 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/nuntius.rb +1 -1
- data/lib/mumukit/nuntius/notification_mode.rb +5 -1
- data/lib/mumukit/nuntius/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 828502bfbe8f00b6ed46bcef8c8f4fed809cb819
|
4
|
+
data.tar.gz: dfea1cd1186252f6986d09977886f136f625fd92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 342a5b329fbae451173e957b98fa840e8f5f426774cb256fa48c23edd747a7c6e258d73b567aa6736907189bc5916a079d71c3c2e1d4004769ad3cc388329305
|
7
|
+
data.tar.gz: 861e770ec107f3546d44fded94cc43ec068ab6c35adf3fc617c8118e95a0fc24e1086234a60be5de110537d094015c8cd6adf09604ba9001e02d946bf8169e8d
|
data/lib/mumukit/nuntius.rb
CHANGED
@@ -4,6 +4,10 @@ require 'mumukit/nuntius/notification_mode/nuntius'
|
|
4
4
|
module Mumukit::Nuntius::NotificationMode
|
5
5
|
|
6
6
|
def self.from_env
|
7
|
-
ENV['QUEUELESS_MODE']
|
7
|
+
if ENV['QUEUELESS_MODE'] || ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test'
|
8
|
+
Mumukit::Nuntius::NotificationMode::Deaf.new
|
9
|
+
else
|
10
|
+
Mumukit::Nuntius::NotificationMode::Nuntius.new
|
11
|
+
end
|
8
12
|
end
|
9
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-nuntius
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agustin Pina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|