Sha256: 93c7fd150ac55f4e6f4267839eeb4c13c9cc5a29d6a15820d6f996dcea362fc5
Contents?: true
Size: 1.82 KB
Versions: 19
Compression:
Stored size: 1.82 KB
Contents
$:.push File.expand_path("../lib", __FILE__) require "govuk_frontend_toolkit/version" Gem::Specification.new do |s| s.name = "govuk_frontend_toolkit" s.version = GovUKFrontendToolkit::VERSION s.summary = 'Tools for building frontend applications' s.authors = ['Bradley Wright'] s.email = 'bradley.wright@digital.cabinet-office.gov.uk' s.homepage = 'https://github.com/alphagov/govuk_frontend_toolkit' s.license = 'MIT' s.add_dependency "rails", ">= 3.1.0" s.add_dependency "sass", ">= 3.2.0" s.add_development_dependency "gem_publisher", "1.3.1" s.add_development_dependency "rake", "0.9.2.2" s.require_paths = ["lib", "app"] s.files = `git ls-files`.split($\) # We need to include the files from the submodules, example from: # http://somethingaboutcode.wordpress.com/2012/09/27/include-files-from-git-submodules-when-building-a-ruby-gem/ gemroot_path = `pwd`.strip # get an array of submodule dirs by executing 'pwd' inside each submodule `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| # for each submodule, change working directory to that submodule Dir.chdir(submodule_path) do # issue git ls-files in submodule's directory submodule_files = `git ls-files`.split($\) # prepend the submodule path to create absolute file paths submodule_files_fullpaths = submodule_files.map do |filename| "#{submodule_path}/#{filename}" end # remove leading path parts to get paths relative to the gem's root dir # (this assumes, that the gemspec resides in the gem's root dir) submodule_files_paths = submodule_files_fullpaths.map do |filename| filename.gsub "#{gemroot_path}/", "" end # add relative paths to gem.files s.files += submodule_files_paths end end end
Version data entries
19 entries across 19 versions & 1 rubygems