rsc 0.3.1 → 0.3.2

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 +3 -3
  3. data.tar.gz.sig +0 -0
  4. data/lib/rsc.rb +10 -5
  5. metadata +1 -1
  6. metadata.gz.sig +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5515efb4f9945805779a857ce5a1798fe3a52369
4
- data.tar.gz: e15a3ef37d4604123de84d78990a1c39a0273a44
3
+ metadata.gz: e3eb46ac612392a7c25285b5d6ffb5ee665b5e65
4
+ data.tar.gz: 91766a63368f34acff59d7131e0733a1c1f2b427
5
5
  SHA512:
6
- metadata.gz: d77eac9bee1bde92f22a414abe010a135b2ccef32b7481266a71181300f1adb5d51ae9cbca2b344a09368a8dc5eb5b0d78cbae1204877c7e06d7340cff2857c4
7
- data.tar.gz: d8292c1e7e2a6b949e716812a2968a090d5b783e67942ba20d1a96fd562c36781488c30cc578c22766c320b98f8b294c5d50013a69e426bd3c85df5602c74fee
6
+ metadata.gz: 7c6a7c9c5a736626aa3696396f959e3196810d011aae950990e797e34eb609deed3c159b6e2f703de0227c2412a42d6b342d48247e3f6df8798435a055f476d1
7
+ data.tar.gz: b1bc7306268669a47343e41a82bd5f79a83bf25d21bf44d4dce44a019ede244e389f79b6ddd4a4e6df4c40b0b6934a63f43e6632fe4f8f16c19f1b56158cf8ae
@@ -1,3 +1,3 @@
1
- �Ֆ7��!��o��Q3Z��tR)QB�z�+�1?�@��o
2
- >!�vw�5fC���A;��$a�b�
3
- �.�5`�\��Z6းU��I�f��y��͠�?�(�������y�&�.4�7�Y��h��Aq��B})�%Zq!�]�H���x�W�W䢡���!�/L��Q�]Jı�ސ���I�ELB�<@I"5F<C�W��7�
1
+ /��IQLAӁ���=U�� ���k y�@S9�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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ȱkg�t��Ҫ��*.M�ӵ����.��S���J�!�o�zf,�m0��Zm���6�
2
- r[�D��% �e��
3
- ̅v�.\��}32A�i&
1
+ �ک�+��/8yE���
2
+ -��"������Å�d��CQL�\�iN��?̐����t)xt��� /��w&����F;s���TDSV��D-�8nd����D��%̵Ms罧�,NE$d�����;�-�3yo��d��%�:�����t^%��hPJy�FL�^$R|���T��|�K�a�ٸ� ��1�i�?�� ��ڻ@�6���>�_RzE��$<��~�|�N4TK}��1*7�$�݄�im7�9�i2P$��e�!�M