rackspace-monitoring 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDhkZDBhODBmZGVmYmE5Y2Q3NzQ3ZDkwNTAxMTM4OWM2Y2FiNDM0ZA==
5
+ data.tar.gz: !binary |-
6
+ ZGI3Yzc3MTE1YTUxYzFjZDMzNTRkZmE5MzMyMTQyZjE3YzA5MmNiOA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ Y2Y0N2UyZmMzNGMxOWQ1MDkzYmQ0MDc3ZDlmMGM1Y2I1YmU0OWRiNGQzYTJh
10
+ MTM5NDlkNWNiN2M3YzkwMjMwYTI3MWZjMWRlNWJhNzZmY2Q3ZTc1ZmY3NTU4
11
+ ODdjODc4Y2JhOGZjNGJjMDYwY2JiODVkM2I4NzI1MTAxZDg0NjM=
12
+ data.tar.gz: !binary |-
13
+ OWE5YTJkNjk4Mzk4YTczYTJhODEzNjlkODA0ZjE2Zjg4YjBjNjU2NTU5MmY3
14
+ OTc5NDE4MDlhYWNhMTEzODczMDI3MTAzMzJiMTU4ZWE0MjM0YjMyNGIzYTQ2
15
+ ZjNjMWY5MTk3MTg2NGZhNjA3NjdlYjMzZjI1ZDc1NmQ4MjVlNWU=
data/Gemfile CHANGED
@@ -1,8 +1,8 @@
1
- source "http://rubygems.org"
1
+ source "https://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", ">= 1.11.1", :path => '/w/fog'
5
+ gem "fog", ">= 1.11.1"
6
6
 
7
7
  # Add dependencies to develop your gem here.
8
8
  # Include everything needed to run rake, tests, features, etc.
@@ -10,5 +10,5 @@ group :development do
10
10
  gem "shoulda", ">= 0"
11
11
  gem "rdoc", "~> 3.12"
12
12
  gem "bundler", ">= 1.0.0"
13
- gem "jeweler", "~> 1.8.3"
13
+ gem "jeweler", "~> 1.8.7"
14
14
  end
data/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # New Projects should use [Fog](http://github.com/fog/fog).
2
+ This gem has been deprecated. Its functionality will be merged into the fog gem starting with version 1.15.0.
3
+
4
+ ### Migrating to fog:
5
+ * Update your Gemfile and gemspecs to use `fog` instead of `rackspace-monitoring`.
6
+ * Change the name space of your classes from `Fog::Monitoring::Rackspace` to `Fog::Rackspace::Monitoring`
7
+
1
8
  # Rackspace Cloud Monitoring Ruby Bindings
2
9
 
3
10
  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/cookbook-cloudmonitoring chef cookbook.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.4.0
@@ -26,7 +26,10 @@ module Fog
26
26
  data = service.update_agent_token(identity, options)
27
27
  else
28
28
  data = service.create_agent_token(options)
29
+ self.identity = data.data[:headers]['X-Object-ID']
29
30
  end
31
+ data = service.get_agent_token(identity)
32
+ self.token = data.data[:body]['token']
30
33
  true
31
34
  end
32
35
 
@@ -32,7 +32,15 @@ module Fog
32
32
  data = service.update_entity(identity, options)
33
33
  else
34
34
  data = service.create_entity(options)
35
+ self.identity = data.data[:headers]['X-Object-ID']
35
36
  end
37
+ data = service.get_entity(identity)
38
+ self.label = data.data[:body]['label']
39
+ self.metadata = data.data[:body]['metadata']
40
+ self.ip_addresses = data.data[:body]['ip_addresses']
41
+ self.agent_id = data.data[:body]['agent_id']
42
+ self.managed = data.data[:body]['managed']
43
+ self.uri = data.data[:body]['uri']
36
44
  true
37
45
  end
38
46
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rackspace-monitoring"
8
- s.version = "0.3.1"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dan Di Spaltro"]
12
- s.date = "2013-06-22"
12
+ s.date = "2013-09-20"
13
13
  s.description = "Rackspace Cloud Monitoring Ruby Bindings, built on top of fog."
14
14
  s.email = "dan.dispaltro@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.files = [
20
20
  ".document",
21
21
  "Gemfile",
22
- "Gemfile.lock",
23
22
  "LICENSE.txt",
24
23
  "README.md",
25
24
  "Rakefile",
@@ -73,31 +72,31 @@ Gem::Specification.new do |s|
73
72
  s.homepage = "http://github.com/racker/rackspace-monitoring-rb"
74
73
  s.licenses = ["APACHE"]
75
74
  s.require_paths = ["lib"]
76
- s.rubygems_version = "1.8.24"
75
+ s.rubygems_version = "2.0.3"
77
76
  s.summary = "Rackspace Cloud Monitoring Ruby Bindings"
78
77
 
79
78
  if s.respond_to? :specification_version then
80
- s.specification_version = 3
79
+ s.specification_version = 4
81
80
 
82
81
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
83
82
  s.add_runtime_dependency(%q<fog>, [">= 1.11.1"])
84
83
  s.add_development_dependency(%q<shoulda>, [">= 0"])
85
84
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
86
85
  s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
87
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
86
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
88
87
  else
89
88
  s.add_dependency(%q<fog>, [">= 1.11.1"])
90
89
  s.add_dependency(%q<shoulda>, [">= 0"])
91
90
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
92
91
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
93
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
92
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
94
93
  end
95
94
  else
96
95
  s.add_dependency(%q<fog>, [">= 1.11.1"])
97
96
  s.add_dependency(%q<shoulda>, [">= 0"])
98
97
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
99
98
  s.add_dependency(%q<bundler>, [">= 1.0.0"])
100
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
99
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
101
100
  end
102
101
  end
103
102
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackspace-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Dan Di Spaltro
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-22 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: fog
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: shoulda
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rdoc
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,19 +69,17 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: jeweler
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
85
- version: 1.8.3
75
+ version: 1.8.7
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
93
- version: 1.8.3
82
+ version: 1.8.7
94
83
  description: Rackspace Cloud Monitoring Ruby Bindings, built on top of fog.
95
84
  email: dan.dispaltro@gmail.com
96
85
  executables: []
@@ -101,7 +90,6 @@ extra_rdoc_files:
101
90
  files:
102
91
  - .document
103
92
  - Gemfile
104
- - Gemfile.lock
105
93
  - LICENSE.txt
106
94
  - README.md
107
95
  - Rakefile
@@ -154,29 +142,25 @@ files:
154
142
  homepage: http://github.com/racker/rackspace-monitoring-rb
155
143
  licenses:
156
144
  - APACHE
145
+ metadata: {}
157
146
  post_install_message:
158
147
  rdoc_options: []
159
148
  require_paths:
160
149
  - lib
161
150
  required_ruby_version: !ruby/object:Gem::Requirement
162
- none: false
163
151
  requirements:
164
152
  - - ! '>='
165
153
  - !ruby/object:Gem::Version
166
154
  version: '0'
167
- segments:
168
- - 0
169
- hash: 3279114146114637358
170
155
  required_rubygems_version: !ruby/object:Gem::Requirement
171
- none: false
172
156
  requirements:
173
157
  - - ! '>='
174
158
  - !ruby/object:Gem::Version
175
159
  version: '0'
176
160
  requirements: []
177
161
  rubyforge_project:
178
- rubygems_version: 1.8.24
162
+ rubygems_version: 2.0.3
179
163
  signing_key:
180
- specification_version: 3
164
+ specification_version: 4
181
165
  summary: Rackspace Cloud Monitoring Ruby Bindings
182
166
  test_files: []
data/Gemfile.lock DELETED
@@ -1,57 +0,0 @@
1
- PATH
2
- remote: /w/fog
3
- specs:
4
- fog (1.12.1)
5
- builder
6
- excon (~> 0.25.0)
7
- formatador (~> 0.2.0)
8
- mime-types
9
- multi_json (~> 1.0)
10
- net-scp (~> 1.1)
11
- net-ssh (>= 2.1.3)
12
- nokogiri (~> 1.5.0)
13
- ruby-hmac
14
-
15
- GEM
16
- remote: http://rubygems.org/
17
- specs:
18
- activesupport (3.2.13)
19
- i18n (= 0.6.1)
20
- multi_json (~> 1.0)
21
- builder (3.2.2)
22
- excon (0.25.0)
23
- formatador (0.2.4)
24
- git (1.2.5)
25
- i18n (0.6.1)
26
- jeweler (1.8.4)
27
- bundler (~> 1.0)
28
- git (>= 1.2.5)
29
- rake
30
- rdoc
31
- json (1.8.0)
32
- mime-types (1.23)
33
- multi_json (1.7.7)
34
- net-scp (1.1.1)
35
- net-ssh (>= 2.6.5)
36
- net-ssh (2.6.7)
37
- nokogiri (1.5.10)
38
- rake (10.1.0)
39
- rdoc (3.12.2)
40
- json (~> 1.4)
41
- ruby-hmac (0.4.0)
42
- shoulda (3.5.0)
43
- shoulda-context (~> 1.0, >= 1.0.1)
44
- shoulda-matchers (>= 1.4.1, < 3.0)
45
- shoulda-context (1.1.3)
46
- shoulda-matchers (2.2.0)
47
- activesupport (>= 3.0.0)
48
-
49
- PLATFORMS
50
- ruby
51
-
52
- DEPENDENCIES
53
- bundler (>= 1.0.0)
54
- fog (>= 1.11.1)!
55
- jeweler (~> 1.8.3)
56
- rdoc (~> 3.12)
57
- shoulda