Skip to content

Commit 8651e3f

Browse files
committed
rubystyle: use Ruby 1.9 hash literal style
1 parent 053fae5 commit 8651e3f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/puppet/parser/functions/pw_hash.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
end
5050

5151
hashes = {
52-
'md5' => { :prefix => '1' },
53-
'sha-256' => { :prefix => '5' },
54-
'sha-512' => { :prefix => '6' },
55-
'bcrypt' => { :prefix => '2b', :salt => %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
56-
'bcrypt-a' => { :prefix => '2a', :salt => %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
57-
'bcrypt-x' => { :prefix => '2x', :salt => %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
58-
'bcrypt-y' => { :prefix => '2y', :salt => %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
52+
'md5' => { prefix: '1' },
53+
'sha-256' => { prefix: '5' },
54+
'sha-512' => { prefix: '6' },
55+
'bcrypt' => { prefix: '2b', salt: %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
56+
'bcrypt-a' => { prefix: '2a', salt: %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
57+
'bcrypt-x' => { prefix: '2x', salt: %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
58+
'bcrypt-y' => { prefix: '2y', salt: %r{^[0-9]{2}\$[./A-Za-z0-9]{22}} },
5959
}
6060

6161
raise ArgumentError, 'pw_hash(): first argument must be a string' unless args[0].is_a?(String) || args[0].nil?

0 commit comments

Comments
 (0)