stupeflix 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ module Stupeflix
22
22
  def definition= d
23
23
  params, headers = req('PUT', d, 'text/xml', Time.now.to_i, url = "#{self.url}/definition/")
24
24
  r = self.class.put url, query: params, headers: headers, body: d
25
- raise RuntimeError("Invalid response: #{r.response.code}") unless r.response.code.to_i == 200
25
+ raise "Invalid response: #{r.response.code}" unless r.response.code.to_i == 200
26
26
  end
27
27
 
28
28
  # TODO make this an array or..?
@@ -30,7 +30,7 @@ module Stupeflix
30
30
  params, headers = req('POST', body = "ProfilesXML=#{::CGI::escape profiles_xml}",
31
31
  'application/x-www-form-urlencoded', Time.now.to_i, url = "#{self.url}/")
32
32
  r = self.class.post url, query: params, headers: headers, body: body
33
- raise RuntimeError("Invalid response: #{r.response.code}") unless r.response.code.to_i == 200
33
+ raise "Invalid response: #{r.response.code}" unless r.response.code.to_i == 200
34
34
  end
35
35
 
36
36
  def status
@@ -1,3 +1,3 @@
1
1
  module Stupeflix
2
- VERSION = '0.0.9'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stupeflix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-06 00:00:00.000000000 Z
12
+ date: 2013-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty