csexton-captured 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/captured.rb +2 -8
  2. metadata +1 -1
@@ -7,14 +7,8 @@ class Captured
7
7
  end
8
8
 
9
9
  def self.guess_watch_path
10
- if `sw_vers | awk '/ProductVersion:/ {print $2}'` =~ /10\.5/
11
- "Picture**.png"
12
- else
13
- "Screen**.png"
14
- end
15
- rescue => e
16
- puts e
17
- "Screen**.png"
10
+ # This should work for 10.5, and 10.6
11
+ "{Picture,Screen}*.png"
18
12
  end
19
13
 
20
14
  def self.run_once!(options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csexton-captured
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Sexton