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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55543ba0f5b55afef6fc67deaf4e659f7a1bb4fc
4
- data.tar.gz: 32ad23cd8a2c2457fff8e0fce2f4784777877704
3
+ metadata.gz: 5215712b2a52621c51a8340f9e4afcc774b7d140
4
+ data.tar.gz: d675fc0c79574ff13bd84dca16e9707de94f82b2
5
5
  SHA512:
6
- metadata.gz: cfe1ec8ac6208f5cd7df24906846a2b22118515f244dd6c2eada3b4ed75bd9d1fb9991866babb05b672d849631ad4d0b7566cd5ddda9f11196c844e3a3b535f4
7
- data.tar.gz: fc779a9111a53c49c3984dc174b3b0f16db54b9e047654b7c5063f91b6ba1bdf8375538d79643da46e30c8c73c461ca89befadec5f825dc84ecac5803063df1d
6
+ metadata.gz: 6ec013d24c4fd18d13af29b76bf559d414a04490d85246ed68661d8e66642b0bf3581f96ac6046352c40dd545d41830c9330092c02efdc8adb3e0f6504e9df33
7
+ data.tar.gz: 7048da9ec81f5c327ed9d231208bdf1af1b13a9cdaae51cc411cc807afe4afabd02b0aecb1f436b2efe3f39774c4f3ddd259eb1ca9624c642cbbb7de0e8648e0
@@ -1,10 +1,16 @@
1
1
  ## Unreleased
2
2
 
3
- [Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.3...master)
3
+ [Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.5...master)
4
4
 
5
- ## 1.9.3
5
+ ## 1.9.5
6
6
 
7
- [Commit history](https://github.com/rubymotion/BubbleWrap/compare/v1.9.2...v1.9.3)
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
@@ -27,7 +27,7 @@ require 'bubble-wrap'
27
27
  If you use Bundler:
28
28
 
29
29
  ```ruby
30
- gem "bubble-wrap", "~> 1.9.2"
30
+ gem "bubble-wrap", "~> 1.9.4"
31
31
  ```
32
32
 
33
33
  BubbleWrap is split into multiple modules so that you can easily choose which parts are included at compile-time.
@@ -1,4 +1,4 @@
1
1
  module BubbleWrap
2
- VERSION = '1.9.4' unless defined?(BubbleWrap::VERSION)
2
+ VERSION = '1.9.5' unless defined?(BubbleWrap::VERSION)
3
3
  MIN_MOTION_VERSION = '3.12'
4
4
  end
@@ -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 ||= !NSBundle.mainBundle.bundlePath.start_with?('/var/')
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
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-07 00:00:00.000000000 Z
17
+ date: 2015-10-31 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: mocha