forked from paulfitz/daff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
daff.gemspec
22 lines (18 loc) · 795 Bytes
/
daff.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# coding: utf-8
# Relies on generated files - run "make rdist"
require 'json'
package = JSON.parse(IO.read("package.json"))
Gem::Specification.new do |spec|
spec.name = package["name"]
spec.version = package["version"]
spec.authors = ["James Smith", "Paul Fitzpatrick"]
spec.email = ["james@floppy.org.uk", "paul@robotrebuilt.com"]
spec.description = package["description"]
spec.summary = IO.read("README.md")
spec.homepage = package["url"]
spec.license = package["license"]
spec.files = Dir.glob("lib/**/*") + ["bin/daff.rb", "README.md"]
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
end