Skip to content

Instantly share code, notes, and snippets.

@cheald
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheald/81b0189bb64dabcff8aa to your computer and use it in GitHub Desktop.
Save cheald/81b0189bb64dabcff8aa to your computer and use it in GitHub Desktop.
chris@luna /var/www/repos/manticore (master*) $ rvm reinstall jruby-head
chris@luna /var/www/repos/manticore (master*) $ rvm use jruby-head
Using /usr/local/rvm/gems/jruby-head
chris@luna /var/www/repos/manticore (master*) $ jruby -v
jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-07-03 8257fad OpenJDK 64-Bit Server VM 25.25-b02 on 1.8.0_25-b18 +jit [linux-amd64]
chris@luna /var/www/repos/manticore (master*) $ rvm gemset use manticore --create
chris@luna /var/www/repos/manticore-test $ git clone git@github.com:cheald/manticore.git
chris@luna /var/www/repos/manticore-test $ cd manticore
chris@luna /var/www/repos/manticore-test/manticore (master) $ gem install bundler
chris@luna /var/www/repos/manticore-test/manticore (master) $ bundle
[!] There was an error parsing `Gemfile`: There was a Java::JavaLang::ArrayIndexOutOfBoundsException while loading manticore.gemspec:
2
. Bundler cannot continue.
# from /var/www/repos/manticore-test/manticore/Gemfile:4
# -------------------------------------------
# # Specify your gem's dependencies in manticore.gemspec
> gemspec
#
# -------------------------------------------
chris@luna /var/www/repos/manticore-test/manticore (master) $ rake -T
ManyVarsDynamicScope.java:145:in `setValueDepthZero': java.lang.ArrayIndexOutOfBoundsException: 2
from ManyVarsDynamicScope.java:138:in `setValue'
from DynamicScope.java:223:in `setValue'
from InterpreterEngine.java:535:in `setResult'
from StartupInterpreterEngine.java:144:in `processOtherOp'
from StartupInterpreterEngine.java:107:in `interpret'
from Interpreter.java:127:in `INTERPRET_EVAL'
from Interpreter.java:182:in `evalCommon'
from Interpreter.java:207:in `evalWithBinding'
from RubyKernel.java:1012:in `evalCommon'
from RubyKernel.java:979:in `eval19'
from RubyKernel$INVOKER$s$0$3$eval19.gen:-1:in `call'
from DynamicMethod.java:221:in `call'
from DynamicMethod.java:217:in `call'
from CachingCallSite.java:353:in `cacheAndCall'
from CachingCallSite.java:227:in `call'
from /usr/local/rvm/gems/jruby-head@manticore-test/bin/jruby_executable_hooks:-1:in `invokeOther17:eval'
from /usr/local/rvm/gems/jruby-head@manticore-test/bin/jruby_executable_hooks:15:in `RUBY$script'
from MethodHandle.java:636:in `invokeWithArguments'
from Compiler.java:111:in `load'
from Ruby.java:821:in `runScript'
from Ruby.java:813:in `runScript'
from Ruby.java:751:in `runNormally'
from Ruby.java:573:in `runFromMain'
from Main.java:401:in `doRunFromMain'
from Main.java:296:in `internalRun'
from Main.java:225:in `run'
from Main.java:197:in `main'
chris@luna /var/www/repos/manticore-test/manticore (master) $ cat Gemfile
source 'https://rubygems.org'
# Specify your gem's dependencies in manticore.gemspec
gemspec
gem "net-http-server", "~> 0.2"
gem "rspec", "~> 2.0"
gem "rspec-its"
gem "httpclient", "~> 2.3"
gem "rack", "~> 1.5"
gem "rake-compiler"
gem "gserver"
chris@luna /var/www/repos/manticore-test/manticore (master) $ cat manticore.gemspec
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'manticore/version'
Gem::Specification.new do |spec|
spec.name = "manticore"
spec.version = Manticore::VERSION
spec.authors = ["Chris Heald"]
spec.email = ["cheald@mashable.com"]
spec.description = %q{Manticore is an HTTP client built on the Apache HttpCore components}
spec.summary = %q{Manticore is an HTTP client built on the Apache HttpCore components}
spec.homepage = "https://github.com/cheald/manticore"
spec.license = "MIT"
spec.platform = 'java'
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
private_key = File.expand_path("~/.gemcert/gem-private_key.pem")
if File.exists? private_key
spec.signing_key = private_key
spec.cert_chain = ['gem-public_cert.pem']
end
spec.add_dependency "addressable", "~> 2.3"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment