communicator 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/communicator.gemspec +1 -1
- data/lib/communicator/tasks.rb +8 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.11
|
data/communicator.gemspec
CHANGED
data/lib/communicator/tasks.rb
CHANGED
@@ -21,12 +21,20 @@ namespace :communicator do
|
|
21
21
|
Communicator::Client.push
|
22
22
|
rescue => err
|
23
23
|
report_exception err, "Status" => "Sync failed while trying to PUSH messages"
|
24
|
+
raise err
|
24
25
|
end
|
25
26
|
|
26
27
|
begin
|
27
28
|
Communicator::Client.pull
|
28
29
|
rescue => err
|
29
30
|
report_exception err, "Status" => "Sync failed while trying to PULL messages"
|
31
|
+
raise err
|
30
32
|
end
|
31
33
|
end
|
34
|
+
|
35
|
+
desc "Purges inbound and outbound messages - USE WITH CAUTION!!"
|
36
|
+
task :purge => :environment do
|
37
|
+
Communicator::InboundMessage.delete_all
|
38
|
+
Communicator::OutboundMessage.delete_all
|
39
|
+
end
|
32
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: communicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 11
|
10
|
+
version: 0.1.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christoph Olszowka
|