pkernel 0.1 → 0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202062d0c154757be3779508de4900d44c52dfb8c0f99dd16b0fa99517c22863
4
- data.tar.gz: 1457b731e950024aab3fb81e58b5aecdb87ef1dd780dfeacdbc558fb417e80c1
3
+ metadata.gz: 736194409b35dff47387c2a93430583a5dc65f9fe13b9c00733db535df224252
4
+ data.tar.gz: 659e3da11531ba48963d95974a1422e449a15611e55722b2830e976386ec7cd6
5
5
  SHA512:
6
- metadata.gz: e8c767de6cc001270728a6b51a7333696afed91f2d95e8923003f1e54a98071393e59d62108ecc50a6a31b565837d0278c83c7609cf511e0c31bf44d4e71b1d3
7
- data.tar.gz: 34a76e32b896d7878a7bbf1b317c162d812949e8eff68605747b01c080e6ef46aeae5da7962cb02bf56d59f1bd3a95a6fcf79190a0abb157392ff72185bf87e1
6
+ metadata.gz: 12ac3014308066c43fc699742a6840a7db86373d4c47718ee960a19fad21e00ecae97deecbef4369e2c27192f25604c59661cc923c16533927b2c64321eb596e
7
+ data.tar.gz: 684def14c1eacacc4c6120198690e5390d467cf90e55cb0a8e3ec7ab33d81411697252e57fe950e04637e17c1c446429f66f9cad4f9798ce33d0606f9e6426ca
@@ -11,7 +11,7 @@ module Pkernel
11
11
  end
12
12
 
13
13
  #CatchAll = Catcher.new
14
-
14
+
15
15
  class KeyPair
16
16
  RSA_KEY_NAME = "RSA"
17
17
  DSA_KEY_NAME = "DSA"
@@ -39,6 +39,25 @@ module Pkernel
39
39
  def add_dns_names(dns)
40
40
  @dns_names << dns if not dns.nil? and not dns.empty?
41
41
  end
42
+
43
+ def from_hash(hash)
44
+ if not hash.nil?
45
+ hash.each do |k,v|
46
+ case k.downcase.to_sym
47
+ when :name
48
+ @name = v
49
+ when :email
50
+ add_email(v)
51
+ when :country, :c
52
+ @country = v
53
+ when :org
54
+ @org = v
55
+ when :orgUnit, :org_unit
56
+ @orgUnit = v
57
+ end
58
+ end
59
+ end
60
+ end
42
61
  end
43
62
  # end class Owner
44
63
 
@@ -1,3 +1,3 @@
1
1
  module Pkernel
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
@@ -40,7 +40,7 @@ job :check_in do
40
40
  commit
41
41
  tag
42
42
  push 'origin', 'master'
43
- push 'git','master'
43
+ #push 'git','master'
44
44
  end
45
45
  end
46
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkernel
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2020-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler