paperclip 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ New in 3.1.1:
2
+
3
+ * Bug fix: Paperclip will only load Paperclip::Schema only when Active Record is available.
4
+
1
5
  New in 3.1.0:
2
6
 
3
7
  * Feature: Paperclip now support new migration syntax (sexy migration) that reads better:
data/README.md CHANGED
@@ -253,7 +253,7 @@ If you're using Rails 3.2 or newer, you only need `add_attachment` in your `chan
253
253
 
254
254
  ### Vintage syntax
255
255
 
256
- Vintage syntax (such as `t.has_attached_file` and `drop_attaached_file`) are still supported in
256
+ Vintage syntax (such as `t.has_attached_file` and `drop_attached_file`) are still supported in
257
257
  Paperclip 3.x, but you're advised to update those migration files to use this new syntax.
258
258
 
259
259
  Storage
@@ -8,15 +8,9 @@ module Paperclip
8
8
  base.extend ClassMethods
9
9
  base.send :include, Callbacks
10
10
  base.send :include, Validators
11
- base.send :include, Schema
11
+ base.send :include, Schema if defined? ActiveRecord
12
12
  base.class_attribute :attachment_definitions
13
13
 
14
- if defined?(ActiveRecord)
15
- ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, Paperclip::Schema)
16
- ActiveRecord::ConnectionAdapters::Table.send(:include, Paperclip::Schema)
17
- ActiveRecord::ConnectionAdapters::TableDefinition.send(:include, Paperclip::Schema)
18
- end
19
-
20
14
  locale_path = Dir.glob(File.dirname(__FILE__) + "/locales/*.{rb,yml}")
21
15
  I18n.load_path += locale_path unless I18n.load_path.include?(locale_path)
22
16
  end
@@ -1,3 +1,3 @@
1
1
  module Paperclip
2
- VERSION = "3.1.0" unless defined? Paperclip::VERSION
2
+ VERSION = "3.1.1" unless defined? Paperclip::VERSION
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-15 00:00:00.000000000 Z
12
+ date: 2012-06-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord