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 HapagLloydMoveDocWrapper < DocWrapperBase | |
| property :carrier_description, :string, './td[1]' | |
| property :location, :string, './td[2]' | |
| multi_property :time_of_move, ['./td[3]','./td[4]'] do |x| | |
| Time.parse("#{x[0]} #{x[1]}".strip) | |
| end | |
| property :status, :raw, './td[1]' do |node_list| | |
| node = node_list.first | |
| if node.attribute("class") && node.attribute("class").content =~ /strong/ | |
| 'ACTUAL' | 
  
    
      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
    
  
  
    
  | Caused by: org.jruby.rack.RackInitializationException: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; | |
| from file:/Users/mark/opt/JBoss-4.0.2/server/default/tmp/deploy/tmp4851618238755102823mori.ear-contents/mori.war/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:113:in `setup_relative_url_root' | |
| from file:/Users/mark/opt/JBoss-4.0.2/server/default/tmp/deploy/tmp4851618238755102823mori.ear-contents/mori.war/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:48:in `load_environment' | |
| from file:/Users/mark/opt/JBoss-4.0.2/server/default/tmp/deploy/tmp4851618238755102823mori.ear-contents/mori.war/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:38:in `to_app' | |
| from file:/Users/mark/opt/JBoss-4.0.2/server/default/tmp/deploy/tmp4851618238755102823mori.ear-contents/mori.war/WEB-INF/lib/jruby-rack-0.9.7.jar!/jruby/rack/rails.rb:186:in `new' | |
| from <script>:2 | |
| from file:/Users/mark/opt/JBoss-4.0.2/server/default/tmp/deploy/tmp485161823875510 | 
  
    
      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
    
  
  
    
  | require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') | |
| describe Scm::OnHandReportsController do | |
| #Delete these examples and add some real ones | |
| it "should use Scm::OnHandReportsController" do | |
| controller.should be_an_instance_of(Scm::OnHandReportsController) | |
| 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
    
  
  
    
  | package models | |
| import javax.persistence.* | |
| @Entity (name="Agreement") | |
| @Table (name="agreement") | |
| @EntityListeners ([QIdSetter.class]) | |
| class AgreementJpaImpl extends QIdEntityImpl implements Agreement { | |
| @ManyToOne (targetEntity=PartyJpaImpl.class) | 
  
    
      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
    
  
  
    
  | require 'java' | |
| java_require 'agreement_jpa_impl' | |
| java_package 'models' | |
| java_import 'javax.persistence.*' | |
| java_annotation '@Entity (name="Agreement")' | |
| java_annotation '@Table (name="agreement")' | |
| java_annotation '@EntityListeners ({ QIdSetter.class })' | 
  
    
      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
    
  
  
    
  | [mark@Marks-MacBook-2:tmp/jrubyc-test]$ cat foo.rb | |
| require 'java' | |
| java_require 'foo' | |
| class Foo | |
| java_signature 'void main(String[])' | |
| def self.main(args) | |
| bar(args[0], args[1]) | |
| 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
    
  
  
    
  | [mark@Marks-MacBook-2:~]$ rvm list | |
| rvm Rubies | |
| jruby-1.4.0 [ [x86_64-java] ] | |
| rbx-1.0.0-rc3 [ i386 ] | |
| ruby-1.8.7-p249 [ i386 ] | |
| => ruby-1.9.1-p378 [ i386 ] | |
| __rvm_select:187: command not found: __rvm_gemset_select | 
  
    
      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
    
  
  
    
  | 2010-02-11 17:18:54.922:/quadran:WARN: rails: Failure to invoke rails: null | |
| java.lang.IndexOutOfBoundsException | |
| at org.jruby.util.ByteList.insert(ByteList.java:326) | |
| at jdbc_adapter.JdbcMySQLSpec.quote_table_name(JdbcMySQLSpec.java:103) | |
| at jdbc_adapter.JdbcMySQLSpecInvoker$quote_table_name_s_method_1_0.call(Unknown Source) | |
| at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:155) | |
| at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:332) | |
| at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:649) | |
| at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:324) | |
| at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:170) | 
  
    
      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 Person < ActiveRecord::Base | |
| # Everything in here are methods on the Person object. | |
| class << self | |
| def find_by_name (name) | |
| # implement it | |
| end | |
| end | |
| # Assume the table has a name and address column. | 
  
    
      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
    
  
  
    
  | def calculateStatus (Lot lot) { | |
| // TODO Should we look at using a State pattern here? -Mark 11/10/09 | |
| // TODO LoD refactoring | |
| def tos = lot.incomingOrderLineItem.shipmentLineItems.container.transportOrderLineItems.transportOrder.findAll { it.status != 'CANCELLED' } | |
| def result = null | |
| // Status | |
| log.debug "[ LotDependencyManagerImpl ]: [${lot.id}] : Calculating status " |