bankey 0.0.1 → 1.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a8533cdb1018556eeba52e93f626b58c51d64ef6
4
+ data.tar.gz: f59ff0bcec7caecbfa9e2fb070d9e65ee2602ece
5
+ SHA512:
6
+ metadata.gz: a5171c2e89557bc55067bdb02532451740d7fe020db603800a64531d4427e54b24b5a52f8d9fb97a1b2224bbb3f46e9f41b111d60f22a503b51702b92d8e9fea
7
+ data.tar.gz: 1b658b36ee69fa6a4f3dc72ea3d0bda6a78a706db42bd1ab1efe9c5cf740019a17c712f678e1affa3b7aca2024fc8c85965709026ff9d5fff36a9805e6179729
data/README.md CHANGED
@@ -1,20 +1,24 @@
1
1
  # Bankey
2
2
 
3
- get given characters from your password
3
+ [![](https://img.shields.io/gem/v/bankey.svg?style=flat-square)](https://rubygems.org/gems/bankey)
4
+ [![](http://img.shields.io/codeclimate/github/lubieniebieski/bankey.svg?style=flat-square)](https://codeclimate.com/github/lubieniebieski/bankey)
5
+ [![](http://img.shields.io/gemnasium/lubieniebieski/bankey.svg?style=flat-square)](https://gemnasium.com/lubieniebieski/bankey)
6
+
7
+ Get given characters from your password / text
4
8
 
5
9
  ## Installation
6
10
 
7
- install it yourself as:
11
+ Install it yourself as:
8
12
 
9
13
  $ gem install bankey
10
14
 
11
15
  ## Usage
12
16
 
13
- just do:
17
+ Just do:
14
18
 
15
19
  $ bankey
16
20
 
17
- and you will do something like this (your input won't be echoed):
21
+ And you will do something like this (your input won't be echoed):
18
22
 
19
23
  Enter your password/input string:
20
24
  Which characters do you need? [space is a separator]:
@@ -1,4 +1,3 @@
1
- # -*- encoding: utf-8 -*-
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'bankey/version'
@@ -22,17 +22,19 @@ module Bankey
22
22
  private
23
23
 
24
24
  def prepare_data
25
- print "Enter your password/input string: \n"
26
- input_string = STDIN.noecho(&:gets)
27
- print "Which characters do you need? [space is a separator]: \n"
25
+ print "Enter your password/input string (press ENTER when you finish): \n"
26
+ input_string = ""
27
+ begin
28
+ input_string += STDIN.getch
29
+ print "*"
30
+ end while(input_string[-1] != "\r")
31
+ print "\nWhich characters do you need? [space is a separator]: \n"
28
32
  characters = gets.split
29
33
  [input_string, characters]
30
34
  end
31
35
 
32
36
  def get_result input, characters
33
- puts
34
37
  Bankey::Presenter.new(input, characters).show_chars
35
38
  end
36
-
37
39
  end
38
40
  end
@@ -27,6 +27,5 @@ module Bankey
27
27
  def missing_numbers_error
28
28
  ArgumentError.new("we need some real numbers here")
29
29
  end
30
-
31
30
  end
32
31
  end
@@ -1,3 +1,3 @@
1
1
  module Bankey
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bankey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Nowak
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-16 00:00:00.000000000 Z
11
+ date: 2015-09-03 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: get given characters from your password
15
14
  email:
@@ -19,7 +18,7 @@ executables:
19
18
  extensions: []
20
19
  extra_rdoc_files: []
21
20
  files:
22
- - .gitignore
21
+ - ".gitignore"
23
22
  - Gemfile
24
23
  - LICENSE.txt
25
24
  - README.md
@@ -32,27 +31,26 @@ files:
32
31
  - lib/bankey/version.rb
33
32
  homepage: https://github.com/lubieniebieski/bankey
34
33
  licenses: []
34
+ metadata: {}
35
35
  post_install_message:
36
36
  rdoc_options: []
37
37
  require_paths:
38
38
  - lib
39
39
  required_ruby_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ! '>='
41
+ - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
- none: false
45
44
  required_rubygems_version: !ruby/object:Gem::Requirement
46
45
  requirements:
47
- - - ! '>='
46
+ - - ">="
48
47
  - !ruby/object:Gem::Version
49
48
  version: '0'
50
- none: false
51
49
  requirements: []
52
50
  rubyforge_project:
53
- rubygems_version: 1.8.25
51
+ rubygems_version: 2.4.5.1
54
52
  signing_key:
55
- specification_version: 3
53
+ specification_version: 4
56
54
  summary: I was bored by figuring out 3rd, 4th, 8th and xth character from my password
57
55
  when I was attempting to login to my bank account. so here we are...
58
56
  test_files: []