paperclip 4.3.3 → 4.3.4
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.
- checksums.yaml +4 -4
- data/NEWS +4 -1
- data/lib/paperclip/deprecations.rb +3 -3
- data/lib/paperclip/version.rb +1 -1
- data/spec/paperclip/deprecations_spec.rb +4 -4
- data/spec/support/deprecations.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83567677f13e381c3c2808fb4351ebe5ab1d9472
|
4
|
+
data.tar.gz: c6b76b6377eb8635a698be2c4aca1c3fe803bf39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6985f2ea18d7b5924555ada101da7575603ccf3df435902e3388dc81750c4028a5abd9e8eaeff15b005716c86a9c066c7a172b11806278dde485abf0b7bd0c
|
7
|
+
data.tar.gz: ee7e8530249f6015fc49d7cb45167490dd26f011177b273a7284773b965c375beb8a38692a885af12fba83ef1a55452e1dcc6f1ca51fb655ea2b560f4d4b7bf5
|
data/NEWS
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
4.3.4 (2/2/2016):
|
2
|
+
* Bug Fix: Fix incompatible change from v4.3.3.
|
3
|
+
|
1
4
|
4.3.3 (1/29/2016):
|
2
5
|
|
3
|
-
*Improvement: Add deprecation warnings in preparation for release of v5.0
|
6
|
+
* Improvement: Add deprecation warnings in preparation for release of v5.0
|
4
7
|
|
5
8
|
4.3.2 (11/18/2015):
|
6
9
|
|
@@ -5,13 +5,13 @@ module Paperclip
|
|
5
5
|
class << self
|
6
6
|
def check
|
7
7
|
warn_aws_sdk_v1 if aws_sdk_v1?
|
8
|
-
warn_outdated_rails if
|
8
|
+
warn_outdated_rails if active_model_version < "4.2"
|
9
9
|
end
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
-
def
|
14
|
-
::
|
13
|
+
def active_model_version
|
14
|
+
::ActiveModel::VERSION::STRING
|
15
15
|
end
|
16
16
|
|
17
17
|
def aws_sdk_v1?
|
data/lib/paperclip/version.rb
CHANGED
@@ -14,9 +14,9 @@ describe Paperclip::Deprecations do
|
|
14
14
|
ActiveSupport::Deprecation.silenced = true
|
15
15
|
end
|
16
16
|
|
17
|
-
context "when active
|
17
|
+
context "when active model version is < 4.2" do
|
18
18
|
it "displays deprecation warning" do
|
19
|
-
Paperclip::Deprecations.stubs(:
|
19
|
+
Paperclip::Deprecations.stubs(:active_model_version).returns("4.1")
|
20
20
|
|
21
21
|
assert_deprecated("Rails 3.2 and 4.1 are unsupported") do
|
22
22
|
Paperclip::Deprecations.check
|
@@ -24,9 +24,9 @@ describe Paperclip::Deprecations do
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
context "when active
|
27
|
+
context "when active model version is 4.2" do
|
28
28
|
it "do not display deprecation warning" do
|
29
|
-
Paperclip::Deprecations.stubs(:
|
29
|
+
Paperclip::Deprecations.stubs(:active_model_version).returns("4.2")
|
30
30
|
|
31
31
|
assert_not_deprecated do
|
32
32
|
Paperclip::Deprecations.check
|
@@ -3,7 +3,7 @@ RSpec.configure do |config|
|
|
3
3
|
ActiveSupport::Deprecation.silenced = true
|
4
4
|
end
|
5
5
|
config.before(:each) do
|
6
|
-
Paperclip::Deprecations.stubs(:
|
6
|
+
Paperclip::Deprecations.stubs(:active_model_version).returns("4.2")
|
7
7
|
Paperclip::Deprecations.stubs(:aws_sdk_version).returns("2.0.0")
|
8
8
|
end
|
9
9
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paperclip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Yurek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|