magic-admin 0.1.1 → 0.1.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: 7d3f6f9c988fae5da195f948c35ac174b5043ede21a732792ad47743a904f630
4
- data.tar.gz: b567645927b83a7f41a2dc06a9c70f9c397e5c8ac9103ba8850985ac179924e0
3
+ metadata.gz: 638cfcae85becbb634195d4662fcae184398d731d31c7a3aef2567375b3e4167
4
+ data.tar.gz: afa110a04f413841b9b6ba42a1e279e6277a7e51be1060cb64fd6fd43b48e1a4
5
5
  SHA512:
6
- metadata.gz: 3d66f78973bcd667494ce3ab692ee5434de74c53de266cda84790621358d88dd12ed1b8ee2b0b73aef1675b6b931d2632700afd041161158f542c43159904311
7
- data.tar.gz: 50b740f041a5b07894c707589cdccafcbd3975b384da6587091c08ea3193a86bde7442f1d1ea4fa4c40aa189fb072a0f0faa36f9c37604750069cacc8d6af65a
6
+ metadata.gz: d4c8fa130b49e13be60fbecfecd824922a64636add229bd165566d01d9820bf99937cf3b16277964516d9c157824aebb09ad2b883e4e91ddf540d47dc5cbe4f2
7
+ data.tar.gz: 7478a88f76da822adc86b396508ebac1fccb703a61eff498d14427026e7587b2c9937c2eb387d99d56f141bf1c6e5a074725b2782580fa83f3539fdc4aaaa925
@@ -15,3 +15,9 @@
15
15
  #### Changed
16
16
 
17
17
  - <PR-#ISSUE> ...
18
+
19
+ ## `0.1.2` - 10/30/2020
20
+
21
+ #### Changed
22
+
23
+ - <PR-#5>: https://github.com/magiclabs/magic-admin-ruby/issues/5
@@ -37,7 +37,11 @@ module MagicAdmin
37
37
  # Returns:
38
38
  # installation machine user_name
39
39
  def self.user_name
40
- Etc.getpwnam(Etc.getlogin).gecos.split(/,/).first
40
+ login = Etc.getlogin
41
+
42
+ return "None" if login.nil?
43
+
44
+ Etc.getpwnam(login).gecos.split(/,/).first
41
45
  end
42
46
 
43
47
  # Description:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MagicAdmin
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magic Labs Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-15 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eth
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 3.1.2
156
+ rubygems_version: 3.1.4
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Ruby bindings for the Magic Admin API