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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f378d699ec748a453ddd32bb832380ade5ea79443f1b7c924e87a7b222d1df59
4
- data.tar.gz: b2a57cd8d08cfd92b7b04d898c1cafbbabddce770658f6fdf45387d80fb311fa
3
+ metadata.gz: 1760cf9e42509c0c372e6f8f25557f2dda1e9b3d0ba66001367f464af3ba50ee
4
+ data.tar.gz: dccc2add0e0f1aac892067b84daf875b5b4dbd98c38993a12d9e7174fbb0d466
5
5
  SHA512:
6
- metadata.gz: 65d78123feab40eaecfc759d6e1902984bb786c1cfa6cfa3a3c248c1f9063557f4c8dd8046faa183f974ad1619959ad0d64055d3c3ebad3dfd76e46eae747d85
7
- data.tar.gz: 1a9b61be599ddc06ff86ad9197591c13bdb25af331da073b424a0f225dc40875d5e5bdea62de5e05214706eeddb37bb06841c3582390e2c65bdcad0114596d30
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", "~> 4.6"
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
@@ -1,3 +1,3 @@
1
1
  module GovukTest
2
- VERSION = "2.1.2"
2
+ VERSION = "3.0.0"
3
3
  end
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: 2.1.2
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: 2021-04-07 00:00:00.000000000 Z
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: '0'
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: '0'
26
+ version: 5.0.2
55
27
  - !ruby/object:Gem::Dependency
56
- name: pact
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: webdrivers
70
+ name: bundler
99
71
  requirement: !ruby/object:Gem::Requirement
100
72
  requirements:
101
73
  - - ">="
102
74
  - !ruby/object:Gem::Version
103
- version: '4'
104
- type: :runtime
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: '4'
82
+ version: '0'
111
83
  - !ruby/object:Gem::Dependency
112
- name: bundler
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.1.4
165
+ rubygems_version: 3.0.3
196
166
  signing_key:
197
167
  specification_version: 4
198
168
  summary: Test setup for GOV.UK
@@ -1,9 +0,0 @@
1
- require "govuk_test"
2
-
3
- module GovukTest
4
- class Railtie < Rails::Railtie
5
- rake_tasks do
6
- Dir[File.expand_path('../tasks/**/*.rake', File.dirname(__FILE__))].each { |f| load f }
7
- end
8
- end
9
- end
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