grpc 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/grpc/extconf.rb +19 -28
- data/grpc.gemspec +1 -1
- data/lib/grpc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 221227b572c4b9f61daafa02b2b58360b049af09
|
4
|
+
data.tar.gz: 2e9a6e8f6aef5ef48f1afc87987ecbf53c080301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b48e42e01ffa5c924308fa0fba2f891b131f94dbf257cdb1b391b46ed7087faeae72b1c1a8e7823cf46c20eedddf5191405b0ef62e8edbf699dd8fc09d8fc01
|
7
|
+
data.tar.gz: 79144378a34d9a4314964faa7735b30b1119ce73fed524b130b3f36fb8d6a764991c2d06bd20fc0dabbacc7db500f3689848e642385f161634feef47d2458f0d
|
data/ext/grpc/extconf.rb
CHANGED
@@ -32,29 +32,6 @@ require 'mkmf'
|
|
32
32
|
LIBDIR = RbConfig::CONFIG['libdir']
|
33
33
|
INCLUDEDIR = RbConfig::CONFIG['includedir']
|
34
34
|
|
35
|
-
if ENV.key? 'GRPC_ROOT'
|
36
|
-
GRPC_ROOT = ENV['GRPC_ROOT']
|
37
|
-
else
|
38
|
-
grpc_root = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
|
39
|
-
if File.exist?(File.join(grpc_root, 'include/grpc/grpc.h'))
|
40
|
-
GRPC_ROOT = grpc_root
|
41
|
-
else
|
42
|
-
GRPC_ROOT = nil
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
if ENV.key? 'CONFIG'
|
47
|
-
GRPC_CONFIG = ENV['CONFIG']
|
48
|
-
else
|
49
|
-
GRPC_CONFIG = 'opt'
|
50
|
-
end
|
51
|
-
|
52
|
-
if (ENV.key? 'GRPC_LIB_DIR') && (!GRPC_ROOT.nil?)
|
53
|
-
GRPC_LIB_DIR = File.join(GRPC_ROOT, ENV['GRPC_LIB_DIR'])
|
54
|
-
else
|
55
|
-
GRPC_LIB_DIR = File.join(File.join(GRPC_ROOT, 'libs'), GRPC_CONFIG)
|
56
|
-
end
|
57
|
-
|
58
35
|
HEADER_DIRS = [
|
59
36
|
# Search /opt/local (Mac source install)
|
60
37
|
'/opt/local/include',
|
@@ -77,12 +54,26 @@ LIB_DIRS = [
|
|
77
54
|
LIBDIR
|
78
55
|
]
|
79
56
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
57
|
+
# Check to see if GRPC_ROOT is defined or available
|
58
|
+
grpc_root = ENV['GRPC_ROOT']
|
59
|
+
if grpc_root.nil?
|
60
|
+
r = File.expand_path(File.join(File.dirname(__FILE__), '../../../..'))
|
61
|
+
grpc_root = r if File.exist?(File.join(r, 'include/grpc/grpc.h'))
|
62
|
+
end
|
63
|
+
|
64
|
+
# When grpc_root is available attempt to build the grpc core.
|
65
|
+
unless grpc_root.nil?
|
66
|
+
grpc_config = ENV['GRPC_CONFIG'] || 'opt'
|
67
|
+
if ENV.key?('GRPC_LIB_DIR')
|
68
|
+
grpc_lib_dir = File.join(grpc_root, ENV['GRPC_LIB_DIR'])
|
69
|
+
else
|
70
|
+
grpc_lib_dir = File.join(File.join(grpc_root, 'libs'), grpc_config)
|
71
|
+
end
|
72
|
+
unless File.exist?(File.join(grpc_lib_dir, 'libgrpc.a'))
|
73
|
+
system("make -C #{grpc_root} static_c CONFIG=#{grpc_config}")
|
85
74
|
end
|
75
|
+
HEADER_DIRS.unshift File.join(grpc_root, 'include')
|
76
|
+
LIB_DIRS.unshift grpc_lib_dir
|
86
77
|
end
|
87
78
|
|
88
79
|
def crash(msg)
|
data/grpc.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.license = 'BSD-3-Clause'
|
15
15
|
|
16
16
|
s.required_ruby_version = '>= 2.0.0'
|
17
|
-
s.requirements << 'libgrpc ~> 0.
|
17
|
+
s.requirements << 'libgrpc ~> 0.9.1 needs to be installed'
|
18
18
|
|
19
19
|
s.files = `git ls-files`.split("\n")
|
20
20
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
data/lib/grpc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
- !ruby/object:Gem::Version
|
260
260
|
version: '0'
|
261
261
|
requirements:
|
262
|
-
- libgrpc ~> 0.
|
262
|
+
- libgrpc ~> 0.9.1 needs to be installed
|
263
263
|
rubyforge_project:
|
264
264
|
rubygems_version: 2.4.3
|
265
265
|
signing_key:
|