rackspace-monitoring 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
5
- gem "fog", ">= 0"
5
+ gem "fog", "= 0.7.0"
6
6
 
7
7
  # Add dependencies to develop your gem here.
8
8
  # Include everything needed to run rake, tests, features, etc.
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Rackspace Cloud Monitoring Ruby Bindings
2
2
 
3
- This project contains the Ruby bindings for the Rackspace Cloud Monitoring product.
3
+ This project contains the Ruby bindings for the Rackspace Cloud Monitoring product. It is based off the most awesome Fog cloud services library here - https://github.com/fog/fog. This library is used heavily in the https://github.com/racker/cookbooks/tree/master/cloud_monitoring chef cookbook.
4
4
 
5
5
  == Contributing
6
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -1,6 +1,6 @@
1
1
  require 'fog/core'
2
2
  require 'fog/rackspace'
3
- require 'multi_json'
3
+ require 'json'
4
4
 
5
5
  module Fog
6
6
  module Monitoring
@@ -103,7 +103,7 @@ module Fog
103
103
  end
104
104
  end
105
105
  unless response.body.empty?
106
- response.body = MultiJson.decode(response.body)
106
+ response.body = JSON.parse(response.body)
107
107
  end
108
108
  response
109
109
  end
@@ -6,7 +6,7 @@ module Fog
6
6
  def create_agent_token(options = {})
7
7
  data = options.dup
8
8
  request(
9
- :body => MultiJson.encode(data),
9
+ :body => JSON.generate(data),
10
10
  :expects => [201],
11
11
  :method => 'POST',
12
12
  :path => 'agent_tokens'
@@ -6,7 +6,7 @@ module Fog
6
6
  def create_alarm(entity_id, options = {})
7
7
  data = options.dup
8
8
  request(
9
- :body => MultiJson.encode(data),
9
+ :body => JSON.generate(data),
10
10
  :expects => [201],
11
11
  :method => 'POST',
12
12
  :path => "entities/#{entity_id}/alarms"
@@ -6,7 +6,7 @@ module Fog
6
6
  def create_check(entity_id, options = {})
7
7
  data = options.dup
8
8
  request(
9
- :body => MultiJson.encode(data),
9
+ :body => JSON.generate(data),
10
10
  :expects => [201],
11
11
  :method => 'POST',
12
12
  :path => "entities/#{entity_id}/checks"
@@ -6,7 +6,7 @@ module Fog
6
6
  def create_entity(options = {})
7
7
  data = options.dup
8
8
  request(
9
- :body => MultiJson.encode(data),
9
+ :body => JSON.generate(data),
10
10
  :expects => [201],
11
11
  :method => 'POST',
12
12
  :path => 'entities'
@@ -7,7 +7,7 @@ module Fog
7
7
  options ||= {}
8
8
  data = {:values => options.dup}
9
9
  request(
10
- :body => MultiJson.encode(data),
10
+ :body => JSON.generate(data),
11
11
  :expects => [200],
12
12
  :method => 'POST',
13
13
  :path => "alarm_examples/#{id}"
@@ -5,7 +5,7 @@ module Fog
5
5
 
6
6
  def update_check(entity_id, id, options)
7
7
  request(
8
- :body => MultiJson.encode(options),
8
+ :body => JSON.generate(options),
9
9
  :expects => [204],
10
10
  :method => 'PUT',
11
11
  :path => "entities/#{entity_id}/checks/#{id}"
@@ -5,7 +5,7 @@ module Fog
5
5
 
6
6
  def update_entity(id, options)
7
7
  request(
8
- :body => MultiJson.encode(options),
8
+ :body => JSON.generate(options),
9
9
  :expects => [204],
10
10
  :method => 'PUT',
11
11
  :path => "entities/#{id}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackspace-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-14 00:00:00.000000000 Z
12
+ date: 2012-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.7.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 0.7.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: shoulda
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: -2125588216297176347
157
+ hash: 1535680177378005739
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  none: false
160
160
  requirements: