dragonfly 0.5.4 → 0.5.5

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.

Potentially problematic release.


This version of dragonfly might be problematic. Click here for more details.

@@ -1,3 +1,30 @@
1
+ 0.5.5 (2010-04-13)
2
+ ==================
3
+
4
+ Fixes
5
+ --------
6
+ - Rails 3 has changed 'metaclass' -> 'singleton_class' so adapt accordingly
7
+
8
+ 0.5.4 (2010-04-12)
9
+ ==================
10
+
11
+ Features
12
+ --------
13
+ - Allow setting the uid manually
14
+
15
+ Fixes
16
+ -----
17
+ - Assigning an accessor to nil wasn't working properly
18
+
19
+
20
+ 0.5.3 (2010-03-27)
21
+ ==================
22
+
23
+ Fixes
24
+ -----
25
+ - Assigning an accessor to nil wasn't working properly
26
+
27
+
1
28
  0.5.2 (2010-03-04)
2
29
  ==================
3
30
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 0.5.5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dragonfly}
8
- s.version = "0.5.4"
8
+ s.version = "0.5.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Evans"]
@@ -5,7 +5,8 @@ module Dragonfly
5
5
  include Validations
6
6
 
7
7
  def register_dragonfly_app(accessor_prefix, app)
8
- metaclass.class_eval do
8
+ eigenclass = respond_to?(:metaclass) ? metaclass : singleton_class # Because rails changed the name from metaclass -> singleton_class
9
+ eigenclass.class_eval do
9
10
 
10
11
  # Defines e.g. 'image_accessor' for any activerecord class body
11
12
  define_method "#{accessor_prefix}_accessor" do |attribute|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 4
9
- version: 0.5.4
8
+ - 5
9
+ version: 0.5.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark Evans