percy-capybara 3.2.0 → 4.0.0.pre.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +39 -0
  3. data/.gitignore +1 -0
  4. data/DEVELOPING.md +26 -0
  5. data/README.md +2 -2
  6. data/lib/environment.rb +31 -0
  7. data/lib/percy.rb +119 -0
  8. data/lib/version.rb +3 -0
  9. data/package-lock.json +2155 -0
  10. data/package.json +6 -0
  11. data/percy-capybara.gemspec +3 -12
  12. data/spec/lib/percy/environment_spec.rb +31 -0
  13. data/spec/lib/percy/percy_spec.rb +55 -0
  14. data/spec/spec_helper.rb +4 -44
  15. metadata +17 -233
  16. data/.travis.yml +0 -17
  17. data/lib/percy/capybara.rb +0 -60
  18. data/lib/percy/capybara/anywhere.rb +0 -37
  19. data/lib/percy/capybara/client.rb +0 -127
  20. data/lib/percy/capybara/client/builds.rb +0 -81
  21. data/lib/percy/capybara/client/snapshots.rb +0 -66
  22. data/lib/percy/capybara/client/user_agent.rb +0 -37
  23. data/lib/percy/capybara/httpfetcher.rb +0 -36
  24. data/lib/percy/capybara/loaders/base_loader.rb +0 -161
  25. data/lib/percy/capybara/loaders/ember_cli_rails_loader.rb +0 -52
  26. data/lib/percy/capybara/loaders/filesystem_loader.rb +0 -37
  27. data/lib/percy/capybara/loaders/native_loader.rb +0 -287
  28. data/lib/percy/capybara/loaders/sprockets_loader.rb +0 -99
  29. data/lib/percy/capybara/rspec.rb +0 -8
  30. data/lib/percy/capybara/version.rb +0 -5
  31. data/spec/lib/percy/capybara/client/builds_spec.rb +0 -171
  32. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/assets/percy-admin.svg +0 -34
  33. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/index.html +0 -1
  34. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/percy-admin-public.svg +0 -34
  35. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/assets/percy-frontend.svg +0 -34
  36. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/index.html +0 -1
  37. data/spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/percy-frontend-public.svg +0 -34
  38. data/spec/lib/percy/capybara/client/rails_public_test_data/large-file-skipped.png +0 -0
  39. data/spec/lib/percy/capybara/client/rails_public_test_data/percy-from-public.svg +0 -34
  40. data/spec/lib/percy/capybara/client/rails_public_test_data/symlink_to_images +0 -1
  41. data/spec/lib/percy/capybara/client/snapshots_spec.rb +0 -97
  42. data/spec/lib/percy/capybara/client/symlink_test_data/test.png +0 -0
  43. data/spec/lib/percy/capybara/client/test_data/assets/css/digested-f3420c6aee71c137a3ca39727052811bae84b2f37d898f4db242e20656a1579e.css +0 -1
  44. data/spec/lib/percy/capybara/client/test_data/assets/images/large-file-skipped.png +0 -0
  45. data/spec/lib/percy/capybara/client/test_data/css/base.css +0 -1
  46. data/spec/lib/percy/capybara/client/test_data/css/digested.css +0 -1
  47. data/spec/lib/percy/capybara/client/test_data/css/font.css +0 -8
  48. data/spec/lib/percy/capybara/client/test_data/css/imports.css +0 -1
  49. data/spec/lib/percy/capybara/client/test_data/css/level0-imports.css +0 -2
  50. data/spec/lib/percy/capybara/client/test_data/css/level1-imports.css +0 -2
  51. data/spec/lib/percy/capybara/client/test_data/css/level2-imports.css +0 -1
  52. data/spec/lib/percy/capybara/client/test_data/css/simple-imports.css +0 -1
  53. data/spec/lib/percy/capybara/client/test_data/css/source.css.map +0 -2
  54. data/spec/lib/percy/capybara/client/test_data/iframe.html +0 -7
  55. data/spec/lib/percy/capybara/client/test_data/images/bg-relative-to-root.png +0 -0
  56. data/spec/lib/percy/capybara/client/test_data/images/bg-relative.png +0 -0
  57. data/spec/lib/percy/capybara/client/test_data/images/bg-stacked.png +0 -0
  58. data/spec/lib/percy/capybara/client/test_data/images/img-relative-to-root.png +0 -0
  59. data/spec/lib/percy/capybara/client/test_data/images/img-relative.png +0 -0
  60. data/spec/lib/percy/capybara/client/test_data/images/percy.svg +0 -34
  61. data/spec/lib/percy/capybara/client/test_data/images/srcset-base.png +0 -0
  62. data/spec/lib/percy/capybara/client/test_data/images/srcset-first.png +0 -0
  63. data/spec/lib/percy/capybara/client/test_data/images/srcset-second.png +0 -0
  64. data/spec/lib/percy/capybara/client/test_data/index.html +0 -1
  65. data/spec/lib/percy/capybara/client/test_data/js/base.js +0 -1
  66. data/spec/lib/percy/capybara/client/test_data/test-css.html +0 -20
  67. data/spec/lib/percy/capybara/client/test_data/test-font.html +0 -9
  68. data/spec/lib/percy/capybara/client/test_data/test-iframe.html +0 -8
  69. data/spec/lib/percy/capybara/client/test_data/test-images.html +0 -51
  70. data/spec/lib/percy/capybara/client/test_data/test-localtest-me-images.html +0 -8
  71. data/spec/lib/percy/capybara/client/user_agent_spec.rb +0 -45
  72. data/spec/lib/percy/capybara/client_spec.rb +0 -232
  73. data/spec/lib/percy/capybara/http_fetcher_spec.rb +0 -17
  74. data/spec/lib/percy/capybara/loaders/base_loader_spec.rb +0 -122
  75. data/spec/lib/percy/capybara/loaders/ember_cli_rails_loader_spec.rb +0 -86
  76. data/spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb +0 -166
  77. data/spec/lib/percy/capybara/loaders/native_loader_spec.rb +0 -300
  78. data/spec/lib/percy/capybara/loaders/sprockets_loader_spec.rb +0 -119
  79. data/spec/lib/percy/capybara_spec.rb +0 -101
  80. data/spec/support/test_helpers.rb +0 -60
data/package.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "private": true,
3
+ "devDependencies": {
4
+ "@percy/agent": "^0.1.15"
5
+ }
6
+ }
@@ -1,14 +1,14 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'percy/capybara/version'
4
+ require 'version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'percy-capybara'
8
- spec.version = Percy::Capybara::VERSION
8
+ spec.version = Percy::VERSION
9
9
  spec.authors = ['Perceptual Inc.']
10
10
  spec.email = ['team@percy.io']
11
- spec.summary = %q{Percy::Capybara}
11
+ spec.summary = %q{Percy}
12
12
  spec.description = %q{}
13
13
  spec.homepage = ''
14
14
  spec.license = 'MIT'
@@ -18,19 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_dependency 'percy-client', '~> 2.0'
22
- spec.add_dependency 'addressable', '~> 2'
23
-
24
21
  spec.add_development_dependency 'bundler', '~> 1.7'
25
22
  spec.add_development_dependency 'rake', '~> 10.0'
26
23
  spec.add_development_dependency 'rspec', '~> 3.5'
27
24
  spec.add_development_dependency 'capybara', '~> 2.4'
28
- spec.add_development_dependency 'poltergeist'
29
25
  spec.add_development_dependency 'selenium-webdriver'
30
- spec.add_development_dependency 'webmock', '~> 1'
31
- spec.add_development_dependency 'mime-types', '< 3' # For Ruby 1.9 testing support.
32
- spec.add_development_dependency 'faraday', '>= 0.8'
33
- spec.add_development_dependency 'httpclient', '~> 2.8'
34
- spec.add_development_dependency 'sprockets', '>= 3.2.0'
35
26
  spec.add_development_dependency 'percy-style'
36
27
  end
@@ -0,0 +1,31 @@
1
+ RSpec.describe Percy do
2
+ subject(:our_module) { Percy }
3
+
4
+ describe '#environment_info' do
5
+ subject(:environment_info) { Percy.environment_info }
6
+
7
+ context 'an app with Rails, Sinatra and Ember Cli Rails' do
8
+ it 'returns full environment information' do
9
+ expect(our_module).to receive(:_rails_version).at_least(:once).times.and_return('4.2')
10
+ expect(our_module).to receive(:_sinatra_version).at_least(:once).and_return('2.0.0')
11
+ expect(our_module).to receive(:_ember_cli_rails_version).at_least(:once).and_return('0.9')
12
+
13
+ expect(environment_info).to eq('rails/4.2; sinatra/2.0.0; ember-cli-rails/0.9')
14
+ end
15
+ end
16
+
17
+ context 'an app with no known frameworks being used' do
18
+ it 'returns unknown environment information' do
19
+ expect(environment_info).to eq('unknown')
20
+ end
21
+ end
22
+ end
23
+
24
+ describe '#client_info' do
25
+ subject(:client_info) { Percy.client_info }
26
+
27
+ it 'includes client information' do
28
+ expect(client_info).to eq("percy-capybara/#{Percy::VERSION}")
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,55 @@
1
+ RSpec.describe Percy, type: :feature do
2
+ TEST_CASE_GLOB = File.join(File.dirname(__FILE__), "./capybara/client/test_data/test-*.html")
3
+
4
+ describe '#snapshot', type: :feature, js: true do
5
+ context 'with live sites' do
6
+ it 'snapshots simple HTTPS site' do
7
+ visit 'https://example.com'
8
+ Percy.snapshot(page)
9
+ end
10
+ it 'snapshots complex HTTPS site' do
11
+ visit 'https://polaris.shopify.com/'
12
+ Percy.snapshot(page)
13
+ end
14
+ it 'snapshots site with strict CSP' do
15
+ visit 'https://buildkite.com/'
16
+ Percy.snapshot(page)
17
+ end
18
+ end
19
+ context 'with different options' do
20
+ it 'can get a default name' do
21
+ visit 'http://example.com'
22
+ Percy.snapshot(page)
23
+ end
24
+ it 'uses query params and fragment for default name' do
25
+ visit 'http://example.com/?with_query'
26
+ Percy.snapshot(page)
27
+ visit 'http://example.com/?with_query_params#and-fragment'
28
+ Percy.snapshot(page)
29
+ end
30
+ it 'uses provided name' do
31
+ visit 'http://example.com'
32
+ Percy.snapshot(page, name: 'My very special snapshot 🌟')
33
+ end
34
+ it 'recognizes requested widths' do
35
+ visit 'http://example.com'
36
+ Percy.snapshot(page, { name: 'widths', widths: [768, 992, 1200] })
37
+ end
38
+ it 'recognizes minHeight' do
39
+ visit 'http://example.com'
40
+ Percy.snapshot(page, { name: 'minHeight', minHeight: 2000 })
41
+ end
42
+ end
43
+ end
44
+
45
+ describe '_keys_to_json' do
46
+ it 'transforms keys from snake_case to JSON-style' do
47
+ original = { enable_javascript: true, min_height: 2000 }
48
+ transformed = Percy._keys_to_json(original)
49
+ expect(transformed.has_key? 'enableJavascript')
50
+ expect(transformed.has_key? 'minHeight')
51
+ expect(transformed['enableJavascript']).to eq(original[:enable_javascript])
52
+ expect(transformed['minHeight']).to eq(original[:min_height])
53
+ end
54
+ end
55
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,8 @@
1
1
  require 'capybara/rspec'
2
- require 'capybara/poltergeist'
3
- require 'webmock/rspec'
4
- require 'support/test_helpers'
2
+ require 'selenium-webdriver'
5
3
  require 'percy'
6
- require 'percy/capybara'
7
4
 
8
5
  RSpec.configure do |config|
9
- config.include TestHelpers
10
-
11
6
  config.expect_with :rspec do |expectations|
12
7
  # This option will default to `true` in RSpec 4.
13
8
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
@@ -32,42 +27,7 @@ RSpec.configure do |config|
32
27
  # as the one that triggered the failure.
33
28
  Kernel.srand config.seed
34
29
 
35
- # Comment this out to test the default Selenium/Firefox flow:
36
- Capybara.javascript_driver = :poltergeist
37
- Capybara.register_driver :poltergeist do |app|
38
- Capybara::Poltergeist::Driver.new(app, timeout: 1, url_blacklist: ['i.imgur.com'])
39
- end
40
-
41
- config.before(:each) do
42
- WebMock.disable_net_connect!(allow_localhost: true)
43
- end
44
- config.before(:each, type: :feature) do
45
- WebMock.disable_net_connect!(allow_localhost: true, allow: [/i.imgur.com/])
46
- end
47
-
48
- # Cover all debug messages by outputting them in this gem's tests.
49
- Percy.config.debug = true
50
-
51
- # Start a temp webserver that serves the test_data directory.
52
- # You can test this server manually by running:
53
- # ruby -run -e httpd spec/lib/percy/capybara/client/test_data/ -p 9090
54
- config.before(:all, type: :feature) do
55
- port = random_open_port
56
- Capybara.app = nil
57
- Capybara.app_host = "http://localhost:#{port}"
58
- Capybara.run_server = false
59
-
60
- # Note: using this form of popen to keep stdout and stderr silent and captured.
61
- dir = File.expand_path('../lib/percy/capybara/client/test_data/', __FILE__)
62
- @process = IO.popen(
63
- [
64
- 'ruby', '-run', '-e', 'httpd', dir, '-p', port.to_s, err: [:child, :out],
65
- ].flatten,
66
- )
67
-
68
- # Block until the server is up.
69
- WebMock.disable_net_connect!(allow_localhost: true)
70
- verify_server_up(Capybara.app_host)
71
- end
72
- config.after(:all, type: :feature) { Process.kill('INT', @process.pid) }
30
+ # See https://github.com/teamcapybara/capybara#selecting-the-driver for other options
31
+ Capybara.default_driver = :selenium_chrome_headless
32
+ Capybara.javascript_driver = :selenium_chrome_headless
73
33
  end
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: percy-capybara
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 4.0.0.pre.beta1
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-09-15 00:00:00.000000000 Z
11
+ date: 2019-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: percy-client
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '2.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '2.0'
27
- - !ruby/object:Gem::Dependency
28
- name: addressable
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: bundler
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +66,6 @@ dependencies:
94
66
  - - "~>"
95
67
  - !ruby/object:Gem::Version
96
68
  version: '2.4'
97
- - !ruby/object:Gem::Dependency
98
- name: poltergeist
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
69
  - !ruby/object:Gem::Dependency
112
70
  name: selenium-webdriver
113
71
  requirement: !ruby/object:Gem::Requirement
@@ -122,76 +80,6 @@ dependencies:
122
80
  - - ">="
123
81
  - !ruby/object:Gem::Version
124
82
  version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: webmock
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1'
139
- - !ruby/object:Gem::Dependency
140
- name: mime-types
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "<"
144
- - !ruby/object:Gem::Version
145
- version: '3'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "<"
151
- - !ruby/object:Gem::Version
152
- version: '3'
153
- - !ruby/object:Gem::Dependency
154
- name: faraday
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0.8'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0.8'
167
- - !ruby/object:Gem::Dependency
168
- name: httpclient
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '2.8'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '2.8'
181
- - !ruby/object:Gem::Dependency
182
- name: sprockets
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: 3.2.0
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: 3.2.0
195
83
  - !ruby/object:Gem::Dependency
196
84
  name: percy-style
197
85
  requirement: !ruby/object:Gem::Requirement
@@ -213,84 +101,28 @@ executables: []
213
101
  extensions: []
214
102
  extra_rdoc_files: []
215
103
  files:
104
+ - ".circleci/config.yml"
216
105
  - ".gitignore"
217
106
  - ".rspec"
218
107
  - ".rubocop.yml"
219
- - ".travis.yml"
220
108
  - ".yardopts"
221
109
  - CHANGELOG.md
110
+ - DEVELOPING.md
222
111
  - Gemfile
223
112
  - Guardfile
224
113
  - LICENSE
225
114
  - README.md
226
115
  - RELEASING.md
227
116
  - Rakefile
228
- - lib/percy/capybara.rb
229
- - lib/percy/capybara/anywhere.rb
230
- - lib/percy/capybara/client.rb
231
- - lib/percy/capybara/client/builds.rb
232
- - lib/percy/capybara/client/snapshots.rb
233
- - lib/percy/capybara/client/user_agent.rb
234
- - lib/percy/capybara/httpfetcher.rb
235
- - lib/percy/capybara/loaders/base_loader.rb
236
- - lib/percy/capybara/loaders/ember_cli_rails_loader.rb
237
- - lib/percy/capybara/loaders/filesystem_loader.rb
238
- - lib/percy/capybara/loaders/native_loader.rb
239
- - lib/percy/capybara/loaders/sprockets_loader.rb
240
- - lib/percy/capybara/rspec.rb
241
- - lib/percy/capybara/version.rb
117
+ - lib/environment.rb
118
+ - lib/percy.rb
119
+ - lib/version.rb
120
+ - package-lock.json
121
+ - package.json
242
122
  - percy-capybara.gemspec
243
- - spec/lib/percy/capybara/client/builds_spec.rb
244
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/assets/percy-admin.svg
245
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/index.html
246
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/percy-admin-public.svg
247
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/assets/percy-frontend.svg
248
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/index.html
249
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/percy-frontend-public.svg
250
- - spec/lib/percy/capybara/client/rails_public_test_data/large-file-skipped.png
251
- - spec/lib/percy/capybara/client/rails_public_test_data/percy-from-public.svg
252
- - spec/lib/percy/capybara/client/rails_public_test_data/symlink_to_images
253
- - spec/lib/percy/capybara/client/snapshots_spec.rb
254
- - spec/lib/percy/capybara/client/symlink_test_data/test.png
255
- - spec/lib/percy/capybara/client/test_data/assets/css/digested-f3420c6aee71c137a3ca39727052811bae84b2f37d898f4db242e20656a1579e.css
256
- - spec/lib/percy/capybara/client/test_data/assets/images/large-file-skipped.png
257
- - spec/lib/percy/capybara/client/test_data/css/base.css
258
- - spec/lib/percy/capybara/client/test_data/css/digested.css
259
- - spec/lib/percy/capybara/client/test_data/css/font.css
260
- - spec/lib/percy/capybara/client/test_data/css/imports.css
261
- - spec/lib/percy/capybara/client/test_data/css/level0-imports.css
262
- - spec/lib/percy/capybara/client/test_data/css/level1-imports.css
263
- - spec/lib/percy/capybara/client/test_data/css/level2-imports.css
264
- - spec/lib/percy/capybara/client/test_data/css/simple-imports.css
265
- - spec/lib/percy/capybara/client/test_data/css/source.css.map
266
- - spec/lib/percy/capybara/client/test_data/iframe.html
267
- - spec/lib/percy/capybara/client/test_data/images/bg-relative-to-root.png
268
- - spec/lib/percy/capybara/client/test_data/images/bg-relative.png
269
- - spec/lib/percy/capybara/client/test_data/images/bg-stacked.png
270
- - spec/lib/percy/capybara/client/test_data/images/img-relative-to-root.png
271
- - spec/lib/percy/capybara/client/test_data/images/img-relative.png
272
- - spec/lib/percy/capybara/client/test_data/images/percy.svg
273
- - spec/lib/percy/capybara/client/test_data/images/srcset-base.png
274
- - spec/lib/percy/capybara/client/test_data/images/srcset-first.png
275
- - spec/lib/percy/capybara/client/test_data/images/srcset-second.png
276
- - spec/lib/percy/capybara/client/test_data/index.html
277
- - spec/lib/percy/capybara/client/test_data/js/base.js
278
- - spec/lib/percy/capybara/client/test_data/test-css.html
279
- - spec/lib/percy/capybara/client/test_data/test-font.html
280
- - spec/lib/percy/capybara/client/test_data/test-iframe.html
281
- - spec/lib/percy/capybara/client/test_data/test-images.html
282
- - spec/lib/percy/capybara/client/test_data/test-localtest-me-images.html
283
- - spec/lib/percy/capybara/client/user_agent_spec.rb
284
- - spec/lib/percy/capybara/client_spec.rb
285
- - spec/lib/percy/capybara/http_fetcher_spec.rb
286
- - spec/lib/percy/capybara/loaders/base_loader_spec.rb
287
- - spec/lib/percy/capybara/loaders/ember_cli_rails_loader_spec.rb
288
- - spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb
289
- - spec/lib/percy/capybara/loaders/native_loader_spec.rb
290
- - spec/lib/percy/capybara/loaders/sprockets_loader_spec.rb
291
- - spec/lib/percy/capybara_spec.rb
123
+ - spec/lib/percy/environment_spec.rb
124
+ - spec/lib/percy/percy_spec.rb
292
125
  - spec/spec_helper.rb
293
- - spec/support/test_helpers.rb
294
126
  homepage: ''
295
127
  licenses:
296
128
  - MIT
@@ -306,64 +138,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
138
  version: '0'
307
139
  required_rubygems_version: !ruby/object:Gem::Requirement
308
140
  requirements:
309
- - - ">="
141
+ - - ">"
310
142
  - !ruby/object:Gem::Version
311
- version: '0'
143
+ version: 1.3.1
312
144
  requirements: []
313
145
  rubyforge_project:
314
- rubygems_version: 2.5.2
146
+ rubygems_version: 2.7.7
315
147
  signing_key:
316
148
  specification_version: 4
317
- summary: Percy::Capybara
149
+ summary: Percy
318
150
  test_files:
319
- - spec/lib/percy/capybara/client/builds_spec.rb
320
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/assets/percy-admin.svg
321
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/index.html
322
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/admin/percy-admin-public.svg
323
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/assets/percy-frontend.svg
324
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/index.html
325
- - spec/lib/percy/capybara/client/ember_test_data/ember-cli/frontend/percy-frontend-public.svg
326
- - spec/lib/percy/capybara/client/rails_public_test_data/large-file-skipped.png
327
- - spec/lib/percy/capybara/client/rails_public_test_data/percy-from-public.svg
328
- - spec/lib/percy/capybara/client/rails_public_test_data/symlink_to_images
329
- - spec/lib/percy/capybara/client/snapshots_spec.rb
330
- - spec/lib/percy/capybara/client/symlink_test_data/test.png
331
- - spec/lib/percy/capybara/client/test_data/assets/css/digested-f3420c6aee71c137a3ca39727052811bae84b2f37d898f4db242e20656a1579e.css
332
- - spec/lib/percy/capybara/client/test_data/assets/images/large-file-skipped.png
333
- - spec/lib/percy/capybara/client/test_data/css/base.css
334
- - spec/lib/percy/capybara/client/test_data/css/digested.css
335
- - spec/lib/percy/capybara/client/test_data/css/font.css
336
- - spec/lib/percy/capybara/client/test_data/css/imports.css
337
- - spec/lib/percy/capybara/client/test_data/css/level0-imports.css
338
- - spec/lib/percy/capybara/client/test_data/css/level1-imports.css
339
- - spec/lib/percy/capybara/client/test_data/css/level2-imports.css
340
- - spec/lib/percy/capybara/client/test_data/css/simple-imports.css
341
- - spec/lib/percy/capybara/client/test_data/css/source.css.map
342
- - spec/lib/percy/capybara/client/test_data/iframe.html
343
- - spec/lib/percy/capybara/client/test_data/images/bg-relative-to-root.png
344
- - spec/lib/percy/capybara/client/test_data/images/bg-relative.png
345
- - spec/lib/percy/capybara/client/test_data/images/bg-stacked.png
346
- - spec/lib/percy/capybara/client/test_data/images/img-relative-to-root.png
347
- - spec/lib/percy/capybara/client/test_data/images/img-relative.png
348
- - spec/lib/percy/capybara/client/test_data/images/percy.svg
349
- - spec/lib/percy/capybara/client/test_data/images/srcset-base.png
350
- - spec/lib/percy/capybara/client/test_data/images/srcset-first.png
351
- - spec/lib/percy/capybara/client/test_data/images/srcset-second.png
352
- - spec/lib/percy/capybara/client/test_data/index.html
353
- - spec/lib/percy/capybara/client/test_data/js/base.js
354
- - spec/lib/percy/capybara/client/test_data/test-css.html
355
- - spec/lib/percy/capybara/client/test_data/test-font.html
356
- - spec/lib/percy/capybara/client/test_data/test-iframe.html
357
- - spec/lib/percy/capybara/client/test_data/test-images.html
358
- - spec/lib/percy/capybara/client/test_data/test-localtest-me-images.html
359
- - spec/lib/percy/capybara/client/user_agent_spec.rb
360
- - spec/lib/percy/capybara/client_spec.rb
361
- - spec/lib/percy/capybara/http_fetcher_spec.rb
362
- - spec/lib/percy/capybara/loaders/base_loader_spec.rb
363
- - spec/lib/percy/capybara/loaders/ember_cli_rails_loader_spec.rb
364
- - spec/lib/percy/capybara/loaders/filesystem_loader_spec.rb
365
- - spec/lib/percy/capybara/loaders/native_loader_spec.rb
366
- - spec/lib/percy/capybara/loaders/sprockets_loader_spec.rb
367
- - spec/lib/percy/capybara_spec.rb
151
+ - spec/lib/percy/environment_spec.rb
152
+ - spec/lib/percy/percy_spec.rb
368
153
  - spec/spec_helper.rb
369
- - spec/support/test_helpers.rb