forked from alphagov/tech-docs-gem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
govuk_tech_docs.gemspec
64 lines (52 loc) · 2.79 KB
/
govuk_tech_docs.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 $CHILD_STATUS.success?
unless File.exist?("node_modules/govuk-frontend/dist/govuk/all.scss")
abort "govuk-frontend npm package not installed"
end
Gem::Specification.new do |spec|
spec.name = "govuk_tech_docs"
spec.version = GovukTechDocs::VERSION
spec.authors = ["Government Digital Service"]
spec.email = ["govuk-dev@digital.cabinet-office.gov.uk"]
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"
files_in_git = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# Include assets from GOV.UK Frontend library in the distributed gem
govuk_frontend_assets = Dir["node_modules/govuk-frontend/**/*.{scss,js,mjs,woff,woff2,png,svg,ico}", "node_modules/govuk-frontend/dist/govuk/assets/manifest.json"]
spec.files = files_in_git + govuk_frontend_assets
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w[lib]
spec.required_ruby_version = ">= 3.1.0"
spec.add_dependency "autoprefixer-rails", "~> 10.2"
spec.add_dependency "base64" # TODO: remove once middleman-sprockets declares this itself.
spec.add_dependency "bigdecimal" # TODO: remove once activesupport declares this itself.
spec.add_dependency "chronic", "~> 0.10.2"
spec.add_dependency "csv" # TODO: remove once tilt declares this itself.
spec.add_dependency "haml", "~> 6.0"
spec.add_dependency "middleman", "~> 4.0"
spec.add_dependency "middleman-autoprefixer", "~> 2.10"
spec.add_dependency "middleman-compass", "~> 4.0"
spec.add_dependency "middleman-livereload"
spec.add_dependency "middleman-search-gds"
spec.add_dependency "middleman-sprockets", "~> 4.0.0"
spec.add_dependency "middleman-syntax", "~> 3.4"
spec.add_dependency "mutex_m" # TODO: remove once activesupport declares this itself.
spec.add_dependency "nokogiri"
spec.add_dependency "openapi3_parser", "~> 0.9.0"
spec.add_dependency "redcarpet", "~> 3.6"
spec.add_dependency "terser", "~> 1.2.3"
spec.add_dependency "sassc-embedded", "~> 1.78.0"
spec.add_development_dependency "byebug"
spec.add_development_dependency "capybara", "~> 3.32"
spec.add_development_dependency "jasmine", "~> 3.5"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.9"
spec.add_development_dependency "rubocop-govuk", "~> 4.10"
end