ninja_blocks 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ninja_blocks/device.rb +4 -4
- data/lib/ninja_blocks/version.rb +1 -1
- metadata +2 -3
- data/ninja_blocks-0.0.4.gem +0 -0
data/lib/ninja_blocks/device.rb
CHANGED
@@ -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
|
-
|
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 = {}
|
data/lib/ninja_blocks/version.rb
CHANGED
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.
|
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-
|
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: []
|
data/ninja_blocks-0.0.4.gem
DELETED
Binary file
|