Commit Graph

663 Commits

Author SHA1 Message Date
murgatroid99 895c1113ab Make ruby library conform to status code spec 2016-04-04 11:35:49 -07:00
Craig Tiller 725aaf2336 Fix codegen 2016-04-04 10:11:23 -07:00
Jan Tattermusch eddcd85a72 Merge pull request #6010 from vjpai/i_know_rubies
Ruby performance testing worker
2016-04-01 11:19:47 -07:00
Rafael Sales bc846f72d6 Add spec to make sure invalid metadata values raise ArgumentError 2016-03-31 19:35:20 -03:00
Rafael Sales ac491d8c1f Raise on unexpected metadata values
The existing implementation was causing segmentation fault because
src/ruby/ext/grpc/rb_call.c:358 was trying to convert any value type other than
Array to String. The Array type is handled in first `if`. This change will cause
the Ruby code that sends non-string values to fail with a better message:
`ArgumentError: Header values must be of type string or array`
2016-03-31 19:35:20 -03:00
Vijay Pai 5562807aad Support many oustanding RPCs per channel - forgot to do this last time 2016-03-31 14:42:35 -07:00
Craig Tiller 64a12c55df Merge github.com:grpc/grpc into copyright-fix 2016-03-31 07:49:58 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Nicolas Noble a5dc80d22a Merge pull request #5691 from ctiller/idempotent
Idempotent request support for core
2016-03-30 17:05:43 -07:00
Vijay Pai 828558ac4a Merge branch 'master' into i_know_rubies 2016-03-30 14:55:38 -07:00
vjpai d9389a849d Support secure client 2016-03-30 13:10:20 -07:00
vjpai cf36f858d6 Support server-side secure test. 2016-03-30 12:35:34 -07:00
vjpai ed25a33eb2 Improved formatting 2016-03-30 12:16:25 -07:00
vjpai 5286eee5a9 Add streaming client 2016-03-30 12:07:19 -07:00
vjpai ad1c1cc6cf Add support for unary client, closed-loop or poisson 2016-03-30 09:58:46 -07:00
Nicolas "Pixel" Noble e33f93620a Merge branch 'release-0_13' into manual-upmerge 2016-03-30 05:10:03 +02:00
vjpai d7f43b3aab Fix scoping for client, in preparation for implementation 2016-03-29 18:38:10 -07:00
vjpai e8ff3889f5 Fix scope on an each - no need for class scope 2016-03-29 18:31:34 -07:00
vjpai 45be26ef0d Working ruby server implementation 2016-03-29 17:21:28 -07:00
vjpai 691387afc0 Make histogram more canonically Ruby-style 2016-03-29 17:19:20 -07:00
Nicolas "Pixel" Noble 375d1f47ca Better memory management for grpc_rb_byte_buffer_to_s. 2016-03-30 02:08:49 +02:00
Zhuochun 97daf35add Fix Ruby memory leaks
- `recv_message` is not cleaned up after call
- `send_message` is not cleaned up in failure cases
- `xmalloc` ruby string is not freed after used
2016-03-30 01:08:29 +02:00
vjpai 343718e941 Merge branch 'master' into i_know_rubies 2016-03-29 13:53:20 -07:00
Craig Tiller 3bd9695939 Merge github.com:grpc/grpc into idempotent 2016-03-28 12:43:02 -07:00
murgatroid99 8c9edc2a57 Make channels and calls properly mark references to their credentials 2016-03-23 11:20:56 -07:00
murgatroid99 05afaa838a Add GC marking for composite credentials 2016-03-23 11:20:42 -07:00
murgatroid99 3eaaf39eff Properly mark proc used in call credentials for garbage collection 2016-03-23 11:20:34 -07:00
Jan Tattermusch 6586599dc8 Merge pull request #5744 from murgatroid99/ruby_gc_mark_credentials_callback
Properly mark proc used in call credentials for garbage collection
2016-03-21 17:05:00 -07:00
Jan Tattermusch c6b1a71fc2 Merge pull request #5490 from murgatroid99/ruby_call_credentials_log_error
Add error output for failed ruby credentials plugin
2016-03-21 16:57:25 -07:00
vjpai 75291c9403 Initial skeleton of benchmark client and server 2016-03-21 12:11:18 -07:00
Craig Tiller 44654553de Merge github.com:grpc/grpc into idempotent 2016-03-21 09:04:06 -07:00
vjpai fdeacd9f32 Initial work for Ruby performance testing 2016-03-18 19:10:35 -07:00
David Garcia Quintas a36ec16de2 regenerated projects 2016-03-18 10:00:23 -07:00
murgatroid99 2c247433b8 Merge branch 'master' into ruby_call_credentials_log_error 2016-03-17 14:34:53 -07:00
Craig Tiller 4f7ffa05a4 Merge github.com:grpc/grpc into idempotent 2016-03-16 07:58:20 -07:00
murgatroid99 a00d7c0b35 Make channels and calls properly mark references to their credentials 2016-03-14 15:51:56 -07:00
murgatroid99 096386f3c8 Add GC marking for composite credentials 2016-03-14 13:01:00 -07:00
murgatroid99 93019f733f Properly mark proc used in call credentials for garbage collection 2016-03-14 11:53:42 -07:00
Nicolas "Pixel" Noble 9f0f1e3f61 Merge branch 'master' into pre-0.13.1-downmerge 2016-03-10 23:39:47 +01:00
Craig Tiller 7885ea5e31 Add a place for tests 2016-03-10 06:53:29 -08:00
Nicolas "Pixel" Noble 280eedd2e5 Merge branch 'master' into pre-0.13.1-downmerge
Conflicts:
	INSTALL.md
	examples/cpp/README.md
2016-03-10 09:52:58 +01:00
murgatroid99 1d68520c22 Remove extraneous mutex, restrict state transitions 2016-03-09 17:30:37 -08:00
murgatroid99 3c77ff452f Fix copyright 2016-03-09 11:44:56 -08:00
murgatroid99 d48d84da19 Ruby: fix some synchronization code in server implementation 2016-03-09 11:10:20 -08:00
Craig Tiller 0cb803d9ca Always ref writable streams
We suffered a bug whereby doing a follow-up write to another write could
resurrect a deleted stream, causing all sorts of crash.

Fix: when a stream becomes writable (vs when we start writing) take a
ref on the stream, and only relinquish it once we're done writing.
2016-03-02 22:34:23 -08:00
murgatroid99 011641bb13 Minor fix to backtrace retreival code 2016-02-29 17:36:10 -08:00
Bogdan Drutu f0ca4d5c5c Merge pull request #5441 from a-veitch/no_binary_tags
Remove binary tags, restrict tag characters to ASCII
2016-02-29 16:42:00 -08:00
murgatroid99 8b280763f9 Add error output for failed ruby credentials plugin 2016-02-29 16:34:41 -08:00
Alistair Veitch 0cc824275d regenerate imports 2016-02-26 10:54:20 -08:00
Yang Gao 84a74f8966 Merge pull request #5327 from yang-g/v1alpha_to_v1
global replace health check proto v1alpha to v1
2016-02-25 13:48:42 -08:00
Nicolas Noble 88966ab145 Merge pull request #5348 from nicolasnoble/backport-merge
Backport merge.
2016-02-23 02:19:44 +01:00
Nicolas "Pixel" Noble 1280fdb574 Merge branch 'master' into backport-merge 2016-02-22 21:30:14 +01:00
Nicolas "Pixel" Noble 88dc3c5d32 Adding an explanatory comment. 2016-02-22 03:21:08 +01:00
Nicolas "Pixel" Noble cb90397216 Adding the init / destruct of grpc for ruby in a gpr_once. 2016-02-21 22:58:26 +01:00
Nicolas "Pixel" Noble 6f4f02cf9f Slightly better workaround given the circumstances. 2016-02-21 01:30:56 +01:00
Nicolas "Pixel" Noble b5b62720c5 Fixing a reported ruby crash when using ruby_vm_at_exit. 2016-02-20 22:48:56 +01:00
yang-g f4fc61cf68 fix ruby impl and test 2016-02-19 13:48:03 -08:00
yang-g 3165c09ce5 regenerate csharp and ruby service from proto 2016-02-19 12:36:40 -08:00
yang-g aea13f1c85 global replace health check proto v1alpha to v1 2016-02-19 11:08:16 -08:00
Nicolas "Pixel" Noble 639766023e Flagging the missing API entries. 2016-02-17 23:43:55 +01:00
murgatroid99 73f5d7c0ce Fix copyrights 2016-02-17 13:03:45 -08:00
murgatroid99 4999ba91c9 Ruby: explicitly require 'grpc/grpc' when loading C core, to avoid circular import warning 2016-02-16 17:58:08 -08:00
Nicolas "Pixel" Noble 6910ce8e01 Flagging 0.13.1-pre1. 2016-02-13 01:03:26 +01:00
Nicolas "Pixel" Noble 7a925f7f5e Flagging the release. 2016-02-13 00:39:12 +01:00
Craig Tiller 017f84ead8 Merge pull request #5078 from ctiller/compatibility_mode
Make binary compatibility not the default
2016-02-12 12:23:51 -08:00
Masood Malekghassemi b14ea1de58 Revert Ruby version specialization 2016-02-11 20:33:07 -08:00
Craig Tiller c0473cc823 Merge github.com:grpc/grpc into compress 2016-02-11 08:51:16 -08:00
Craig Tiller b718c8af70 Merge github.com:grpc/grpc into compatibility_mode 2016-02-11 08:48:13 -08:00
Nicolas "Pixel" Noble 32b3f67438 Merge remote-tracking branch 'google/release-0_13' into merge-and-regen
Conflicts:
	build.yaml
	src/ruby/lib/grpc/version.rb
2016-02-10 21:28:52 +01:00
Nicolas "Pixel" Noble ca144fd1e8 Fixing Ruby binary build (again). 2016-02-10 09:28:18 +01:00
Nicolas "Pixel" Noble f9e3c23fe8 Fixing ruby versionning. 2016-02-09 03:33:40 +01:00
Nicolas "Pixel" Noble 1935c3655c Flagging master as 0.14.0-dev. 2016-02-09 01:54:56 +01:00
Nicolas "Pixel" Noble cda4bad582 Flagging 0.13 as pre1. 2016-02-09 00:44:23 +01:00
Craig Tiller f008f067f8 build.yaml centric versioning 2016-02-08 12:48:03 -08:00
Craig Tiller 55e813f946 Merge pull request #5088 from murgatroid99/core_long_int64_t
Replace 'long' with 'int64_t' in public core headers
2016-02-08 10:22:42 -08:00
Nicolas "Pixel" Noble 1be92658ef Versionning Ruby from build.yaml, and regenerating broken files after census merge. 2016-02-06 09:30:19 +01:00
Nicolas Noble 86cbe3087c Fixing Mac build for Ruby. 2016-02-05 15:08:12 -08:00
Nicolas "Pixel" Noble 5219c6d8e8 Properly compiling distributable native gems. 2016-02-05 22:40:59 +01:00
murgatroid99 309830f6b8 Replace 'long' with 'int64_t' in public core headers 2016-02-05 11:30:00 -08:00
Craig Tiller cce7fe0626 Fix copyright 2016-02-05 10:48:19 -08:00
Craig Tiller b15af6fc51 Merge branch 'compress' of github.com:ctiller/grpc into compress 2016-02-05 10:47:24 -08:00
Craig Tiller 71ea4a1955 Make binary compatibility not the default 2016-02-04 15:06:41 -08:00
Bogdan Drutu e4fdcd9242 Merge pull request #5013 from a-veitch/tag_set_to_context
Change all instances of census_tag_set to census_context
2016-02-04 12:42:35 -08:00
murgatroid99 5738c5002c Fix Ruby test that failed to read initial metadata 2016-02-04 10:15:42 -08:00
Alistair Veitch 6f2b8993fd merge 2016-02-03 09:02:46 -08:00
Nicolas Noble 2bc107f74c Making the ruby gem for MacOS work again. 2016-02-02 23:15:22 -08:00
Nicolas "Pixel" Noble d355497792 Removing memcpy's wrapper for windows-ruby. 2016-02-03 02:11:43 +01:00
Nicolas "Pixel" Noble 89d8ed1b91 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable
Conflicts:
	BUILD
	Makefile
	binding.gyp
	build.yaml
	gRPC.podspec
	grpc.gemspec
	package.json
	src/python/grpcio/grpc_core_dependencies.py
	templates/Makefile.template
	tools/doxygen/Doxyfile.core.internal
	tools/run_tests/sources_and_headers.json
	vsprojects/vcxproj/gpr/gpr.vcxproj
	vsprojects/vcxproj/gpr/gpr.vcxproj.filters
2016-02-03 01:27:46 +01:00
Alistair Veitch 75d5c0f024 post merge 2016-02-02 09:43:02 -08:00
Craig Tiller 72c920f148 Copyright, clang-format 2016-02-02 08:58:57 -08:00
Craig Tiller 4bef7cebe6 Use old memcpy for wrappers 2016-02-02 08:38:43 -08:00
Nicolas "Pixel" Noble fb2d8f5069 Fixing copyrights. 2016-02-01 01:27:53 +01:00
Nicolas "Pixel" Noble 76559cfa40 Regenerate files. 2016-01-31 11:44:40 +01:00
Nicolas "Pixel" Noble d51d121c0c And the Windows extension finally loads. 2016-01-31 11:37:13 +01:00
Nicolas "Pixel" Noble b51ec5a4ba Removing zookeeper's API for now. 2016-01-31 09:36:09 +01:00
Nicolas "Pixel" Noble d2f20efcd8 Regenerating files. 2016-01-31 07:52:59 +01:00
Nicolas "Pixel" Noble b8e9e9c846 Fixing the Ruby build after all these merges. 2016-01-30 18:35:13 +01:00
Nicolas "Pixel" Noble 1e6026189f Merge branch 'autogen' into make-ruby-installable 2016-01-30 06:37:38 +01:00
Nicolas "Pixel" Noble d14b6acdcc Finalizing this a bit. 2016-01-30 06:01:27 +01:00
Craig Tiller 11b87bfb2a Usable API list 2016-01-29 16:52:56 -08:00
Nicolas "Pixel" Noble efa1f16727 Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable 2016-01-29 23:07:31 +01:00
Nicolas "Pixel" Noble eade6e02d2 Renaming the Ruby grpc extension to grpc_c, and renaming its loader from loader.rb to grpc.rb 2016-01-29 22:53:31 +01:00
Nicolas "Pixel" Noble 2283ff6638 Fixing dll hell. 2016-01-29 06:49:46 +01:00
Nicolas "Pixel" Noble 1723044a12 Allowing for debug builds. 2016-01-29 01:46:19 +01:00
Nicolas "Pixel" Noble d899dce5e1 Few more fixes to the Ruby installation.
-) properly depending on libraries.
-) adding an independent 'loader' class to use instead of require 'grpc/grpc'.
2016-01-28 20:45:39 +01:00
Nicolas "Pixel" Noble c1a89b8d76 Tidy. 2016-01-28 09:55:49 +01:00
Nicolas "Pixel" Noble e7a91a2f57 Properly building the gem file under mingw using rake-compiler-dock. 2016-01-28 09:35:46 +01:00
Nicolas "Pixel" Noble cb287a11df Allowing for creation of pre-compiled gems, using rack-compiler-dock. 2016-01-28 09:35:41 +01:00
David Garcia Quintas b4e51b52bd Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces 2016-01-27 19:57:58 -08:00
Nicolas "Pixel" Noble 7b92db65ac Cleaning up ruby extension code a bit. 2016-01-26 22:46:34 +01:00
Jan Tattermusch 7c60b276de Merge remote-tracking branch 'upstream/release-0_12' into integrate_0_12_changes 2016-01-20 18:23:13 -08:00
murgatroid99 d8521e75c8 Update Ruby README with simpler install instructions 2016-01-15 10:12:28 -08:00
murgatroid99 d212b33553 Re-add missing newline in ruby file 2016-01-14 09:28:13 -08:00
murgatroid99 40809210d4 Update copyrights 2016-01-13 17:45:30 -08:00
murgatroid99 8b791a4a7f Merged from master and resolved merge conflicts 2016-01-08 12:33:22 -08:00
Craig Tiller c357749b48 Merge pull request #4625 from murgatroid99/ruby_client_stub_fix_typo
Fix a bug recently reported in the mailing list
2016-01-08 12:15:13 -08:00
Craig Tiller 9a781b7e56 Merge pull request #4620 from murgatroid99/ruby_auth_plugin_event_loop
Use specific ruby thread to handle auth metadata plugin callbacks
2016-01-08 12:14:57 -08:00
murgatroid99 69108a335e Resolved merge conflicts with upstream/release-0_12 2016-01-07 17:46:47 -08:00
murgatroid99 cc2b8d423b Fixed mutex and cond var usage 2016-01-07 17:32:34 -08:00
murgatroid99 24e826ec56 Updated dependencies, fixed a couple of tests 2016-01-06 16:27:58 -08:00
murgatroid99 56fada5dfe Make the Ruby extension throw an error when passed invalid metadata 2016-01-06 14:40:38 -08:00
murgatroid99 c2ea3aec65 Parital implementation of ruby header checking 2016-01-06 11:48:15 -08:00
murgatroid99 7fac30dd1b Update copyright 2016-01-05 15:14:31 -08:00
murgatroid99 00450af711 Made ruby per-rpc creds interop use auth plugin API 2016-01-05 15:13:08 -08:00
murgatroid99 a4d3d2c76b Fix typo in method call 2016-01-05 14:10:55 -08:00
murgatroid99 f58404e1d5 Free what we alloc 2016-01-05 09:57:44 -08:00
murgatroid99 9b83bd7c95 Use specific ruby thread to handle auth metadata plugin callbacks 2016-01-05 09:50:04 -08:00
murgatroid99 73cefb8b90 Updated copyright in Ruby version file 2016-01-04 16:06:37 -08:00
murgatroid99 0e59927b87 Update Ruby library version for next release 2016-01-04 15:34:44 -08:00
Craig Tiller 7536af02cf Eliminate gpr_ int types - and insist on C99 variants instead 2015-12-22 13:49:30 -08:00
murgatroid99 b5703222a5 Include roots.pem with Ruby package 2015-12-18 13:05:34 -08:00
murgatroid99 d7e1a10628 Bundled C core with Ruby library 2015-12-18 11:18:34 -08:00
murgatroid99 d24424ff66 Fixed stub construction in interop client 2015-12-16 14:01:26 -08:00
murgatroid99 afe3974bce Made insecure channel/stub explicit, in all layers 2015-12-16 13:04:37 -08:00
Michael Lumish 7fe43260ac Merge pull request #4412 from murgatroid99/ruby_auth_metadata_plugin
Ruby auth metadata plugin
2015-12-11 15:47:22 -08:00
Craig Tiller 46ab778aa0 Merge pull request #4397 from jtattermusch/tv_sec_64bit
Make gpr_timespec platform agnostic.
2015-12-11 13:11:52 -08:00
Michael Lumish 5e61f2875c Merge pull request #4413 from jtattermusch/remove_ssl_cert_file_env
Get rid of SSL_CERT_FILE env entirely
2015-12-11 12:29:48 -08:00
murgatroid99 64342dd864 Fixed arguments passed to Ruby auth plugin callback 2015-12-11 10:09:57 -08:00
Jan Tattermusch f3cfb70a3a update channel_credentials_spec 2015-12-11 09:53:39 -08:00
Jan Tattermusch 0a0237183a Address comments 2015-12-11 07:35:28 -08:00
Jan Tattermusch a6b2c4ce46 Get rid of SSL_CERT_FILE env entirely 2015-12-10 17:09:06 -08:00
Jan Tattermusch 303e3cb0ee Merge pull request #4396 from murgatroid99/ruby_server_fix_hang
Fixed a busy-wait in Ruby server run_till_terminated
2015-12-10 16:09:41 -08:00
Jan Tattermusch 88086373db make gpr_timespec platform agnostic 2015-12-10 15:04:59 -08:00
murgatroid99 e389b04336 Fixed bug with composing credentials 2015-12-10 14:59:01 -08:00
murgatroid99 f88008c00b Fixed a busy-wait in Ruby server run_till_terminated 2015-12-10 10:38:48 -08:00
murgatroid99 a4c2d7dff7 Fixed encoding for bytes fields in the ruby interop server 2015-12-08 19:21:11 -08:00
murgatroid99 59e5472568 Fix encoding for bytes fields in ruby interop client 2015-12-08 15:48:21 -08:00
Jan Tattermusch de95cb0494 update ruby to new position of math.proto and health.proto 2015-12-07 17:18:51 -08:00
Jan Tattermusch 8956122d60 consolidate math.proto and health.proto 2015-12-07 17:18:51 -08:00
murgatroid99 c78b6834a2 Added explicit dependency on signet to gemspec 2015-12-07 11:33:31 -08:00