forked from rubyists/freeswitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (30 loc) · 1.4 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'rake/clean'
require "rubygems"
require "./lib/fsr"
require "pathname"
ENV["RUBYLIB"] = ".:#{ENV['RUBYLIB']}"
PROJECT_COPYRIGHT = Pathname(__FILE__).dirname.join("License.txt").read
PROJECT_README = Pathname(__FILE__).dirname.join("README").expand_path.to_s
PROJECT_FILES = %x{git ls-files}.split
RELEASE_FILES = PROJECT_FILES.reject { |f| f.match(/^(?:contrib)(?:\/|$)/) }
GEM_FILES = RELEASE_FILES.reject { |f| f.match(/^(?:spec)(?:\/|$)/) }
PROJECT_SPECS = (RELEASE_FILES - GEM_FILES).reject { |d| d.match(/(?:helper.rb)$/) }
GEM_FILES << "spec/helper.rb" if Pathname("spec/helper.rb").file?
GEM_FILES << "spec/fsr_listener_helper.rb" if Pathname("spec/helper.rb").file?
GEMSPEC = Gem::Specification.new do |spec|
spec.name = "freeswitcher"
spec.version = (ENV["FSR_VERSION"] || FSR::VERSION).dup
spec.summary = 'A library for interacting with the "FreeSWITCH":http://freeswitch.org telephony platform'
spec.authors = ["Jayson Vaughn", "Michael Fellinger", "Kevin Berry", "TJ Vanderpoel"]
spec.email = "[email protected]"
spec.homepage = "http://code.rubyists.com/projects/fs"
spec.add_dependency "eventmachine"
spec.files = GEM_FILES
spec.test_files = PROJECT_SPECS
spec.require_path = "lib"
spec.description = spec.summary
spec.rubyforge_project = "freeswitcher"
spec.post_install_message = File.read(PROJECT_README)
end
import(*Dir['tasks/*rake'])
task :default => :bacon