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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8a7e23627dfba235029a4bf7f551b473701e8140895da533c0741f51bef35fa
4
- data.tar.gz: 351f6b49bc8d7de42346e5f23672cc78fb2a90e98e4d916e59bd318754a39034
3
+ metadata.gz: '0059da9facf92a668b153dcb413e249634a2e67c534c9c360ebd0835b9c76a0a'
4
+ data.tar.gz: 1aae963f55d4f7a3af74c6b8bf852d48abfead7b694b4fa668f0532b6f24f9e1
5
5
  SHA512:
6
- metadata.gz: 971e33a244c7842d40c8db34752e3e2d5c2a3a7151d1a6f5e077352834f91dcb5e00cd9c4117baf0428a53dce3f5c6e3444596528baae7c7a8f03f16be4989ee
7
- data.tar.gz: 9873f321d6897d25f86a9a5d9a828cf8875bf3de17c6be320b0ee1559147829753bd0a67c600bb27c32a9479bab13606ca57a16c9eb64baf4fd4093c3d097051
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/clients/ruby/capybara](https://percy.io/docs/clients/ruby/capybara)
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. Tag the release: `git tag vVERSION`
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. [Update the release notes](https://github.com/percy/percy-capybara/releases) on GitHub
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: :enableJavascript,
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
@@ -1,3 +1,3 @@
1
1
  module Percy
2
- VERSION = '4.0.0'.freeze
2
+ VERSION = '4.0.1'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "private": true,
3
3
  "devDependencies": {
4
- "@percy/agent": "^0.1.15"
4
+ "@percy/agent": "~0"
5
5
  }
6
6
  }
@@ -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? 'enableJavascript')
53
+ expect(transformed.has_key? 'enableJavaScript')
50
54
  expect(transformed.has_key? 'minHeight')
51
- expect(transformed['enableJavascript']).to eq(original[:enable_javascript])
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.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-04-22 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler