-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtimeit.gemspec
More file actions
30 lines (27 loc) · 1.01 KB
/
timeit.gemspec
File metadata and controls
30 lines (27 loc) · 1.01 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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'timeit/version'
Gem::Specification.new do |spec|
spec.name = "timeit"
spec.version = Timeit::VERSION
spec.authors = ["rainkinz"]
spec.email = ["brendan.grainger@gmail.com"]
spec.description = <<-TEXT
Very basic ruby timer for keeping track of the duration, splits and rate of
a block of code.
TEXT
spec.summary = %q{Track duration of a block of code}
spec.homepage = "https://github.com/rainkinz/timeit"
spec.license = "MIT"
spec.files = `git ls-files`.split($/)
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"]
if defined?(JRUBY_VERSION)
# For some reason the pure ruby version isn't found by Bundler
spec.platform = 'java'
else
spec.platform = Gem::Platform::RUBY
end
end