racked 0.6.0 → 0.7.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 +15 -0
  3. data/racked.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.7.0
@@ -59,6 +59,21 @@ class Racked
59
59
  mailboxes << mailbox
60
60
  end
61
61
  end
62
+ def get_mailbox_details(mailbox)
63
+ #get mailbox details
64
+ response = @server.get '/customers/856863/domains/econetmail.com/rs/mailboxes/' + mailbox, @server.json_format
65
+ puts response.inspect
66
+ puts response['x-error-message']
67
+ # response = JSON.parse(response)
68
+ puts response.code
69
+ puts response.body
70
+ # puts response.inspect
71
+ #TO DO: error checking
72
+ # returning [] do |mailboxes|
73
+ # response["rsMailboxes"].each {|c| mailboxes << Mailbox.new(c) }
74
+ # end
75
+ return response
76
+ end
62
77
 
63
78
  def create_mailbox(msisdn_number, fields_array)
64
79
  #create a customer mailbox
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{racked}
8
- s.version = "0.6.0"
8
+ s.version = "0.7.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-16}
12
+ s.date = %q{2010-12-17}
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
- - 6
7
+ - 7
8
8
  - 0
9
- version: 0.6.0
9
+ version: 0.7.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-16 00:00:00 +02:00
17
+ date: 2010-12-17 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: -752904099
112
+ hash: -149039151
113
113
  segments:
114
114
  - 0
115
115
  version: "0"