dws-registry 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dws-registry.rb +28 -0
- metadata +26 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e80c19ec4c70b7da325a67538fa476f6ba23ce99ee0d3c29a49c7c869cbe41
|
4
|
+
data.tar.gz: 84fd88e35751e90df3bae2440e93080a799f388fafcf3e8a80e53d601d8179c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c6e56b80c6e3f3aaf7ad243bb96283d94408622b2704113bf89ceb0cb2267e71b8efae9004462bbc890ff0dd43b00fa16a02406f4ac191bc3e23612e5c91ecb
|
7
|
+
data.tar.gz: a177bb7faaeaadb88857e2a8ab6b2aaa3efe1627485d69946ed77f9823598d6c97bc13ddfe35689952179d407b0f36a43244dc4596213340a23c90796695eb04
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dws-registry.rb
CHANGED
@@ -6,6 +6,7 @@ require 'time'
|
|
6
6
|
require 'xml-registry'
|
7
7
|
require 'rscript'
|
8
8
|
require 'json'
|
9
|
+
require 'requestor'
|
9
10
|
|
10
11
|
|
11
12
|
class DWSRegistry < XMLRegistry
|
@@ -30,6 +31,33 @@ class DWSRegistry < XMLRegistry
|
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
34
|
+
def gem_register(gemfile)
|
35
|
+
|
36
|
+
if gemfile =~ /^\w+\:\/\// then
|
37
|
+
|
38
|
+
code = Requestor.read(File.dirname(gemfile)) do |x|
|
39
|
+
x.require File.basename(gemfile)
|
40
|
+
end
|
41
|
+
|
42
|
+
eval code
|
43
|
+
|
44
|
+
else
|
45
|
+
|
46
|
+
require gemfile
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
if defined? RegGem::register then
|
51
|
+
|
52
|
+
self.import RegGem::register
|
53
|
+
true
|
54
|
+
|
55
|
+
else
|
56
|
+
nil
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
33
61
|
def get_key(path, auto_detect_type: false)
|
34
62
|
|
35
63
|
e = super path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dws-registry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
2OIP5ipuioL7Hk+Qn8RSiaAEhysfSx6KXdlDxCMWh/OraisuuCve1XSh5j/lVLse
|
31
31
|
4oU=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-10-
|
33
|
+
date: 2018-10-14 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: xml-registry
|
@@ -38,20 +38,40 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '0.
|
41
|
+
version: '0.6'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 0.
|
44
|
+
version: 0.6.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - "~>"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: '0.
|
51
|
+
version: '0.6'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.6.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: requestor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.2'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 0.2.1
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0.2'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.2.1
|
55
75
|
description:
|
56
76
|
email: james@jamesrobertson.eu
|
57
77
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|