dredd-rack 0.11.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -1
- data/README.md +10 -5
- data/doc/README.md +10 -0
- data/lib/dredd/rack/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +16 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7fc4143a570008528ed1a30835812fa00c7a55
|
4
|
+
data.tar.gz: f4fcebb3152001a57d8e6fa112de7bc6c2ee26ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb1ea71dda068df9d30a5610b03c5209cdfbcfa467e5d730c2de581931f10f153abd2916b26e49c4240765130354e6fdc926b2709cddd9c6c6e441e91a4003c
|
7
|
+
data.tar.gz: 6c6f6152e2f0cd11a02e8001805764db3471317659ae1ae0957e4a7608e1816e71210a5e170ab78565075202d3c2c734331ad421d18586b89e10f1fbee716269
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
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
|
+
## [1.0.0] - 2019-06-12
|
7
|
+
|
8
|
+
### Added
|
9
|
+
|
10
|
+
- Support for Capybara 2 and 3 - @jesperronn
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- Remove `Gemfile.lock` - mostly to acknowledge that it is only used in development and is not really necessary.
|
15
|
+
|
6
16
|
## [0.11.0] - 2016-12-29
|
7
17
|
|
8
18
|
### Added
|
@@ -93,6 +103,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
93
103
|
|
94
104
|
The original implementation of the Rake task was shared in this [gist][gist].
|
95
105
|
|
106
|
+
[1.0.0]: https://github.com/gonzalo-bulnes/dredd-rack/compare/v0.11.0...v1.0.0
|
96
107
|
[0.11.0]: https://github.com/gonzalo-bulnes/dredd-rack/compare/v0.10.0...v0.11.0
|
97
108
|
[0.10.0]: https://github.com/gonzalo-bulnes/dredd-rack/compare/v0.9.0...v0.10.0
|
98
109
|
[0.9.0]: https://github.com/gonzalo-bulnes/dredd-rack/compare/v0.8.2...v0.9.0
|
@@ -111,4 +122,3 @@ The original implementation of the Rake task was shared in this [gist][gist].
|
|
111
122
|
## Inspiration
|
112
123
|
|
113
124
|
Thanks to @nTraum for pointing me at http://keepachangelog.com and to @olivierlacan for writing it in the first place!
|
114
|
-
|
data/README.md
CHANGED
@@ -7,8 +7,6 @@ Dredd::Rack
|
|
7
7
|
[![Dredd Reference Version](https://img.shields.io/badge/dredd_reference_version-2.2.5-brightgreen.svg)](https://github.com/apiaryio/dredd)
|
8
8
|
[![Inline docs](http://inch-ci.org/github/gonzalo-bulnes/dredd-rack.svg?branch=master)](http://inch-ci.org/github/gonzalo-bulnes/dredd-rack)
|
9
9
|
|
10
|
-
> **DISCLAIMER**: This is an early version of Dredd::Rack, please be aware that it will not be stable until `v1.0.0`. At any moment, [feedback][issues] is more than welcome! : ) -- [GB][gonzalo-bulnes]
|
11
|
-
|
12
10
|
This gem provides a [Dredd][dredd] runner and a `dredd` rake task to make [API blueprint][blueprint] testing convenient for Rack applications. When verifying blueprints locally, an application server is automatically set up, without need of any manual intervention.
|
13
11
|
|
14
12
|
Besides being convenient, that allows to use the API blueprints as acceptance test suites to practice [BDD][rspec-book] with Dredd and RSpec, for example, while clients developers use [Apiary][apiary] as a mock server.
|
@@ -28,7 +26,7 @@ Add the gem to your `Gemfile`:
|
|
28
26
|
```ruby
|
29
27
|
# Gemfile
|
30
28
|
|
31
|
-
gem 'dredd-rack', '
|
29
|
+
gem 'dredd-rack', '~> 1.0' # see semver.org
|
32
30
|
```
|
33
31
|
|
34
32
|
Define which application Dredd::Rack must serve automatically:
|
@@ -145,10 +143,17 @@ Run `rake spec:public` to print the gem public documentation.
|
|
145
143
|
[tags]: https://www.relishapp.com/rspec/rspec-core/v/3-1/docs/command-line/tag-option
|
146
144
|
[travis]: https://travis-ci.org/gonzalo-bulnes/dredd-rack/builds
|
147
145
|
|
148
|
-
|
146
|
+
Contributions
|
147
|
+
-------------
|
148
|
+
|
149
|
+
Contributions are welcome! The best way to get in touch is probably to open an issue, whether it is to get help, give feedback or discuss an idea. Also, when there are plan to extend Dredd::Rack, the [intended API][intended] is [described beforehand so we can discuss it][rdd]. Feel free to jump into the discussion at any moment!
|
150
|
+
|
151
|
+
Note that opening pull requests with work in progress is not only welcome, but encouraged! Let's talk early, talk often, and we will all learn in the way :)
|
149
152
|
|
150
|
-
|
153
|
+
Please note that Dredd::Rack is released with a [Contributor Code of Conduct][coc]. By participating in this project you agree to abide by its terms.
|
151
154
|
|
155
|
+
[rdd]: http://tom.preston-werner.com/2010/08/23/readme-driven-development.html
|
156
|
+
[intended]: ./doc/README.md
|
152
157
|
[coc]: ./CODE_OF_CONDUCT.md
|
153
158
|
|
154
159
|
Credits
|
data/doc/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Intended API
|
2
|
+
============
|
3
|
+
|
4
|
+
This document is intended to allow discussing the Dredd::Rack API before it is implemented.
|
5
|
+
|
6
|
+
Its contents will be moved to the gem [README][readme] when the corresponding features are implemented.
|
7
|
+
|
8
|
+
[readme]: ../README.md
|
9
|
+
|
10
|
+
_There are no upcoming changes at the moment._
|
data/lib/dredd/rack/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
require 'bundler/setup'
|
2
|
+
|
2
3
|
Bundler.setup
|
3
4
|
|
4
5
|
require 'dredd/rack'
|
5
6
|
|
6
7
|
Dir["./spec/support/**/*.rb"].sort.each { |f| require f; puts f }
|
7
8
|
|
9
|
+
Capybara.server = :webrick
|
10
|
+
|
8
11
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
9
12
|
RSpec.configure do |config|
|
10
13
|
# make sure the deprecated RSpec 2 syntax is not used
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dredd-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gonzalo Bulnes Guilpain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '2.4'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,6 +104,7 @@ files:
|
|
98
104
|
- LICENSE
|
99
105
|
- README.md
|
100
106
|
- Rakefile
|
107
|
+
- doc/README.md
|
101
108
|
- doc/rake_task.md
|
102
109
|
- doc/runner.md
|
103
110
|
- lib/dredd/rack.rb
|
@@ -136,19 +143,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
143
|
version: '0'
|
137
144
|
requirements: []
|
138
145
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.6.
|
146
|
+
rubygems_version: 2.6.12
|
140
147
|
signing_key:
|
141
148
|
specification_version: 4
|
142
149
|
summary: Convenient API blueprint testing with Apiary Dredd for Rack applications.
|
143
150
|
test_files:
|
151
|
+
- spec/lib/dredd/rack_spec.rb
|
144
152
|
- spec/lib/dredd/rack/configuration_spec.rb
|
145
|
-
- spec/lib/dredd/rack/rake_task_spec.rb
|
146
153
|
- spec/lib/dredd/rack/runner_spec.rb
|
147
|
-
- spec/lib/dredd/
|
154
|
+
- spec/lib/dredd/rack/rake_task_spec.rb
|
148
155
|
- spec/spec_helper.rb
|
149
156
|
- spec/support/spec_for_configuration_option_interface.rb
|
150
|
-
- spec/support/specs_for_boolean_options.rb
|
151
157
|
- spec/support/specs_for_negatable_boolean_options.rb
|
152
|
-
- spec/support/specs_for_options.rb
|
153
158
|
- spec/support/specs_for_single_argument_options.rb
|
159
|
+
- spec/support/specs_for_options.rb
|
160
|
+
- spec/support/specs_for_boolean_options.rb
|
154
161
|
has_rdoc:
|