racked 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/racked.rb +1 -1
  3. data/lib/racked/server.rb +4 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -121,7 +121,7 @@ class Racked
121
121
  def update_mailbox(options)
122
122
  check_options(options, [:domain, :customer_number, :mailbox_type, :mailbox, :data_fields_hash])
123
123
  #update a customer mailbox
124
- response = @server.put "/customers/#{@customer_number}/domains/#{@domain}/#{@mailbox_type}/mailboxes/#{@mailbox}", @data_fields_hash
124
+ response = @server.put "/customers/#{@customer_number}/domains/#{@domain}/#{@mailbox_type}/mailboxes/#{@mailbox}", @data_fields_hash, @server.json_format
125
125
  # puts response.inspect
126
126
  # puts response['x-error-message']
127
127
  # puts response.body.inspect
@@ -45,9 +45,11 @@ class Server
45
45
  http_response = make_request request, uri
46
46
  end
47
47
 
48
- def put(url_string, fields_hash)
48
+ def put(url_string, fields_hash, format)
49
49
  uri = full_uri(url_string)
50
- request = Net::HTTP::Put.new(request_uri(uri), prepared_headers)
50
+ headers = prepared_headers
51
+ headers['Accept'] = format
52
+ request = Net::HTTP::Put.new(request_uri(uri), headers)
51
53
  request.set_form_data(fields_hash)
52
54
  http_response = make_request request, uri
53
55
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 2
9
- version: 1.0.2
8
+ - 3
9
+ version: 1.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Noto Modungwa
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - ">="
155
155
  - !ruby/object:Gem::Version
156
- hash: 1200967365092229094
156
+ hash: 3883473394465820957
157
157
  segments:
158
158
  - 0
159
159
  version: "0"