r_spec 1.0.0.beta7 → 1.0.0.beta8

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -11
  3. data/lib/r_spec/dsl.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46557ee64f6cc554942399aa9219e9102879b2b7b113e53dc4ba63d2c0c5c0af
4
- data.tar.gz: a83b773e20cf2db46b28586be6836d7913a4c3b8f9bf2ce747110f2556737374
3
+ metadata.gz: 654594b32d5ef5c97f68de1a5f3e99cc38364de1703f747d841fccba725b878c
4
+ data.tar.gz: 11038ae3f4f56cf40a7e2d99077ce28e7ee239e36d775dcfe8035954df240e07
5
5
  SHA512:
6
- metadata.gz: b7c89ce9b933e7adcfc26e03c2f4417ed44c423ca56932f173b2161572877967df37d99c9a560e8cf64c58458777842cb0db7eb1396c89a7f052d981b45f9864
7
- data.tar.gz: 51c4b747116d8f1bb3bb2e593b00aa940ec463d1b9a03506984f2b445f3607febd455884051279f73cef2fc2edac7cfe6d9b4de210c1f1cef6402bd501729f6c
6
+ metadata.gz: 91f106a5823915d56c59edf1a7da73285fdf05ef38827368cc44c135c2973b03aa4e3fe013a2e423ffd7bfdc2bd3f24ccd208f6f8e11fddeba3e95bfe800d7cb
7
+ data.tar.gz: e25a4dc18ba5ffb7aabb0bbe42dc9ef6b88756e4fb825fa895683e181a1ac05a61d153da05deb7c5142473704f2174b0a5a4e75dd612ed0481b2402a0c15a350
data/README.md CHANGED
@@ -8,15 +8,14 @@ A minimalist __[RSpec](https://github.com/rspec/rspec) clone__ with all the esse
8
8
 
9
9
  [![Gem Version](https://badge.fury.io/rb/r_spec.svg)](https://badge.fury.io/rb/r_spec)
10
10
  [![Build Status](https://travis-ci.org/cyril/r_spec.rb.svg?branch=main)](https://travis-ci.org/cyril/r_spec.rb)
11
- [![Inline Docs](https://inch-ci.org/github/cyril/r_spec.rb.svg)](https://inch-ci.org/github/cyril/r_spec.rb)
12
11
  [![Documentation](https://img.shields.io/:yard-docs-38c800.svg)](https://rubydoc.info/gems/r_spec/frames)
13
12
 
14
- ## Project Goals
13
+ ## Project goals
15
14
 
16
15
  * Enforce the guidelines and best practices outlined in the community [RSpec style guide](https://rspec.rubystyle.guide/).
17
16
  * Provide most of RSpec's DSL to express expected outcomes of a code example without magic power.
18
17
 
19
- ## Some Differences
18
+ ## Some differences
20
19
 
21
20
  * Less features and an implementation with much less code complexity.
22
21
  * Spec files can also be executed directly with the `ruby` executable.
@@ -29,10 +28,7 @@ A minimalist __[RSpec](https://github.com/rspec/rspec) clone__ with all the esse
29
28
  * [Arbitrary helper methods](https://relishapp.com/rspec/rspec-core/v/3-10/docs/helper-methods/arbitrary-helper-methods) are not exposed to examples.
30
29
  * The `let` method defines a helper method rather than a memoized helper method.
31
30
  * The one-liner `is_expected` syntax also works with block expectations.
32
- * All `subject` definitions must come _before_ examples.
33
- * All `before` definitions must come _before_ examples.
34
- * All `after` definitions must come _before_ examples.
35
- * All `let` definitions must come _before_ examples.
31
+ * `subject`, `before`, `after` and `let` definitions must come before examples.
36
32
 
37
33
  ## Important ⚠️
38
34
 
@@ -51,7 +47,7 @@ Following [RubyGems naming conventions](https://guides.rubygems.org/name-your-ge
51
47
  Add this line to your application's Gemfile:
52
48
 
53
49
  ```ruby
54
- gem "r_spec", ">= 1.0.0.beta7"
50
+ gem "r_spec", ">= 1.0.0.beta8"
55
51
  ```
56
52
 
57
53
  And then execute:
@@ -231,7 +227,7 @@ Benchmark against [100 executions of a file containing one expectation](https://
231
227
  | `minitest` | 17.5 |
232
228
  | `test-unit` | 20.5 |
233
229
 
234
- ## Test Suite
230
+ ## Test suite
235
231
 
236
232
  __RSpec clone__'s specifications are self-described here: [spec/](https://github.com/cyril/r_spec.rb/blob/main/spec/)
237
233
 
@@ -241,14 +237,14 @@ __RSpec clone__'s specifications are self-described here: [spec/](https://github
241
237
  * Source code: https://github.com/cyril/r_spec.rb
242
238
  * Twitter: [https://twitter.com/cyri\_](https://twitter.com/cyri\_)
243
239
 
244
- ## Special Thanks ❤️
240
+ ## Special thanks ❤️
245
241
 
246
242
  I would like to thank the whole [RSpec team](https://rspec.info/about/) for all their work.
247
243
  It's a great framework and it's a pleasure to work with every day.
248
244
 
249
245
  Without RSpec, this clone would not have been possible.
250
246
 
251
- ## Buy me a Coffee
247
+ ## Buy me a coffee
252
248
 
253
249
  If you like this project please consider making a small donation.
254
250
 
data/lib/r_spec/dsl.rb CHANGED
@@ -230,7 +230,7 @@ module RSpec
230
230
 
231
231
  exit false
232
232
  ensure
233
- example.send(AFTER_METHOD)
233
+ example&.send(AFTER_METHOD)
234
234
  end
235
235
 
236
236
  # Use the {.its} method to define a single spec that specifies the actual
@@ -295,7 +295,7 @@ module RSpec
295
295
 
296
296
  exit false
297
297
  ensure
298
- example.send(AFTER_METHOD)
298
+ example&.send(AFTER_METHOD)
299
299
  end
300
300
 
301
301
  # Defines a pending test case.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r_spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta7
4
+ version: 1.0.0.beta8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-16 00:00:00.000000000 Z
11
+ date: 2021-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expresenter