percy-capybara 0.1.3 → 0.2.0
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 -29
- data/lib/percy/capybara/client/snapshots.rb +1 -1
- data/lib/percy/capybara/version.rb +1 -1
- data/spec/lib/percy/capybara/client/snapshots_spec.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b33b9e8ff57b7f698d01eea2e0f1b7c1672d80b
|
4
|
+
data.tar.gz: 95cc932982d44d5ca9bedf221033061c4e14d107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cbd9c125fb073544f7c5bf47da53bb036f0e0d82aa2ede455de9c774e915e3aeaf4a78db81110e8d02eb55b207cf193b5c7875d4faf26b242f3fd941725aed2
|
7
|
+
data.tar.gz: cb42a466739b5dfb2170e770a3f940b242800d75268d2be34ff9840d1f70b99276cbef07e8c5bac1c472b0cfbdbd51e444814388ad4981819626d6076a87c14d
|
data/README.md
CHANGED
@@ -3,32 +3,4 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/percy/percy-capybara.svg?branch=master)](https://travis-ci.org/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
|
-
|
7
|
-
|
8
|
-
## Installation
|
9
|
-
|
10
|
-
Add this line to your application's Gemfile:
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
gem 'percy-capybara'
|
14
|
-
```
|
15
|
-
|
16
|
-
And then execute:
|
17
|
-
|
18
|
-
$ bundle
|
19
|
-
|
20
|
-
Or install it yourself as:
|
21
|
-
|
22
|
-
$ gem install percy-capybara
|
23
|
-
|
24
|
-
## Usage
|
25
|
-
|
26
|
-
...
|
27
|
-
|
28
|
-
## Contributing
|
29
|
-
|
30
|
-
1. Fork it ( https://github.com/percy/percy-capybara/fork )
|
31
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
32
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
33
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
34
|
-
5. Create a new Pull Request
|
6
|
+
#### Docs here: [https://percy.io/docs/capybara](https://percy.io/docs/capybara)
|
@@ -22,7 +22,7 @@ module Percy
|
|
22
22
|
snapshot = client.create_snapshot(current_build_id, resource_map.values, name: name)
|
23
23
|
|
24
24
|
# Upload the content for any missing resources.
|
25
|
-
snapshot['data']['
|
25
|
+
snapshot['data']['relationships']['missing-resources']['data'].each do |missing_resource|
|
26
26
|
sha = missing_resource['id']
|
27
27
|
client.upload_resource(current_build_id, resource_map[sha].content)
|
28
28
|
end
|
@@ -210,10 +210,10 @@ RSpec.describe Percy::Capybara::Client::Snapshots, type: :feature do
|
|
210
210
|
'data' => {
|
211
211
|
'id' => '256',
|
212
212
|
'type' => 'snapshots',
|
213
|
-
'
|
213
|
+
'relationships' => {
|
214
214
|
'self' => "/api/v1/snapshots/123",
|
215
215
|
'missing-resources' => {
|
216
|
-
'
|
216
|
+
'data' => [
|
217
217
|
{
|
218
218
|
'type' => 'resources',
|
219
219
|
'id' => resource.sha,
|
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: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Perceptual Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: percy-client
|
@@ -234,3 +234,4 @@ test_files:
|
|
234
234
|
- spec/lib/percy/capybara_spec.rb
|
235
235
|
- spec/spec_helper.rb
|
236
236
|
- spec/support/test_helpers.rb
|
237
|
+
has_rdoc:
|