Skip to content

Instantly share code, notes, and snippets.

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type="text/javascript">
(function($, undefined) {
/**
* Unobtrusive scripting adapter for jQuery
* https://github.com/rails/jquery-ujs
*
(2.2..3.5).step(0.2) { |i| puts i }
2.2
2.4000000000000004
2.6
2.8000000000000003
3.0
3.2
3.4000000000000004
$ jruby -d -S gem install bundler
java.lang.ClassNotFoundException: rubygems.defaults.OperatingSystemService
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:128)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
mpapis: mrbrdo, I need to know first what command exactly did you ran and all the output you got
[01:40am] mpapis: rvm install 1.7.6-new
mrbrdo: I'm not sure that that will just work like that?
[01:40am] mrbrdo: 1.7.6-new? doesn't it need to know which jruby I want
[01:40am] mrbrdo: mpapis: the command I ran was: gem install bundler
[01:41am] mrbrdo: and the output was:
[01:41am] mrbrdo: ERROR: While executing gem ... (SocketError)
[01:41am] mrbrdo: bind: name or service not known
[01:41am] mrbrdo: nothing else
[01:44am] mrbrdo: the weird thing is that it only happens with 1.7.6, not with 1.7.4, 1.7.10 or 1.7.11
# Add a unique index in your migrations like this:
# add_index :table, :code, unique: true
before_create :set_code
around_save :save_with_unique_code
def self.generate_code
SecureRandom.hex(2).upcase
end
- root supervisor finalizer called (this one calls terminate on other actors)
- other actors finalizers called
- last of the other actors finalizer START
WARN -- Terminating task: type=:timer, meta=nil, status=:callwait
- root supervisor finalizer called again (??)
WARN -- Terminating task: type=:finalizer, meta={:method_name=>:on_terminate}, status=:callwait
- last of the other actors finalizer END
GIT
remote: git://github.com/TalentBox/sequel-rails.git
revision: a49bdd0707808d197eb1741455ccebc34db68bc2
ref: a49bdd0707808d197eb1741455ccebc34db68bc2
specs:
sequel-rails (0.6.2.dev)
railties (>= 3.2.0)
sequel (>= 3.28, < 5.0)
GIT
source 'https://rubygems.org'
gem 'sequel', '~> 4.1.0', :require => false
gem 'rails', '4.0.0'
gem 'sequel-rails', github: 'TalentBox/sequel-rails', ref: 'a49bdd0707808d197eb1741455ccebc34db68bc2'
gem 'sequel_secure_password', github: 'mrbrdo/sequel_secure_password'
gem 'carrierwave-sequel', :require => 'carrierwave/sequel'
gem 'aws-sdk'
Utils.java:83:in `repeat': java.lang.NegativeArraySizeException
from Utils.java:77:in `repeat'
from Generator.java:364:in `generate'
from Generator.java:309:in `generate'
from Generator.java:295:in `generate'
from Generator.java:252:in `generate'
from Generator.java:357:in `visit'
from RubyHash.java:636:in `visitAll'
from Generator.java:336:in `generate'
from Generator.java:309:in `generate'
# AR
User.find(id)
# Sequel
User[id]