forked from ruby-prof/ruby-prof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruby-prof.gemspec
60 lines (53 loc) · 2.27 KB
/
ruby-prof.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- encoding: utf-8 -*-
# Read version from header file
version_header = File.read(File.expand_path('../ext/ruby_prof/version.h', __FILE__))
#match = version_header.match(/RUBY_PROF_VERSION\s*"(\.+)"/)
match = version_header.match(/RUBY_PROF_VERSION\s*"([^"]+)"/)
raise(RuntimeError, "Could not determine RUBY_PROF_VERSION") if not match
RUBY_PROF_VERSION = "#{match[1]}"
Gem::Specification.new do |spec|
spec.name = "ruby-prof"
spec.homepage = "http://rubyforge.org/projects/ruby-prof/"
spec.summary = "Fast Ruby profiler"
spec.description = <<-EOF
ruby-prof is a fast code profiler for Ruby. It is a C extension and
therefore is many times faster than the standard Ruby profiler. It
supports both flat and graph profiles. For each method, graph profiles
show how long the method ran, which methods called it and which
methods it called. RubyProf generate both text and html and can output
it to standard out or to a file.
EOF
spec.version = RUBY_PROF_VERSION
spec.author = "Shugo Maeda, Charlie Savage, Roger Pack, Stefan Kaes"
spec.platform = Gem::Platform::RUBY
spec.require_path = "lib"
spec.bindir = "bin"
spec.executables = ["ruby-prof"]
spec.extensions = ["ext/ruby_prof/extconf.rb"]
spec.files = Dir['CHANGES',
'LICENSE',
'Rakefile',
'README.rdoc',
'ruby-prof.gemspec',
'bin/ruby-prof',
'doc/**/*',
'examples/*',
'ext/ruby_prof/extconf.rb',
'ext/ruby_prof/*.c',
'ext/ruby_prof/*.h',
'ext/ruby_prof/vc/*.sln',
'ext/ruby_prof/vc/*.vcxproj',
'lib/ruby-prof.rb',
'lib/unprof.rb',
'lib/ruby-prof/*.rb',
'lib/ruby-prof/images/*.png',
'lib/ruby-prof/printers/*.rb',
'test/*.rb']
spec.test_files = Dir["test/test_*.rb"]
spec.required_ruby_version = '>= 1.8.7'
spec.date = DateTime.now
spec.homepage = 'https://github.com/rdp/ruby-prof'
spec.add_development_dependency('minitest')
spec.add_development_dependency('rake-compiler')
end