Fix compat with ruby < 2.5

This commit is contained in:
Lars Kanis 2022-12-02 08:05:42 +01:00
parent 81473fb2b4
commit 5a07820472
2 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
require "pg_ldap_sync/application"
require "pg_ldap_sync/compat"
require "pg_ldap_sync/version"
module PgLdapSync

View File

@ -0,0 +1,9 @@
#!/usr/bin/env ruby
class Hash
def transform_keys
map do |k, v|
[yield(k), v]
end.to_h
end unless method_defined? :transform_keys
end