forked from newrelic/newrelic-ruby-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
newrelic_rpm.gemspec
80 lines (70 loc) · 2.76 KB
/
newrelic_rpm.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#-*- coding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'new_relic/version'
require 'new_relic/latest_changes'
Gem::Specification.new do |s|
s.name = "newrelic_rpm"
s.version = NewRelic::VERSION::STRING
s.required_ruby_version = '>= 1.8.7'
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
s.authors = [ "Jason Clark", "Tim Krajcar", "Jonan Scheffler", "Matthew Wear", "Ben Weintraub" ]
s.date = Time.now.strftime('%Y-%m-%d')
s.licenses = ['New Relic', 'MIT', 'Ruby']
s.description = <<-EOS
New Relic is a performance management system, developed by New Relic,
Inc (http://www.newrelic.com). New Relic provides you with deep
information about the performance of your web application as it runs
in production. The New Relic Ruby Agent is dual-purposed as a either a
Gem or plugin, hosted on
http://github.com/newrelic/rpm/
EOS
s.email = "support@newrelic.com"
s.executables = [ "mongrel_rpm", "newrelic_cmd", "newrelic", "nrdebug" ]
s.extra_rdoc_files = [
"CHANGELOG",
"LICENSE",
"README.md",
"GUIDELINES_FOR_CONTRIBUTING.md",
"newrelic.yml"
]
file_list = `git ls-files`.split
build_file_path = 'lib/new_relic/build.rb'
file_list << build_file_path if File.exist?(build_file_path)
s.files = file_list
s.homepage = "http://www.github.com/newrelic/rpm"
s.require_paths = ["lib"]
s.rubygems_version = Gem::VERSION
s.summary = "New Relic Ruby Agent"
s.add_development_dependency 'rake', '10.1.0'
s.add_development_dependency 'minitest', '~> 4.7.5'
s.add_development_dependency 'mocha', '~> 0.13.0'
s.add_development_dependency 'yard'
s.add_development_dependency 'rails', '~> 3.2.13'
s.add_development_dependency 'pry', '~> 0.9.12'
s.add_development_dependency 'hometown', '~> 0.2.5'
# Only let Guard run on newer Rubies
if RUBY_VERSION >= "1.9.3"
s.add_development_dependency 'guard'
s.add_development_dependency 'guard-minitest'
s.add_development_dependency 'rb-fsevent'
end
# version lock down for i18n that is compatible with Ruby 1.8.7
s.add_development_dependency 'i18n', '0.6.11'
if RUBY_PLATFORM == 'java'
s.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
s.add_development_dependency 'jruby-openssl'
else
s.add_development_dependency 'sqlite3'
end
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
s.add_development_dependency 'rubysl'
s.add_development_dependency 'racc'
end
# Only sign with our private key if you can find it
signing_key_path = File.expand_path('~/.ssh/newrelic_rpm-private_key.pem')
if File.exists?(signing_key_path)
s.signing_key = signing_key_path
s.cert_chain = ['gem-public_cert.pem']
end
end