paperclip_lambda 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/paperclip_lambda/attachment.rb +7 -3
- data/paperclip_lambda.gemspec +1 -2
- 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: d63b70aae87403c418315c36158a939c94904fc5
|
|
4
|
+
data.tar.gz: 48b06af937fa6e93f6d6b71e8d0ac07e5d176b27
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15efa67433c2691be98f24317a9768732d9add9a489046d7a13ff9840bcbb4d8a4a83ed1719fe52b96db07286ef364244f8917e5c6903370d49d7e4038039f58
|
|
7
|
+
data.tar.gz: 5686806bb0d9f1c6afa762e5e3822a80250f7aa0ad9167b6fa1f7d1994381f11b2823f914c37eff4cf93c1e06e1104f74dbe2f102cb117e71de7cfc0875d4032
|
|
@@ -5,8 +5,11 @@ module PaperclipLambda
|
|
|
5
5
|
base.send(:alias_method, :save_without_lambda, :save)
|
|
6
6
|
base.send(:alias_method, :save, :save_with_lambda)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
base.send(:alias_method, :
|
|
8
|
+
|
|
9
|
+
base.send(:alias_method, :queue_all_for_delete_without_lambda, :queue_all_for_delete)
|
|
10
|
+
base.send(:alias_method, :queue_all_for_delete, :queue_all_for_delete_with_lambda)
|
|
11
|
+
# base.send(:alias_method, :destroy_without_lambda, :destroy)
|
|
12
|
+
# base.send(:alias_method, :destroy, :destroy_with_lambda)
|
|
10
13
|
end
|
|
11
14
|
|
|
12
15
|
module InstanceMethods
|
|
@@ -43,8 +46,9 @@ module PaperclipLambda
|
|
|
43
46
|
end
|
|
44
47
|
end
|
|
45
48
|
|
|
46
|
-
def
|
|
49
|
+
def queue_all_for_delete_with_lambda
|
|
47
50
|
instance.prepare_enqueueing_for_deletion(name)
|
|
51
|
+
queue_all_for_delete_without_lambda
|
|
48
52
|
end
|
|
49
53
|
end
|
|
50
54
|
end
|
data/paperclip_lambda.gemspec
CHANGED
|
@@ -2,8 +2,7 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = 'paperclip_lambda'
|
|
5
|
-
s.version = '0.0.
|
|
6
|
-
s.date = '2016-06-17'
|
|
5
|
+
s.version = '0.0.3'
|
|
7
6
|
s.summary = "Paperclip Lambda"
|
|
8
7
|
s.add_runtime_dependency "aws-sdk", ["~> 2"]
|
|
9
8
|
s.add_runtime_dependency "paperclip", ["4.2.1"]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: paperclip_lambda
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Santanu Bhattacharya
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|