forked from ruby-protobuf/protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotobuf.gemspec
57 lines (49 loc) · 2.36 KB
/
protobuf.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
# encoding: UTF-8
$LOAD_PATH.push ::File.expand_path("../lib", __FILE__)
require "protobuf/version"
::Gem::Specification.new do |s|
s.name = 'protobuf'
s.version = ::Protobuf::VERSION
s.date = ::Time.now.strftime('%Y-%m-%d')
s.license = 'MIT'
s.authors = ['BJ Neilsen', 'Brandon Dewitt', 'Devin Christensen', 'Adam Hutchison']
s.homepage = 'https://github.com/localshred/protobuf'
s.summary = "Google Protocol Buffers serialization and RPC implementation for Ruby."
s.description = s.summary
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
s.require_paths = ["lib"]
# Hack, as Rails 5 requires Ruby version >= 2.2.2.
active_support_max_version = "< 5" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.2.2")
s.add_dependency "activesupport", '>= 3.2', active_support_max_version
s.add_dependency 'middleware'
s.add_dependency 'thor'
s.add_dependency 'thread_safe'
s.add_development_dependency 'benchmark-ips'
s.add_development_dependency 'ffi-rzmq'
s.add_development_dependency 'rake', '< 11.0' # Rake 11.0.1 removes the last_comment method which rspec-core (< 3.4.4) uses
s.add_development_dependency 'rspec', '>= 3.0'
s.add_development_dependency "rubocop", "~> 0.38.0"
s.add_development_dependency "parser", "2.3.0.6" # Locked this down since 2.3.0.7 causes issues. https://github.com/bbatsov/rubocop/pull/2984
s.add_development_dependency 'simplecov'
s.add_development_dependency 'timecop'
s.add_development_dependency 'yard'
# debuggers only work in MRI
if RUBY_ENGINE.to_sym == :ruby
# we don't support MRI < 1.9.3
pry_debugger = if RUBY_VERSION < '2.0.0'
'pry-debugger'
else
'pry-byebug'
end
s.add_development_dependency pry_debugger
s.add_development_dependency 'pry-stack_explorer'
s.add_development_dependency 'varint'
s.add_development_dependency 'ruby-prof'
elsif RUBY_PLATFORM =~ /java/i
s.add_development_dependency 'fast_blank_java'
s.add_development_dependency 'pry'
end
end