sidir 0.0.3 → 0.0.4

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.
@@ -1,3 +1,5 @@
1
+ trap("SIGINT") { exit! }
2
+
1
3
  require "sidir/version"
2
4
  require "sidir/browser"
3
5
  require "sidir/cli"
@@ -7,7 +7,7 @@ module Sidir
7
7
  attr_reader :simulator
8
8
 
9
9
  def directories
10
- applications.keys.sort
10
+ applications.keys.sort { |a,b| a.upcase <=> b.upcase }
11
11
  end
12
12
 
13
13
  def applications
@@ -22,11 +22,12 @@ module Sidir
22
22
 
23
23
  while cmd != 'exit'
24
24
  line = Readline.readline("sidir #{current_context.prompt} > ", true)
25
- args = line.split
26
- cmd = args.shift
27
25
 
28
- break if cmd.nil? || cmd == 'exit'
26
+ break if line.nil? || line =~ /^exit$/
29
27
 
28
+ args = line.split
29
+ cmd = args.shift
30
+
30
31
  if current_context.available_command? cmd
31
32
  self.current_context = current_context.execute_command cmd, args
32
33
  else
@@ -1,3 +1,3 @@
1
1
  module Sidir
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-19 00:00:00.000000000 Z
12
+ date: 2012-08-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: iOS Simulator directory explorer. This gem is a personal tool intended
15
15
  to make it slightly easier to navigate/manage the iOS Applications directory