linode 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/CHANGELOG +2 -0
- data/MIT-LICENSE +20 -0
- data/README +138 -0
- data/Rakefile +29 -0
- data/VERSION +1 -0
- data/lib/linode.rb +79 -0
- data/lib/linode/avail.rb +3 -0
- data/lib/linode/domain.rb +4 -0
- data/lib/linode/domain/resource.rb +3 -0
- data/lib/linode/linode.rb +4 -0
- data/lib/linode/linode/config.rb +3 -0
- data/lib/linode/linode/disk.rb +3 -0
- data/lib/linode/linode/ip.rb +3 -0
- data/lib/linode/linode/job.rb +3 -0
- data/lib/linode/test.rb +3 -0
- data/lib/linode/user.rb +3 -0
- data/linode.gemspec +84 -0
- data/spec/linode/avail_spec.rb +45 -0
- data/spec/linode/domain/resource_spec.rb +44 -0
- data/spec/linode/domain_spec.rb +82 -0
- data/spec/linode/linode/config_spec.rb +44 -0
- data/spec/linode/linode/disk_spec.rb +44 -0
- data/spec/linode/linode/ip_spec.rb +44 -0
- data/spec/linode/linode/job_spec.rb +44 -0
- data/spec/linode/linode_spec.rb +196 -0
- data/spec/linode/test_spec.rb +45 -0
- data/spec/linode/user_spec.rb +45 -0
- data/spec/linode_spec.rb +350 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +22 -0
- metadata +105 -0
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# this is my favorite way to require ever
|
2
|
+
begin
|
3
|
+
require 'spec'
|
4
|
+
rescue LoadError
|
5
|
+
require 'rubygems'
|
6
|
+
gem 'rspec'
|
7
|
+
require 'spec'
|
8
|
+
end
|
9
|
+
|
10
|
+
begin
|
11
|
+
require 'mocha'
|
12
|
+
rescue LoadError
|
13
|
+
require 'rubygems'
|
14
|
+
gem 'mocha'
|
15
|
+
require 'mocha'
|
16
|
+
end
|
17
|
+
|
18
|
+
Spec::Runner.configure do |config|
|
19
|
+
config.mock_with :mocha
|
20
|
+
end
|
21
|
+
|
22
|
+
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: linode
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rick Bradley
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-12-20 00:00:00 +05:30
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: httparty
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.4.4
|
24
|
+
version:
|
25
|
+
description: This is a wrapper around Linode's automation facilities.
|
26
|
+
email: rick@rickbradley.com
|
27
|
+
executables: []
|
28
|
+
|
29
|
+
extensions: []
|
30
|
+
|
31
|
+
extra_rdoc_files:
|
32
|
+
- README
|
33
|
+
files:
|
34
|
+
- .gitignore
|
35
|
+
- CHANGELOG
|
36
|
+
- MIT-LICENSE
|
37
|
+
- README
|
38
|
+
- Rakefile
|
39
|
+
- VERSION
|
40
|
+
- lib/linode.rb
|
41
|
+
- lib/linode/avail.rb
|
42
|
+
- lib/linode/domain.rb
|
43
|
+
- lib/linode/domain/resource.rb
|
44
|
+
- lib/linode/linode.rb
|
45
|
+
- lib/linode/linode/config.rb
|
46
|
+
- lib/linode/linode/disk.rb
|
47
|
+
- lib/linode/linode/ip.rb
|
48
|
+
- lib/linode/linode/job.rb
|
49
|
+
- lib/linode/test.rb
|
50
|
+
- lib/linode/user.rb
|
51
|
+
- linode.gemspec
|
52
|
+
- spec/linode/avail_spec.rb
|
53
|
+
- spec/linode/domain/resource_spec.rb
|
54
|
+
- spec/linode/domain_spec.rb
|
55
|
+
- spec/linode/linode/config_spec.rb
|
56
|
+
- spec/linode/linode/disk_spec.rb
|
57
|
+
- spec/linode/linode/ip_spec.rb
|
58
|
+
- spec/linode/linode/job_spec.rb
|
59
|
+
- spec/linode/linode_spec.rb
|
60
|
+
- spec/linode/test_spec.rb
|
61
|
+
- spec/linode/user_spec.rb
|
62
|
+
- spec/linode_spec.rb
|
63
|
+
- spec/spec.opts
|
64
|
+
- spec/spec_helper.rb
|
65
|
+
has_rdoc: true
|
66
|
+
homepage: http://github.com/rick/linode
|
67
|
+
licenses: []
|
68
|
+
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options:
|
71
|
+
- --charset=UTF-8
|
72
|
+
require_paths:
|
73
|
+
- lib
|
74
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: "0"
|
79
|
+
version:
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: "0"
|
85
|
+
version:
|
86
|
+
requirements: []
|
87
|
+
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 1.3.5
|
90
|
+
signing_key:
|
91
|
+
specification_version: 3
|
92
|
+
summary: a Ruby wrapper for the Linode API
|
93
|
+
test_files:
|
94
|
+
- spec/linode/avail_spec.rb
|
95
|
+
- spec/linode/domain/resource_spec.rb
|
96
|
+
- spec/linode/domain_spec.rb
|
97
|
+
- spec/linode/linode/config_spec.rb
|
98
|
+
- spec/linode/linode/disk_spec.rb
|
99
|
+
- spec/linode/linode/ip_spec.rb
|
100
|
+
- spec/linode/linode/job_spec.rb
|
101
|
+
- spec/linode/linode_spec.rb
|
102
|
+
- spec/linode/test_spec.rb
|
103
|
+
- spec/linode/user_spec.rb
|
104
|
+
- spec/linode_spec.rb
|
105
|
+
- spec/spec_helper.rb
|