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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38b1655a47e1edbbd0d48d73e566c37b1c7241dc
4
- data.tar.gz: f6a98f39e718c84decc81af8cc6638e8cdac43d9
3
+ metadata.gz: 221227b572c4b9f61daafa02b2b58360b049af09
4
+ data.tar.gz: 2e9a6e8f6aef5ef48f1afc87987ecbf53c080301
5
5
  SHA512:
6
- metadata.gz: 241414922a1e18924af518dba9bb5aa39bf7f526392f911da83c2d94aee5c1d1ae60c6435fef0a45e8dc8098128fc2bc6d8f609434db9944d0164f57ac48dd0b
7
- data.tar.gz: 9e85cb271539ab885332570b9b38339a354c087a92b5ebc7a397439a29dc514197f5ef88aa74fa3bb9b04aab5a15a6d5f59314b0c847fa58665dcb664a7d4750
6
+ metadata.gz: 3b48e42e01ffa5c924308fa0fba2f891b131f94dbf257cdb1b391b46ed7087faeae72b1c1a8e7823cf46c20eedddf5191405b0ef62e8edbf699dd8fc09d8fc01
7
+ data.tar.gz: 79144378a34d9a4314964faa7735b30b1119ce73fed524b130b3f36fb8d6a764991c2d06bd20fc0dabbacc7db500f3689848e642385f161634feef47d2458f0d
@@ -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
- unless GRPC_ROOT.nil?
81
- HEADER_DIRS.unshift File.join(GRPC_ROOT, 'include')
82
- LIB_DIRS.unshift GRPC_LIB_DIR
83
- unless File.exist?(File.join(GRPC_LIB_DIR, 'libgrpc.a'))
84
- system("make -C #{GRPC_ROOT} static_c CONFIG=#{GRPC_CONFIG}")
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)
@@ -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.6.0 needs to be installed'
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")
@@ -29,5 +29,5 @@
29
29
 
30
30
  # GRPC contains the General RPC module.
31
31
  module GRPC
32
- VERSION = '0.9.2'
32
+ VERSION = '0.9.3'
33
33
  end
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.2
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-03 00:00:00.000000000 Z
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.6.0 needs to be installed
262
+ - libgrpc ~> 0.9.1 needs to be installed
263
263
  rubyforge_project:
264
264
  rubygems_version: 2.4.3
265
265
  signing_key: