remote_dwsregistry 0.3.0 → 0.4.0

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: d7ad47b3f1608ca7df05a5a73dcf271b5bdb0edeb70ab013df9bac027377371d
4
- data.tar.gz: 0ce55408e4a439c3b673369189c0631bf16d4c31bd42a44d2439141ea026bb65
3
+ metadata.gz: b89c2bd7c7313d1058bb251763c56a1eb8216ae3672741d5aa67850e64ff8a58
4
+ data.tar.gz: '0418a64ee90e8f8cf9a3d568254784b053d3166c158159cc3b1b4c729ad198c3'
5
5
  SHA512:
6
- metadata.gz: 82e47a1fa7f8d6925720fe233730d94a221321ba1299572a77cfee554772ead795b42105b9fd18b3e09667e670e3de43714d70288e81db693ecf685ab542aa8a
7
- data.tar.gz: 0ed97881433d1b738a0e196acdcbdbdd051d8b83702acbf898efd3f380bcd581ff2b74cb904775a663f4c7e4d53b117fbe6e6ebf217e2dbb9b1038b702e14a1d
6
+ metadata.gz: cbb75e8be3f05b065ca224e7e673fe51e92c0297318b0d48c6d7d1c07069188d1e4fc16a5487fd9729132cdb71587802d2dd48375f21ffc2eb6dc13f6aabe3d9
7
+ data.tar.gz: 7f5fb685bcfc243fbba6dd703ce40338bd6d3d63d0988c20f6621e2748e4f5eef557cd75803ccb9fecc30b6eb823cdfcd785daf9f639144647186dca84f39776
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -7,6 +7,7 @@
7
7
 
8
8
  require 'json'
9
9
  require 'rexle'
10
+ require 'requestor'
10
11
  require 'gpd-request'
11
12
 
12
13
 
@@ -38,7 +39,36 @@ class RemoteDwsRegistry
38
39
 
39
40
  end
40
41
 
41
- end
42
+ end
43
+
44
+ def gem_register(gemfile)
45
+
46
+ if gemfile =~ /^\w+\:\/\// then
47
+
48
+ puts 'about to remotely request gemfile' if @debug
49
+ code = Requestor.read(File.dirname(gemfile)) do |x|
50
+ x.require File.basename(gemfile)
51
+ end
52
+
53
+ eval code
54
+
55
+ else
56
+
57
+ require gemfile
58
+
59
+ end
60
+
61
+ if defined? RegGem::register then
62
+
63
+ reg = RegGem::register
64
+ puts 'importing registry' + reg.inspect
65
+ import reg
66
+
67
+ else
68
+ nil
69
+ end
70
+
71
+ end
42
72
 
43
73
  def get_key(key='', auto_detect_type: false)
44
74
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_dwsregistry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -77,6 +77,26 @@ dependencies:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
79
  version: 0.3.0
80
+ - !ruby/object:Gem::Dependency
81
+ name: requestor
82
+ requirement: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '0.2'
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 0.2.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.2'
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 0.2.1
80
100
  description:
81
101
  email: james@jamesrobertson.eu
82
102
  executables: []
metadata.gz.sig CHANGED
Binary file