krakenlab 2018.01.07 → 2018.01.10dev1

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: b3ab05e5732c687e312e0f4c91c347583f3334fd
4
- data.tar.gz: 7679574d57d64ab362f6c67b14ba5a4a9cfdc0be
3
+ metadata.gz: 1110dd471c7f67e66bcf1ba1b3d1240bbdbe0e26
4
+ data.tar.gz: c648d264140c8fedcc2dac8992f6ca4b9eabd0d1
5
5
  SHA512:
6
- metadata.gz: 69220696053c6d378c78eff7134c6a46375d590f8fc17b4bd564ef7b15908c133e7f5a95a19e960703147ee1f0100f195e41156f93318b7c8409b288dfc82a28
7
- data.tar.gz: 4be8944ca7f59fb56badb2baf27d16b660c1c402b4a87d090c1da8c76ddbb30d555775c2efedc79da2684bbd0695f36b1d1ef1fed98138f3410c57307c98a0bd
6
+ metadata.gz: 1f0d61d8fb936165bbae25af717c7bf8b05812ca4e42a6006ffd08931a3e2043f3c709838734c741e945dab1d1eb388064b2460734cf65514148d042de7fef63
7
+ data.tar.gz: 93fc1bc7bd5a7060404fbb82f9cf41ff98274dbc5e8d8fb7fe441a3f997d114bd49215333c5144b01012f60762e30773f797cb6aa290cca7148d471b476fef7e
data/bin/kraken CHANGED
@@ -12,3 +12,4 @@ Kraken::App.load_app
12
12
 
13
13
  Kraken::App.start_console if ARGV.include? '-d'
14
14
  Kraken::App.start_server if ARGV.include? '-s'
15
+ Kraken::App.kill_cloud if ARGV.include? '-k'
@@ -29,6 +29,7 @@ module Kraken
29
29
  puts 'kraken -s: start the created app'
30
30
  puts 'kraken -v: show the version'
31
31
  puts 'kraken -d: start a console'
32
+ puts 'kraken -k: kill all connections in redis cloud'
32
33
  puts ''
33
34
 
34
35
  puts 'rake db:* for migrations operations. See more about ActiveRecord'
@@ -42,5 +43,9 @@ module Kraken
42
43
  def self.start_server
43
44
  Kraken::Listener.new.join
44
45
  end
46
+
47
+ def self.kill_cloud
48
+ Kraken::Connection.delete_all
49
+ end
45
50
  end
46
51
  end
@@ -17,5 +17,10 @@ module Kraken
17
17
  def authenticate
18
18
  true
19
19
  end
20
+
21
+ # Delete all connections
22
+ def self.delete_all
23
+ Kraken::Connection.all.each { |connection| connection.delete }
24
+ end
20
25
  end
21
26
  end
@@ -74,6 +74,12 @@ module Kraken
74
74
  trigger, args = read_trigger
75
75
 
76
76
  shot = trigger.new(self, args)
77
+
78
+ if shot.nil?
79
+ write to_args(nil)
80
+ next
81
+ end
82
+
77
83
  shot.run
78
84
  callback = shot.callback
79
85
 
@@ -1,3 +1,3 @@
1
1
  module Kraken
2
- VERSION = '2018.01.07'.freeze
2
+ VERSION = '2018.01.10dev1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krakenlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 2018.01.07
4
+ version: 2018.01.10dev1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlon Henry Schweigert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-06 00:00:00.000000000 Z
11
+ date: 2018-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_record_migrations
@@ -362,9 +362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
362
  version: '0'
363
363
  required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  requirements:
365
- - - ">="
365
+ - - ">"
366
366
  - !ruby/object:Gem::Version
367
- version: '0'
367
+ version: 1.3.1
368
368
  requirements: []
369
369
  rubyforge_project:
370
370
  rubygems_version: 2.6.14