public
Description: Rails plugin for uploading images as resources, with support for resizing, text stamping, and other special effects.
Homepage: http://wiki.github.com/Squeegy/fleximage
Clone URL: git://github.com/Squeegy/fleximage.git
Tests are now runnable via "rake test:plugins" from application root that the 
plugin is installed in.  "rake" or "rake test" still work to run tests form the 
plugin root as well.
Squeegy (author)
Mon Apr 21 11:39:23 -0700 2008
commit  dd9ed4295c67d493e88dfb39875f417253e10f28
tree    caa7ee1f47284c865345ce40106ac61aa315e405
parent  8ea50c6b9f5463bc6e70bfe873c2f3270e7705d5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
...
1
2
 
 
 
 
 
 
 
 
3
4
5
6
 
 
 
 
 
7
 
 
 
 
0
@@ -1,24 +1,7 @@
0
 # SQLite version 3.x
0
 #   gem install sqlite3-ruby (not necessary on OS X Leopard)
0
-development:
0
-  adapter: sqlite3
0
-  database: db/development.sqlite3
0
-  timeout: 5000
0
-
0
-# Warning: The database defined as 'test' will be erased and
0
-# re-generated from your development database when you run 'rake'.
0
-# Do not set this db to the same as development or production.
0
 test:
0
   adapter: sqlite3
0
   database: db/test.sqlite3
0
   timeout: 5000
0
-  
0
-sqlite3:
0
-  adapter: sqlite3
0
-  database: db/test.sqlite3
0
-  timeout: 5000
0
 
0
-production:
0
-  adapter: sqlite3
0
-  database: db/production.sqlite3
0
-  timeout: 5000
...
1
2
 
3
4
5
...
13
14
15
16
 
17
18
19
...
41
42
43
44
45
 
...
1
 
2
3
4
5
...
13
14
15
 
16
17
18
19
...
41
42
43
 
44
45
0
@@ -1,5 +1,5 @@
0
 # Load the environment
0
-ENV['RAILS_ENV'] ||= 'sqlite3'
0
+ENV['RAILS_ENV'] ||= 'test'
0
 require File.dirname(__FILE__) + '/rails_root/config/environment.rb'
0
  
0
 # Load the testing framework
0
@@ -13,7 +13,7 @@ ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
0
 Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
0
 $LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)
0
  
0
-require 'test/mock_file'
0
+require File.dirname(__FILE__) + '/mock_file'
0
 require 'open-uri'
0
 
0
 class Test::Unit::TestCase #:nodoc:
0
@@ -41,4 +41,4 @@ class Test::Unit::TestCase #:nodoc:
0
       
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageDefaultImagePathOptionTest < Test::Unit::TestCase
0
   def test_should_use_a_default_image
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageFileUploadFromLocalTest < Test::Unit::TestCase
0
   def test_should_be_valid_with_image
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageFileUploadFromUrlTest < Test::Unit::TestCase
0
   def test_should_be_valid_with_image_from_url
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageFileUploadToDbTest < Test::Unit::TestCase
0
   def test_should_be_valid_with_image
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageImageDirectoryOptionTest < Test::Unit::TestCase
0
   def test_should_store_in_default_image_directory
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageImageStorageOptionTest < Test::Unit::TestCase
0
   def test_should_have_default_storage_format_png
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageMagicColumnsTest < Test::Unit::TestCase
0
   def test_should_save_data_in_magic_columns_from_local
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageOperatorBaseTest < Test::Unit::TestCase
0
   def setup
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximagePreprocessImageOptionTest < Test::Unit::TestCase
0
   def test_should_resize_image_on_upload
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageRequireImageOptionTest < Test::Unit::TestCase
0
   def test_should_require_image_by_default
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageTempImageTest < Test::Unit::TestCase
0
   def test_should_save_and_use_a_temp_image
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require 'test/test_helper'
0
+require File.dirname(__FILE__) + '/../../test/test_helper'
0
 
0
 class FleximageUseCreationDateBasedDirectoriesOptionTest < Test::Unit::TestCase
0
   def test_should_store_images_with_creation_date_based_directories

Comments