govuk_test 2.1.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/govuk_test.gemspec +2 -4
- data/lib/govuk_test/version.rb +1 -1
- data/lib/govuk_test.rb +0 -9
- metadata +11 -41
- data/lib/govuk_test/railtie.rb +0 -9
- data/lib/tasks/pact.rake +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1760cf9e42509c0c372e6f8f25557f2dda1e9b3d0ba66001367f464af3ba50ee
|
4
|
+
data.tar.gz: dccc2add0e0f1aac892067b84daf875b5b4dbd98c38993a12d9e7174fbb0d466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5b93fafdcdf84f53aa706a4b806f0005bb2b60c459efedbf128f28c46a1d1630d8f7b6b3da98b7cd3a205a26a0e979ece27b50aedf02f2534c0ceba31a7fc9
|
7
|
+
data.tar.gz: 4652051cb37a9299bc41c9a3cec6d3aef4c631bb3d2af548b1b4969806dd20ed40b133b24873675514097f8030e1fe3264209d1509705a6e6d29ea6d6f96050e
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,19 @@
|
|
7
7
|
useful summary for people upgrading their application, not a replication
|
8
8
|
of the commit log.
|
9
9
|
|
10
|
+
## 3.0.0
|
11
|
+
|
12
|
+
* BREAKING: Remove dependency on `webdrivers` gem. It's now expected that ChromeDriver is present on the underlying operating system. ([#43](https://github.com/alphagov/govuk_test/pull/43))
|
13
|
+
|
14
|
+
## 2.3.0
|
15
|
+
|
16
|
+
* Update brakeman to fix false positive warning ([#41](https://github.com/alphagov/govuk_test/pull/41))
|
17
|
+
|
18
|
+
## 2.2.0
|
19
|
+
|
20
|
+
* Remove pact test branch verify rake task
|
21
|
+
* Remove `pact` and `climate_control` dependencies
|
22
|
+
|
10
23
|
## 2.1.2
|
11
24
|
|
12
25
|
* Mark `climate_control` as a dependency (rather than dev dependency)
|
data/govuk_test.gemspec
CHANGED
@@ -22,15 +22,13 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_dependency "brakeman", "
|
25
|
+
spec.add_dependency "brakeman", ">= 5.0.2"
|
26
26
|
spec.add_dependency "capybara"
|
27
|
-
spec.add_dependency "climate_control"
|
28
|
-
spec.add_dependency "pact"
|
29
27
|
spec.add_dependency "puma"
|
30
28
|
spec.add_dependency "selenium-webdriver", ">= 3.142"
|
31
|
-
spec.add_dependency "webdrivers", ">= 4"
|
32
29
|
|
33
30
|
spec.add_development_dependency "bundler"
|
31
|
+
spec.add_development_dependency "climate_control"
|
34
32
|
spec.add_development_dependency "rake"
|
35
33
|
spec.add_development_dependency "rspec"
|
36
34
|
end
|
data/lib/govuk_test/version.rb
CHANGED
data/lib/govuk_test.rb
CHANGED
@@ -1,18 +1,9 @@
|
|
1
|
-
require "govuk_test/railtie" if defined?(Rails)
|
2
1
|
require "govuk_test/version"
|
3
2
|
|
4
3
|
require "capybara"
|
5
4
|
require "puma"
|
6
5
|
require "selenium-webdriver"
|
7
6
|
|
8
|
-
unless ENV["GOVUK_TEST_USE_SYSTEM_CHROMEDRIVER"]
|
9
|
-
require "webdrivers"
|
10
|
-
|
11
|
-
# This stop webdrivers doing a lazy check for new versions
|
12
|
-
# of chromedriver, which interferes with WebMock.disable_net_connect
|
13
|
-
Selenium::WebDriver::Chrome::Service.driver_path = Webdrivers::Chromedriver.update
|
14
|
-
end
|
15
|
-
|
16
7
|
module GovukTest
|
17
8
|
def self.configure
|
18
9
|
Capybara.register_driver :headless_chrome do |app|
|
metadata
CHANGED
@@ -1,59 +1,31 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brakeman
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '4.6'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '4.6'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: capybara
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
16
|
requirements:
|
38
17
|
- - ">="
|
39
18
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: climate_control
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
19
|
+
version: 5.0.2
|
48
20
|
type: :runtime
|
49
21
|
prerelease: false
|
50
22
|
version_requirements: !ruby/object:Gem::Requirement
|
51
23
|
requirements:
|
52
24
|
- - ">="
|
53
25
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
26
|
+
version: 5.0.2
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
28
|
+
name: capybara
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
58
30
|
requirements:
|
59
31
|
- - ">="
|
@@ -95,21 +67,21 @@ dependencies:
|
|
95
67
|
- !ruby/object:Gem::Version
|
96
68
|
version: '3.142'
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
70
|
+
name: bundler
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
100
72
|
requirements:
|
101
73
|
- - ">="
|
102
74
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
104
|
-
type: :
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
105
77
|
prerelease: false
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
107
79
|
requirements:
|
108
80
|
- - ">="
|
109
81
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
82
|
+
version: '0'
|
111
83
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
84
|
+
name: climate_control
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - ">="
|
@@ -170,9 +142,7 @@ files:
|
|
170
142
|
- bin/setup
|
171
143
|
- govuk_test.gemspec
|
172
144
|
- lib/govuk_test.rb
|
173
|
-
- lib/govuk_test/railtie.rb
|
174
145
|
- lib/govuk_test/version.rb
|
175
|
-
- lib/tasks/pact.rake
|
176
146
|
homepage: https://github.com/alphagov/govuk_test
|
177
147
|
licenses:
|
178
148
|
- MIT
|
@@ -192,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
162
|
- !ruby/object:Gem::Version
|
193
163
|
version: '0'
|
194
164
|
requirements: []
|
195
|
-
rubygems_version: 3.
|
165
|
+
rubygems_version: 3.0.3
|
196
166
|
signing_key:
|
197
167
|
specification_version: 4
|
198
168
|
summary: Test setup for GOV.UK
|
data/lib/govuk_test/railtie.rb
DELETED
data/lib/tasks/pact.rake
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require "govuk_test"
|
2
|
-
|
3
|
-
require "pact/tasks"
|
4
|
-
require "pact/tasks/task_helper"
|
5
|
-
|
6
|
-
namespace :pact do
|
7
|
-
desc "Verify the API contract for a specific branch"
|
8
|
-
task "verify:branch", [:branch_name] => :environment do |t, args|
|
9
|
-
abort "Please provide a branch name. eg rake #{t.name}[my_feature_branch]" unless args[:branch_name]
|
10
|
-
|
11
|
-
pact_version = args[:branch_name] == "master" ? args[:branch_name] : "branch-#{args[:branch_name]}"
|
12
|
-
|
13
|
-
ClimateControl.modify(GDS_API_ADAPTERS_PACT_VERSION: pact_version) do
|
14
|
-
Pact::TaskHelper.handle_verification_failure do
|
15
|
-
Pact::TaskHelper.execute_pact_verify
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|