forked from alphagov/tech-docs-gem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
3,089 additions
and
245 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,10 +31,13 @@ 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" | ||
spec.add_dependency "haml", "< 6.0.0" | ||
spec.add_dependency "middleman", "~> 4.0" | ||
spec.add_dependency "middleman-autoprefixer", "~> 2.10.0" | ||
spec.add_dependency "middleman-compass", ">= 4.0.0" | ||
|
@@ -50,5 +54,5 @@ Gem::Specification.new do |spec| | |
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
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.