dredd_hooks 0.1.0 → 0.1.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: 0a973e6c81a178f196919b8b84438a95ba0b7b2d
4
- data.tar.gz: 448ecde2a65cedf46e9ae08a6233080be172a9b2
3
+ metadata.gz: a053aa22ae9a5515042f3d258b6a4ad62fda4b5c
4
+ data.tar.gz: de2676e3720cf60c5c71f796e6506f30ae323c13
5
5
  SHA512:
6
- metadata.gz: 2c655cdc6b3b4c974ec79588ce426f5f8e13c65371668712d3516aa3ff6d4730d368cd3465defd56740230ba1fbd0b3519922f3562a264b7a7f7a48f003d4546
7
- data.tar.gz: c2bd886fad87c7c805687890ee301349a23de809a869f081a17d2dce6fada88efb0076597a933360bef39ca010fa118dfc1af036c73c4a8a2efbeed42e49e2f3
6
+ metadata.gz: 1112b01c62492ac39a2b496a010db74b6171b0dde1822cbd7725dbfd1e3f4d966056e07227f914602eb1df2d418b0639e8af86cb436a64f150c7bc171d61bf73
7
+ data.tar.gz: 20413fcb50881c35f4c3fc90d0602e5ce647443f552f0b19e01b4328ce8200f2f01f70dbad3b93160e860820fb9aef2f002471a956a4705cd7ca3941ffbd8f5d
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
+ ## [0.1.1] - 2016-11-13
7
+
8
+ ### Added
9
+
10
+ - Alert the user when no hook files are found - @jeffdeville
11
+
6
12
  ## [0.1.0] - 2016-08-06
7
13
 
8
14
  ### Added
@@ -29,6 +35,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
29
35
  The original [proof of concept][poc] was written by @netmilk.
30
36
 
31
37
 
38
+ [0.1.1]: https://github.com/apiaryio/dredd-hooks-ruby/compare/v0.1.0...v0.1.1
32
39
  [0.1.0]: https://github.com/apiaryio/dredd-hooks-ruby/compare/v0.0.1...v0.1.0
33
40
  [poc]: https://github.com/gonzalo-bulnes/dredd-rack/issues/7#issue-70936733
34
41
 
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  Ruby Hooks Handler for Dredd API Testing Framework
2
2
  ==================================================
3
3
 
4
+ [![Gem Version](https://badge.fury.io/rb/dredd_hooks.svg)](http://badge.fury.io/rb/dredd_hooks)
4
5
  [![Build Status](https://travis-ci.org/apiaryio/dredd-hooks-ruby.svg?branch=master)](https://travis-ci.org/apiaryio/dredd-hooks-ruby)
5
6
  [![Dependency Status](https://gemnasium.com/badges/github.com/apiaryio/dredd-hooks-ruby.svg)](https://gemnasium.com/github.com/apiaryio/dredd-hooks-ruby)
6
7
  [![Code Climate](https://codeclimate.com/github/apiaryio/dredd-hooks-ruby/badges/gpa.svg)](https://codeclimate.com/github/apiaryio/dredd-hooks-ruby)
@@ -20,7 +21,7 @@ Add the gem to your `Gemfile`:
20
21
  ```ruby
21
22
  # Gemfile
22
23
 
23
- gem 'dredd_hooks', '0.1.0' # see semver.org
24
+ gem 'dredd_hooks', '0.1.1' # see semver.org
24
25
  ```
25
26
 
26
27
  Usage
@@ -118,6 +119,7 @@ Contributing
118
119
  1. Fork it
119
120
  1. Create your feature branch (`git checkout -b my-new-feature`)
120
121
  1. Commit your changes (`git commit -am 'Add some feature'`)
122
+ 1. Update the `CHANGELOG`
121
123
  1. Push to the branch (`git push origin my-new-feature`)
122
124
  1. Create a new Pull Request
123
125
 
@@ -1,4 +1,4 @@
1
- Feature: Failing a transacstion
1
+ Feature: Failing a transaction
2
2
 
3
3
  Background:
4
4
  Given I have "dredd-hooks-ruby" command installed
@@ -10,9 +10,12 @@ module DreddHooks
10
10
 
11
11
 
12
12
  def self.unique_paths(patterns)
13
- patterns.inject([]) { |paths, pattern|
13
+ paths = patterns.inject([]) { |paths, pattern|
14
14
  paths + Dir.glob(pattern)
15
15
  }.uniq
16
+
17
+ puts "No hook files found in #{patterns}" if paths.empty?
18
+ paths
16
19
  end
17
20
  private_class_method :unique_paths
18
21
  end
@@ -1,3 +1,3 @@
1
1
  module DreddHooks
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dredd_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kliment
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-06 00:00:00.000000000 Z
12
+ date: 2016-11-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aruba
@@ -146,3 +146,4 @@ test_files:
146
146
  - spec/lib/dredd_hooks/server/buffer_spec.rb
147
147
  - spec/lib/dredd_hooks/server/events_handler_spec.rb
148
148
  - spec/spec_helper.rb
149
+ has_rdoc: