-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruby-sanspleur.gemspec
More file actions
49 lines (41 loc) · 1.34 KB
/
ruby-sanspleur.gemspec
File metadata and controls
49 lines (41 loc) · 1.34 KB
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
43
44
45
46
47
48
49
require 'rubygems'
require 'date'
# ------- Version ----
# Read version from header file
version_header = File.read('ext/ruby_sanspleur/version.h')
match = version_header.match(/RUBY_SANSPLEUR_VERSION\s*["](\d.+)["]/)
raise(RuntimeError, "Could not determine RUBY_SANSPLEUR_VERSION") if not match
RUBY_SANSPLEUR_VERSION = match[1]
# ------- Default Package ----------
FILES = [
'Rakefile',
'README.rdoc',
'LICENSE',
'CHANGES']+Dir["{bin}/*"] +
Dir['{ext/ruby_sanspleur}/*.c'] +
Dir['{ext/ruby_sanspleur}/*.cpp'] +
Dir['{ext/ruby_sanspleur}/*.h'] +
Dir['{lib}/**/*'] +
Dir['{rails}/**/*']
# Default GEM Specification
default_spec = Gem::Specification.new do |spec|
spec.name = "ruby-sanspleur"
spec.homepage = "https://github.com/fotonauts/ruby-sanspleur"
spec.summary = "Ruby Sampler"
spec.description = "-"
spec.version = RUBY_SANSPLEUR_VERSION
spec.author = "-"
spec.email = "-"
spec.platform = Gem::Platform::RUBY
spec.require_path = "lib"
spec.bindir = "bin"
spec.executables = ["ruby-sanspleur"]
spec.extensions = ["ext/ruby_sanspleur/extconf.rb"]
spec.files = FILES.to_a
spec.required_ruby_version = '>= 1.8.4'
spec.rubyforge_project = "-"
spec.date = DateTime.now
spec.add_development_dependency 'os'
spec.add_development_dependency 'rake-compiler'
spec.extensions << "ext/ruby_sanspleur/extconf.rb"
end