file-column 0.3.2

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.
@@ -0,0 +1,21 @@
1
+ require File.dirname(__FILE__) + '/abstract_unit'
2
+ require File.dirname(__FILE__) + '/fixtures/entry'
3
+
4
+ class RMagickViewOnlyTest < Test::Unit::TestCase
5
+ include FileColumnHelper
6
+
7
+ def setup
8
+ Entry.file_column :image
9
+ @request = RequestMock.new
10
+ end
11
+
12
+ def teardown
13
+ FileUtils.rm_rf File.dirname(__FILE__)+"/public/entry/"
14
+ end
15
+
16
+ def test_url_for_image_column_without_model_versions
17
+ e = Entry.new(:image => upload(f("skanthak.png")))
18
+
19
+ assert_nothing_raised { url_for_image_column e, "image", "50x50" }
20
+ end
21
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: file-column
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 2
10
+ version: 0.3.2
11
+ platform: ruby
12
+ authors:
13
+ - Alexander Borovsky
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-03 00:00:00 +03:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: File column plugin for Rails3
23
+ email: alex.borovsky@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files:
29
+ - README
30
+ - TODO
31
+ files:
32
+ - CHANGELOG
33
+ - Gemfile
34
+ - README
35
+ - Rakefile
36
+ - TODO
37
+ - file-column.gemspec
38
+ - init.rb
39
+ - lib/file_column.rb
40
+ - lib/file_column_helper.rb
41
+ - lib/file_compat.rb
42
+ - lib/magick_file_column.rb
43
+ - lib/rails_file_column.rb
44
+ - lib/test_case.rb
45
+ - lib/validations.rb
46
+ - test/abstract_unit.rb
47
+ - test/connection.rb
48
+ - test/file_column_helper_test.rb
49
+ - test/file_column_test.rb
50
+ - test/fixtures/entry.rb
51
+ - test/fixtures/invalid-image.jpg
52
+ - test/fixtures/kerb.jpg
53
+ - test/fixtures/mysql.sql
54
+ - test/fixtures/schema.rb
55
+ - test/fixtures/skanthak.png
56
+ - test/magick_test.rb
57
+ - test/magick_view_only_test.rb
58
+ has_rdoc: true
59
+ homepage: http://github.com/partizan/file_column
60
+ licenses: []
61
+
62
+ post_install_message: |
63
+ **************************************************
64
+
65
+ Thank you for installing file-column-0.3.2
66
+
67
+ **************************************************
68
+
69
+ rdoc_options:
70
+ - --charset=UTF-8
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ hash: 3
79
+ segments:
80
+ - 0
81
+ version: "0"
82
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
90
+ version: "0"
91
+ requirements: []
92
+
93
+ rubyforge_project:
94
+ rubygems_version: 1.3.7
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: file-column-0.3.2
98
+ test_files:
99
+ - test/abstract_unit.rb
100
+ - test/connection.rb
101
+ - test/file_column_helper_test.rb
102
+ - test/file_column_test.rb
103
+ - test/fixtures/entry.rb
104
+ - test/fixtures/schema.rb
105
+ - test/magick_test.rb
106
+ - test/magick_view_only_test.rb