Permalink
Browse files

this isn't explicitly a fog plugin anymore, so let's remove some of t…

…he references.
  • Loading branch information...
1 parent c349d1a commit 750cc3cab22a291a1bec0f4e9f26b53fe0b8f141 @cowboyd committed May 6, 2011
Showing with 15 additions and 49 deletions.
  1. +4 −3 Gemfile
  2. +10 −27 Gemfile.lock
  3. +1 −1 pom.xml
  4. +0 −18 src/main/java/ruby/ERBSpike.java
View
@@ -1,4 +1,5 @@
source :rubygems
-gem "fog"
-gem "jruby-openssl"
-gem "json"
+
+group :development do
+ gem "rspec", ">= 2.5.0"
+end
View
@@ -1,36 +1,19 @@
GEM
remote: http://rubygems.org/
specs:
- bouncy-castle-java (1.5.0145.2)
- builder (3.0.0)
- excon (0.4.0)
- fog (0.4.0)
- builder
- excon (>= 0.3.7)
- formatador (>= 0.0.16)
- json
- mime-types
- net-ssh (>= 2.0.23)
- nokogiri (>= 1.4.4)
- ruby-hmac
- formatador (0.0.16)
- jruby-openssl (0.7.3)
- bouncy-castle-java
- json (1.4.6)
- json (1.4.6-java)
- mime-types (1.16)
- net-ssh (2.1.0)
- nokogiri (1.4.4)
- nokogiri (1.4.4-java)
- weakling (>= 0.0.3)
- ruby-hmac (0.4.0)
- weakling (0.0.4-java)
+ diff-lcs (1.1.2)
+ rspec (2.5.0)
+ rspec-core (~> 2.5.0)
+ rspec-expectations (~> 2.5.0)
+ rspec-mocks (~> 2.5.0)
+ rspec-core (2.5.1)
+ rspec-expectations (2.5.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.5.0)
PLATFORMS
java
ruby
DEPENDENCIES
- fog
- jruby-openssl
- json
+ rspec (>= 2.5.0)
View
@@ -17,7 +17,7 @@
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
- <version>1.6.0.RC1</version>
+ <version>1.6.1</version>
</dependency>
</dependencies>
@@ -1,18 +0,0 @@
-package ruby;
-
-
-import org.jruby.RubyClass;
-import org.jruby.RubyObject;
-import org.jruby.embed.ScriptingContainer;
-
-public class ERBSpike {
-
- public static void main(String[] args) {
- ScriptingContainer jruby = new ScriptingContainer();
- jruby.runScriptlet("require 'erb'");
- RubyClass erb = (RubyClass) jruby.runScriptlet("ERB");
- RubyObject template = (RubyObject) jruby.callMethod(erb, "new", "Hello <%= @name %>");
- String result = (String) jruby.callMethod(template, "result");
- System.out.println("result = " + result);
- }
-}

0 comments on commit 750cc3c

Please sign in to comment.