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 CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11
data/communicator.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{communicator}
8
- s.version = "0.1.10"
8
+ s.version = "0.1.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
@@ -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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 10
10
- version: 0.1.10
9
+ - 11
10
+ version: 0.1.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christoph Olszowka