percy-capybara 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/RELEASING.md +8 -2
- data/lib/percy.rb +1 -1
- data/lib/version.rb +1 -1
- data/package.json +1 -1
- data/spec/lib/percy/percy_spec.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0059da9facf92a668b153dcb413e249634a2e67c534c9c360ebd0835b9c76a0a'
|
4
|
+
data.tar.gz: 1aae963f55d4f7a3af74c6b8bf852d48abfead7b694b4fa668f0532b6f24f9e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13518afb088c6a061e7a81d78f9c159e2e2803d11568f932115cf24840e144d28f1c34b292a82641e3069c891da6b99d2f18faf78f09bb46d3b57eecba73b30
|
7
|
+
data.tar.gz: 406627a7611e2f037e9c0f0ead26507a9e5e1ba7ffffd7e798d07b3c15bb55e18c52558335cba9fee8deb4683af710287fc7b5613cca0560c11fa5cb8afef411
|
data/README.md
CHANGED
@@ -3,4 +3,4 @@
|
|
3
3
|
[![CircleCI](https://circleci.com/gh/percy/percy-capybara.svg?style=svg)](https://circleci.com/gh/percy/percy-capybara)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/percy-capybara.svg)](http://badge.fury.io/rb/percy-capybara)
|
5
5
|
|
6
|
-
#### Docs here: [https://percy.io/docs/
|
6
|
+
#### Docs here: [https://docs.percy.io/docs/capybara](https://docs.percy.io/docs/capybara)
|
data/RELEASING.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
# Releasing
|
2
2
|
|
3
|
+
1. `git checkout master`
|
4
|
+
1. `git pull origin master`
|
5
|
+
1. `git checkout -b X.X.X`
|
3
6
|
1. Update version.rb file accordingly.
|
4
|
-
1.
|
7
|
+
1. Commit and push the version update
|
8
|
+
1. Tag the release: `git tag vX.X.X`
|
5
9
|
1. Push changes: `git push --tags`
|
6
10
|
1. Ensure tests have passed on that tag
|
7
|
-
1.
|
11
|
+
1. Open up a pull request titled with the new version number
|
12
|
+
1. Merge approved pull request
|
13
|
+
1. Draft and publish a [new release on github](https://github.com/percy/percy-capybara/releases)
|
8
14
|
1. Build and publish:
|
9
15
|
|
10
16
|
```bash
|
data/lib/percy.rb
CHANGED
@@ -106,7 +106,7 @@ module Percy
|
|
106
106
|
# For Ruby style, require snake_case args but transform them into camelCase for percy-agent.
|
107
107
|
def self._keys_to_json(options)
|
108
108
|
{
|
109
|
-
enable_javascript: :
|
109
|
+
enable_javascript: :enableJavaScript,
|
110
110
|
min_height: :minHeight,
|
111
111
|
}.each do |ruby_key, json_key|
|
112
112
|
if options.has_key? ruby_key
|
data/lib/version.rb
CHANGED
data/package.json
CHANGED
@@ -39,6 +39,10 @@ RSpec.describe Percy, type: :feature do
|
|
39
39
|
visit 'http://example.com'
|
40
40
|
Percy.snapshot(page, { name: 'minHeight', minHeight: 2000 })
|
41
41
|
end
|
42
|
+
it 'recognizes enable_javascript' do
|
43
|
+
visit 'http://example.com'
|
44
|
+
Percy.snapshot(page, { name: 'enableJavaScript', enable_javascript: true })
|
45
|
+
end
|
42
46
|
end
|
43
47
|
end
|
44
48
|
|
@@ -46,9 +50,9 @@ RSpec.describe Percy, type: :feature do
|
|
46
50
|
it 'transforms keys from snake_case to JSON-style' do
|
47
51
|
original = { enable_javascript: true, min_height: 2000 }
|
48
52
|
transformed = Percy._keys_to_json(original)
|
49
|
-
expect(transformed.has_key? '
|
53
|
+
expect(transformed.has_key? 'enableJavaScript')
|
50
54
|
expect(transformed.has_key? 'minHeight')
|
51
|
-
expect(transformed['
|
55
|
+
expect(transformed['enableJavaScript']).to eq(original[:enable_javascript])
|
52
56
|
expect(transformed['minHeight']).to eq(original[:min_height])
|
53
57
|
end
|
54
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|