rsc 0.1.4 → 0.2.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/rsc.rb +6 -7
- metadata +46 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e392c65bd57376be7dbdc811db8aa7f2929027b2
|
4
|
+
data.tar.gz: 090f5ef796f0cfba68f892d2ca121ebe414afe98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe20a8b46cf3ac01c262adc41f40b21342f23d3343c6da4ea321092275257da2b9e4fb6e006e0ef6858b8136b6dfa351db7122162848b315ead860d0858e041d
|
7
|
+
data.tar.gz: e5c8d43526741711dc39f4345a980be7f11265641184fc09fe612ae4f025948bcc8ecc31887bd6564113663b0e4130b93d14102472fc70ffbffe629d68ac2234
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rsc.rb
CHANGED
@@ -2,26 +2,25 @@
|
|
2
2
|
|
3
3
|
# file: rsc.rb
|
4
4
|
|
5
|
-
require 'rexml/document'
|
6
5
|
require 'open-uri'
|
7
6
|
require 'drb'
|
7
|
+
require 'rexle'
|
8
8
|
|
9
9
|
|
10
10
|
class RSC
|
11
11
|
|
12
12
|
class Package
|
13
|
-
|
14
|
-
|
13
|
+
|
15
14
|
def initialize(drb_obj, parent_url, package)
|
16
15
|
|
17
16
|
@obj = drb_obj
|
18
17
|
|
19
18
|
@url = File.join(parent_url, package + '.rsf')
|
20
|
-
doc =
|
21
|
-
a =
|
22
|
-
|
19
|
+
doc = Rexle.new open(@url, 'UserAgent' => 'ClientRscript').read
|
20
|
+
a = doc.root.xpath 'job/attribute::id'
|
21
|
+
|
23
22
|
a.each do |attr|
|
24
|
-
method_name = attr.
|
23
|
+
method_name = attr.gsub('-','_')
|
25
24
|
method = "def %s(*args); run_job('%s', args) ; end" % \
|
26
25
|
([method_name] * 2)
|
27
26
|
self.instance_eval(method)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,49 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDEyMjE4MTcyMloXDTE2MDEyMjE4MTcyMlowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
ggEBALWKtizkZzWpi2qc9fWzQ4ZFHoxOR05WFdLp1jvgl1C1xuIcVKIHuXm8Fvq2
|
19
|
+
WWsZVnl2lyvO7fYb9r4sp2Plb3Tm5ZwuI546JwZquRhdKq5X5O9bJjcFxnzeqBsP
|
20
|
+
5SE3c/A4U8vmYIF9WJ8XzOzF8Hwp5E+G0BqZRB92iapIGCTDHwwvwhnyzzwSAqX/
|
21
|
+
lpUU+XiIHsgfk/Oohv83mIHBlsznyYKWjwyZ13R2PLxXaLk+e3VmIn8uj2cWdt0+
|
22
|
+
vqnEDYBsQKWIO+deF8+iVYDetkR5Hks3VlHIovvfRWQ+5MF388a/8PkfV6pzJaAW
|
23
|
+
uW+cK6t7dX7FeWfsEEHOcmAQBB8CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUZkzPXUTF1El+pOp1upApkEQg4fowJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAiM4KvJkW
|
27
|
+
aV0nNteLWF5EpbAgFfDX4EZY+Ce/bTgFCwFv+FCDwmLMgjjNtGBD1uqJVo+0eWfn
|
28
|
+
y4xmAFNDaKZTQ15b5NUIymGv6ijVh9zgnVH1+PwSJJIy3wza0EQhZBjGZLDtDf4y
|
29
|
+
lT6JGlvFIB/JPqJ7yRSgccV5OZoWdx6WVpD/T9AMHgaaB4/g38aR7dtVYsV/hYor
|
30
|
+
Q2j9IjtzC2N4rtrYRSnq5pjSOAeU2hE9F8tAESkrtcdCaJESknslAHgutBKyTKrk
|
31
|
+
SIawsuPoB0V8p56IiggyhpY6KtfwFYl7LkocRhm4DKGG8eDXUSa8FfBRZsSF/ADf
|
32
|
+
Euz5wMxfF1N+ZA==
|
31
33
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
33
|
-
dependencies:
|
34
|
+
date: 2015-01-22 00:00:00.000000000 Z
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rexle
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.0'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.0.39
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.0'
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.0.39
|
34
56
|
description: formerly known as rcscript-client
|
35
57
|
email: james@r0bertson.co.uk
|
36
58
|
executables: []
|
@@ -48,18 +70,19 @@ require_paths:
|
|
48
70
|
- lib
|
49
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
50
72
|
requirements:
|
51
|
-
- -
|
73
|
+
- - ">="
|
52
74
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
75
|
+
version: 2.1.2
|
54
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
77
|
requirements:
|
56
|
-
- -
|
78
|
+
- - ">="
|
57
79
|
- !ruby/object:Gem::Version
|
58
80
|
version: '0'
|
59
81
|
requirements: []
|
60
82
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.2.2
|
62
84
|
signing_key:
|
63
85
|
specification_version: 4
|
64
|
-
summary:
|
86
|
+
summary: Objectifies remote calls to RSF packages and jobs which are run through a
|
87
|
+
DRb server
|
65
88
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|