linode 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/linode.rb +1 -1
- data/linode.gemspec +2 -3
- data/spec/linode_spec.rb +28 -0
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de9411d548f39b5daf2fca55e3fd7ffbad6eba21
|
4
|
+
data.tar.gz: fe8344bce96367b6e9fd3a324a9a9bec6a8d265e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6ef8c7081d9acdc29baa57c67cc2387943872935a19fa6231b8e338d98f264fc2a9c73ab50ed60ea59f5ff1280fa9dba4aeac8c46e1fcb591c3500e5986bc48
|
7
|
+
data.tar.gz: bf0bb76385fb2d1770c255e200304e43b16ba10f8a7a5b2c955baf39b06c5badfd0fa224a8821cd0bb877c8523d90232a46be4567cc365f8d0f92a3aa8273736
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.9.0
|
data/lib/linode.rb
CHANGED
@@ -29,7 +29,7 @@ class Linode
|
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
|
-
has_namespace :test, :avail, :user, :domain, :linode, :nodebalancer, :stackscript, :account
|
32
|
+
has_namespace :test, :avail, :user, :domain, :linode, :nodebalancer, :stackscript, :account, :image
|
33
33
|
|
34
34
|
@@documentation_category = {}
|
35
35
|
|
data/linode.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "linode"
|
5
|
-
s.version = "0.
|
6
|
-
s.date = "
|
5
|
+
s.version = "0.9.0"
|
6
|
+
s.date = "2016-01-02"
|
7
7
|
s.description = "This is a wrapper around Linode's automation facilities."
|
8
8
|
s.summary = "a Ruby wrapper for the Linode API"
|
9
9
|
s.authors = ["Rick Bradley"]
|
@@ -27,6 +27,5 @@ Gem::Specification.new do |s|
|
|
27
27
|
|
28
28
|
s.add_runtime_dependency(%q<httparty>, ["~> 0.0"])
|
29
29
|
s.add_runtime_dependency(%q<json>, ["~> 1.0"])
|
30
|
-
s.add_runtime_dependency(%q<crack>, ["~> 0.0"])
|
31
30
|
end
|
32
31
|
|
data/spec/linode_spec.rb
CHANGED
@@ -539,4 +539,32 @@ describe 'Linode' do
|
|
539
539
|
linode.stackscript.should == result
|
540
540
|
end
|
541
541
|
end
|
542
|
+
|
543
|
+
describe 'when providing access to the Linode Image API' do
|
544
|
+
it 'should allow no arguments' do
|
545
|
+
lambda { @linode.image }.should_not raise_error
|
546
|
+
end
|
547
|
+
|
548
|
+
it 'should require no arguments' do
|
549
|
+
lambda { @linode.image(:foo) }.should raise_error(ArgumentError)
|
550
|
+
end
|
551
|
+
|
552
|
+
it 'should return a Linode::Image instance' do
|
553
|
+
@linode.image.class.should == Linode::Image
|
554
|
+
end
|
555
|
+
|
556
|
+
it 'should set the API key on the Linode::Image instance to be our API key' do
|
557
|
+
@linode.image.api_key.should == @api_key
|
558
|
+
end
|
559
|
+
|
560
|
+
it 'should set the API url on the Linode::Image instance to be our API url' do
|
561
|
+
@linode.image.api_url.should == @api_url
|
562
|
+
end
|
563
|
+
|
564
|
+
it 'should return the same Linode::Image instance when called again' do
|
565
|
+
linode = Linode.new(:api_key => @api_key)
|
566
|
+
result = linode.image
|
567
|
+
linode.image.should == result
|
568
|
+
end
|
569
|
+
end
|
542
570
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Bradley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: crack
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.0'
|
55
41
|
description: This is a wrapper around Linode's automation facilities.
|
56
42
|
email: rick@rickbradley.com
|
57
43
|
executables: []
|
@@ -125,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
111
|
version: '0'
|
126
112
|
requirements: []
|
127
113
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.2.
|
114
|
+
rubygems_version: 2.2.5
|
129
115
|
signing_key:
|
130
116
|
specification_version: 4
|
131
117
|
summary: a Ruby wrapper for the Linode API
|