percy-client 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57d1a70e9d15a63bc24e8ee50f148129bb970af9
4
- data.tar.gz: 2675194f9ee08a8bd3a8fff7d267a91bd05330b7
3
+ metadata.gz: 39f44bba5f92879c17b85967c0c998d7d4534f8e
4
+ data.tar.gz: 990653988c289f534ab6b56d473a917598811f94
5
5
  SHA512:
6
- metadata.gz: bc5a05aa0ca69e2f5bd78bbe9a9a206b97e2e3aa40ba035f30b7d7ca71d50813d71c21adc925aa1db7ef5d2e34fe15a27c80bea79697e5cdfa20904d1c3a8edb
7
- data.tar.gz: eb3772f22a3adeda928cec2456185d42d36102c38e05614230fb8ea7aa6bab680f00236cdb0aaa79f5c8993e869986fa15e836f20122ec0924b739deebf75b6e
6
+ metadata.gz: a9a86dc73c3b5770627c037ba22a3ff270552d75066fd859b8accd9f5168d5ea37af51535c810c5f1e364115a4a7f6543bb8aa43332d686dfe3f6f9f6a0f53a7
7
+ data.tar.gz: 3db6d975962e40ada2e77086e38ba751ebe7846a8f8d56fd73db1d02d94c957ee111ad0a1636c04ae03e5ae7ee407d1deee2a71609dc15e9461af157c91d9238
@@ -82,7 +82,7 @@ module Percy
82
82
  output
83
83
  end
84
84
 
85
- # The name of the target branch that the build will be compared against.
85
+ # The name of the current branch.
86
86
  def self.branch
87
87
  return ENV['PERCY_BRANCH'] if ENV['PERCY_BRANCH']
88
88
 
@@ -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' => {
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Client
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
@@ -381,7 +381,7 @@ RSpec.describe Percy::Client::Environment do
381
381
  end
382
382
  end
383
383
  end
384
- context 'in Semaphoe CI' do
384
+ context 'in Semaphore CI' do
385
385
  before(:each) do
386
386
  ENV['SEMAPHORE'] = 'true'
387
387
  ENV['BRANCH_NAME'] = 'semaphore-branch'
@@ -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(build['data']['id'], resources, name: 'homepage')
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.1.0
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-03 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday