ninja_blocks 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.
@@ -6,10 +6,10 @@ module NinjaBlocks
6
6
  hash_of_response = get("https://api.ninja.is/rest/v0/devices")
7
7
 
8
8
  devices = []
9
-
10
- filter_by = filter_by[0] if filter_by.kind_of?(Array)
11
-
12
- unless filter_by[:device_type].empty?
9
+ unless filter_by.nil?
10
+ filter_by = filter_by[0] if filter_by.kind_of?(Array)
11
+ end
12
+ unless filter_by.nil? || filter_by[:device_type].empty?
13
13
 
14
14
  hash_of_response["data"].each do |d|
15
15
  device_hash = {}
@@ -1,3 +1,3 @@
1
1
  module NinjaBlocks
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja_blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -90,7 +90,6 @@ files:
90
90
  - lib/ninja_blocks/rule.rb
91
91
  - lib/ninja_blocks/user.rb
92
92
  - lib/ninja_blocks/version.rb
93
- - ninja_blocks-0.0.4.gem
94
93
  - ninja_blocks.gemspec
95
94
  homepage: http://ninjablocks.com
96
95
  licenses: []
Binary file