captured 0.1.13 → 0.1.14

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.
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: 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