rsc 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/rsc.rb +6 -7
  5. metadata +46 -23
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95ea4890bf73a03d239c866388818cc797c694d6
4
- data.tar.gz: ee704550afda4be3be6c014f52bb578444d005ae
3
+ metadata.gz: e392c65bd57376be7dbdc811db8aa7f2929027b2
4
+ data.tar.gz: 090f5ef796f0cfba68f892d2ca121ebe414afe98
5
5
  SHA512:
6
- metadata.gz: d21471eb57589db01b93f31a6aad4f246f75c424ebb320646018fb1290c8c1daba8b24aa6bf182c60bdb5b9e9f8c514727766eb3c20be429de517f6d59ccf14b
7
- data.tar.gz: 322101d4d3720ff4b148195dcca9cb09c7c35ae35be6f256fde83c74b0cdfa08b7ddfb36018178aef8b3a886ef7528e8c8f385e23e1a8ef818f5a36577e9b5bb
6
+ metadata.gz: fe20a8b46cf3ac01c262adc41f40b21342f23d3343c6da4ea321092275257da2b9e4fb6e006e0ef6858b8136b6dfa351db7122162848b315ead860d0858e041d
7
+ data.tar.gz: e5c8d43526741711dc39f4345a980be7f11265641184fc09fe612ae4f025948bcc8ecc31887bd6564113663b0e4130b93d14102472fc70ffbffe629d68ac2234
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
- include REXML
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 = Document.new(open(@url, 'UserAgent' => 'ClientRscript'){|x| x.read})
21
- a = XPath.match(doc.root, 'job/attribute::id')
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.value.to_s.gsub('-','_')
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.1.4
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
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIxMDQzNFoXDTE0MDIwNjIxMDQzNFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MDEyMjE4MTcyMloXDTE2MDEyMjE4MTcyMlowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAL3PhdL1CRcIUdX9HRsmJPmTYOmLHfV8lmEdOh9VJ+wUE1MkkJanXC4K2t9V
19
- eGRhxR6wMCqRwq3zHqa38F5gUoF3MstG/Ri8ajT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YDetkR5Hks3VlHIovvfRWQ+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: 2013-07-27 00:00:00.000000000 Z
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: '0'
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.0.0.rc.2
83
+ rubygems_version: 2.2.2
62
84
  signing_key:
63
85
  specification_version: 4
64
- summary: rsc
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