cradlepoint 0.1.2 → 0.2.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: f3f5cd9faaccfd02c918fa3777729a03261f17b1
4
- data.tar.gz: a451598414e184f896881e69ec3099a9f7f07b3d
3
+ metadata.gz: 8b22d2f2d6acac43af74052aa2196bd1ddd32c19
4
+ data.tar.gz: e94608b410b016ac61ea0ea5aeb0868d2c86f049
5
5
  SHA512:
6
- metadata.gz: fcb008c3e041be4d8b7ba43c1551ea26d9d98431ec08e200ec9f2189422709a50c7386c122050e1c01f7707d8fbc6f6cb4d508678bd701044784ef6461075f68
7
- data.tar.gz: 63f88acd7ad312cdafba425d60096190a0ea30b2bdfd10002f9e787fb2d5100ccefdf36cf8d727b9403947ea2e142d45932c0dd03dbdc885891219961f494f14
6
+ metadata.gz: da2b87096d7035ac878390ae23601276141bc928b25e9dd51b18896fc3720105c0a357f481f8df56eb9de7c1535d52bfa4e78bac4eb6050aada77a0640a3659d
7
+ data.tar.gz: 72f5bd64be30d269b9bcdb7ff448dff63b09257cc1310f134c01ef766c696a3b3ab01858e8708b95feaf3c5db503b265f83fa5c2d44cc0b0655035cd9df8cd82
data/lib/cradlepoint.rb CHANGED
@@ -13,7 +13,6 @@ require 'cradlepoint/router'
13
13
  require 'cradlepoint/config'
14
14
 
15
15
  module Cradlepoint
16
- include Cradlepoint::HashHelpers
17
16
 
18
17
  class << self
19
18
  attr_accessor :username, :password, :account, :base_url
@@ -63,7 +62,7 @@ module Cradlepoint
63
62
  end
64
63
 
65
64
  parsed_response['success'] ?
66
- symbolize_keys(parsed_response['data']) :
65
+ Cradlepoint::HashHelpers.symbolize_keys(parsed_response['data']) :
67
66
  raise("Unsuccessful response received.") # TODO: Handle more elegantly.
68
67
  end
69
68
  end
@@ -2,7 +2,7 @@ module Cradlepoint
2
2
  module HashHelpers
3
3
  # From
4
4
  # http://devblog.avdi.org/2009/07/14/recursively-symbolize-keys/
5
- def symbolize_keys(hash)
5
+ def self.symbolize_keys(hash)
6
6
  if hash.is_a?(Array)
7
7
  hash.map { |h| symbolize_keys(h) }
8
8
  else
@@ -1,3 +1,3 @@
1
1
  module Cradlepoint
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cradlepoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - uceem