linodeapi 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6345f9965fe7647869c9db3929f74486870c7320
4
- data.tar.gz: d07e79e2957e47988dbec5c9fbd422172f0eb0b6
3
+ metadata.gz: 20a479c17b644b53b3a30f2ab0bde78f208a927c
4
+ data.tar.gz: 50fe1be948698cb2799856bbab81962c61a8eaea
5
5
  SHA512:
6
- metadata.gz: 01d1aae1a1e4647f26f364b90ef2475768747803ba232d3f6fcf163cb7f2add6b579851d54156cd3356195b2366be37e1994ff0d4f3f8d312c385f10a02ea9a6
7
- data.tar.gz: db03f633dcdc8213b02dc1444d53f360b5cbcbf4bce2ca685a39c53332a73e99a3a7db0e0efd667e4ed437dba3e2a4e79458b29e18e042718a7fd1c966aa606d
6
+ metadata.gz: f917e9aa3306e452c8cde8d6a00a8af61e8533eec2bf4ad5b38bfdeb2b71c2c944f146b05431ea7a0affd66ef705ecc3317e9bd23601e2b0fe288548f176f971
7
+ data.tar.gz: d40d46c444681a38c52e71dd3f29ec801996e1fd235f700e4967e83d1d6fbd03b760c5404282077e0a22f54b1e2dabc2e4ff9d26a4cc26685352e868faff4b1b
data/lib/linodeapi/raw.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'httparty'
2
+ require 'ostruct'
2
3
 
3
4
  ##
4
5
  # Raw API wrapper, dynamically loaded from the published spec
@@ -80,7 +81,7 @@ module LinodeAPI
80
81
  end
81
82
 
82
83
  def self.clean(object)
83
- Hash[object.map { |k, v| [k.downcase.to_sym, v] }]
84
+ OpenStruct.new(Hash[object.map { |k, v| [k.downcase.to_sym, v] }])
84
85
  end
85
86
 
86
87
  def self.validate(method, spec, given)
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.7'
3
+ s.version = '0.1.0'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Linode API wrapper'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linodeapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker