caterpillar 0.9.15 → 0.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+
2
+ = 0.9.16
3
+ - fixed undefined RAILS_ROOT bug
4
+ - cleaned out unused JARs; the gem is now smaller
5
+
1
6
  = 0.9.15
2
7
  - use rails-portlet 0.6.0 in Liferay 5.1.1
3
8
  - moved all migrations to lportal, now executes lportal migrations
@@ -5,7 +5,7 @@
5
5
  #++
6
6
 
7
7
  module Caterpillar
8
- VERSION='0.9.15'
8
+ VERSION='0.9.16'
9
9
  end
10
10
 
11
11
  this_file = File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__
@@ -13,6 +13,8 @@ this_dir = File.dirname(File.expand_path(this_file))
13
13
 
14
14
  CATERPILLAR_LIBS=this_dir unless defined?(CATERPILLAR_LIBS)
15
15
 
16
+ RAILS_ROOT = Dir.pwd unless defined? RAILS_ROOT
17
+
16
18
  require 'find'
17
19
 
18
20
  # include all ruby files
@@ -10,6 +10,9 @@
10
10
  require 'rake'
11
11
  require 'rake/tasklib'
12
12
 
13
+ # these are required for Caterpillar to work on Ruby 1.8.5.
14
+ # you shouldn't have more than one Rails installed at a time, or you should
15
+ # use the latest with Caterpillar.
13
16
  require 'actionpack'
14
17
  require 'action_controller'
15
18
 
@@ -1,5 +1,9 @@
1
- require 'rubygems'
2
- require 'active_record'
1
+ unless defined?(RAILS_ENV)
2
+ # this should load an appropriate version, there are problems when using an older Rails
3
+ # than the latest stable.
4
+ require 'rubygems'
5
+ require 'active_record'
6
+ end
3
7
 
4
8
  module Web # :nodoc:
5
9
  # Adds Caterpillar portlets to available portlets.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caterpillar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.15
4
+ version: 0.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Lammentausta
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-22 00:00:00 +02:00
12
+ date: 2009-03-26 00:00:00 +02:00
13
13
  default_executable: caterpillar
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -48,8 +48,6 @@ files:
48
48
  - init.rb
49
49
  - lib/java
50
50
  - lib/java/rails-portlet-0.6.0.jar
51
- - lib/java/rails-portlet-0.5.2.jar
52
- - lib/java/rails-portlet-0.6.2.jar
53
51
  - lib/java/rails-portlet-0.6.1.jar
54
52
  - lib/caterpillar
55
53
  - lib/caterpillar/config.rb