ticket_sharing 0.5.3 → 0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,14 +19,16 @@ module TicketSharing
19
19
 
20
20
  def send_to(url)
21
21
  client = Client.new(url)
22
- client.post(relative_url, self.to_json)
23
- client.success?
22
+ response = client.post(relative_url, self.to_json)
23
+
24
+ response.code.to_i
24
25
  end
25
26
 
26
27
  def update_partner(url)
27
28
  client = Client.new(url, authentication_token)
28
- client.put(relative_url, self.to_json)
29
- client.success?
29
+ response = client.put(relative_url, self.to_json)
30
+
31
+ response.code.to_i
30
32
  end
31
33
 
32
34
  def relative_url
@@ -45,20 +45,23 @@ module TicketSharing
45
45
  raise "Agreement not present" unless agreement
46
46
 
47
47
  client = Client.new(url, agreement.authentication_token)
48
- client.post(relative_url, self.to_json)
49
- client.success?
48
+ response = client.post(relative_url, self.to_json)
49
+
50
+ response.code.to_i
50
51
  end
51
52
 
52
53
  def update_partner(url)
53
54
  client = Client.new(url, agreement.authentication_token)
54
- client.put(relative_url, self.to_json)
55
- client.success?
55
+ response = client.put(relative_url, self.to_json)
56
+
57
+ response.code.to_i
56
58
  end
57
59
 
58
60
  def unshare(base_url)
59
61
  client = Client.new(base_url, agreement.authentication_token)
60
- client.delete(relative_url)
61
- client.success?
62
+ response = client.delete(relative_url)
63
+
64
+ response.code.to_i
62
65
  end
63
66
 
64
67
  def relative_url
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ticket_sharing
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.3
5
+ version: "0.6"
6
6
  platform: ruby
7
7
  authors:
8
8
  - Josh Lubaway
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-07 00:00:00 Z
13
+ date: 2011-09-02 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: