citrusbyte-milton 0.2.3 → 0.2.4

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 CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.2.4, released 2009-02-16
2
+
3
+ * Got rid of symlink_aware_mkdir_p as it wasn't actually needed, problem was
4
+ caused by invalid symlinks in the first place, oops. Left specs as they are
5
+ still valid.
6
+
1
7
  == 0.2.3, released 2009-02-16
2
8
 
3
9
  * Added a symlink_aware_mkdir_p to FileUtils to actually fix problem w/ root
@@ -1,6 +1,5 @@
1
1
  require 'ftools'
2
2
  require 'fileutils'
3
- require File.join(File.dirname(__FILE__), 'file_utils')
4
3
 
5
4
  module Citrusbyte
6
5
  module Milton
@@ -110,8 +109,8 @@ module Citrusbyte
110
109
  # Creates the given directory and sets it to the mode given in
111
110
  # options[:chmod]
112
111
  def recreate_directory(directory, options)
113
- return true if File.exists?(directory) || File.symlink?(directory)
114
- FileUtils.symlink_aware_mkdir_p(directory)
112
+ return true if File.exists?(directory)
113
+ FileUtils.mkdir_p(directory)
115
114
  File.chmod(options[:chmod], directory)
116
115
  end
117
116
 
@@ -192,7 +191,6 @@ module Citrusbyte
192
191
  # Also creates the root path where all attachments are stored if it
193
192
  # doesn't exist yet.
194
193
  def recreate_directory
195
- self.class.recreate_directory(root_path, milton_options)
196
194
  self.class.recreate_directory(dirname, milton_options)
197
195
  end
198
196
 
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Alavi