-
Notifications
You must be signed in to change notification settings - Fork 6
/
logtail-rails.gemspec
63 lines (51 loc) · 2.41 KB
/
logtail-rails.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
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "logtail-rails/version"
Gem::Specification.new do |spec|
spec.name = "logtail-rails"
spec.version = Logtail::Integrations::Rails::VERSION
spec.authors = ["Better Stack"]
spec.email = ["[email protected]"]
spec.summary = %q{Better Stack Rails integration}
spec.homepage = "https://github.com/logtail/logtail-ruby-rails"
spec.license = "ISC"
spec.required_ruby_version = '>= 2.5.0'
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/logtail/logtail-ruby-rails"
spec.metadata["changelog_uri"] = "https://github.com/logtail/logtail-ruby-rails/blob/main/README.md"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_runtime_dependency "logtail", "~> 0.1"
spec.add_runtime_dependency "logtail-rack", "~> 0.1"
spec.add_runtime_dependency 'activerecord', '>= 5.0.0'
spec.add_runtime_dependency 'railties', '>= 5.0.0'
spec.add_runtime_dependency 'actionpack', '>= 5.0.0'
spec.add_development_dependency "bundler", ">= 0.0"
spec.add_development_dependency "rake", ">= 0.8"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "bundler-audit", ">= 0"
spec.add_development_dependency "rails_stdout_logging", ">= 0"
spec.add_development_dependency "rspec-its", ">= 0"
spec.add_development_dependency "timecop", ">= 0"
spec.add_development_dependency "webmock", "~> 2.3"
rails_version = 0
if ENV.key?('RAILS_VERSION')
rails_version = ENV['RAILS_VERSION'].to_f
elsif ENV.key?('BUNDLE_GEMFILE')
matches = File.basename(ENV['BUNDLE_GEMFILE'], '.gemfile').match(/-([0-9.]+)\z/)
rails_version = matches[1].to_f if matches
end
if RUBY_PLATFORM == "java"
spec.add_development_dependency('activerecord-jdbcsqlite3-adapter', '>= 0')
elsif rails_version >= 3 && rails_version < 6
spec.add_development_dependency('sqlite3', '1.3.13')
else
spec.add_development_dependency('sqlite3', '~> 1.5.0')
end
end