diff options
author | Adam Greene <adam.greene@gmail.com> | 2015-05-01 11:54:29 -0700 |
---|---|---|
committer | Adam Greene <adam.greene@gmail.com> | 2015-05-01 22:50:57 -0700 |
commit | d55733c76ee1db702529f38f602548ffe48a4ab1 (patch) | |
tree | c40fc1f7c0c249c5d66fc6429222414cb5fcdf94 /ruby/README.md | |
parent | c70b6058eaae4fa5b1af577c548e6809a53dfd98 (diff) | |
download | protobuf-d55733c76ee1db702529f38f602548ffe48a4ab1.tar.gz protobuf-d55733c76ee1db702529f38f602548ffe48a4ab1.tar.bz2 protobuf-d55733c76ee1db702529f38f602548ffe48a4ab1.zip |
return nil if array index indicie is out of bounds
ruby arrays don't throw an exception; they return nil. Lets do the
same!
this fix also includes the ability to use negative array indicies
Diffstat (limited to 'ruby/README.md')
-rw-r--r-- | ruby/README.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ruby/README.md b/ruby/README.md index 9ae3ac36..16474322 100644 --- a/ruby/README.md +++ b/ruby/README.md @@ -63,7 +63,7 @@ To build this Ruby extension, you will need: To Build the JRuby extension, you will need: * Maven -* The latest version of the protobuf java library +* The latest version of the protobuf java library (see ../java/README.md) * Install JRuby via rbenv or RVM First switch to the desired platform with rbenv or RVM. @@ -75,7 +75,8 @@ Then install the required Ruby gems: Then build the Gem: - $ rake gem + $ rake + $ rake clobber_package gem $ gem install `ls pkg/google-protobuf-*.gem` To run the specs: |