phoenix_password 0.1.3 → 0.1.4

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: 8cfd7dba6d04a59daca9fc4443c943518df0a3ce
4
- data.tar.gz: 60af886c9253e8e8d22cdadfa108e9f0e5cf19dc
3
+ metadata.gz: a09e0b1f956a313ce3d4ff00e8f803309949ce63
4
+ data.tar.gz: c1adfa0184b895260991bd5f0a1b16f6d3f546f4
5
5
  SHA512:
6
- metadata.gz: 80083e76413e8fc415606381e729aeb5241ee660009a148f4ed9bed93a5c6358cdcae590431170f96660f388558cce4fbf99e675398178c2c1853dfbcb31195c
7
- data.tar.gz: 0c49c347dfe58e2ae1c7d1b3746b98ebd8b22da23804b219e7e064b463674eec65b0b587a8bd46f17d5825be8be8fd92e75cdc3256f73deb047769366790fcf5
6
+ metadata.gz: 3db615bd4071bb8872fbfd356f1d0f5491916e3bcff46400a581485067be49ce363ff44e7947ae11078b03eb008b131567f587b099c0c1eaacc35820ad8771b0
7
+ data.tar.gz: 5fa8b60263805368feee149a8a6e203fcd79470564e01b4bc0a7d67a51f13b5c9844ed4a5de0d8cb635a3b04a9695991ed9a219422af8509716567f5de5cdbac
data/README.md CHANGED
@@ -21,7 +21,7 @@ Or install it yourself as:
21
21
  $ gem install phoenix_password
22
22
 
23
23
  ## Usage
24
- In order to generate combinations simply add the minimum or the required options
24
+ In order to generate combinations simply add the minimum of the required options
25
25
  here is an irb example:
26
26
 
27
27
  ```ruby
@@ -1,3 +1,3 @@
1
1
  class PhoenixPassword
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -87,22 +87,24 @@ class PhoenixPassword
87
87
 
88
88
  matching=0
89
89
  begin
90
- generate_combinations(data) do |combination;i|
91
- if matching_check({:combination=>combination,:match_limit=>info[:match_limit]})
92
- if info[:piped]
93
- puts combination
94
- elsif !matching_file.nil?
95
- if data[:extra_chars].nil?
96
- matching_file.puts(combination)
97
- elsif data[:iteration] >= 1
98
- matching_file.puts(combination)
90
+ generate_combinations(data) do |combination;i|
91
+ if matching_check({:combination=>combination,:match_limit=>info[:match_limit]})
92
+ if info[:piped]
93
+ puts combination
94
+ elsif !matching_file.nil?
95
+ if data[:extra_chars].nil?
96
+ matching_file.puts(combination)
97
+ elsif data[:iteration] >= 1
98
+ matching_file.puts(combination)
99
+ end
99
100
  end
101
+ matching +=1
100
102
  end
101
- matching +=1
102
103
  end
103
- end
104
104
  data[:iteration]+=1 unless data[:iteration].nil?
105
105
  char_sum +=1
106
+ rescue => e
107
+ raise
106
108
  end while char_sum <= total_characters
107
109
  matching_file.close unless matching_file.nil?
108
110
  return matching
@@ -171,6 +173,8 @@ class PhoenixPassword
171
173
  end
172
174
  data[:iteration] +=1 if !data[:iteration].nil?
173
175
  char_sum +=1
176
+ rescue => e
177
+ raise
174
178
  end while char_sum <= total_characters
175
179
 
176
180
  unless unique_file.nil?
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phoenix_password
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spiros Avlonitis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-30 00:00:00.000000000 Z
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,6 +74,7 @@ files:
74
74
  - lib/phoenix_password.rb
75
75
  - lib/phoenix_password/version.rb
76
76
  - phoenix_password-0.1.2.gem
77
+ - phoenix_password-0.1.3.gem
77
78
  - phoenix_password.gemspec
78
79
  homepage: https://github.com/spirosavlonitis/phoenix_password
79
80
  licenses: