- Email: jpkutner at gmail dot com
- Twitter: @codefinger
- Website or Blog: http://deployingjruby.blogspot.com/
- Company: LogicHaus, LLC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should return nil if torquebox-server is not installed" do | |
# if you have torquebox-server installed, this will actually return a | |
# value instead of nil. so reseting gem paths. | |
old_gem_home = ENV['GEM_HOME'] | |
old_gem_path = ENV['GEM_PATH'] | |
ENV['GEM_PATH'] = "" | |
ENV['GEM_HOME'] = "" | |
Gem.clear_paths | |
TorqueBox::Server.torquebox_home.should == nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] | |
[INFO] --- rspec-maven-plugin:0.28.4:test (run-specs) @ torquebox-integration-tests --- | |
[INFO] Successfully installed torquebox-rake-support-2.1.0 | |
[INFO] Successfully installed torquebox-messaging-2.1.0-java | |
[INFO] Successfully installed torquebox-transactions-2.1.0 | |
[INFO] Successfully installed torquebox-stomp-2.1.0 | |
[INFO] Successfully installed torquebox-core-2.1.0-java | |
[INFO] Successfully installed torquebox-security-2.1.0-java | |
[INFO] Successfully installed torquebox-cache-2.1.0-java | |
[INFO] 7 gems installed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -J-cp jboss/bin/client/jboss-client.jar -S irb | |
jruby-1.6.7 :002 > require 'java'; require 'rubygems'; require 'jmx4r' | |
=> true | |
jruby-1.6.7 :003 > JMX::MBean.establish_connection :url => 'service:jmx:remoting-jmx://127.0.0.1:9999' | |
Jun 01, 2012 3:58:35 PM org.xnio.Xnio <clinit> | |
INFO: XNIO Version 3.0.3.GA | |
Jun 01, 2012 3:58:35 PM org.xnio.nio.NioXnio <clinit> | |
INFO: XNIO NIO Implementation Version 3.0.3.GA | |
Jun 01, 2012 3:58:35 PM org.xnio.nio.NioXnio <init> | |
WARN: The currently defined selector provider class (sun.nio.ch.PollSelectorProvider) is not supported for use with XNIO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExpensiveToCreate | |
def self.instance | |
@instance ||= ExpensiveToCreate.new | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] ------------------------------------------------------------------------ | |
[INFO] Reactor Summary: | |
[INFO] | |
[INFO] TorqueBox ......................................... SUCCESS [0.958s] | |
[INFO] TorqueBox Support Packages ........................ SUCCESS [0.595s] | |
[INFO] TorqueBox JBoss AS Integration Testing Support .... SUCCESS [3.271s] | |
[INFO] TorqueBox Modules Parent .......................... FAILURE [5.115s] | |
[INFO] TorqueBox Bootstrap Module ........................ SKIPPED | |
[INFO] TorqueBox Gems Parent ............................. SKIPPED | |
[INFO] TorqueBox Core Gem ................................ SKIPPED |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'twitter', :git => 'https://github.com/sferik/twitter.git', :tag => 'v2.0.2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:20:14,637 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA | |
12:20:15,257 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA | |
12:20:15,327 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting | |
12:20:15,329 DEBUG [org.jboss.as.config] Configured system properties: | |
[Standalone] = | |
awt.toolkit = sun.lwawt.macosx.LWCToolkit | |
file.encoding = UTF-8 | |
file.encoding.pkg = sun.io | |
file.separator = / | |
ftp.nonProxyHosts = local|*.local|169.254/16|*.169.254/16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SessionHash < Hash | |
#... | |
def [](key) | |
load_for_read! | |
@data[key.to_s] | |
end | |
def []=(key, value) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jkutner@largo[torquebox](➈❷) (git::2x-dev)]$ git status | |
# On branch 2x-dev | |
# Your branch is ahead of 'upstream/2x-dev' by 60 commits. | |
# | |
nothing to commit (working directory clean) | |
[jkutner@largo[torquebox](➈❷) (git::2x-dev)]$ git log -1 | |
commit 487d8df6b207f118cd8ab8f961ca9f6a62225ab1 | |
Author: Ben Browning <[email protected]> | |
Date: Fri Mar 1 08:53:00 2013 -0500 |