utensils 3.0.0 → 4.0.0
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 +5 -5
- data/README.md +0 -6
- data/lib/utensils/custom_matchers.rb +1 -1
- data/lib/utensils/json.rb +1 -1
- data/lib/utensils/version.rb +1 -1
- metadata +3 -5
- data/lib/utensils/capybara_screenshot.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e5f730e56aa1441879fabd451ee5d1509cd5e3545f5f37e5d6c59a24524f242a
|
4
|
+
data.tar.gz: 3f80d5c630fee1292e914e2e4a4ef4098e757f191074a3fe0d05682a628a6709
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69699c6e6ba3da3cf0d872418bf314b3885605cdcef305e7e3412bd2026b1de74c1abaa105562e3c7b31c5d3161b18902db10e7c837758b7a8269016a609b16b
|
7
|
+
data.tar.gz: 98547e037db924303c3f1d5cfc858a87f0cb948acddeecfaed6f649622c868b8003a87feebdbf27df66cf672077a09f18be249508b128918d68c373b510232d4
|
data/README.md
CHANGED
@@ -16,7 +16,6 @@ Add this line to your application's Gemfile:
|
|
16
16
|
```ruby
|
17
17
|
require 'utensils/capybara_extensions'
|
18
18
|
require 'utensils/capybara_javascript'
|
19
|
-
require 'utensils/capybara_screenshot'
|
20
19
|
require 'utensils/custom_matchers'
|
21
20
|
require 'utensils/database_cleaner'
|
22
21
|
require 'utensils/email'
|
@@ -46,11 +45,6 @@ To use Poltegeist with [remote debugging](https://github.com/teampoltergeist/pol
|
|
46
45
|
POLTERGEIST_DEBUG=1 rspec spec/features/broken_feature_spec.rb
|
47
46
|
```
|
48
47
|
|
49
|
-
### capybara_screenshot
|
50
|
-
|
51
|
-
Automatically saves an html file viewable at
|
52
|
-
localhost:3000/tmp/screenshot.html on failing specs
|
53
|
-
|
54
48
|
### custom_matchers
|
55
49
|
|
56
50
|
A set of convenient matchers for rspec
|
data/lib/utensils/json.rb
CHANGED
@@ -48,7 +48,7 @@ module JsonHelpers
|
|
48
48
|
path.split("/").inject(ruby) do |value, key|
|
49
49
|
case value
|
50
50
|
when Hash
|
51
|
-
value.fetch(key) { "Couldn't find JSON path #{path}" }
|
51
|
+
value.fetch(key) { raise "Couldn't find JSON path #{path}" }
|
52
52
|
when Array
|
53
53
|
raise "Couldn't find JSON path #{path}" unless key =~ /^\d+$/
|
54
54
|
value.fetch(key.to_i) { raise "Couldn't find JSON path #{path}" }
|
data/lib/utensils/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utensils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Balvig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rspec stuff we use over and over again
|
14
14
|
email:
|
@@ -25,7 +25,6 @@ files:
|
|
25
25
|
- lib/utensils.rb
|
26
26
|
- lib/utensils/capybara_extensions.rb
|
27
27
|
- lib/utensils/capybara_javascript.rb
|
28
|
-
- lib/utensils/capybara_screenshot.rb
|
29
28
|
- lib/utensils/custom_matchers.rb
|
30
29
|
- lib/utensils/database_cleaner.rb
|
31
30
|
- lib/utensils/email.rb
|
@@ -55,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
54
|
- !ruby/object:Gem::Version
|
56
55
|
version: '0'
|
57
56
|
requirements: []
|
58
|
-
|
59
|
-
rubygems_version: 2.6.13
|
57
|
+
rubygems_version: 3.0.3
|
60
58
|
signing_key:
|
61
59
|
specification_version: 4
|
62
60
|
summary: Rspec stuff we use over and over again
|