haveapi 0.5.0 → 0.5.1

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: 00a5f09608d0287b5187d60b5e5f8528b8077c33
4
- data.tar.gz: 728e896638ef103f0d62db8aea3d0a26cae3e818
3
+ metadata.gz: d0636ca57e2a87e59f81a5396a30d2747720177a
4
+ data.tar.gz: b00b91162f6256d45c60774888add72b2a7c37cc
5
5
  SHA512:
6
- metadata.gz: f3519a72a83f31a146da97ffb2422439231afa6a00b55eb55f3ceb1f77d8766f1afb76fe60454bc403fccd7fe2689d2c76fe2970b2557b594258c28f834f478e
7
- data.tar.gz: 5296734002aca4221526d0bbd98ff2927bb61b6b74781f46d2d79c5bf01d29d5d0a16bfe59aa0b313b9819fe823150324f247387a7ed310d6fe747e9f8cb4a02
6
+ metadata.gz: a468585dbf8bb2c7319a102cf5d1399f07e06b294b457f8a518c2c5a53882e94753cca55123d6727909111d5baaa2aa2a010d0f3665b6bb972488acea057c995
7
+ data.tar.gz: 0300f25310364e1ec6d598f4550b6699ff90bd0e701ecc942c89d67ef9c4622ac8bc8134c2d5ea21154746a796bbdd9a6bf8120318bc4c95beafb61b24f17b25
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ * Fri Feb 26 2016 - version 0.5.1
2
+ - Fix call of an empty hook
3
+
1
4
  * Tue Feb 9 2016 - version 0.5.0
2
5
  - Helper methods for testing APIs
3
6
  - Added tests covering the basic functionality
data/haveapi.gemspec CHANGED
@@ -5,7 +5,7 @@ require 'haveapi/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'haveapi'
7
7
  s.version = HaveAPI::VERSION
8
- s.date = '2016-02-09'
8
+ s.date = '2016-02-26'
9
9
  s.summary =
10
10
  s.description = 'Framework for creating self-describing APIs'
11
11
  s.authors = 'Jakub Skokan'
data/lib/haveapi/hooks.rb CHANGED
@@ -159,6 +159,7 @@ module HaveAPI
159
159
 
160
160
  catch(:stop) do
161
161
  return initial unless all_hooks
162
+ return initial unless all_hooks[name]
162
163
  hooks = all_hooks[name][:listeners]
163
164
  return initial unless hooks
164
165
 
@@ -1,4 +1,4 @@
1
1
  module HaveAPI
2
2
  PROTOCOL_VERSION = '1.0'
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haveapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jakub Skokan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all