ndd-rspec 1.2.0 → 1.2.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 +8 -0
- data/README.md +92 -16
- data/bin/setup +22 -1
- data/lib/ndd/rspec/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f5cf92435d34eb0bb8ed3cd2aa4b987396c2a35
|
4
|
+
data.tar.gz: aa658e466c2a19b0bdee9ea21fa48c7a6a65260e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4bc2839cc33b56a8755eca021e14d4aaa080caa2dc53d6b52071b4d83e2c74a433edfc6e45b101e4303cca46e8bfaa8f4898df009d8ffb5366a5b5f464d773
|
7
|
+
data.tar.gz: 4481eda27035b0d6ecfb57b9df93ed1743b3fa18e8f2eb69cf9fe775759226625725f3c1660fe38caec5df8123c55b25bdca8b2587a6ea7a9b81c195230ae138
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# NDD RSpec changelog
|
2
2
|
|
3
|
+
## Version 1.2.1
|
4
|
+
|
5
|
+
- Update dependencies minor versions
|
6
|
+
- Update documentation
|
7
|
+
- Add support for multiple RSpec versions
|
8
|
+
- Add Appraisal support to Travis
|
9
|
+
- Add WWTD support to Travis
|
10
|
+
|
3
11
|
## Version 1.2.0
|
4
12
|
|
5
13
|
- Drop Jeweler
|
data/README.md
CHANGED
@@ -11,17 +11,7 @@ RSpec utilities.
|
|
11
11
|
|
12
12
|
The API documentation can be find at [RubyDoc](http://www.rubydoc.info/github/ddidier/ndd-rspec).
|
13
13
|
|
14
|
-
## Prerequisites
|
15
14
|
|
16
|
-
This gem requires:
|
17
|
-
|
18
|
-
- `rspec >= 3.0`
|
19
|
-
|
20
|
-
And is tested with:
|
21
|
-
|
22
|
-
- `Ruby 2.4`
|
23
|
-
- `Ruby 2.3`
|
24
|
-
- `Ruby 2.2`
|
25
15
|
|
26
16
|
## Installation
|
27
17
|
|
@@ -35,7 +25,21 @@ And then execute `bundle`
|
|
35
25
|
|
36
26
|
Or install it yourself with `gem install ndd-rspec-rails`
|
37
27
|
|
38
|
-
|
28
|
+
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
### Prerequisites
|
33
|
+
|
34
|
+
This gem requires:
|
35
|
+
|
36
|
+
- `rspec >= 3.0`
|
37
|
+
|
38
|
+
And is tested with:
|
39
|
+
|
40
|
+
- `Ruby 2.4`
|
41
|
+
- `Ruby 2.3`
|
42
|
+
- `Ruby 2.2`
|
39
43
|
|
40
44
|
### be_sorted_by
|
41
45
|
|
@@ -51,14 +55,84 @@ expect(%w[3 2 1]).to be_reverse_sorted_by(:to_i) # => true
|
|
51
55
|
expect(%w[1 3 2]).to be_reverse_sorted_by(:to_i) # => false
|
52
56
|
```
|
53
57
|
|
58
|
+
|
59
|
+
|
54
60
|
## Development
|
55
61
|
|
56
|
-
|
57
|
-
|
62
|
+
### Prerequisites
|
63
|
+
|
64
|
+
In order to extensively test this library with all the supported versions of Ruby and RSpec, you will need to manage:
|
65
|
+
|
66
|
+
- several Ruby environments using [RVM](https://rvm.io/)
|
67
|
+
- several gems sets using [Appraisal](https://github.com/thoughtbot/appraisal)
|
68
|
+
- several test execution environments (Ruby and gems) using [WWTD](https://github.com/grosser/wwtd)
|
69
|
+
|
70
|
+
### Setup
|
71
|
+
|
72
|
+
After installing RVM, check out the repository and run `bin/setup` to setup all the environments. This script will:
|
73
|
+
|
74
|
+
- create the latest Ruby environment with RVM and an associated gems set using the `.ruby-version`
|
75
|
+
and `.ruby-gemset` files:
|
76
|
+
|
77
|
+
```bash
|
78
|
+
rvm use
|
79
|
+
gem install bundler --no-rdoc --no-ri
|
80
|
+
bundle install
|
81
|
+
```
|
82
|
+
|
83
|
+
- install all the required Ruby versions listed in `.travis.yml`. For example:
|
84
|
+
|
85
|
+
```bash
|
86
|
+
export LOCAL_RUBY_VERSION=2.2.7 \
|
87
|
+
&& rvm install ruby-$LOCAL_RUBY_VERSION \
|
88
|
+
&& rvm use ruby-$LOCAL_RUBY_VERSION \
|
89
|
+
&& gem install bundler --no-rdoc --no-ri
|
90
|
+
export LOCAL_RUBY_VERSION=2.3.4 \
|
91
|
+
&& rvm install ruby-$LOCAL_RUBY_VERSION \
|
92
|
+
&& rvm use ruby-$LOCAL_RUBY_VERSION \
|
93
|
+
&& gem install bundler --no-rdoc --no-ri
|
94
|
+
export LOCAL_RUBY_VERSION=2.4.1 \
|
95
|
+
&& rvm install ruby-$LOCAL_RUBY_VERSION \
|
96
|
+
&& rvm use ruby-$LOCAL_RUBY_VERSION \
|
97
|
+
&& gem install bundler --no-rdoc --no-ri
|
98
|
+
```
|
99
|
+
|
100
|
+
- create a `Gemfile.lock` for each set of the dependencies:
|
101
|
+
|
102
|
+
```bash
|
103
|
+
appraisal install
|
104
|
+
```
|
105
|
+
|
106
|
+
- install all the dependencies in their associated environment:
|
107
|
+
|
108
|
+
```bash
|
109
|
+
wwtd --only-bundle
|
110
|
+
```
|
111
|
+
|
112
|
+
At last, to test this library in all the supported environments, just run:
|
113
|
+
|
114
|
+
```bash
|
115
|
+
wwtd --parallel
|
116
|
+
```
|
117
|
+
|
118
|
+
### Release
|
119
|
+
|
120
|
+
As a reminder...
|
121
|
+
|
122
|
+
- update the changelog
|
123
|
+
- update the library version
|
124
|
+
- update all dependencies in all the environments:
|
125
|
+
|
126
|
+
```bash
|
127
|
+
bundle update
|
128
|
+
appraisal update
|
129
|
+
wwtd --only-bundle
|
130
|
+
```
|
131
|
+
|
132
|
+
- run the tests in all the environments with `wwtd --parallel`
|
133
|
+
- release with `bundle exec rake release`
|
134
|
+
|
58
135
|
|
59
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
|
60
|
-
version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
|
61
|
-
push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
62
136
|
|
63
137
|
## Contributing
|
64
138
|
|
@@ -66,6 +140,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/ddidie
|
|
66
140
|
intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
|
67
141
|
[Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
68
142
|
|
143
|
+
|
144
|
+
|
69
145
|
## License
|
70
146
|
|
71
147
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/bin/setup
CHANGED
@@ -3,6 +3,27 @@ set -euo pipefail
|
|
3
3
|
IFS=$'\n\t'
|
4
4
|
set -vx
|
5
5
|
|
6
|
+
hash rvm 2>/dev/null || { echo >&2 "RVM is required but not installed. Aborting."; exit 1; }
|
7
|
+
|
8
|
+
# Create the latest Ruby environment with RVM and a gemset
|
9
|
+
# using the '.ruby-version' and '.ruby-gemset' files.
|
10
|
+
rvm use
|
11
|
+
gem install bundler --no-rdoc --no-ri
|
6
12
|
bundle install
|
7
13
|
|
8
|
-
#
|
14
|
+
# Create other Ruby environments with RVM but without a gemset
|
15
|
+
# because WWTD does not use them.
|
16
|
+
for ruby in "ruby-2.2.7" "ruby-2.3.4" "ruby-2.4.1"; do
|
17
|
+
rvm install $ruby
|
18
|
+
rvm use $ruby
|
19
|
+
gem install bundler --no-rdoc --no-ri
|
20
|
+
done
|
21
|
+
|
22
|
+
# Back to the latest Ruby environment with RVM and a gemset
|
23
|
+
rvm use
|
24
|
+
|
25
|
+
# Create Gemfile.lock for each set of the dependencies
|
26
|
+
appraisal install
|
27
|
+
|
28
|
+
# Install all the dependencies in their associated environment
|
29
|
+
wwtd --only-bundle
|
data/lib/ndd/rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ndd-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David DIDIER
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -50,14 +50,14 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.
|
53
|
+
version: 1.15.0
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.15.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: codeclimate-test-reporter
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,6 +156,20 @@ dependencies:
|
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: 0.14.0
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: wwtd
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.3.0
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: 1.3.0
|
159
173
|
- !ruby/object:Gem::Dependency
|
160
174
|
name: yard
|
161
175
|
requirement: !ruby/object:Gem::Requirement
|