krakow 0.4.0 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/krakow.rb +2 -3
- data/lib/krakow/command.rb +12 -8
- data/lib/krakow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e5e2c63fed97bc89eee69878f68e4b29906b3f6
|
4
|
+
data.tar.gz: 20ad3b2f2c6fe772d309c4f9b366115d057b9673
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce0187b78fbc8b0253b33974e1791b51988b78af480e80dabe9e08977d6a9b54b00e072599c079cea6989fd9f76d001f442708f7d213517f4c5338a43a68756
|
7
|
+
data.tar.gz: 26a2fda1318904f27e6478dfbb0904b60a11e23b3ca9a80709ec1a5f496b0c6735ad8d919bed4146740d9abcdf5ac30e4b3c63a31444fdcbc4caf70d2ba125fa
|
data/CHANGELOG.md
CHANGED
data/lib/krakow.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'krakow/version'
|
2
1
|
require 'celluloid'
|
3
2
|
|
4
3
|
if(ENV['DEBUG'])
|
@@ -10,7 +9,6 @@ require 'multi_json'
|
|
10
9
|
|
11
10
|
# NSQ client and producer library
|
12
11
|
module Krakow
|
13
|
-
|
14
12
|
autoload :Command, 'krakow/command'
|
15
13
|
autoload :Connection, 'krakow/connection'
|
16
14
|
autoload :ConnectionFeatures, 'krakow/connection_features'
|
@@ -22,5 +20,6 @@ module Krakow
|
|
22
20
|
autoload :Ksocket, 'krakow/ksocket'
|
23
21
|
autoload :Producer, 'krakow/producer'
|
24
22
|
autoload :Utils, 'krakow/utils'
|
25
|
-
|
26
23
|
end
|
24
|
+
|
25
|
+
require 'krakow/version'
|
data/lib/krakow/command.rb
CHANGED
@@ -8,6 +8,18 @@ module Krakow
|
|
8
8
|
# @!parse include Utils::Lazy::InstanceMethods
|
9
9
|
# @!parse extend Utils::Lazy::ClassMethods
|
10
10
|
|
11
|
+
autoload :Auth, 'krakow/command/auth'
|
12
|
+
autoload :Cls, 'krakow/command/cls'
|
13
|
+
autoload :Fin, 'krakow/command/fin'
|
14
|
+
autoload :Identify, 'krakow/command/identify'
|
15
|
+
autoload :Mpub, 'krakow/command/mpub'
|
16
|
+
autoload :Nop, 'krakow/command/nop'
|
17
|
+
autoload :Pub, 'krakow/command/pub'
|
18
|
+
autoload :Rdy, 'krakow/command/rdy'
|
19
|
+
autoload :Req, 'krakow/command/req'
|
20
|
+
autoload :Sub, 'krakow/command/sub'
|
21
|
+
autoload :Touch, 'krakow/command/touch'
|
22
|
+
|
11
23
|
class << self
|
12
24
|
|
13
25
|
# Allowed OK return values
|
@@ -73,13 +85,5 @@ module Krakow
|
|
73
85
|
self.class.error.include?(response)
|
74
86
|
end
|
75
87
|
|
76
|
-
# Make all the commands available
|
77
|
-
Dir.glob(File.join(File.dirname(__FILE__), 'command', '*')).each do |path|
|
78
|
-
autoload(
|
79
|
-
File.basename(path).sub(File.extname(path), '').capitalize.to_sym,
|
80
|
-
File.join('krakow/command', File.basename(path).sub(File.extname(path), ''))
|
81
|
-
)
|
82
|
-
end
|
83
|
-
|
84
88
|
end
|
85
89
|
end
|
data/lib/krakow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krakow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|