relaxo 1.6.1 → 1.6.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: ee389a32f25fdf49c2a4ce9e347b8f75f865e99027836fe960029a97b614886c
4
- data.tar.gz: 7fb8ea8ad158e7cd244dba5ab7ef5b0b94b02a4207a5be4090a131ccf4b0a51b
3
+ metadata.gz: d5441aa4f770837518f018fbf5586fde1c29872a5ed8480016bce964ba963fb4
4
+ data.tar.gz: f8d1e85171c590220dfbddfe662752a53d9f486899d10a66fd8744ead14b269a
5
5
  SHA512:
6
- metadata.gz: 549af3e6849d9a99a86415201e2b6126f0a76f2fa8f7b27ebc7e2af0a9b1750be40efb24b14fdc8fa04fb4a49a1daaa5f6b9dbcb395e960d18fc0c3308a1c6ff
7
- data.tar.gz: 50ab5e3e2f2fde0643c276729e9954da0ade6027e597490e950f3fdc95849d9c208b32da1139fb218c49198444b6147311e6e9c7a8b0937dc7e142a6fe92e293
6
+ metadata.gz: cce64c22893a59137f0df82e67957e950ea767c7053bdcf3f257cc07606d60b76de3d765fa74635fbd4e3c86e52776ff81caf4f740146a9cbbbe2989260df7e6
7
+ data.tar.gz: 63dd7cb4e3e827089df116c16f33ed097130b045a48534936464fef6a0a53bf0dc1fb8f0bb8def5755b619d1639b7548fbda2b3835adcb6bf5765f8faf04fe3d
@@ -41,11 +41,13 @@ module Relaxo
41
41
 
42
42
  if config = database.config
43
43
  unless config['user.name']
44
- login = Etc.getlogin
44
+ login = Etc.getpwuid
45
45
  hostname = Socket.gethostname
46
46
 
47
- config['user.name'] = login
48
- config['user.email'] = "#{login}@#{hostname}"
47
+ if login
48
+ config['user.name'] = login.name
49
+ config['user.email'] = "#{login.name}@#{hostname}"
50
+ end
49
51
  end
50
52
  end
51
53
 
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Relaxo
22
- VERSION = "1.6.1"
22
+ VERSION = "1.6.2"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaxo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: console
@@ -142,7 +142,6 @@ executables: []
142
142
  extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
- - lib/.DS_Store
146
145
  - lib/relaxo.rb
147
146
  - lib/relaxo/changeset.rb
148
147
  - lib/relaxo/database.rb
Binary file