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/Rakefile | |
parent | c70b6058eaae4fa5b1af577c548e6809a53dfd98 (diff) |
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/Rakefile')
-rw-r--r-- | ruby/Rakefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ruby/Rakefile b/ruby/Rakefile index 7c1d8495..c25103d8 100644 --- a/ruby/Rakefile +++ b/ruby/Rakefile @@ -6,6 +6,9 @@ require "rake/testtask" spec = Gem::Specification.load("google-protobuf.gemspec") if RUBY_PLATFORM == "java" + if `which mvn` == '' + raise ArgumentError, "maven needs to be installed" + end task :clean do system("mvn clean") end |