1- # coding: utf-8
2- lib = File . expand_path ( "../lib" , __FILE__ )
1+ require "English"
2+
3+ lib = File . expand_path ( "lib" , __dir__ )
34$LOAD_PATH. unshift ( lib ) unless $LOAD_PATH. include? ( lib )
45require "govuk_tech_docs/version"
56
67`npm install`
7- abort ' npm install failed' unless $? . success?
8+ abort " npm install failed" unless $CHILD_STATUS . success?
89
9- unless File . exist? ( ' node_modules/govuk-frontend/govuk/all.scss' )
10- abort ' govuk-frontend npm package not installed'
10+ unless File . exist? ( " node_modules/govuk-frontend/govuk/all.scss" )
11+ abort " govuk-frontend npm package not installed"
1112end
1213
1314Gem ::Specification . new do |spec |
@@ -16,8 +17,8 @@ Gem::Specification.new do |spec|
1617 spec . authors = [ "Government Digital Service" ]
1718 spec . email = [ "govuk-dev@digital.cabinet-office.gov.uk" ]
1819
19- spec . summary = %q{ Gem to distribute the GOV.UK Tech Docs Template}
20- spec . description = %q{ Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem for the project.}
20+ spec . summary = " Gem to distribute the GOV.UK Tech Docs Template"
21+ spec . description = " Gem to distribute the GOV.UK Tech Docs Template. See https://github.com/alphagov/tech-docs-gem for the project."
2122 spec . homepage = "https://github.com/alphagov/tech-docs-gem"
2223 spec . license = "MIT"
2324
@@ -30,7 +31,9 @@ Gem::Specification.new do |spec|
3031
3132 spec . bindir = "exe"
3233 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
33- spec . require_paths = [ "lib" ]
34+ spec . require_paths = %w[ lib ]
35+
36+ spec . required_ruby_version = ">= 2.7.0"
3437
3538 spec . add_dependency "autoprefixer-rails" , "~> 10.2"
3639 spec . add_dependency "chronic" , "~> 0.10.2"
0 commit comments