motion-capture 1.2.0 → 1.2.1

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: 2956f2573f93435ada9bf744cf6cad5d06a5feca
4
- data.tar.gz: f6ac8e6a3b44d8831d5009e9c9163ec1ae448e24
3
+ metadata.gz: 4d6077491aed6ea870d7b11b9f43d3d2626227e4
4
+ data.tar.gz: 2200a6cd83b7e830eea2d69a0754fd9546283b42
5
5
  SHA512:
6
- metadata.gz: 3bce0990179d37591924d0de90037835a165633aacf973f97c99b7617d320c0876666585bb621f71361322669ebec67fdec0066c17264fa57c61c44b91533572
7
- data.tar.gz: 82e1a672f57a7a3217a9ce27bf3182f9537d12fa7a584ab81b24fa6eea8e4e31a0a55708c901ea70f55aa02e9c3eae7d4627fe31b06fe73f7b3d238c21214827
6
+ metadata.gz: 8f91edaa92370bf2e24943d0b5ffb84be8b4f35231afe9eee80fe8b33b86ae8ad8401d951ae6f32cf24fe550745124b8c8bf0c6d726d243c3f7253ce7ade0637
7
+ data.tar.gz: 3955f8667dd0198ffb7cbdf8a981ebdc139891f98c8e59d2105d1f2b395703cd28b6fee89f8503b5969e72e24ec17f67cbeae5f30592c093069f147a7166f56e
@@ -122,6 +122,14 @@ module Motion; class Capture
122
122
  session.sessionPreset = preset if can_set_preset? preset
123
123
  end
124
124
 
125
+ def preset
126
+ session.captureSession if @session
127
+ end
128
+
129
+ def flash
130
+ device.flashMode if @device
131
+ end
132
+
125
133
  def set_flash(mode = :auto)
126
134
  configure_with_lock do
127
135
  device.flashMode = FLASH_MODES[mode] if FLASH_MODES.keys.include? mode
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-capture
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devon Blandin