-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathruby-clean-css.gemspec
31 lines (29 loc) · 1.18 KB
/
ruby-clean-css.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
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/ruby-clean-css/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ['Joseph Pearson']
gem.email = ['[email protected]']
gem.description = 'A Ruby interface to the Clean-CSS minifier for Node.'
gem.summary = 'Clean-CSS for Ruby.'
gem.homepage = 'https://github.com/joseph/ruby-clean-css'
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^test/})
gem.name = 'ruby-clean-css'
gem.require_paths = ['lib']
gem.version = RubyCleanCSS::VERSION
gem.add_dependency('therubyracer')
gem.add_dependency('commonjs')
gem.add_development_dependency('rake')
gem.add_development_dependency('webmock')
# Append all submodule files to the list of gem files.
gem_dir = File.expand_path(File.dirname(__FILE__)) + "/"
`git submodule --quiet foreach pwd`.split($\).each { |submodule_path|
Dir.chdir(submodule_path) {
submodule_relative_path = submodule_path.sub gem_dir, ""
`git ls-files`.split($\).each { |filename|
gem.files << "#{submodule_relative_path}/#{filename}"
}
}
}
end