boston-stitch 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/boston-stitch +7 -1
  2. metadata +5 -5
@@ -44,7 +44,6 @@ pages = []
44
44
  page = process start_url
45
45
  pages << page
46
46
  while page[:next]
47
-
48
47
  STDERR.puts "Fetching #{page[:next]}"
49
48
  begin
50
49
  Timeout::timeout(5) {
@@ -89,6 +88,13 @@ END
89
88
  @pages = $pages
90
89
  haml :index
91
90
  end
91
+
92
+ browsercmd = RUBY_PLATFORM =~ /darwin/ ? 'open' : %w(gnome-open firefox open).detect {|x| `which #{x}` =~ /#{x}/}
93
+ fork do
94
+ `sleep 1 && #{browsercmd} http://localhost:4567`
95
+ end
92
96
  run!
93
97
  end
94
98
 
99
+
100
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boston-stitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-28 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &16998780 !ruby/object:Gem::Requirement
16
+ requirement: &21316360 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *16998780
24
+ version_requirements: *21316360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sinatra
27
- requirement: &16997740 !ruby/object:Gem::Requirement
27
+ requirement: &21302820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *16997740
35
+ version_requirements: *21302820
36
36
  description: Stitch together all the pages of a Boston.com gallery
37
37
  email:
38
38
  - dhchoi@gmail.com