Sha256: 3a35c542a9502315e173416dc9ea19b3a93176f75563270d0619c21946fdf70f
Contents?: true
Size: 1.96 KB
Versions: 11
Compression:
Stored size: 1.96 KB
Contents
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'snappy/version' Gem::Specification.new do |spec| spec.name = "snappy" spec.version = Snappy::VERSION spec.authors = ["miyucy"] spec.email = ["fistfvck@gmail.com"] spec.description = %q{libsnappy binding for Ruby} spec.summary = %q{libsnappy binding for Ruby} spec.homepage = "http://github.com/miyucy/snappy" spec.license = "MIT" spec.files = `git ls-files`.split($/) 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"] if defined?(JRUBY_VERSION) spec.files += %w[lib/snappy_ext.jar] spec.platform = 'java' spec.add_dependency 'snappy-jars', '~> 1.1.0' else spec.extensions = ["ext/extconf.rb"] end spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" spec.add_development_dependency "minitest" # get an array of submodule dirs by executing 'pwd' inside each submodule `git submodule --quiet foreach pwd`.split($\).each do |submodule_path| # for each submodule, change working directory to that submodule Dir.chdir(submodule_path) do # issue git ls-files in submodule's directory submodule_files = `git ls-files`.split($\) # prepend the submodule path to create absolute file paths submodule_files_fullpaths = submodule_files.map do |filename| "#{submodule_path}/#{filename}" end # remove leading path parts to get paths relative to the gem's root dir # (this assumes, that the gemspec resides in the gem's root dir) submodule_files_paths = submodule_files_fullpaths.map do |filename| filename.gsub "#{File.dirname(__FILE__)}/", "" end # add relative paths to gem.files spec.files += submodule_files_paths end end end
Version data entries
11 entries across 11 versions & 1 rubygems