Dmytro Shteflyuk and OpenAI Codex
de266f6859
Omit parentheses from zero-argument Ruby methods ( #3740 )
...
Client: rb
Co-authored-by: OpenAI Codex (GPT-5.6) <codex@openai.com >
2026-08-23 18:23:10 -04:00
Dmytro Shteflyuk and OpenAI Codex
a1fad93879
Enable RuboCop Lint/UselessAssignment ( #3729 )
...
Client: rb
Co-authored-by: OpenAI Codex (GPT-5.6) <codex@openai.com >
2026-08-19 13:16:09 -04:00
Dmytro Shteflyuk and OpenAI Codex
759b0faf31
Enforce Ruby whitespace layout rules ( #3719 )
...
Client: rb
Co-authored-by: OpenAI Codex (GPT-5.6) <codex@openai.com >
2026-08-16 13:35:39 -04:00
Dmytro Shteflyuk and OpenAI Codex
91d0590cf0
Enable double-quoted Ruby string literals ( #3715 )
...
Client: rb
Co-authored-by: OpenAI Codex (GPT-5.6) <codex@openai.com >
2026-08-14 17:58:27 -04:00
Dmytro Shteflyuk and OpenAI Codex
7b1f133a31
THRIFT-5950: Enforce frozen string literals in Ruby
...
Client: rb
Ruby is on a gradual path toward frozen string literals by default. That
transition began in Ruby 3.4.0 with chilled strings, but we can get the
benefits today by explicitly enabling `# frozen_string_literal: true`.
Doing so reduces avoidable string allocations and copies, lets the VM do
less work, removes many manual .freeze workarounds, and can deliver
meaningful performance improvements in allocation-heavy code paths.
This change adds frozen string literal to all generated files, and also
library files. There is one performance issue in JSON protocol I noticed
where we used += on strings instead of <<, which allocates much more
objects than necessary, and you can clearly see the gain in the profile
table below.
Co-Authored-By: OpenAI Codex (GPT-5.4) <codex@openai.com >
2026-04-20 23:13:48 +02:00
Dmytro Shteflyuk
3b0ab4dfa1
Enforce consistent whitespaces around blocks, equal signs, and in parameters in Ruby code
2026-03-17 22:06:26 +01:00
Roger Meier
ed817d0102
THRIFT-1735 integrate tutorial into regular build
...
THRIFT-1811 ruby tutorial as part of the regular build
2013-06-09 23:10:06 +02:00
Bryan Duxbury
b7b8af9e61
THRIFT-486. rb: ruby tutorial needs updated require statements
...
Fixed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@771969 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:59:49 +00:00
Bryan Duxbury
07f38ff531
THRIFT-430. rb: ruby tutorials and ruby tests require deprecated files and class names
...
This patch cleans all this up.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762618 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 04:37:28 +00:00
David Reiss
ea2cba8ba8
THRIFT-387. Add license headers to a bunch of files
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@760189 13f79535-47bb-0310-9956-ffa450edef68
2009-03-30 21:35:00 +00:00
Kevin Clark
21411530da
Update the tutorial files to stop using deprecated names
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668935 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 01:03:33 +00:00
Kevin Clark
2b1e10b21f
Ensure the ruby tutorial uses the current library instead of the installed one
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668925 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 01:00:50 +00:00
Kevin Clark
2960044415
rb: Add more classes/modules to the Thrift namespace. Provide backwards compatable mappings.
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668904 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 00:54:13 +00:00
David Reiss
0c90f6f8af
Thrift: Whitespace cleanup.
...
Summary:
- Expanded tabs to spaces where spaces were the norm.
- Deleted almost all trailing whitespace.
- Added newlines to the ends of a few files.
- Ran dos2unix on one file or two.
Reviewed By: mcslee
Test Plan: git diff -b
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665467 13f79535-47bb-0310-9956-ffa450edef68
2008-02-06 22:18:40 +00:00
Christopher Piro
5f5fdf3a20
[thrift] maps, lists, sets, and service inheritance for Erlang
...
Reviewed by: cpiro
Test Plan: tested wit tutorial/tutorial.thrift
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665175 13f79535-47bb-0310-9956-ffa450edef68
2007-07-25 22:41:00 +00:00
Mark Slee
7679196f1c
Various Thrift fixes, including Application Exception support in Ruby, better errror messages across languages, etc.
...
Reviewed By: thrift
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665058 13f79535-47bb-0310-9956-ffa450edef68
2007-03-14 02:47:35 +00:00
Mark Slee
07a3aab207
Thrift Tutorial
...
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665051 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 05:45:10 +00:00