percy-client 1.1.0 → 1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f44bba5f92879c17b85967c0c998d7d4534f8e
|
4
|
+
data.tar.gz: 990653988c289f534ab6b56d473a917598811f94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a86dc73c3b5770627c037ba22a3ff270552d75066fd859b8accd9f5168d5ea37af51535c810c5f1e364115a4a7f6543bb8aa43332d686dfe3f6f9f6a0f53a7
|
7
|
+
data.tar.gz: 3db6d975962e40ada2e77086e38ba751ebe7846a8f8d56fd73db1d02d94c957ee111ad0a1636c04ae03e5ae7ee407d1deee2a71609dc15e9461af157c91d9238
|
@@ -7,11 +7,13 @@ module Percy
|
|
7
7
|
'resources argument must be an iterable of Percy::Client::Resource objects')
|
8
8
|
end
|
9
9
|
name = options[:name]
|
10
|
+
enable_javascript = options[:enable_javascript]
|
10
11
|
data = {
|
11
12
|
'data' => {
|
12
13
|
'type' => 'snapshots',
|
13
14
|
'attributes' => {
|
14
15
|
'name' => name,
|
16
|
+
'enable-javascript' => enable_javascript,
|
15
17
|
},
|
16
18
|
'relationships' => {
|
17
19
|
'resources' => {
|
data/lib/percy/client/version.rb
CHANGED
@@ -8,7 +8,12 @@ RSpec.describe Percy::Client::Snapshots, :vcr do
|
|
8
8
|
resources = []
|
9
9
|
resources << Percy::Client::Resource.new('/foo/test.html', sha: sha, is_root: true)
|
10
10
|
resources << Percy::Client::Resource.new('/css/test.css', sha: sha)
|
11
|
-
snapshot = Percy.create_snapshot(
|
11
|
+
snapshot = Percy.create_snapshot(
|
12
|
+
build['data']['id'],
|
13
|
+
resources,
|
14
|
+
name: 'homepage',
|
15
|
+
enable_javascript: true,
|
16
|
+
)
|
12
17
|
|
13
18
|
expect(snapshot['data']).to be
|
14
19
|
expect(snapshot['data']['id']).to be
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: percy-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.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-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|