percy-cli 1.3.1 → 1.4.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: 312ef525da9b6c70354812c688f833e5f7262171
4
- data.tar.gz: b5d596076601b60ac23df1bcac6af67b95d6a36d
3
+ metadata.gz: 9db857bea23cb6853557aa5ef77e7cfd06919188
4
+ data.tar.gz: 6aeb9055b7fc4b8992f7282e20e513e43a3c4c63
5
5
  SHA512:
6
- metadata.gz: fd0f40f09e449bb77a497e5722621e801f46d7a68a4c1bd185948867040b665907ce93bef1768f9be5caf9328367c96fede88cf8eaca34621bb665235fafc1b7
7
- data.tar.gz: 74be05cae89ec9546103e2b9b65bff5bacf731e5b3a90cc1b08f7a61a2cbf6dccd04724ea8aaf26b439bd4584d3e6cb604fc9e7e88fc6491d72979f0f30faec7
6
+ metadata.gz: a539c5cca20fb54beb6da81ef6e10706f6658b265093aabaacab060c118d4e63face36bbfbd67d794a67341ab158394dcb5599bc02601ca4e3f4f36360ff1dee
7
+ data.tar.gz: 2d4f2876d026442e3fde78409b976dd502d1991f7356019567cfbf8d26c6f991587021eca3317ba59edcceafce68b67e47b03c9b3c04b87b01e000547b3cfeb6
@@ -38,10 +38,6 @@ module Percy
38
38
  '--strip_prefix PATH',
39
39
  String,
40
40
  'Directory path to strip from generated URLs. Defaults to the given root directory.'
41
- c.option \
42
- '--repo STRING',
43
- String,
44
- 'Full GitHub repo slug (owner/repo-name). Defaults to the local git repo origin URL.'
45
41
  c.option \
46
42
  '--snapshots_regex REGEX',
47
43
  String,
@@ -36,7 +36,6 @@ module Percy
36
36
  ignore_regex = options[:ignore_regex]
37
37
  widths = options[:widths].map { |w| Integer(w) }
38
38
  num_threads = options[:threads] || 10
39
- repo = options[:repo] || Percy.config.repo
40
39
  baseurl = options[:baseurl] || '/'
41
40
  raise ArgumentError, 'baseurl must start with /' if baseurl[0] != '/'
42
41
 
@@ -66,7 +65,7 @@ module Percy
66
65
  build = _rescue_connection_failures do
67
66
  say 'Creating build...'
68
67
 
69
- build = client.create_build(repo, resources: build_resources)
68
+ build = client.create_build(resources: build_resources)
70
69
 
71
70
  say 'Uploading build resources...'
72
71
  _upload_missing_resources(build, build, all_resources, num_threads: num_threads)
@@ -1,5 +1,5 @@
1
1
  module Percy
2
2
  class Cli
3
- VERSION = '1.3.1'.freeze
3
+ VERSION = '1.4.0'.freeze
4
4
  end
5
5
  end
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_dependency 'commander', '~> 4.3'
23
- spec.add_dependency 'percy-client', '~> 1.12'
23
+ spec.add_dependency 'percy-client', '~> 2.0'
24
24
  spec.add_dependency 'thread', '~> 0.2'
25
25
  spec.add_dependency 'addressable', '~> 2'
26
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.4.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: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.12'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.12'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thread
43
43
  requirement: !ruby/object:Gem::Requirement