-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from alphagov/ldeb-support-ruby-3.x
Add tests for Ruby 3.x support
- Loading branch information
Showing
22 changed files
with
2,918 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
14 | ||
18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in govuk_tech_docs.gemspec | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path("../lib", __FILE__) | ||
require "English" | ||
|
||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "govuk_tech_docs/version" | ||
|
||
`npm install` | ||
abort 'npm install failed' unless $?.success? | ||
abort "npm install failed" unless $CHILD_STATUS.success? | ||
|
||
unless File.exist?('node_modules/govuk-frontend/govuk/all.scss') | ||
abort 'govuk-frontend npm package not installed' | ||
unless File.exist?("node_modules/govuk-frontend/govuk/all.scss") | ||
abort "govuk-frontend npm package not installed" | ||
end | ||
|
||
Gem::Specification.new do |spec| | ||
|
@@ -16,8 +17,8 @@ Gem::Specification.new do |spec| | |
spec.authors = ["Government Digital Service"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = %q{Gem to distribute the GOV.UK Tech Docs Template} | ||
spec.description = %q{Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem for the project.} | ||
spec.summary = "Gem to distribute the GOV.UK Tech Docs Template" | ||
spec.description = "Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem for the project." | ||
spec.homepage = "https://github.com/alphagov/tech-docs-gem" | ||
spec.license = "MIT" | ||
|
||
|
@@ -30,7 +31,9 @@ Gem::Specification.new do |spec| | |
|
||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
spec.require_paths = %w[lib] | ||
|
||
spec.required_ruby_version = ">= 2.7.0" | ||
|
||
spec.add_dependency "autoprefixer-rails", "~> 10.2" | ||
spec.add_dependency "chronic", "~> 0.10.2" | ||
|
@@ -44,11 +47,12 @@ Gem::Specification.new do |spec| | |
spec.add_dependency "nokogiri" | ||
spec.add_dependency "openapi3_parser", "~> 0.9.0" | ||
spec.add_dependency "redcarpet", "~> 3.5.1" | ||
spec.add_dependency "haml", "< 6.0.0" | ||
|
||
spec.add_development_dependency "byebug" | ||
spec.add_development_dependency "capybara", "~> 3.32" | ||
spec.add_development_dependency "jasmine", "~> 3.5.0" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec", "~> 3.9.0" | ||
spec.add_development_dependency "rubocop-govuk", "~> 3.5.0" | ||
spec.add_development_dependency "rubocop-govuk", "~> 4.10.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.