app-tools 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b3bbfaf7f96fa1e7e5fee3fda68b8f74f1044e9
4
- data.tar.gz: 4a29941605f5392f86ba6f8428f85fd65159d4eb
3
+ metadata.gz: 7dd1f67f63cc8c75cc0fb6ca2bfa58d78753be2c
4
+ data.tar.gz: f0f953d6fa120e72bfe5a96e49282bf738053976
5
5
  SHA512:
6
- metadata.gz: 01c5281891454df8525435b25afdf5214958c77cf46006e40511455a96b132d4d02fd0052199825023c1125eef7600f0693b4f233e3f9a8be54444f2c0e4e00b
7
- data.tar.gz: 968d5ff70f827ecbd16a55cbd809378f870164d5888b066e899b148c6b4f8d4366d8e240ec27481f2d4822201271685fe96088c8764bd68cce38b1dd5f70e60b
6
+ metadata.gz: 31176d385a64c64e2290cea6b517729f2b5e64398065d650eae6bee3f81e4c0f67a78918b6b5f22dea13a04235fa99e9f9d28553ed7c536974556f78c641be47
7
+ data.tar.gz: 4eb481dbdabb2a9ce901fd94dd93190bfacdae2ff910151da32e3a9eece7becaa4a3890dbb236bb50592e741fa60952641de42fd13f087283ed0405fc8295672
data/bin/setsimkbd CHANGED
@@ -1,7 +1,10 @@
1
- #!/usr/bin/osascript
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'tempfile'
2
4
 
3
5
  # See https://github.com/paypal/Illuminator/blob/master/gem/resources/scripts/set_hardware_keyboard.applescript
4
6
 
7
+ script = %q{#!/usr/bin/osascript
5
8
  on run argv
6
9
 
7
10
  tell application "Simulator" to launch
@@ -49,3 +52,10 @@ tell application "System Events"
49
52
  end tell
50
53
 
51
54
  end run
55
+ }
56
+
57
+ tempfile = Tempfile.new('applescript-')
58
+ tempfile.write(script)
59
+ tempfile.close
60
+ system 'osascript', tempfile.path, ARGV[0] == 'on' ? '1' : '0'
61
+
@@ -1,3 +1,3 @@
1
1
  module AppTools
2
- VERSION = "1.6.1"
2
+ VERSION = "1.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler