mumukit-nuntius 4.1.0 → 4.1.1

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: 57b699455425f3dc1a326be0aa9ab239a561639c
4
- data.tar.gz: d2bc63e93d79e0ead604a5a196c45b9368b5cfd2
3
+ metadata.gz: 1c8072e80520c98453e2f45d7255cf13c044fd90
4
+ data.tar.gz: 0e20094ddd8ff792262760885f2b0f002d26f9d7
5
5
  SHA512:
6
- metadata.gz: 79c5a4c3fdb49cbd3ca453e21eb4f2b9591fa01f0ed5f2d1545b9d22c2ad671a055218c0757513ae7164f226cc6f7534a28a795444ac1d8d3b3456b2743f45de
7
- data.tar.gz: 043af2c36bc4870f97c8681be4ee866f999f33e489df378adf578d6817836f9970926c0b6206f4442b931793111abc115bb68aba2ddfbfd6e9f3cf3c096e21da
6
+ metadata.gz: 8feae1961adcc44106ce44b10c42340add4abc3f6e7e771246e7834c0b466afee9e093666653ee0ab76590dbaedce5d948efec0881ab96d7f55a607c232fa38b
7
+ data.tar.gz: e7bcd6c29661bb07ab769da305113f3949b93a02ccbadfb51f86579fb94abda6363017519213c0bba98c9c691fcac362dd3caecae434ae69535bfae006541a92
@@ -4,7 +4,7 @@ require 'mumukit/nuntius/notification_mode/nuntius'
4
4
  module Mumukit::Nuntius::NotificationMode
5
5
 
6
6
  def self.from_env
7
- if ENV['MUMUKI_QUEUELESS_MODE'] || ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test'
7
+ if ENV['MUMUKI_QUEUELESS_MODE'].present? || ENV['RACK_ENV'] == 'test' || ENV['RAILS_ENV'] == 'test'
8
8
  Mumukit::Nuntius::NotificationMode::Deaf.new
9
9
  else
10
10
  Mumukit::Nuntius::NotificationMode::Nuntius.new
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Nuntius
3
- VERSION = '4.1.0'
3
+ VERSION = '4.1.1'
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: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Pina
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -88,7 +88,6 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - config/rabbit.yml
91
- - lib/events.rb
92
91
  - lib/mumukit/nuntius.rb
93
92
  - lib/mumukit/nuntius/channel.rb
94
93
  - lib/mumukit/nuntius/connection.rb
@@ -121,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
120
  version: '0'
122
121
  requirements: []
123
122
  rubyforge_project:
124
- rubygems_version: 2.5.1
123
+ rubygems_version: 2.4.5
125
124
  signing_key:
126
125
  specification_version: 4
127
126
  summary: Library for working with rabbit queues
@@ -1,23 +0,0 @@
1
- Mumukit::Nuntius::EventConsumer.handle do
2
- event :UserChanged do |payload|
3
- User.import_from_json! payload.deep_symbolize_keys[:user]
4
- end
5
-
6
- event :OrganizationCreated do |payload|
7
- Organization.create_from_json! payload.deep_symbolize_keys[:organization]
8
- end
9
-
10
- event :OrganizationChanged do |payload|
11
- Organization.update_from_json! payload.deep_symbolize_keys[:organization]
12
- end
13
-
14
- event :UpsertExam do |body|
15
- Exam.import_from_json! body
16
- end
17
-
18
- [Book, Topic, Guide].each do |it|
19
- event "#{it.name}Changed" do |data|
20
- it.import! data[:slug]
21
- end
22
- end
23
- end