r_decryptor 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55d88f8534ceaadab88a7300039e322f175cd2cd
4
- data.tar.gz: cda30f80758202c6a86d5b3f1400cd076d5f968d
3
+ metadata.gz: 9a732996e0732b16f03af640ccd0f97457bc7af5
4
+ data.tar.gz: 0c43e094ab4c9b24327fec6e437dd35d89bfa7a0
5
5
  SHA512:
6
- metadata.gz: 3cb91c00494bccb97ccca3d759abf40475ce1df65d05b50b92e44d47927b0f93a1a5efe23b2155b24569253d1badb61c72e2766aa0d186d0ccf418fdaa38de59
7
- data.tar.gz: 9833ffac24caf51614fc031ffee6a9255cd8d217efaba3ed1fe52f78aedb9ef36081d7448a49ec87c3473225d2378d5d8af1743ed3937f0d3e427d8483ae868a
6
+ metadata.gz: a9f8ec506fc03db76185b00032be99e1506013f8efdd0fa73881d45e75a558330d1a32c55463de07fa8e98004c809a0821edb85179a203a530800b46f92234f0
7
+ data.tar.gz: a37c3c4ac9bec26a5a725d0550ff245c10113452c314724784fbe2a11a5ec66afa74086887aeac9cc6852f52fc9bb8bdc199dd46b59b0d6b535c4bfebd739c01
@@ -1,3 +1,3 @@
1
1
  module RDecryptor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/r_decryptor.rb CHANGED
@@ -24,25 +24,25 @@ module RDecryptor
24
24
  decipher.decrypt
25
25
  decipher.key = key
26
26
  decipher.iv = iv
27
- File.open(File.expand_path('../application2.yml', __FILE__), 'wb') do |dec|
28
- File.open(encrypted_db_yml, 'rb') do |f|
29
- loop do
30
- r = f.read(4096)
31
- break unless r
32
- decoded = decipher.update(r)
33
- dec << decoded
34
- end
35
- end
36
-
37
- dec << decipher.final
38
- end
39
-
40
- # Create CONFIG[:foo] constants from temp application2.yml
41
- CONFIG = YAML.load(File.read(File.expand_path('../application2.yml', __FILE__)))
42
- CONFIG.merge! CONFIG.fetch(Rails.env, {})
43
- CONFIG.symbolize_keys!
44
-
45
- # Delete temp application2.yml
46
- File.delete(File.expand_path('../application2.yml', __FILE__))
27
+ # File.open(File.expand_path('../application2.yml', __FILE__), 'wb') do |dec|
28
+ # File.open(encrypted_db_yml, 'rb') do |f|
29
+ # loop do
30
+ # r = f.read(4096)
31
+ # break unless r
32
+ # decoded = decipher.update(r)
33
+ # dec << decoded
34
+ # end
35
+ # end
36
+
37
+ # dec << decipher.final
38
+ # end
39
+
40
+ # # Create CONFIG[:foo] constants from temp application2.yml
41
+ # CONFIG = YAML.load(File.read(File.expand_path('../application2.yml', __FILE__)))
42
+ # CONFIG.merge! CONFIG.fetch(Rails.env, {})
43
+ # CONFIG.symbolize_keys!
44
+
45
+ # # Delete temp application2.yml
46
+ # File.delete(File.expand_path('../application2.yml', __FILE__))
47
47
  end
48
48
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r_decryptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Mentis