forgiva 1.0.0 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/forgiva +31 -0
  3. data/forgiva.gemspec +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf3479c51497876c8cb84dd0ae488ba073401843
4
- data.tar.gz: 00533aba2096e3faa9f25ae813b794fa72505d3e
3
+ metadata.gz: efcebb72b1389af59c1e155f53f9811eeeef57ad
4
+ data.tar.gz: 6a2e0ddd0aacd191f4635b5bd25fb3e6a1b30fce
5
5
  SHA512:
6
- metadata.gz: 7df6b14b4cce5b42f896fa01d70d82dbf76eac4870e995aec913f8212cb27bbaa8909f316629bf111ce218e1946cff91ce94458db103f54759e793982236a46f
7
- data.tar.gz: 77825ca4ad63fe4b483c32e8374d93d90af993209383c8fa5ab5afa9be41e4eb75da35374e14b6c60c24c64412230c5842607a60d7b089ddbce4a92535e9e086
6
+ metadata.gz: 0b11003dec7911bdd96b50fbff699fe58b2caa734eec513a57f0516f845055b8c6a4f44639ccd09de3168f91b58be3aa8bf09ea820a0b5d2bb630c2ff964888b
7
+ data.tar.gz: 8d79a79ea2be6a6c5bf8ee38169cc5a87bf449d18d5c4708d23ce12c55ffa2222075a3f769d5c120a7f774c2a751927bb21e485a65104cac93fe5d94cb3790a9
data/bin/forgiva CHANGED
@@ -3,6 +3,8 @@
3
3
  require 'forgiva_test'
4
4
  require 'forgiva_commands'
5
5
  require 'constants'
6
+ require 'openssl'
7
+
6
8
 
7
9
  BANNER = Constants::COLOR_CYA + "\n .-\" L_ " +
8
10
  Constants::COLOR_CYA + " FORGIVA (" + Constants::COLOR_MGN + "Open Source Edition" + Constants::COLOR_CYA + ")\n " +
@@ -35,6 +37,35 @@ ENDHELP
35
37
 
36
38
  puts BANNER
37
39
 
40
+ BUG_NOTIFICATION = <<ENDBN
41
+ It's recommended you to upgrade Ruby install with rvm at https://rvm.io and executing;
42
+
43
+ $ rvm install 2.1
44
+ $ rvm use 2.1
45
+
46
+ will be enough for OpenSSL compatibility.
47
+
48
+ ENDBN
49
+
50
+ # Checks against the unknown cipher or digest algorithm due to bugs
51
+ Constants::ENC_ALGS.each do |ea|
52
+ if (OpenSSL::Cipher.ciphers.find_index(ea) == nil) then
53
+ puts Constants::COLOR_CYA + "OpenSSL installation lacks of #{ea} algorithm.\n" + Constants::COLOR_RST + BUG_NOTIFICATION
54
+ exit 1
55
+ end
56
+ end
57
+
58
+ Constants::HASH_ALGS.each do |ha|
59
+ begin
60
+ OpenSSL::Digest.new(ha)
61
+ rescue
62
+ puts Constants::COLOR_CYA + "OpenSSL installation lacks of #{ha} algorithm.\n" + Constants::COLOR_RST + BUG_NOTIFICATION
63
+ exit 1
64
+ end
65
+ end
66
+
67
+
68
+
38
69
  hash_args = {}
39
70
 
40
71
  t_hash_args = Hash[ ARGV.join(" ").scan(/--?([^=\s]+)(?:[=\s+]?([^-]\S+))?/) ]
data/forgiva.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'forgiva'
3
- gem.version = '1.0.0'
3
+ gem.version = '1.0.1.1'
4
4
  gem.date = '2016-07-12'
5
5
 
6
6
  gem.summary = 'Forgiva'
7
7
  gem.description = 'The new-age password manager.'
8
8
  gem.authors = ['Harun Esur']
9
9
  gem.email = 'root@sceptive.com'
10
- gem.homepage = 'https://www.forgiva.com'
11
- gem.license = ' CC BY-NC-SA 4.0'
10
+ gem.homepage = 'http://sceptive.com'
11
+ gem.license = 'MIT'
12
12
  gem.requirements << 'Ruby should be compiled with openssl support.'
13
13
 
14
14
  gem.executables << 'forgiva'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forgiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harun Esur
@@ -61,9 +61,9 @@ files:
61
61
  - lib/forgiva_commands.rb
62
62
  - lib/forgiva_test.rb
63
63
  - lib/testvectors.rb
64
- homepage: https://www.forgiva.com
64
+ homepage: http://sceptive.com
65
65
  licenses:
66
- - " CC BY-NC-SA 4.0"
66
+ - MIT
67
67
  metadata: {}
68
68
  post_install_message:
69
69
  rdoc_options: []