bubble-wrap 1.9.4 → 1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -3
- data/README.md +1 -1
- data/lib/bubble-wrap/version.rb +1 -1
- data/motion/core/ios/device.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5215712b2a52621c51a8340f9e4afcc774b7d140
|
4
|
+
data.tar.gz: d675fc0c79574ff13bd84dca16e9707de94f82b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ec013d24c4fd18d13af29b76bf559d414a04490d85246ed68661d8e66642b0bf3581f96ac6046352c40dd545d41830c9330092c02efdc8adb3e0f6504e9df33
|
7
|
+
data.tar.gz: 7048da9ec81f5c327ed9d231208bdf1af1b13a9cdaae51cc411cc807afe4afabd02b0aecb1f436b2efe3f39774c4f3ddd259eb1ca9624c642cbbb7de0e8648e0
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
## Unreleased
|
2
2
|
|
3
|
-
[Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.
|
3
|
+
[Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.5...master)
|
4
4
|
|
5
|
-
## 1.9.
|
5
|
+
## 1.9.5
|
6
6
|
|
7
|
-
[Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.
|
7
|
+
[Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.4...v1.9.5)
|
8
|
+
|
9
|
+
* Fixed 'simulator?' so it returns the correct value, when running ios 8 or below on device. ([#481](https://github.com/rubymotion/BubbleWrap/pull/481))
|
10
|
+
|
11
|
+
## ~~1.9.3~~ 1.9.4
|
12
|
+
|
13
|
+
[Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.2...v1.9.4)
|
8
14
|
|
9
15
|
* Fixed `Device.simulator?` for iOS 9. ([#473](https://github.com/rubymotion/BubbleWrap/pull/473))
|
10
16
|
|
data/README.md
CHANGED
data/lib/bubble-wrap/version.rb
CHANGED
data/motion/core/ios/device.rb
CHANGED
@@ -41,8 +41,16 @@ module BubbleWrap
|
|
41
41
|
picker.isCameraDeviceAvailable(UIImagePickerControllerCameraDeviceRear)
|
42
42
|
end
|
43
43
|
|
44
|
+
# Return whether app is being run in simulator
|
45
|
+
# @return [TrueClass, FalseClass] true will be returned if simulator, false otherwise.
|
44
46
|
def simulator?
|
45
|
-
@simulator_state ||=
|
47
|
+
@simulator_state ||= begin
|
48
|
+
if ios_version.to_i >= 9
|
49
|
+
!NSBundle.mainBundle.bundlePath.start_with?('/var/')
|
50
|
+
else
|
51
|
+
!(UIDevice.currentDevice.model =~ /simulator/i).nil?
|
52
|
+
end
|
53
|
+
end
|
46
54
|
end
|
47
55
|
|
48
56
|
# Returns the IOS SDK version currently running (i.e. "5.1" or "6.0" etc)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bubble-wrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Aimonetti
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2015-10-
|
17
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: mocha
|