dredd_hooks 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +3 -1
- data/features/failing_transaction.feature +1 -1
- data/lib/dredd_hooks/file_loader.rb +4 -1
- data/lib/dredd_hooks/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a053aa22ae9a5515042f3d258b6a4ad62fda4b5c
|
4
|
+
data.tar.gz: de2676e3720cf60c5c71f796e6506f30ae323c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
[](http://badge.fury.io/rb/dredd_hooks)
|
4
5
|
[](https://travis-ci.org/apiaryio/dredd-hooks-ruby)
|
5
6
|
[](https://gemnasium.com/github.com/apiaryio/dredd-hooks-ruby)
|
6
7
|
[](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.
|
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
|
|
@@ -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
|
data/lib/dredd_hooks/version.rb
CHANGED
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.
|
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-
|
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:
|