straight_shooter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/bin/straight_shooter CHANGED
@@ -4,4 +4,8 @@ unless ARGV.length > 0
4
4
  puts "usage: xvfb-run -a straight_shooter http://google.com result.png"
5
5
  end
6
6
 
7
- Page.new(ARGV[0], ARGV[1]).load!
7
+ App = Qt::Application.new(ARGV)
8
+
9
+ Page.new(ARGV[0], ARGV[1]).load!
10
+
11
+ App.exec
@@ -7,10 +7,6 @@ class Page < Qt::Object
7
7
 
8
8
  attr_accessor :url, :filename, :web, :page
9
9
 
10
- def app
11
- @app ||= Qt::Application.new(ARGV)
12
- end
13
-
14
10
  def initialize(url, filename = nil)
15
11
  super()
16
12
 
@@ -49,11 +45,7 @@ class Page < Qt::Object
49
45
  puts "Page failed to load. No image was saved."
50
46
  end
51
47
 
52
- quit_app
53
- end
54
-
55
- def quit_app
56
- app.quit
48
+ App.quit
57
49
  end
58
50
 
59
51
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{straight_shooter}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Herald"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: straight_shooter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Herald