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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3dce95f1470e064a58efea7de8c8e324ce26cd2
4
- data.tar.gz: 25cc759cc54c27a9519b42bf4e582e86d1879f85
3
+ metadata.gz: 9b33b9e8ff57b7f698d01eea2e0f1b7c1672d80b
4
+ data.tar.gz: 95cc932982d44d5ca9bedf221033061c4e14d107
5
5
  SHA512:
6
- metadata.gz: fcc5c0a05c238b73155485b9bd3917755f647bdfc0945f502e156b65f4495c18d35678ba7eb158bc122a764173e924bd77eb371930cb594a70e3cd39bc32ba13
7
- data.tar.gz: 6ea4f3b98cade21c21b6fa20500db0d974679b484fdf881171787660efd07122dee0ba0168f56240802a6dbcf3db67821fa2a9d4fd35c0751e3aad13f61541b8
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
- (in development, coming soon)
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']['links']['missing-resources']['linkage'].each do |missing_resource|
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
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  module Capybara
3
- VERSION = '0.1.3'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  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
- 'links' => {
213
+ 'relationships' => {
214
214
  'self' => "/api/v1/snapshots/123",
215
215
  'missing-resources' => {
216
- 'linkage' => [
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.1.3
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-05-28 00:00:00.000000000 Z
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: