win32screenshot 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/win32/screenshot/bitmap_maker.rb +1 -2
- data/lib/win32/util.rb +1 -1
- data/spec/win32_screenshot_spec.rb +1 -1
- data/win32screenshot.gemspec +4 -4
- metadata +17 -4
data/History.rdoc
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
= 0.0.7 2010-08-18
|
2
|
+
* Supports now fully JRuby, 1.9.1 and 1.9.2 MRI!
|
3
|
+
|
1
4
|
= 0.0.6 2010-08-07
|
2
5
|
* Trying to bring window to the foreground more aggressively (Roger Pack)
|
3
6
|
* Added utility class Win32::Screenshot.Util with some helper methods not related directly with taking of the screenshots:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.7
|
@@ -9,7 +9,6 @@ module Win32
|
|
9
9
|
|
10
10
|
ffi_lib 'user32', 'gdi32'
|
11
11
|
ffi_convention :stdcall
|
12
|
-
|
13
12
|
callback :enum_callback, [:long, :pointer], :bool
|
14
13
|
|
15
14
|
# user32.dll
|
@@ -64,7 +63,7 @@ module Win32
|
|
64
63
|
[:long, :long], :int
|
65
64
|
|
66
65
|
|
67
|
-
EnumWindowCallback =
|
66
|
+
EnumWindowCallback = FFI::Function.new(:bool, [ :long, :pointer ], { :convention => :stdcall }) do |hwnd, param|
|
68
67
|
searched_window = WindowStruct.new param
|
69
68
|
title = Util.window_title(hwnd)
|
70
69
|
if title =~ Regexp.new(searched_window[:title].read_string) && window_visible(hwnd)
|
data/lib/win32/util.rb
CHANGED
@@ -5,7 +5,7 @@ describe Win32::Screenshot do
|
|
5
5
|
|
6
6
|
before :all do
|
7
7
|
@notepad = IO.popen("notepad").pid
|
8
|
-
@iexplore =
|
8
|
+
@iexplore = Dir.chdir("c:/program files/Internet Explorer") do; IO.popen(".\\iexplore about:blank").pid; end
|
9
9
|
@calc = IO.popen("calc").pid
|
10
10
|
wait_for_programs_to_open
|
11
11
|
cleanup
|
data/win32screenshot.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{win32screenshot}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jarmo Pertman", "Aslak Helles\303\270y"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-18}
|
13
13
|
s.description = %q{Capture Screenshots on Windows with Ruby}
|
14
14
|
s.email = ["jarmo.p@gmail.com", "aslak.hellesoy@gmail.com"]
|
15
15
|
s.extra_rdoc_files = [
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.homepage = %q{http://github.com/jarmo/win32screenshot}
|
37
37
|
s.rdoc_options = ["--main", "README.rdoc"]
|
38
38
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.3.
|
39
|
+
s.rubygems_version = %q{1.3.7}
|
40
40
|
s.summary = %q{Capture Screenshots on Windows with Ruby}
|
41
41
|
s.test_files = [
|
42
42
|
"spec/spec_helper.rb",
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
49
|
s.specification_version = 3
|
50
50
|
|
51
|
-
if Gem::Version.new(Gem::
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
52
|
s.add_runtime_dependency(%q<ffi>, [">= 0"])
|
53
53
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
54
54
|
s.add_development_dependency(%q<os>, [">= 0"])
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32screenshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jarmo Pertman
|
@@ -15,16 +16,18 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-08-
|
19
|
+
date: 2010-08-18 00:00:00 +03:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: ffi
|
23
24
|
prerelease: false
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
25
27
|
requirements:
|
26
28
|
- - ">="
|
27
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
28
31
|
segments:
|
29
32
|
- 0
|
30
33
|
version: "0"
|
@@ -34,9 +37,11 @@ dependencies:
|
|
34
37
|
name: rspec
|
35
38
|
prerelease: false
|
36
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
37
41
|
requirements:
|
38
42
|
- - ">="
|
39
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 13
|
40
45
|
segments:
|
41
46
|
- 1
|
42
47
|
- 2
|
@@ -48,9 +53,11 @@ dependencies:
|
|
48
53
|
name: os
|
49
54
|
prerelease: false
|
50
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
51
57
|
requirements:
|
52
58
|
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 3
|
54
61
|
segments:
|
55
62
|
- 0
|
56
63
|
version: "0"
|
@@ -60,9 +67,11 @@ dependencies:
|
|
60
67
|
name: rmagick
|
61
68
|
prerelease: false
|
62
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
63
71
|
requirements:
|
64
72
|
- - ">="
|
65
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 3
|
66
75
|
segments:
|
67
76
|
- 0
|
68
77
|
version: "0"
|
@@ -106,23 +115,27 @@ rdoc_options:
|
|
106
115
|
require_paths:
|
107
116
|
- lib
|
108
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
109
119
|
requirements:
|
110
120
|
- - ">="
|
111
121
|
- !ruby/object:Gem::Version
|
122
|
+
hash: 3
|
112
123
|
segments:
|
113
124
|
- 0
|
114
125
|
version: "0"
|
115
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
116
128
|
requirements:
|
117
129
|
- - ">="
|
118
130
|
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
119
132
|
segments:
|
120
133
|
- 0
|
121
134
|
version: "0"
|
122
135
|
requirements: []
|
123
136
|
|
124
137
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.3.
|
138
|
+
rubygems_version: 1.3.7
|
126
139
|
signing_key:
|
127
140
|
specification_version: 3
|
128
141
|
summary: Capture Screenshots on Windows with Ruby
|