rsc 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rsc.rb +2 -2
- metadata +1 -1
data/lib/rsc.rb
CHANGED
@@ -2,7 +2,7 @@ require 'open-uri'
|
|
2
2
|
require 'cgi'
|
3
3
|
require 'rexml/document'
|
4
4
|
|
5
|
-
class
|
5
|
+
class Rsc
|
6
6
|
include REXML
|
7
7
|
|
8
8
|
attr_reader :doc, :result, :text
|
@@ -33,7 +33,7 @@ class RScriptClient
|
|
33
33
|
|
34
34
|
def jobs_to_methods(package)
|
35
35
|
#url = "http://rorbuilder.info/r/heroku/%s.rsf" % package
|
36
|
-
url = "http://%s/
|
36
|
+
url = "http://%s/source/%s" % [@hostname, package]
|
37
37
|
puts 'url : ' + url
|
38
38
|
doc = Document.new(open(url, 'UserAgent' => 'ClientRscript').read)
|
39
39
|
a = XPath.match(doc.root, 'job/attribute::id')
|