mypki 4.0.1 → 4.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
  SHA1:
3
- metadata.gz: 6e5473e6b119d9b464c0857f924e8704b2bc9750
4
- data.tar.gz: 569ae188eae4479e9257eecb07a4c9e2a6ed25f1
3
+ metadata.gz: 2cc0d9e65c56658eddbca1abb0653c403a90a219
4
+ data.tar.gz: e0e36fba2db7a9629ba15f9c3ec1b21e291a2048
5
5
  SHA512:
6
- metadata.gz: 07f10db8358b21bbcc6b9363dc460610ff0ebe25155004794e4cad0f99f6eaf6a035600f2eca04f24a3bc1308815c3f7c1a4323f2e91014cfcae3d224f9bd92b
7
- data.tar.gz: aae22de3acb8143cba602e64caaf0df5fc0977e97c2d010330c4c67a3029e33a261aa11bbdc5875810ceaf6ad6067ec1e6c96109b1d3e8e53a0619551ecbf043
6
+ metadata.gz: 107e8fda2dae01214d60dca669e3f3c459e301bd9214053fa15b9128ad59cdfb848f35edfd25452e15ea3e5342f4b49afe687c469b05dc0b1d9a6a4f0a99a09a
7
+ data.tar.gz: f97ed6bc363d4ec273c1d35f10526e6eb0c75779c14c96d5de5e5e3e1b79c66d246d4fc121fc4d69858f5790a0e67119e3e99861890db7d11412d6ef2bde53af
data/exe/mypki CHANGED
@@ -26,32 +26,32 @@ end
26
26
 
27
27
  if options[:reconfigure]
28
28
  MyPKI.init reconfigure: true, no_verify: options[:no_verify]
29
- end
30
-
31
- if options[:init]
32
- MyPKI.init
33
- end
34
-
35
- ARGV.shift args.size
36
-
37
- if ARGV.empty?
38
- Trollop::die "you must specify a program or option"
39
- end
40
-
41
- executable = ARGV.shift
42
-
43
- path = if File.file?(executable) && File.executable?(executable)
44
- executable
45
- elsif ENV['PATH']
46
- path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p|
47
- abs_path = File.join(p, executable)
48
- File.file?(abs_path) && File.executable?(abs_path)
29
+ else
30
+ if options[:init]
31
+ MyPKI.init
32
+ end
33
+
34
+ ARGV.shift args.size
35
+
36
+ if ARGV.empty?
37
+ Trollop::die "you must specify a program or option"
38
+ end
39
+
40
+ executable = ARGV.shift
41
+
42
+ path = if File.file?(executable) && File.executable?(executable)
43
+ executable
44
+ elsif ENV['PATH']
45
+ path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |p|
46
+ abs_path = File.join(p, executable)
47
+ File.file?(abs_path) && File.executable?(abs_path)
48
+ end
49
+ path && File.expand_path(executable, path)
50
+ end
51
+
52
+ if path.nil?
53
+ raise "Could not find #{executable}"
54
+ else
55
+ exec "/usr/bin/env ruby -r mypki #{path} #{ARGV.join(' ')}"
49
56
  end
50
- path && File.expand_path(executable, path)
51
57
  end
52
-
53
- if path.nil?
54
- raise "Could not find #{executable}"
55
- else
56
- exec "/usr/bin/env ruby -r mypki #{path} #{ARGV.join(' ')}"
57
- end
@@ -1,3 +1,4 @@
1
+ require 'yaml'
1
2
  require 'multi_json'
2
3
 
3
4
  module MyPKI
data/lib/mypki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MyPKI
2
- VERSION = "4.0.1"
2
+ VERSION = "4.0.2"
3
3
  end
data/mypki.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{PKI-enable Ruby}
13
13
  spec.description = %q{PKI-enables Ruby's OpenSSL libraries, which PKI-enables most libraries and gems written in Ruby.}
14
- spec.homepage = "https://github.com/kylekyle/mypki"
14
+ spec.homepage = "https://github.com/jupyter-gallery/mypki"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = "exe"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mypki
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle King
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -156,7 +156,7 @@ files:
156
156
  - lib/mypki/prompters/jruby.rb
157
157
  - lib/mypki/version.rb
158
158
  - mypki.gemspec
159
- homepage: https://github.com/kylekyle/mypki
159
+ homepage: https://github.com/jupyter-gallery/mypki
160
160
  licenses: []
161
161
  metadata: {}
162
162
  post_install_message: