Commit Graph

35 Commits

Author SHA1 Message Date
Benoit Daloze
0a5d9828c1 Make the gem build on TruffleRuby (#27660)
* replace darwin checks in extconf.rb to exclude TruffleRuby

* inherit RANLIB and STRIP from RbConfig, set LDXX

* enable overriding ranlib command in top-level makefile

* ensure the -no_warning_for_no_symbols flag is only used with Apple's ranlib

* don't embed openssl & zlib on truffleruby

* add RbConfig's cppflag to CPPFLAGS when using TruffleRuby

* this ensure the paths to find the system's OpenSSL are set up correctly with TruffleRuby (includes being able to find an OpenSSL installed via Homebrew etc)

* don't statically link standard libraries on Linux with Truffleruby

* This does not work when compiling to bitcode.

* Prefer SIGTERM to SIGQUIT for graceful shutdown in examples

* Overriding SIGQUIT is suboptimal, for example on JVM where it is very
  useful to dump the thread stacktraces.

* Keep the rb_tr_abi_version symbol for TruffleRuby in grpc_c.so

* Otherwise TruffleRuby cannot verify the ABI version is correct.
* See https://github.com/oracle/truffleruby/issues/2386

* Use RbConfig::CONFIG['STRIP'] instead of just `strip`

* Use a local variable for apple_toolchain for consistency

* Add a comment about -static-libgcc -static-libstdc++ and TruffleRuby

* Split comment into two for openssl/zlib

Co-authored-by: Nicolas Laurent <nicolas.laurent@oracle.com>
2022-06-27 23:12:13 -07:00
Patrice Chalin
5ac3aa789f Docs: fix links to grpc.io tutorial pages 2020-06-16 08:47:24 -04:00
Hannah Shi
deb88ffa6b print the exception's message, rather than individual fields 2020-06-04 01:59:24 +00:00
Hannah Shi
acd54e7c19 better error checking in ruby helloworld greeter_client 2020-06-03 22:59:51 +00:00
Stanley Cheung
a7e47b1d0b Add option to pass in custom hostname to helloworld example for PHP/Ruby 2020-05-28 18:19:04 -07:00
Esun Kim
885b1aa785 Change bundler version 2019-12-16 17:23:46 -08:00
SataQiu
c99ac03b11 fix some spell errors 2019-04-10 15:45:54 +08:00
Tommy Chen
39ac83a49e ruby-sigint ready to be merged! 2018-12-26 11:17:48 -08:00
Mingding, Han
9d5b0cd871 Add 'multi_json' gem to gemspec so that route_guide_server can work 2018-07-31 12:18:36 +08:00
ganmacs
64ab89928c Put Gemfile for sub-directory of pubsub
examples/ruby/greeter*.rb and examples/ruby/route_guide/*.rb doesn't
need to depends on googleauth
2018-05-25 10:46:39 +09:00
ganmacs
61d9a42007 Moved pubsub demo_demo to examples directory of ruby
so that grpc does not depends on googleauth gem.

This project (pubsub demo) is introduced at [this
commit](d5d00d5c8f (diff-c495642bb64c09cae54f3ccff463bd51))
as demo project for grpc with ruby.
This demo is awesome. But the position of this project directory seems
to be not suitable for demo app. This project added unnecessary gem dependency about googleauth to grpc ruby gem.
2018-05-14 18:01:04 +09:00
Jan Tattermusch
a26aecc03b reimplement distance calculation in routeguide 2018-03-23 07:44:30 +01:00
Mehrdad Afshari
bb3d95b643 Use https://grpc.io consistently as the canonical URL 2017-07-10 22:24:28 +00:00
Jan Tattermusch
4d5c3102a1 fix remaining license notices 2017-06-08 11:22:41 +02:00
Jan Tattermusch
7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Jan Tattermusch
a22a19fd64 fix markdown 2017-04-18 12:31:49 +02:00
Alexander Polcyn
b98b3c260e add examples for ruby error throwing and handling 2017-03-28 13:49:58 -07:00
Alexander Polcyn
ccaec44d65 add ruby example that doesn't use protobuf 2017-02-08 11:38:30 -08:00
Alexander Polcyn
b06d534121 make clear independence of bidi streams in route guide client 2016-09-20 12:30:55 -07:00
Alexander Polcyn
689e89c2e6 dont create extra thread on bidi call in benchmark, and change suggested
code for ruby bidi calls
2016-09-20 11:00:36 -07:00
Ken Payson
5b4d3625eb Update ruby examples to use new _pb protobuf format 2016-08-04 10:31:15 -07:00
murgatroid99
b39ad701ea Added comments to ruby code generation 2016-05-20 13:27:33 -07:00
Craig Tiller
6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
murgatroid99
a4629362db Fix minor issues with Ruby route guide client 2016-03-17 15:23:43 -07:00
Nicolas "Pixel" Noble
9fe56a09fd Fixing copyrights. 2016-02-11 02:16:53 +01:00
Nicolas "Pixel" Noble
7cc94e9381 Fixing Ruby examples. 2016-02-11 02:08:17 +01:00
Tim Emiola
40b4704255 Fix broken link 2015-09-23 15:40:33 -07:00
Tim Emiola
415134062b Ensure the route_guide sample is up-to-date
- should work using the beta api package
- ensure any generated code is consistent with the proto definition
2015-09-23 15:27:08 -07:00
Tim Emiola
2470c5cd1f Remove RouteGuide docs, link to grpc.io instead
- ensure the link in the QuickStart doc is updated
2015-09-23 14:58:01 -07:00
Tim Emiola
5972e58a68 Update demo package metadata
Also
- update any changes in language-specific package installation
2015-09-23 14:46:32 -07:00
Tim Emiola
296e39d97c Update QuickStart README.md install
- ensure installation links this branches version of the install instructions
- update docs to account for any language-specific install changes
2015-09-23 14:45:51 -07:00
Tim Emiola
e0ef42ceee Update helloworld server with beta API changes 2015-09-23 14:29:16 -07:00
Stanley Cheung
56debcb6d1 fix more examples links 2015-08-31 15:14:28 -07:00
Stanley Cheung
0a268216c2 replace all grpc-common occurances with examples 2015-08-27 14:38:38 -07:00
Stanley Cheung
20fa6693f3 move examples to correct locations 2015-08-27 14:00:20 -07:00