This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgrafana.gemspec
75 lines (63 loc) · 2.61 KB
/
grafana.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'grafana/version'
Gem::Specification.new do |spec|
spec.name = 'grafana'
spec.version = Grafana::VERSION
spec.date = '2020-02-28'
spec.authors = ['Bodo Schulz']
spec.email = ['[email protected]']
spec.summary = %q{Grafana HTTP API Wrapper}
spec.description = %q{A simple wrapper for the Grafana HTTP API}
spec.homepage = 'http://github.com/bodsch/ruby-grafana'
spec.license = 'MIT'
spec.files = Dir[
'README.md',
'LICENSE',
'lib/**/*',
'doc/*'
]
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
# if spec.respond_to?(:metadata)
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
# else
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
# end
# spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# spec.bindir = "exe"
# spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
# spec.add_runtime_dependency 'json', '~> 1.7'
# spec.add_runtime_dependency 'rest-client', '~> 1.8'
spec.add_dependency('rest-client', '~> 2.0')
spec.add_dependency('json', '~> 2.1')
begin
if( RUBY_VERSION >= '2.0' )
spec.required_ruby_version = '~> 2.0'
elsif( RUBY_VERSION <= '2.1' )
spec.required_ruby_version = '~> 2.1'
elsif( RUBY_VERSION <= '2.2' )
spec.required_ruby_version = '~> 2.2'
elsif( RUBY_VERSION <= '2.3' )
spec.required_ruby_version = '~> 2.3'
end
spec.add_dependency('ruby_dig', '~> 0') if( RUBY_VERSION < '2.3' )
rescue => e
warn "#{$0}: #{e}"
exit!
end
spec.add_development_dependency('rake', ">= 12.3.3")
spec.add_development_dependency('rake-notes', '~> 0')
spec.add_development_dependency('rubocop', '~> 0.49.0')
spec.add_development_dependency('rubocop-checkstyle_formatter', '~> 0')
spec.add_development_dependency('rspec', '~> 0')
spec.add_development_dependency('rspec_junit_formatter', '~> 0')
spec.add_development_dependency('rspec-nc', '~> 0')
spec.add_development_dependency('guard', '~> 0')
spec.add_development_dependency('guard-rspec', '~> 0')
spec.add_development_dependency('pry', '~> 0')
spec.add_development_dependency('pry-remote', '~> 0')
spec.add_development_dependency('pry-nav', '~> 0')
end