rsc 0.3.1 → 0.3.2
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 +3 -3
- data.tar.gz.sig +0 -0
- data/lib/rsc.rb +10 -5
- metadata +1 -1
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3eb46ac612392a7c25285b5d6ffb5ee665b5e65
|
4
|
+
data.tar.gz: 91766a63368f34acff59d7131e0733a1c1f2b427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6a7c9c5a736626aa3696396f959e3196810d011aae950990e797e34eb609deed3c159b6e2f703de0227c2412a42d6b342d48247e3f6df8798435a055f476d1
|
7
|
+
data.tar.gz: b1bc7306268669a47343e41a82bd5f79a83bf25d21bf44d4dce44a019ede244e389f79b6ddd4a4e6df4c40b0b6934a63f43e6632fe4f8f16c19f1b56158cf8ae
|
checksums.yaml.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/��I�QLAӁ���=U�� ���k y�@S�9�UK۴�
|
2
|
+
��jv_��i&�??�@��l\U�L{��$PP�!e�P��`����!��b6���K?��@�ǂJSs��+Cg��]��oMmFC5�A��DMVʁ���
|
3
|
+
��
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rsc.rb
CHANGED
@@ -51,7 +51,7 @@ class RSC
|
|
51
51
|
|
52
52
|
end
|
53
53
|
|
54
|
-
def delete()
|
54
|
+
def delete(s=nil)
|
55
55
|
s ? run_uri(s, :delete) : @obj.delete
|
56
56
|
end
|
57
57
|
|
@@ -59,12 +59,12 @@ class RSC
|
|
59
59
|
s ? run_uri(s, :get) : @obj.get
|
60
60
|
end
|
61
61
|
|
62
|
-
def post(s=nil)
|
63
|
-
s ? run_uri(s, :post) : @obj.post
|
62
|
+
def post(s=nil, val=nil)
|
63
|
+
s ? run_uri(s, :post, value: val) : @obj.post
|
64
64
|
end
|
65
65
|
|
66
66
|
def put(s)
|
67
|
-
s ? run_uri(s, :put) : @obj.put
|
67
|
+
s ? run_uri(s, :put, value: val) : @obj.put
|
68
68
|
end
|
69
69
|
|
70
70
|
|
@@ -118,12 +118,17 @@ class RSC
|
|
118
118
|
[host, package, job, args, params]
|
119
119
|
end
|
120
120
|
|
121
|
-
def run_uri(s, type=:get)
|
121
|
+
def run_uri(s, type=:get, value: nil)
|
122
122
|
|
123
123
|
host, package, job, args, params = parse_uri(s)
|
124
124
|
drb_start host
|
125
125
|
@obj.type = type
|
126
126
|
|
127
|
+
if value then
|
128
|
+
params ||= {}
|
129
|
+
params.merge!(value.is_a?(Hash) ? value : {value: value})
|
130
|
+
end
|
131
|
+
|
127
132
|
@obj.run_job(package, job, params, args)
|
128
133
|
|
129
134
|
end
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
̅v�.\��}32A�i&
|
1
|
+
�ک�+��/8�yE���
|
2
|
+
-��"������Å�d��CQL�\�iN��?̐����t)xt��� /��w&����F;s���TDSV��D-�8nd����D��%̵Ms罧�,NE$d�����;�-�3yo��d��%�:�����t^%��hPJ�y�FL�^$R|���T��|�K�a�ٸ���1�i�?����ڻ@�6���>�_RzE��$<��~�|�N4TK}��1*7�$�݄�im7�9�i2P$��e�!�M
|