This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
sipatra.gemspec
42 lines (34 loc) · 1.58 KB
/
sipatra.gemspec
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
38
39
40
41
42
# -*- encoding: utf-8 -*-
require 'rexml/document'
$:.push File.expand_path("../lib", __FILE__)
sipatra_jar_version = File::open("pom.xml") do |f|
REXML::Document::new(f).elements["project/version"].text
end
sipatra_package_name = "sipatra-#{sipatra_jar_version}"
sipatra_jar_name = "#{sipatra_package_name}.jar"
sipatra_gem_files = Dir["src/main/resources/**/*.rb"].to_a.map do |file|
file.gsub(%r{src/main/resources}, "lib")
end
sipatra_gem_files.concat Dir["lib/sipatra/*"]
sipatra_gem_files << "lib/sipatra.rb"
sipatra_gem_files << "lib/sipatra/#{sipatra_jar_name}"
sipatra_gem_files << "lib/sipatra-jars.rb"
sipatra_version = sipatra_jar_version.gsub(/-SNAPSHOT/, '')
Gem::Specification.new do |s|
s.name = "sipatra"
s.version = sipatra_version
s.authors = ["Dominique Broeglin", "Jean-Baptiste Morin"]
s.email = ["[email protected]", "[email protected]"]
s.homepage = "http://confluence.cipango.org/display/DOC/Sipatra"
s.summary = %q{DSL for easy writting of SIP Servlet applications}
s.description = %q{Sipatra is a Ruby DSL for easy writting of SIP Servlet applications}
s.rubyforge_project = "sipatra"
s.files = sipatra_gem_files
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select { |filename|
%r{test/integration/sipapp/WEB-INF/(lib|classes)} !~ filename
}
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_development_dependency "rspec", "~> 2.9.0"
s.add_development_dependency "vagrant", "~> 1.0.2"
end