pwgen 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c65ed82c90c18f247e9ec6c2f3a54f4ced328f99a980957f3ad7f1b225bbe5a
4
- data.tar.gz: ad2061b2118bb570ad39740e10b4e99d6ef1cb1bdbb69cd51474ef1eb9737113
3
+ metadata.gz: 882136d726d3b24b2da11deb40922250f0638608877e1d22b998f025d5d4ce84
4
+ data.tar.gz: 9665545f3bb7bb8f0bed94a485a4e7c5e6c2ba521fb713abf7d757e48f665c18
5
5
  SHA512:
6
- metadata.gz: 3b97112338868a58b1d2594ba0300b3ef7450e221eeafe8c7f4b4f33082a7b0d6fae4c31040dbd9ba591acffe8b8d56e7da94b2547eaa99ccfbee050f5192b32
7
- data.tar.gz: 4757c7baca833c4980867445fd29888c61fd1bbc6aa748218ee50a43e1f9f3c00b81868950c3a6fb4e56d2b911020f3103fcffb7e35e9a9dae49093d7c251464
6
+ metadata.gz: 814c9f26cf23c7c75be97305417fdb0eb3416ac6268f1f1bdbe0ba07394737103ac0a3ca3ddcb93e8ae0930dee664e1c98cb9bfb2100581dd4052b5c3dd26a0a
7
+ data.tar.gz: 1523bdd07daf85997c5e39a6de694306634b05ef2e32b462a690a1e3c6015aa535ecba713e5eae6c9b4f06cd82a79cf349c4742b489c15b2d4c774edaeed4601
@@ -1,34 +1,28 @@
1
- sudo: required
2
1
  matrix:
3
2
  include:
4
3
  - language: ruby
5
- env:
6
- - NAME="Bundle test (1.17.3)"
4
+ name: "Bundler (rvm 2.4.4 & bundler 1.17.3)"
7
5
  rvm: 2.4.4
8
6
  before_install:
9
7
  - gem install bundler -v 1.17.3
10
8
  - language: ruby
11
- env:
12
- - NAME="Bundle test (2.0.1)"
9
+ name: "Bundler (rvm 2.4.4 & bundler 2.0.1)"
13
10
  rvm: 2.4.4
14
11
  before_install:
15
12
  - gem install bundler -v 2.0.1
16
13
  - language: ruby
17
- env:
18
- - NAME="Bundle test (2.0.1)"
14
+ name: "Bundler (rvm 2.5.3 & bundler 2.0.1)"
19
15
  rvm: 2.5.3
20
16
  before_install:
21
17
  - gem install bundler -v 2.0.1
22
18
  - language: ruby
23
- env:
24
- - NAME="Bundle test (2.0.1)"
19
+ name: "Bundler (rvm 2.6.1 & bundler 2.0.1)"
25
20
  rvm: 2.6.1
26
21
  before_install:
27
22
  - gem install bundler -v 2.0.1
28
23
  - language: ruby
29
- env:
30
- - NAME="Rubocop Checks"
31
- - SKIP_INTERPRETER=true
24
+ name: "Rubocop (rvm 2.4.4)"
25
+ env: SKIP_INTERPRETER=true
32
26
  rvm: 2.4.4
33
27
  before_install:
34
28
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
@@ -37,9 +31,8 @@ matrix:
37
31
  script:
38
32
  - ./rubocop-travis/scan.sh
39
33
  - language: ruby
40
- env:
41
- - NAME="Rubocop Checks"
42
- - SKIP_INTERPRETER=true
34
+ name: "Rubocop (rvm 2.5.3)"
35
+ env: SKIP_INTERPRETER=true
43
36
  rvm: 2.5.3
44
37
  before_install:
45
38
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
@@ -48,9 +41,8 @@ matrix:
48
41
  script:
49
42
  - ./rubocop-travis/scan.sh
50
43
  - language: ruby
51
- env:
52
- - NAME="Rubocop Checks"
53
- - SKIP_INTERPRETER=true
44
+ name: "Rubocop (rvm 2.6.1)"
45
+ env: SKIP_INTERPRETER=true
54
46
  rvm: 2.6.1
55
47
  before_install:
56
48
  - git clone https://github.com/TravisToolbox/rubocop-travis.git
@@ -59,8 +51,7 @@ matrix:
59
51
  script:
60
52
  - ./rubocop-travis/scan.sh
61
53
  - language: ruby
62
- env:
63
- - NAME="Link Checker"
54
+ name: "Link Checker (rvm 2.6.1)"
64
55
  rvm: 2.6.1
65
56
  before_install:
66
57
  - mkdir travis
@@ -1,3 +1,9 @@
1
+ ## 1.0.2 (June 28, 2019)
2
+
3
+ IMPROVEMENTS:
4
+
5
+ * Clean up tweaks based on updates to rubocop. ([@TGWolf][])
6
+
1
7
  ## 1.0.1 (March 13, 2019)
2
8
 
3
9
  IMPROVEMENTS:
data/exe/pwgen CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'optparse'
4
5
  require 'pwgen'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'pwgen/version'
2
4
 
3
5
  require 'phonetic_encoder'
@@ -91,7 +93,7 @@ module Pwgen
91
93
 
92
94
  length = length.to_i
93
95
 
94
- raise 'length must be a positive number!' unless length > 0
96
+ raise 'length must be a positive number!' unless length.positive?
95
97
 
96
98
  if options[:digits] || options[:symbols]
97
99
  raise 'length is to short to meet digits/symbols requirements!' if length < options[:digits].to_i + options[:symbols].to_i
@@ -127,7 +129,7 @@ module Pwgen
127
129
  phonetic = ''
128
130
 
129
131
  password.split('').each do |letter|
130
- phonetic << if letter =~ /[[:digit:]]/
132
+ phonetic += if letter =~ /[[:digit:]]/
131
133
  letter.to_i.to_words
132
134
  elsif letter =~ /[[:upper:]]/
133
135
  letter.to_s.phonetic_encode.upcase
@@ -136,7 +138,7 @@ module Pwgen
136
138
  else
137
139
  format('(%<name>s)', name: letter.to_s.punctuation_name)
138
140
  end
139
- phonetic << ' '
141
+ phonetic += ' '
140
142
  end
141
143
  phonetic.rstrip
142
144
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Pwgen
2
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.0.2'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Gurney aka Wolf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-13 00:00:00.000000000 Z
11
+ date: 2019-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler