RightScaleAPIHelper 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +26 -0
- data/README.rdoc +13 -1
- data/RightScaleAPIHelper.gemspec +60 -0
- data/VERSION +1 -1
- metadata +13 -11
- data/.document +0 -5
data/README.markdown
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
RightScaleAPIHelper
|
2
|
+
=========================
|
3
|
+
|
4
|
+
This GEM is a simple wrapper for the RightScale API. It simplifies authentication, and provides an object to run GET, PUT, POST, and DELETE calls.
|
5
|
+
|
6
|
+
Usage
|
7
|
+
-----
|
8
|
+
Create new instance
|
9
|
+
|
10
|
+
RightScaleAPIHelper::Helper.new(acct_id, email, password, format=('js'/'xml'), version = 1.0)
|
11
|
+
|
12
|
+
Example
|
13
|
+
|
14
|
+
api_conn = RightScaleAPIHelper::Helper.new(123456, 'email@email.com', 'password')
|
15
|
+
|
16
|
+
resp = api_conn.get("/deployments")
|
17
|
+
puts resp.code # Response code from RightScale
|
18
|
+
puts resp.body # xml or json response
|
19
|
+
|
20
|
+
|
21
|
+
Copyright
|
22
|
+
---------
|
23
|
+
|
24
|
+
Copyright (c) 2012 Eric VanWieren. See LICENSE.txt for
|
25
|
+
further details.
|
26
|
+
|
data/README.rdoc
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
= RightScaleAPIHelper
|
2
2
|
|
3
|
-
|
3
|
+
This GEM is a simple wrapper for the RightScale API. It simplifies authentication, and provides an object to run GET, PUT, POST, and DELETE calls.
|
4
|
+
|
5
|
+
== Usage
|
6
|
+
Create new instance
|
7
|
+
RightScaleAPIHelper::Helper.new(acct_id, email, password, format=('js'/'xml'), version = 1.0)
|
8
|
+
|
9
|
+
Example
|
10
|
+
api_conn = RightScaleAPIHelper::Helper.new(123456, 'email@email.com', 'password')
|
11
|
+
|
12
|
+
resp = api_conn.get("/deployments")
|
13
|
+
puts resp.code # Response code from RightScale
|
14
|
+
puts resp.body # xml or json response
|
15
|
+
|
4
16
|
|
5
17
|
== Contributing to RightScaleAPIHelper
|
6
18
|
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "RightScaleAPIHelper"
|
8
|
+
s.version = "0.4.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Eric VanWieren"]
|
12
|
+
s.date = "2012-03-29"
|
13
|
+
s.description = "Simple wrapper for connecting and using the RightScale API. Eases the use of connecting with a username and password, and then provides an object to do GET, PUT, POST, DELETE requests. Returns an HTTP response."
|
14
|
+
s.email = "eric@codex.org"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.markdown",
|
18
|
+
"README.rdoc"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE.txt",
|
24
|
+
"README.markdown",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"RightScaleAPIHelper.gemspec",
|
28
|
+
"VERSION",
|
29
|
+
"lib/RightScaleAPIHelper.rb",
|
30
|
+
"test/helper.rb",
|
31
|
+
"test/test_RightScaleAPIHelper.rb"
|
32
|
+
]
|
33
|
+
s.homepage = "http://github.com/evanwieren/RightScaleAPIHelper"
|
34
|
+
s.licenses = ["MIT"]
|
35
|
+
s.require_paths = ["lib"]
|
36
|
+
s.rubygems_version = "1.8.15"
|
37
|
+
s.summary = "Simple wrapper for connecting to RightScale API and make Calls"
|
38
|
+
|
39
|
+
if s.respond_to? :specification_version then
|
40
|
+
s.specification_version = 3
|
41
|
+
|
42
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
44
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
45
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
46
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
47
|
+
else
|
48
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
49
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
51
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
52
|
+
end
|
53
|
+
else
|
54
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
56
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
57
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RightScaleAPIHelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
16
|
-
requirement: &
|
16
|
+
requirement: &70123677144800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70123677144800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70123677144140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '3.12'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70123677144140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &70123677143480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 1.0.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70123677143480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jeweler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70123677142800 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.8.3
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70123677142800
|
58
58
|
description: Simple wrapper for connecting and using the RightScale API. Eases the
|
59
59
|
use of connecting with a username and password, and then provides an object to do
|
60
60
|
GET, PUT, POST, DELETE requests. Returns an HTTP response.
|
@@ -63,14 +63,16 @@ executables: []
|
|
63
63
|
extensions: []
|
64
64
|
extra_rdoc_files:
|
65
65
|
- LICENSE.txt
|
66
|
+
- README.markdown
|
66
67
|
- README.rdoc
|
67
68
|
files:
|
68
|
-
- .document
|
69
69
|
- Gemfile
|
70
70
|
- Gemfile.lock
|
71
71
|
- LICENSE.txt
|
72
|
+
- README.markdown
|
72
73
|
- README.rdoc
|
73
74
|
- Rakefile
|
75
|
+
- RightScaleAPIHelper.gemspec
|
74
76
|
- VERSION
|
75
77
|
- lib/RightScaleAPIHelper.rb
|
76
78
|
- test/helper.rb
|
@@ -90,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
92
|
version: '0'
|
91
93
|
segments:
|
92
94
|
- 0
|
93
|
-
hash: -
|
95
|
+
hash: -3327529971578425048
|
94
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
97
|
none: false
|
96
98
|
requirements:
|