mumukit-nuntius 2.3.1 → 2.4.0

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: cda52fe63cb6469b3f3c893b93f5f86fbdb492f7
4
- data.tar.gz: 04cb3f083e3f364e86ddd9681ca22ebdf36c16a2
3
+ metadata.gz: 828502bfbe8f00b6ed46bcef8c8f4fed809cb819
4
+ data.tar.gz: dfea1cd1186252f6986d09977886f136f625fd92
5
5
  SHA512:
6
- metadata.gz: 45ebeb0dd8395f5578673a3bf6fb9583989650222488af4fe55def3a95878026f8b616f0688db5d8d5714fa0c1e9dacabfe34a0cbed761c123c436409ea9e4dc
7
- data.tar.gz: 40b2d110a324b1a10d429dccd49411ecee695fc3294ef90f0fc6570bfc715c831ffe441adfef8fd93b38af4c28ba681f4a5c70a1f51fdc2620e05461192b8778
6
+ metadata.gz: 342a5b329fbae451173e957b98fa840e8f5f426774cb256fa48c23edd747a7c6e258d73b567aa6736907189bc5916a079d71c3c2e1d4004769ad3cc388329305
7
+ data.tar.gz: 861e770ec107f3546d44fded94cc43ec068ab6c35adf3fc617c8118e95a0fc24e1086234a60be5de110537d094015c8cd6adf09604ba9001e02d946bf8169e8d
@@ -17,7 +17,7 @@ module Mumukit
17
17
  end
18
18
 
19
19
  def self.method_missing(name, *args, &block)
20
- Mumukit::Nuntius.config.notification_mode.send(name, *args)
20
+ Mumukit::Nuntius.config.notification_mode.send(name, *args, &block)
21
21
  end
22
22
  end
23
23
  end
@@ -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'] ? Mumukit::Nuntius::NotificationMode::Deaf.new : Mumukit::Nuntius::NotificationMode::Nuntius.new
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Nuntius
3
- VERSION = '2.3.1'
3
+ VERSION = '2.4.0'
4
4
  end
5
5
  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.3.1
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-28 00:00:00.000000000 Z
11
+ date: 2016-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler