Sha256: 350e6e1cba019cebe457654ad0ce0a8ad3f923ee2f39d59db2c2f009d926d98d

Contents?: true

Size: 1.91 KB

Versions: 1

Compression:

Stored size: 1.91 KB

Contents

# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'k4compiler/version'

Gem::Specification.new do |spec|
  spec.name          = "k4compiler"
  spec.version       = K4compiler::VERSION
  spec.authors       = ["Shinichirow Kamito"]
  spec.email         = ["updoor@gmail.com"]
  spec.description   = "k4 compiler"
  spec.summary       = "k4 compiler"
  spec.homepage      = "https://github.com/kamito/k4compiler"
  spec.license       = "MIT"

  spec.files         = `git ls-files`.split($/)
  # 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

  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"]

  spec.add_dependency "activesupport", "~> 3.2"
  spec.add_dependency "sass"
  spec.add_dependency "redcarpet"

  spec.add_development_dependency "bundler", "~> 1.3"
  spec.add_development_dependency "rake"
  spec.add_development_dependency "rspec"
  spec.add_development_dependency "guard-rspec"

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
k4compiler-0.0.1 k4compiler.gemspec