motion-capture 1.1.2 → 1.1.3

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: c11119dfbf06689b74043e203c83aa4d7f76a746
4
- data.tar.gz: b54cd82471e1c93f7fbb4d7e02dff8c5633eb8b5
3
+ metadata.gz: da930dcedd39084cf112b4158a95329b90bc7975
4
+ data.tar.gz: 4be16787b1329e780c73cbd46a22de3d0c5523cf
5
5
  SHA512:
6
- metadata.gz: abe77d04c33095ca72635092c1bc224fbb92e5d2ccd5d7d88ae4e4fe2c6e64aacb49c67c091fd1fb6cd8ad271579b275ec663d78ddefdecd9f9bee5e96cdff53
7
- data.tar.gz: f9421663bc5b4a56c5629f4d839c897751b0d1b0b6e2ded9bab1a536d9c6c52b25c978335b1added44dbd4d75a62e4696fa6b9bbe5addb9ead4c556256c8c131
6
+ metadata.gz: d66d8296c08c1fadef2cf0b1ff1ae89e7805d2b0b893a1bfb59f841cef24380b5ef7596ab824cbac56d805d73d82cd187e65cf5312c67cbdb6c2a6572a72efd5
7
+ data.tar.gz: 8ab1f3dcec551a40362a48fd3d89ffb715fb81d96e37808bc1ea39d012b663f65435dac4a0e2e126354d5ef31106e09c3e7784ebd22cf75c72830817578de7a4
@@ -196,7 +196,7 @@ module Motion; class Capture
196
196
  end
197
197
 
198
198
  def using_rear_camera?
199
- device.position == CAMERA_POSITIONS[:rear]
199
+ device ? device.position == CAMERA_POSITIONS[:rear] : false
200
200
  end
201
201
 
202
202
  def camera_devices
@@ -219,7 +219,7 @@ module Motion; class Capture
219
219
  end
220
220
 
221
221
  def flash_on?
222
- [FLASH_MODES[:on], FLASH_MODES[:auto]].include? device.flashMode
222
+ device ? [FLASH_MODES[:on], FLASH_MODES[:auto]].include?(device.flashMode) : false
223
223
  end
224
224
 
225
225
  def session
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-capture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devon Blandin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-25 00:00:00.000000000 Z
11
+ date: 2013-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake