citrusbyte-milton 0.2.1 → 0.2.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.
- data/CHANGELOG.rdoc +10 -0
- data/lib/milton/attachment.rb +1 -1
- data/spec/fixtures/unsanitary .milton.jpg +0 -0
- data/spec/spec_helper.rb +3 -1
- metadata +4 -5
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
== 0.2.2, released 2009-02-16
|
2
|
+
|
3
|
+
* Made recreate directories aware of symlinks to avoid trying to recreate the
|
4
|
+
folder attachments are stored in if it's a symlink
|
5
|
+
|
6
|
+
== 0.2.1, released 2009-01-16
|
7
|
+
|
8
|
+
* Fixed init.rb to work as a gem
|
9
|
+
* Altered gemspec a tad
|
10
|
+
* Started CHANGELOG
|
data/lib/milton/attachment.rb
CHANGED
@@ -188,7 +188,7 @@ module Citrusbyte
|
|
188
188
|
|
189
189
|
# Recreates the directory this file will be stored in.
|
190
190
|
def recreate_directory
|
191
|
-
self.class.recreate_directory(dirname, milton_options) unless File.exists?(dirname)
|
191
|
+
self.class.recreate_directory(dirname, milton_options) unless File.exists?(dirname) || File.symlink?(dirname)
|
192
192
|
end
|
193
193
|
|
194
194
|
# Removes the containing directory from the filesystem (and hence the
|
Binary file
|
data/spec/spec_helper.rb
CHANGED
@@ -6,7 +6,9 @@ ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")
|
|
6
6
|
load(File.dirname(__FILE__) + '/schema.rb')
|
7
7
|
|
8
8
|
Spec::Runner.configure do |config|
|
9
|
-
|
9
|
+
# have to set Test::Unit::TestCase.fixture_path until RSpec is fixed
|
10
|
+
# (config.fixture_path seems to be ignored w/ Rails 2.2.2/Rspec 1.1.12)
|
11
|
+
config.fixture_path = Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), 'fixtures/')
|
10
12
|
|
11
13
|
# remove files created from previous spec run, happens before instead of
|
12
14
|
# after so you can view them after you run the specs
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citrusbyte-milton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Alavi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-02-16 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -25,7 +25,7 @@ files:
|
|
25
25
|
- INSTALL
|
26
26
|
- MIT-LICENSE
|
27
27
|
- README
|
28
|
-
- CHANGELOG
|
28
|
+
- CHANGELOG.rdoc
|
29
29
|
- init.rb
|
30
30
|
- lib/milton.rb
|
31
31
|
- lib/milton/attachment.rb
|
@@ -38,8 +38,7 @@ files:
|
|
38
38
|
- spec/fixtures/big-milton.jpg
|
39
39
|
- spec/fixtures/milton.jpg
|
40
40
|
- spec/fixtures/mini-milton.jpg
|
41
|
-
- spec/fixtures/unsanitary
|
42
|
-
- .milton.jpg
|
41
|
+
- spec/fixtures/unsanitary .milton.jpg
|
43
42
|
- spec/milton/attachment_spec.rb
|
44
43
|
- spec/milton/is_image_spec.rb
|
45
44
|
- spec/milton/is_resizeable_spec.rb
|