# -*- encoding: utf-8 -*- require File.dirname(__FILE__) + "/lib/code/version" Gem::Specification.new do |gem| gem.name = "code" gem.version = Code::VERSION gem.summary = "Displays a method's code." gem.description = "Displays a method's code (from source or docs). Supports native C source when core_docs gem is available" gem.authors = ["Jan Lelis"] gem.email = ["hi@ruby.consulting"] gem.homepage = "https://github.com/janlelis/code" gem.license = "MIT" gem.files = Dir['{**/}{.*,*}'].select{ |path| File.file?(path) && path !~ /^pkg/ } gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) gem.require_paths = ['lib'] gem.metadata = { "rubygems_mfa_required" => "true" } gem.required_ruby_version = ">= 2.0", "< 4.0" gem.add_dependency "method_source", ">= 0.9", "< 2.0" gem.add_dependency "coderay", "~> 1.1" end