win32screenshot 1.0.0 → 1.0.1
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.
- data/History.rdoc +4 -0
- data/LICENSE +1 -1
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/lib/win32/screenshot.rb +1 -2
- data/win32screenshot.gemspec +7 -9
- metadata +9 -11
- data/lib/win32/screenshot/extensions/rautomation/adapter/ffi/functions.rb +0 -12
- data/lib/win32/screenshot/extensions/rautomation/adapter/ffi/window.rb +0 -17
data/History.rdoc
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
= 1.0.1 2010-12-18
|
|
2
|
+
* Increased RAutomation dependency for version 0.3.0 due to it's new Window#child method
|
|
3
|
+
* Making sure that RAutomation's Ffi adapter is always used
|
|
4
|
+
|
|
1
5
|
= 1.0.0 2010-12-17 - The New Beginning
|
|
2
6
|
* Bundling all necessary libraries/binaries with the gem - ImageMagick and RMagick are no more needed, finally!
|
|
3
7
|
* Using MiniMagick to save images to gif, jpg and png format
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
|
@@ -7,8 +7,8 @@ begin
|
|
|
7
7
|
require 'jeweler'
|
|
8
8
|
Jeweler::Tasks.new do |gem|
|
|
9
9
|
gem.name = "win32screenshot"
|
|
10
|
-
gem.summary = %Q{Capture Screenshots on Windows with Ruby}
|
|
11
|
-
gem.description = %Q{Capture Screenshots on Windows with Ruby}
|
|
10
|
+
gem.summary = %Q{Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!}
|
|
11
|
+
gem.description = %Q{Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!}
|
|
12
12
|
gem.email = ["jarmo.p@gmail.com", "aslak.hellesoy@gmail.com"]
|
|
13
13
|
gem.homepage = "http://github.com/jarmo/win32screenshot"
|
|
14
14
|
gem.authors = ["Jarmo Pertman", "Aslak Hellesøy"]
|
|
@@ -17,7 +17,7 @@ begin
|
|
|
17
17
|
|
|
18
18
|
gem.add_dependency "ffi", "~>0"
|
|
19
19
|
gem.add_dependency "mini_magick", "~>3.1"
|
|
20
|
-
gem.add_dependency "rautomation", "~>0.
|
|
20
|
+
gem.add_dependency "rautomation", "~>0.3"
|
|
21
21
|
|
|
22
22
|
gem.add_development_dependency "rspec", "~>2.3"
|
|
23
23
|
end
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.1
|
data/lib/win32/screenshot.rb
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
require 'ffi'
|
|
2
2
|
require 'stringio' # this is needed for MiniMagick for now
|
|
3
3
|
require 'mini_magick'
|
|
4
|
+
ENV["RAUTOMATION_ADAPTER"] = "ffi" # make sure that Ffi adapter is always used for RAutomation
|
|
4
5
|
require 'rautomation'
|
|
5
6
|
|
|
6
|
-
require File.dirname(__FILE__) + '/screenshot/extensions/rautomation/adapter/ffi/functions'
|
|
7
|
-
require File.dirname(__FILE__) + '/screenshot/extensions/rautomation/adapter/ffi/window'
|
|
8
7
|
require File.dirname(__FILE__) + '/screenshot/take'
|
|
9
8
|
require File.dirname(__FILE__) + '/screenshot/image'
|
|
10
9
|
require File.dirname(__FILE__) + '/screenshot/bitmap_maker'
|
data/win32screenshot.gemspec
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{win32screenshot}
|
|
8
|
-
s.version = "1.0.
|
|
8
|
+
s.version = "1.0.1"
|
|
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-12-
|
|
13
|
-
s.description = %q{Capture Screenshots on Windows with Ruby}
|
|
12
|
+
s.date = %q{2010-12-18}
|
|
13
|
+
s.description = %q{Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!}
|
|
14
14
|
s.email = ["jarmo.p@gmail.com", "aslak.hellesoy@gmail.com"]
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
@@ -46,8 +46,6 @@ Gem::Specification.new do |s|
|
|
|
46
46
|
"ext/vcomp100.dll",
|
|
47
47
|
"lib/win32/screenshot.rb",
|
|
48
48
|
"lib/win32/screenshot/bitmap_maker.rb",
|
|
49
|
-
"lib/win32/screenshot/extensions/rautomation/adapter/ffi/functions.rb",
|
|
50
|
-
"lib/win32/screenshot/extensions/rautomation/adapter/ffi/window.rb",
|
|
51
49
|
"lib/win32/screenshot/image.rb",
|
|
52
50
|
"lib/win32/screenshot/take.rb",
|
|
53
51
|
"spec/spec_helper.rb",
|
|
@@ -59,7 +57,7 @@ Gem::Specification.new do |s|
|
|
|
59
57
|
s.rdoc_options = ["--main", "README.rdoc"]
|
|
60
58
|
s.require_paths = ["lib"]
|
|
61
59
|
s.rubygems_version = %q{1.3.7}
|
|
62
|
-
s.summary = %q{Capture Screenshots on Windows with Ruby}
|
|
60
|
+
s.summary = %q{Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!}
|
|
63
61
|
s.test_files = [
|
|
64
62
|
"spec/spec_helper.rb",
|
|
65
63
|
"spec/win32/screenshot/image_spec.rb",
|
|
@@ -73,18 +71,18 @@ Gem::Specification.new do |s|
|
|
|
73
71
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
74
72
|
s.add_runtime_dependency(%q<ffi>, ["~> 0"])
|
|
75
73
|
s.add_runtime_dependency(%q<mini_magick>, ["~> 3.1"])
|
|
76
|
-
s.add_runtime_dependency(%q<rautomation>, ["~> 0.
|
|
74
|
+
s.add_runtime_dependency(%q<rautomation>, ["~> 0.3"])
|
|
77
75
|
s.add_development_dependency(%q<rspec>, ["~> 2.3"])
|
|
78
76
|
else
|
|
79
77
|
s.add_dependency(%q<ffi>, ["~> 0"])
|
|
80
78
|
s.add_dependency(%q<mini_magick>, ["~> 3.1"])
|
|
81
|
-
s.add_dependency(%q<rautomation>, ["~> 0.
|
|
79
|
+
s.add_dependency(%q<rautomation>, ["~> 0.3"])
|
|
82
80
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
|
83
81
|
end
|
|
84
82
|
else
|
|
85
83
|
s.add_dependency(%q<ffi>, ["~> 0"])
|
|
86
84
|
s.add_dependency(%q<mini_magick>, ["~> 3.1"])
|
|
87
|
-
s.add_dependency(%q<rautomation>, ["~> 0.
|
|
85
|
+
s.add_dependency(%q<rautomation>, ["~> 0.3"])
|
|
88
86
|
s.add_dependency(%q<rspec>, ["~> 2.3"])
|
|
89
87
|
end
|
|
90
88
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: win32screenshot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 1.0.
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.0.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jarmo Pertman
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-12-
|
|
19
|
+
date: 2010-12-18 00:00:00 +02:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -56,11 +56,11 @@ dependencies:
|
|
|
56
56
|
requirements:
|
|
57
57
|
- - ~>
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
hash:
|
|
59
|
+
hash: 13
|
|
60
60
|
segments:
|
|
61
61
|
- 0
|
|
62
|
-
-
|
|
63
|
-
version: "0.
|
|
62
|
+
- 3
|
|
63
|
+
version: "0.3"
|
|
64
64
|
type: :runtime
|
|
65
65
|
version_requirements: *id003
|
|
66
66
|
- !ruby/object:Gem::Dependency
|
|
@@ -78,7 +78,7 @@ dependencies:
|
|
|
78
78
|
version: "2.3"
|
|
79
79
|
type: :development
|
|
80
80
|
version_requirements: *id004
|
|
81
|
-
description: Capture Screenshots on Windows with Ruby
|
|
81
|
+
description: Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!
|
|
82
82
|
email:
|
|
83
83
|
- jarmo.p@gmail.com
|
|
84
84
|
- aslak.hellesoy@gmail.com
|
|
@@ -119,8 +119,6 @@ files:
|
|
|
119
119
|
- ext/vcomp100.dll
|
|
120
120
|
- lib/win32/screenshot.rb
|
|
121
121
|
- lib/win32/screenshot/bitmap_maker.rb
|
|
122
|
-
- lib/win32/screenshot/extensions/rautomation/adapter/ffi/functions.rb
|
|
123
|
-
- lib/win32/screenshot/extensions/rautomation/adapter/ffi/window.rb
|
|
124
122
|
- lib/win32/screenshot/image.rb
|
|
125
123
|
- lib/win32/screenshot/take.rb
|
|
126
124
|
- spec/spec_helper.rb
|
|
@@ -161,7 +159,7 @@ rubyforge_project:
|
|
|
161
159
|
rubygems_version: 1.3.7
|
|
162
160
|
signing_key:
|
|
163
161
|
specification_version: 3
|
|
164
|
-
summary: Capture Screenshots on Windows with Ruby
|
|
162
|
+
summary: Capture Screenshots on Windows with Ruby to bmp, gif, jpg or png formats!
|
|
165
163
|
test_files:
|
|
166
164
|
- spec/spec_helper.rb
|
|
167
165
|
- spec/win32/screenshot/image_spec.rb
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
module RAutomation
|
|
2
|
-
module Adapter
|
|
3
|
-
module Ffi
|
|
4
|
-
# Extensions for RAutomation Ffi adapter
|
|
5
|
-
class Window
|
|
6
|
-
|
|
7
|
-
# Searches for the child window of the current window
|
|
8
|
-
# @param {Window} locators locators for the child window
|
|
9
|
-
# @return {Window} child window object
|
|
10
|
-
def child(locators)
|
|
11
|
-
self.class.new :hwnd => Functions.child_hwnd(hwnd, locators)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|