carrierwave_encrypter_decrypter 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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmNhNzAxYjhhZDc0YTI3MDdlYWUzYTE4YThkYTBkMzVkZTM2OWJiOA==
4
+ N2NiYjhkNDYyZWUzZmM3ZTdmMzZhZjkwNTdjMzI1MjVmNmE1NTg1MQ==
5
5
  data.tar.gz: !binary |-
6
- ZTdmZTM1NGMzODc1MjQ5MzdhYzBiODIwYTlkODdmNDhjMzExMDVkYw==
6
+ NDRlMzQxMmUyZjNhMGE1ZDg1MzFmZjFmNmYxMDA1YmQ3OGVjODAxNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjY2NmU5ZTVjMDlhOWI5NjI0ZDAwM2JmZDhmNzAyMjBmZDc5ZmMyYWFmYjRm
10
- ODM3NzVjZDNhZDU0OGFjNmY3ZTk1NmI2MmUxMzA4ZmUxMTk1ODE3MmUyNDI5
11
- NGU3MDkzMTJkMDNlM2Y5ZTZhMmY0ZDkyMGU5MjJkMGVjNDhkZjE=
9
+ NjAzNDc5ZmJlZGI0YWY0YTk4YzM5MzY1ZTE1MmM1NTVhMmI0Yzg2MzhiZjMy
10
+ OGE1YmZlYjAxZDE0MGIyZTk1NTA4YTZmM2MxMWUyMjQ0ZjBiZjRhNGRhY2Ux
11
+ OTM1N2IwOGU1NmQ2OWYxZDg4MTZiODY4OTE0ZjM4OTAyNWM1YWU=
12
12
  data.tar.gz: !binary |-
13
- YzI3Zjg0NjQwM2Y0ZjY3MGNjMGM5NmEwYjA0ODU5MGIzZmVjMTg0MWNlOTdh
14
- MTliMWJmZTY3YzA5MDUzMWQwZWM2NWUwYjQxZjM3OWU1MDY2ZmU2NGVhMDhh
15
- MDAzYzAxODNlZTZmOGU2ZmExNGRlNGIzNTFhNzllNDk2OThiMDg=
13
+ MDUxY2MwZGZhYjYxMGUyZTI1MWEzZjdiZmRjMWVjM2MyZGY1N2YxNGY5MGRk
14
+ MTY0YWJhMjFiZmE0YTM0ZjdhZTc5NDk5OTNlMTExMTI5OWQ3YTgwMjllYTZl
15
+ Y2YzMThmMzNlMzRjNWIyYjQyYjVhNjM3ZGU2YTk2YWQ4Yzc5Yzg=
@@ -0,0 +1,12 @@
1
+ require 'carrierwave/encrypter_decrypter/openssl/aes'
2
+
3
+ class Decryption
4
+ def self.start!(obj,opts)
5
+ encryption_type = Carrierwave::EncrypterDecrypter.configuration.encryption_type
6
+
7
+ case encryption_type
8
+ when :aes
9
+ Openssl::Aes.decrypt_for(obj,opts)
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module CarrierwaveEncrypterDecrypter
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave_encrypter_decrypter
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
  - Ankit gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-29 00:00:00.000000000 Z
11
+ date: 2013-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger
@@ -62,6 +62,7 @@ files:
62
62
  - lib/carrierwave/encrypter_decrypter/encryption.rb
63
63
  - lib/carrierwave/encrypter_decrypter/uploader.rb
64
64
  - lib/carrierwave/encrypter_decrypter/downloader.rb
65
+ - lib/carrierwave/encrypter_decrypter/decryption.rb
65
66
  - lib/carrierwave/encrypter_decrypter/configuration.rb
66
67
  - lib/carrierwave/encrypter_decrypter/version.rb
67
68
  - lib/carrierwave/encrypter_decrypter/openssl/aes.rb