Skip to content

Commit

Permalink
Restructure gemspec. Add rake-compiler as dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wingrunr21 committed Dec 18, 2015
1 parent 4693d37 commit 3cccb34
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 16 deletions.
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
require "bundler/gem_tasks"
require "rake/extensiontask"

Rake::ExtensionTask.new("ft2-ruby") do |ext|
ext.name = "ft2"
end
36 changes: 20 additions & 16 deletions ft2-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/ft2-ruby/version', __FILE__)
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'ft2-ruby/version'

Gem::Specification.new do |gem|
gem.authors = ["Paul Duncan"]
gem.email = ["[email protected]"]
gem.description = %q{FreeType2 bindings for Ruby 1.8 and 1.9}
gem.summary = %q{FreeType2 bindings for Ruby}
gem.homepage = "https://github.com/customink/ft2-ruby"
Gem::Specification.new do |spec|
spec.name = "ft2-ruby"
spec.version = FT2::VERSION
spec.authors = ["Paul Duncan", "Stafford Brunk"]
spec.email = ["[email protected]", "[email protected]"]
spec.description = %q{FreeType2 bindings for Ruby}
spec.summary = %q{FreeType2 bindings for Ruby}
spec.homepage = "https://github.com/customink/ft2-ruby"
spec.license = "MIT"

gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.extensions = ['ext/ft2-ruby/extconf.rb']
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "ft2-ruby"
gem.require_paths = ["lib"]
gem.version = FT2::VERSION
gem.license = "MIT"
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.extensions = ['ext/ft2-ruby/extconf.rb']
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.add_development_dependency "rake-compiler"
end

0 comments on commit 3cccb34

Please sign in to comment.