Skip to content

Commit 3cccb34

Browse files
committed
Restructure gemspec. Add rake-compiler as dev dependency
1 parent 4693d37 commit 3cccb34

File tree

2 files changed

+25
-16
lines changed

2 files changed

+25
-16
lines changed

Rakefile

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
require "bundler/gem_tasks"
2+
require "rake/extensiontask"
3+
4+
Rake::ExtensionTask.new("ft2-ruby") do |ext|
5+
ext.name = "ft2"
6+
end

ft2-ruby.gemspec

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# -*- encoding: utf-8 -*-
2-
require File.expand_path('../lib/ft2-ruby/version', __FILE__)
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'ft2-ruby/version'
35

4-
Gem::Specification.new do |gem|
5-
gem.authors = ["Paul Duncan"]
6-
gem.email = ["[email protected]"]
7-
gem.description = %q{FreeType2 bindings for Ruby 1.8 and 1.9}
8-
gem.summary = %q{FreeType2 bindings for Ruby}
9-
gem.homepage = "https://github.com/customink/ft2-ruby"
6+
Gem::Specification.new do |spec|
7+
spec.name = "ft2-ruby"
8+
spec.version = FT2::VERSION
9+
spec.authors = ["Paul Duncan", "Stafford Brunk"]
10+
11+
spec.description = %q{FreeType2 bindings for Ruby}
12+
spec.summary = %q{FreeType2 bindings for Ruby}
13+
spec.homepage = "https://github.com/customink/ft2-ruby"
14+
spec.license = "MIT"
1015

11-
gem.files = `git ls-files`.split($\)
12-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13-
gem.extensions = ['ext/ft2-ruby/extconf.rb']
14-
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15-
gem.name = "ft2-ruby"
16-
gem.require_paths = ["lib"]
17-
gem.version = FT2::VERSION
18-
gem.license = "MIT"
16+
spec.files = `git ls-files -z`.split("\x0")
17+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18+
spec.extensions = ['ext/ft2-ruby/extconf.rb']
19+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20+
spec.require_paths = ["lib"]
21+
22+
spec.add_development_dependency "rake-compiler"
1923
end

0 commit comments

Comments
 (0)