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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01fd8940f20cb30ff26c163b8851fa88cad2f986
4
- data.tar.gz: d6f277aeaaaf5adcadf08dbfa51fd6baf5370218
3
+ metadata.gz: 9e5e2c63fed97bc89eee69878f68e4b29906b3f6
4
+ data.tar.gz: 20ad3b2f2c6fe772d309c4f9b366115d057b9673
5
5
  SHA512:
6
- metadata.gz: 86b969cfe4a3894983809cbe142497a658fc5bf369021fc6294629cde4443646be242bc4c3a870dab1efcd2da1615d7ba89c30ad04806187fb8448633d897778
7
- data.tar.gz: 793e1ae1de7689b41fdd8c495404c238f7acd77a4520a08d4803607815205ec21cce4008c01781cc974128f347347e40a397b1657019da02d0d3964481ca6ea9
6
+ metadata.gz: 3ce0187b78fbc8b0253b33974e1791b51988b78af480e80dabe9e08977d6a9b54b00e072599c079cea6989fd9f76d001f442708f7d213517f4c5338a43a68756
7
+ data.tar.gz: 26a2fda1318904f27e6478dfbb0904b60a11e23b3ca9a80709ec1a5f496b0c6735ad8d919bed4146740d9abcdf5ac30e4b3c63a31444fdcbc4caf70d2ba125fa
@@ -1,3 +1,6 @@
1
+ ## v0.4.2
2
+ * Update command subclass loading to be explicit (remove glob loading)
3
+
1
4
  ## v0.4.0
2
5
  * Prevent duplicate connection consumption loops (#23) (thanks @phopkins)
3
6
  * Refactor connection implementation to prevent crashing blocks (#22) (thanks @phopkins)
@@ -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'
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Krakow
2
2
  # Current version
3
- VERSION = Gem::Version.new('0.4.0')
3
+ VERSION = Gem::Version.new('0.4.2')
4
4
  end
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.0
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-02-26 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid