gilmour 0.4.2 → 0.4.3

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: ccbd3758aca3cea1d80b09216e63f3988d54653a
4
- data.tar.gz: c8f34222db03de9c05da741c793266a4250b23a7
3
+ metadata.gz: 95eeea219493df9807854e6166cf211c28dc300d
4
+ data.tar.gz: 72809d9709e8c54962000f1d733ab752fb11d641
5
5
  SHA512:
6
- metadata.gz: ce2e1cee491383b8980af8e64ef21aa9e52c03f3f492fe856421efa1e8fa109c3d29c2b4c40bd5012b53653f8db18f2b5b9d3215161405243c7c94621dbfeca1
7
- data.tar.gz: 9d100cba54eb50a0a3a7ea971fffaf42e014e1264f13e19bdafa9d470cba82550b876f5cb87092694983266a734dcc952610d31c7c88c26f62a41e8b63477a49
6
+ metadata.gz: 0ed0cef345aadc5ca715c841eb348245dfe688906b5ef944bc0ff2ec3fce1a73706873b2a43975218a1c367d69a33062174c839d3e6cbe51cca8e5e7e0bab494
7
+ data.tar.gz: 71e365656a8544b2324494552f85c446682241e48c0ae0d69b57725a0013bbb0a80398ab64d6fb8e125342052bdce0d70b90f61efa839a128817909d5186abb7
@@ -13,7 +13,8 @@ class EventServer
13
13
  end
14
14
  start(true)
15
15
  end
16
- load_all './subscribers'
16
+ dirname = File.expand_path(File.dirname(__FILE__))
17
+ load_all File.join(dirname, 'subscribers')
17
18
  end
18
19
 
19
20
  EventServer.new
data/lib/gilmour/base.rb CHANGED
@@ -62,7 +62,7 @@ module Gilmour
62
62
  # excl:: If true, this listener is added to a group of listeners
63
63
  # with the same name as the name of the class in which this
64
64
  # method is called. A message sent to the _topic_ will be
65
- # processed by at most one listener from a group
65
+ # processed by at most one listener from a group
66
66
  # timeout:: Maximum duration (seconds) that a subscriber has to
67
67
  # finish the task. If the execution exceeds the timeout, gilmour
68
68
  # responds with status {code:409, data: nil}
@@ -117,10 +117,7 @@ module Gilmour
117
117
  # +dir+:: relative path of directory to load subscribers from
118
118
  def load_all(dir = nil)
119
119
  dir ||= (subscribers_path || DEFAULT_SUBSCRIBER_PATH)
120
- Dir["#{dir}/*.rb"].each do |f|
121
- $stderr.puts f
122
- require f
123
- end
120
+ Dir["#{dir}/*.rb"].each { |f| require f }
124
121
  end
125
122
 
126
123
  def load_subscriber(path) #:nodoc:
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gilmour
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gilmour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Godbole
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-08 00:00:00.000000000 Z
12
+ date: 2015-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec