racked 0.4.2 → 0.5.0

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 +11 -1
  3. data/racked.gemspec +2 -2
  4. metadata +5 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.5.0
data/lib/racked.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
  require 'json'
3
- #require './lib/racked/server.rb' #for dev
3
+ # require './lib/racked/server.rb' #for dev
4
4
  require 'racked/server.rb' #for release
5
5
 
6
6
  class RackMailbox
@@ -70,6 +70,16 @@ class Racked
70
70
  #response = JSON.parse(response.body )
71
71
  end
72
72
 
73
+ def update_mailbox(msisdn_number, fields_array)
74
+ #create a customer mailbox
75
+ response = @server.put '/customers/856863/domains/econetmail.com/rs/mailboxes/' + msisdn_number, fields_array
76
+ # puts response.inspect
77
+ # puts response['x-error-message']
78
+ # puts response.body.inspect
79
+ return response
80
+ #response = JSON.parse(response.body )
81
+ end
82
+
73
83
  end
74
84
 
75
85
  # api = Racked.instance
data/racked.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{racked}
8
- s.version = "0.4.2"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Noto Modungwa"]
12
- s.date = %q{2010-12-13}
12
+ s.date = %q{2010-12-16}
13
13
  s.description = %q{Allows you to manage your rackspace hosted mailboxes, eg. create a new mailbox.}
14
14
  s.email = %q{notomodungwa@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
7
+ - 5
8
+ - 0
9
+ version: 0.5.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Noto Modungwa
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-13 00:00:00 +02:00
17
+ date: 2010-12-16 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -109,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- hash: 293758157
112
+ hash: -1056680529
113
113
  segments:
114
114
  - 0
115
115
  version: "0"