scout_api 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ == 1.0.3
2
+
3
+ * Fixing response header change w/HTTParty 0.8
4
+ * Removed broken rake console rake task
5
+
1
6
  == 1.0.2
2
7
 
3
8
  * Removed Server#active_alerts. This XML is not being returned.
data/Gemfile.lock CHANGED
@@ -1,18 +1,20 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- crack (0.1.6)
5
4
  fakeweb (1.3.0)
6
5
  git (1.2.5)
7
6
  hashie (0.1.8)
8
- httparty (0.5.2)
9
- crack (= 0.1.6)
7
+ httparty (0.8.1)
8
+ multi_json
9
+ multi_xml
10
10
  jeweler (1.5.2)
11
11
  bundler (~> 1.0.0)
12
12
  git (>= 1.2.5)
13
13
  rake
14
- nokogiri (1.4.4)
15
- rake (0.8.7)
14
+ multi_json (1.0.3)
15
+ multi_xml (0.4.1)
16
+ nokogiri (1.5.0)
17
+ rake (0.9.2)
16
18
 
17
19
  PLATFORMS
18
20
  ruby
data/README.rdoc CHANGED
@@ -68,7 +68,7 @@ Create and delete servers:
68
68
 
69
69
  == Ruby Compatibility
70
70
 
71
- scout_api has been tested against Ruby 1.8.6, Ruby 1.8.7, and Ruby 1.9.2.
71
+ scout_api has been tested against Ruby 1.8.7, and Ruby 1.9.2.
72
72
 
73
73
  == Note on Patches/Pull Requests
74
74
 
data/Rakefile CHANGED
@@ -28,11 +28,6 @@ Rake::RDocTask.new do |rdoc|
28
28
  rdoc.rdoc_files.include('lib/**/*.rb')
29
29
  end
30
30
 
31
- desc "Open an irb session preloaded with this library"
32
- task :console do
33
- sh "irb -rubygems -I lib -r scout.rb"
34
- end
35
-
36
31
  require "rake/testtask"
37
32
  Rake::TestTask.new do |test|
38
33
  test.libs << "test"
@@ -118,8 +118,7 @@ class Scout::Server < Hashie::Mash
118
118
  :query => {:client => {:name => name, :copy_plugins_from_client_id => id}, :api_version => Scout::VERSION})
119
119
 
120
120
  raise Scout::Error, response['errors']['error'] if response['errors']
121
-
122
- first(response.headers['id'].first.to_i)
121
+ first(response.headers['id'].to_i)
123
122
  end
124
123
 
125
124
  # Delete a server by <tt>id</tt>. If an error occurs, a [Scout::Error] is raised.
@@ -131,9 +130,9 @@ class Scout::Server < Hashie::Mash
131
130
  def self.delete(id)
132
131
  response = Scout::Account.delete("/#{Scout::Account.param}/clients/#{id}.xml?api_version=#{Scout::VERSION}")
133
132
 
134
- if response.headers['status'].first.match('404')
133
+ if response.headers['status'].match('404')
135
134
  raise Scout::Error, "Server Not Found"
136
- elsif !response.headers['status'].first.match('200')
135
+ elsif !response.headers['status'].match('200')
137
136
  raise Scout::Error, "An error occured"
138
137
  else
139
138
  return true
@@ -1,3 +1,3 @@
1
1
  module Scout
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
data/scout_api.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{scout_api}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jesse Newland", "Derek Haynes"]
12
- s.date = %q{2011-10-07}
12
+ s.date = %q{2011-10-10}
13
13
  s.description = %q{A library for interacting with Scout (http://scoutapp.com), a hosted server monitoring service. Query for metric data, manage servers, and more.}
14
14
  s.email = %q{support@scoutapp.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jesse Newland
@@ -16,10 +16,13 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-10-07 00:00:00 -07:00
19
+ date: 2011-10-10 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ name: hashie
25
+ type: :runtime
23
26
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
27
  none: false
25
28
  requirements:
@@ -31,11 +34,11 @@ dependencies:
31
34
  - 1
32
35
  - 8
33
36
  version: 0.1.8
34
- prerelease: false
35
37
  requirement: *id001
36
- type: :runtime
37
- name: hashie
38
38
  - !ruby/object:Gem::Dependency
39
+ prerelease: false
40
+ name: httparty
41
+ type: :runtime
39
42
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
43
  none: false
41
44
  requirements:
@@ -45,11 +48,11 @@ dependencies:
45
48
  segments:
46
49
  - 0
47
50
  version: "0"
48
- prerelease: false
49
51
  requirement: *id002
50
- type: :runtime
51
- name: httparty
52
52
  - !ruby/object:Gem::Dependency
53
+ prerelease: false
54
+ name: nokogiri
55
+ type: :runtime
53
56
  version_requirements: &id003 !ruby/object:Gem::Requirement
54
57
  none: false
55
58
  requirements:
@@ -59,11 +62,11 @@ dependencies:
59
62
  segments:
60
63
  - 0
61
64
  version: "0"
62
- prerelease: false
63
65
  requirement: *id003
64
- type: :runtime
65
- name: nokogiri
66
66
  - !ruby/object:Gem::Dependency
67
+ prerelease: false
68
+ name: fakeweb
69
+ type: :development
67
70
  version_requirements: &id004 !ruby/object:Gem::Requirement
68
71
  none: false
69
72
  requirements:
@@ -73,11 +76,11 @@ dependencies:
73
76
  segments:
74
77
  - 0
75
78
  version: "0"
76
- prerelease: false
77
79
  requirement: *id004
78
- type: :development
79
- name: fakeweb
80
80
  - !ruby/object:Gem::Dependency
81
+ prerelease: false
82
+ name: jeweler
83
+ type: :development
81
84
  version_requirements: &id005 !ruby/object:Gem::Requirement
82
85
  none: false
83
86
  requirements:
@@ -89,10 +92,7 @@ dependencies:
89
92
  - 5
90
93
  - 0
91
94
  version: 1.5.0
92
- prerelease: false
93
95
  requirement: *id005
94
- type: :development
95
- name: jeweler
96
96
  description: A library for interacting with Scout (http://scoutapp.com), a hosted server monitoring service. Query for metric data, manage servers, and more.
97
97
  email: support@scoutapp.com
98
98
  executables: []