summaryrefslogtreecommitdiff
path: root/ruby
Commit message (Collapse)AuthorAge
* Add SPDX-License-IdentifierRuss Allbery2018-04-29
| | | | | | Add SPDX-License-Identifier headers to all substantial source files. Also canonicalize copyright date formats and fix a few copyright notices that weren't in my standard layout.
* Fix warnings under ClangRuss Allbery2018-04-22
| | | | | Flesh out support for Clang warnings and compile cleanly under Clang with most warnings enabled (-Weverything with some exclusions).
* Import new warning flag handling from rra-c-utilRuss Allbery2016-10-03
| | | | | | Use Autoconf to probe for warning flags, update rra-c-util files with various warning fixes, and fix newly-discovered warnings in the remctl source base caught by GCC 6.
* Update Ruby test expectations for Ruby 1.9Russ Allbery2014-01-06
| | | | | | | | | | | Current versions of Ruby 1.9 now throw different exceptions in several places than we had previously expected. Allow both the old and new exceptions. Change-Id: I4f20e72c65f788aebacdce6831301f9e6f2b1c0a Reviewed-on: https://gerrit.stanford.edu/1365 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
* Suppress errors in test suite from kinit probingRuss Allbery2014-01-06
| | | | | | | | | | | | We have to try multiple different command-line options for kinit since MIT and Heimdal are different, and MIT now reports errors to standard error. Supress standard error when doing this probing in the Python and Ruby test suites. Change-Id: I836be58da9b7cbea4ec6a140b7a29080f5ad4c9f Reviewed-on: https://gerrit.stanford.edu/1364 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
* Change my email address to eagle@eyrie.orgRuss Allbery2014-01-05
| | | | | | | Change-Id: Iba0376ea03a749d81abc2eeb49b0b5cf7d3e8847 Reviewed-on: https://gerrit.stanford.edu/1353 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
* Use gss_krb5_import_cred for remctl_set_ccacheRuss Allbery2013-05-16
| | | | | | | | | | | | | | | | If a Kerberos library and gss_krb5_import_cred are available at build time, libremctl now uses them to implement remctl_set_ccache to avoid affecting global program GSS-API state. If those requirements are met, remctl_set_ccache will only affect the remctl context on which it's called. This also requires importing the Kerberos portability layer, so make sure that it's usable for the TAP Kerberos add-on. Change-Id: I561812d0e36df6adf52d974dd5390953940865c5 Reviewed-on: https://gerrit.stanford.edu/1198 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
* Add missing copyright and license statements to many filesRuss Allbery2012-06-19
| | | | | | | | Also change the license on the POD documentation from Expat to the all-permissive license and switch the license on several remctl source files from the MIT license to the Expat license. Change-Id: Ie7ebedf3b56cc2c19211217282519a7e6200c9e2
* Add timeout support in the Ruby bindingsRuss Allbery2012-02-22
| | | | Change-Id: I108a825614ab6e6d048fc83251a74a73cd89a4fd
* Update binding test suites to remove test tmp directoryRuss Allbery2012-02-16
| | | | Change-Id: Id02b8ee170911eb034ea2b4c5a659e5711dd6f66
* Update test suite for new test configuration, tmp directoryRuss Allbery2012-02-09
| | | | | | | | | Update the TAP support library to use config/principal and config/keytab rather than files under data. Update most of the tests to also use config/tmp to handle temporary files for running tests. Change-Id: I014cdf5e15e1d1bbeabfaa7feb60e1b97bb29c2b
* Add NOOP support to the language bindingsRuss Allbery2011-10-31
|
* Add ccache class variable to the Ruby bindingsRuss Allbery2011-09-26
|
* Fix more issues with overriding user tokens when testingRuss Allbery2011-09-21
| | | | | We need to try kinit --no-afslog first in all of our test suites, not just the kinit.c C TAP add-on.
* Add Ruby bindings for remctl_set_source_ipRuss Allbery2011-09-21
|
* Change the Stanford copyright statement to use the official formRuss Allbery2011-05-31
|
* Update warning flags for GCC 4.6.1Russ Allbery2011-05-14
| | | | Fix a few minor issues that turned up with the new, stricter warnings.
* Ruby: add an explanation of error tokensRuss Allbery2010-05-02
| | | | | Mention that error tokens are returned as tokens, not as exceptions. Do this mostly so that the README file will format properly on the web.
* Tweak ruby/README formattingRuss Allbery2010-05-02
| | | | | faq2html was unhappy with some of the formatting of ruby/README, so tweak it a little to make it happier.
* Add support for Ruby 1.9.1Russ Allbery2010-05-02
| | | | | | The signature of rb_cvar_set has changed between 1.8 and 1.9.1. Prefer the 1.9.1 version and use a hack to try to detect Ruby 1.8 and add the fourth argument when building against that version.
* Don't override libdir in the Ruby extconf.rbRuss Allbery2010-05-02
| | | | | | | If libdir is set to something else in extconf.rb, that changes the install location when using the distribution paths, which complicates Debian packaging. Instead, set LDFLAGS in a different way to prefer our directories.
* Stop checking for libremctl in the Ruby buildRuss Allbery2010-05-02
| | | | | | | Force the link with our just-built copy of libremctl and don't check for the library. mkmf is apparently too stupid to use $LDFLAGS when searching for a shared library and fails unless libremctl is already installed in the system locations.
* Ruby: fix the directory changes in the test suiteRuss Allbery2010-04-12
|
* Ruby: don't convert the remctl error to an object when throwingRuss Allbery2010-04-12
| | | | | | | The syntax we're using to add a string to the thrown Remctl::Error expects a regular C string, not a Ruby object, so don't convert the results of remctl_error() to a Ruby object before passing it into rb_raise.
* Fix the name of the argument exception thrown by RubyRuss Allbery2010-04-12
| | | | | Despite the name of the C variable, the exception is ArgumentError, not ArgError.
* Add a test suite for the Ruby remctl bindingsRuss Allbery2010-04-12
|
* More Ruby binding build cleanupRuss Allbery2010-04-12
| | | | | | | | | | | | | | | | | | | | | | | Suppress strict prototype warnings for the Ruby build since the Ruby headers don't use strict prototypes. Stop passing GCC-specific warning suppression flags into the language binding build systems unless the compiler used to build remctl is GCC. This still isn't quite right, since the language bindings may use a different compiler than the main remctl build, but it should be closer than the previous behavior of using GCC flags unconditionally. Add the Ruby CFLAGS to CPPFLAGS since we override CFLAGS during the build. At least with the current Ruby build system, this should accomplish the same thing. Change the Ruby extension to be remctl (lowercase), although the class is Remctl (titlecase). The original contributed code had this right and I misunderstood what was happening. Undefine Autoconf PACKAGE_* variables that Ruby also defines before including ruby.h, and flag unused variables required by the Ruby API to suppress GCC compiler warnings.
* Coding style and other cleanups for Ruby bindingsRuss Allbery2010-04-02
| | | | | | | | | | | | | Correct the README somewhat on terminology and on which exceptions are thrown. Remove (required) notation for arguments when all arguments are required. Standardize (hopefully) on correct Ruby notation for methods. Remove gcc warning options from the CFLAGS in the Ruby extension. We'll deal with that another way. Declare all functions except Init_remctl static and rename Init_remctl to Init_Remctl to match the name of the class. Handle a few more places out of memory errors are possible.
* Add the bindings for the Ruby languageAnthony M. Martinez2010-04-02