linodeapi 0.0.6 → 0.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3743f1068dcf7d2ba08ccb6805c0e81db45752d7
4
- data.tar.gz: 526ea7504cba17317665fb25b7b790b106fe563d
3
+ metadata.gz: 6345f9965fe7647869c9db3929f74486870c7320
4
+ data.tar.gz: d07e79e2957e47988dbec5c9fbd422172f0eb0b6
5
5
  SHA512:
6
- metadata.gz: 09e5658dd7562dce3d1c537c6364931d7a1cbf26a0e031cd7b534ba1b0f365fd14cf5f87ecbcab85322f70b1cc8e11be2dfc690d79281e05c6a43f103eeef837
7
- data.tar.gz: 0da058706319205603453ae3644eda5ec3eaf0e83d1aba1ae553577ef00c72c9c3db60733883e8d0327521a10f716f0855d96cce6dc1004bf47d2d09f69c410f
6
+ metadata.gz: 01d1aae1a1e4647f26f364b90ef2475768747803ba232d3f6fcf163cb7f2add6b579851d54156cd3356195b2366be37e1994ff0d4f3f8d312c385f10a02ea9a6
7
+ data.tar.gz: db03f633dcdc8213b02dc1444d53f360b5cbcbf4bce2ca685a39c53332a73e99a3a7db0e0efd667e4ed437dba3e2a4e79458b29e18e042718a7fd1c966aa606d
data/lib/linodeapi/raw.rb CHANGED
@@ -71,6 +71,7 @@ module LinodeAPI
71
71
  end
72
72
 
73
73
  def self.parse(resp)
74
+ resp['ERRORARRAY'].reject! { |x| x['ERRORCODE'].zero? }
74
75
  unless resp['ERRORARRAY'].empty?
75
76
  fail "API Error on #{resp['ACTION']}: #{resp['ERRORARRAY']}"
76
77
  end
@@ -212,7 +212,7 @@ module LinodeAPI
212
212
  :required=>false},
213
213
  :target=>
214
214
  {:desc=>
215
- "When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. \n\t\tWhen Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request.",
215
+ "When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. When Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request.",
216
216
  :type=>:string,
217
217
  :required=>false},
218
218
  :type=>
@@ -262,7 +262,7 @@ module LinodeAPI
262
262
  :required=>false},
263
263
  :target=>
264
264
  {:desc=>
265
- "When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. \n\t\tWhen Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request.",
265
+ "When Type=MX the hostname. When Type=CNAME the target of the alias. When Type=TXT the value of the record. When Type=A or AAAA the token of '[remote_addr]' will be substituted with the IP address of the request.",
266
266
  :type=>:string,
267
267
  :required=>false},
268
268
  :weight=>{:desc=>"", :type=>:numeric, :required=>false}}}}},
@@ -409,7 +409,7 @@ module LinodeAPI
409
409
  {:desc=>
410
410
  "A comma delimited list of DiskIDs; position reflects device node. The 9th element for specifying the initrd.",
411
411
  :type=>:string,
412
- :required=>false},
412
+ :required=>true},
413
413
  :kernelid=>
414
414
  {:desc=>
415
415
  "The KernelID for this profile. Found in avail.kernels()",
@@ -756,7 +756,7 @@ module LinodeAPI
756
756
  :required=>true}}},
757
757
  :list=>
758
758
  {:type=>:call,
759
- :desc=>"",
759
+ :desc=>"Status values are 1: Ready and 2: Being Deleted.",
760
760
  :throws=>[],
761
761
  :params=>
762
762
  {:diskid=>{:desc=>"", :type=>:numeric, :required=>false},
@@ -873,7 +873,7 @@ module LinodeAPI
873
873
  :list=>
874
874
  {:type=>:call,
875
875
  :desc=>
876
- "Returns a list of all Linodes user has access or delete to, including some properties",
876
+ "Returns a list of all Linodes user has access or delete to, including some properties. Status values are -1: Being Created, 0: Brand New, 1: Running, and 2: Powered Off.",
877
877
  :throws=>[],
878
878
  :params=>
879
879
  {:linodeid=>
@@ -1146,11 +1146,6 @@ module LinodeAPI
1146
1146
  :label=>
1147
1147
  {:desc=>"This NodeBalancer's label",
1148
1148
  :type=>:string,
1149
- :required=>false},
1150
- :paymentterm=>
1151
- {:desc=>
1152
- "Subscription term in months for prepaid customers. One of: 1, 12, or 24",
1153
- :type=>:numeric,
1154
1149
  :required=>false}}},
1155
1150
  :delete=>
1156
1151
  {:type=>:call,
data/linodeapi.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'linodeapi'
3
- s.version = '0.0.6'
3
+ s.version = '0.0.7'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Linode API wrapper'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linodeapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-22 00:00:00.000000000 Z
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty