paperclip_lambda 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d35b731f6e0c7d95080480d60f84b2a1c976ffd
4
- data.tar.gz: b979c19571f3f31ae84a1fa3266982e52950ccc5
3
+ metadata.gz: d63b70aae87403c418315c36158a939c94904fc5
4
+ data.tar.gz: 48b06af937fa6e93f6d6b71e8d0ac07e5d176b27
5
5
  SHA512:
6
- metadata.gz: 52971c7e9024b8a343caae85efed17283d1bb0c4ed37962f55fe4c5ff9921daf103664d8abc25acd4d4c4b158a78f079ac8dd3c0f754d8e0201d65f4163d5647
7
- data.tar.gz: 3c8d718cb930080120d5bff4cb2d39e6d0a5121b6f6a022ee1e240f1425371aa31efdf0b1701303e54f3b70afe571c6eb35b0cface8a8ce38d2f1faed42922a9
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
- base.send(:alias_method, :destroy_without_lambda, :destroy)
9
- base.send(:alias_method, :destroy, :destroy_with_lambda)
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 destroy_with_lambda
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
@@ -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.2'
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk