capit 0.2.1 → 0.2.2
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/capit.gemspec +1 -1
- data/lib/capit/capture.rb +1 -1
- data/lib/capit/version.rb +1 -1
- data/spec/capit/capture_spec.rb +1 -1
- metadata +4 -5
data/capit.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
|
9
9
|
s.platform = Gem::Platform::RUBY
|
|
10
10
|
s.authors = ["Ezekiel Templin"]
|
|
11
11
|
s.email = ["ezkl@me.com"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-04-14}
|
|
13
13
|
s.homepage = "http://github.com/meadvillerb/capit"
|
|
14
14
|
s.summary = %q{Easy screen captures with the help of CutyCapt}
|
|
15
15
|
s.description = %q{CapIt provides a simple Ruby interface to Björn Höhrmann's CutyCapt.}
|
data/lib/capit/capture.rb
CHANGED
|
@@ -25,7 +25,7 @@ module CapIt
|
|
|
25
25
|
class Capture
|
|
26
26
|
|
|
27
27
|
# All extensions CutyCapt can use to infer format of output
|
|
28
|
-
EXTENSIONS = /\A[\w]+\.(svg|ps|pdf|itext|html|rtree|png|jpeg|jpg|mng|tiff|gif|bmp|ppm|xvm|xpm)\z/i
|
|
28
|
+
EXTENSIONS = /\A[\w\-]+\.(svg|ps|pdf|itext|html|rtree|png|jpeg|jpg|mng|tiff|gif|bmp|ppm|xvm|xpm)\z/i
|
|
29
29
|
|
|
30
30
|
# The URL of the page to be captured
|
|
31
31
|
attr_reader :url
|
data/lib/capit/version.rb
CHANGED
data/spec/capit/capture_spec.rb
CHANGED
|
@@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
|
4
4
|
describe CapIt do
|
|
5
5
|
it "should have a Convenience Method" do
|
|
6
6
|
@folder = setup_temporary_folder
|
|
7
|
-
@capit = CapIt::Capture("http://mdvlrb.com/", :filename => 'mdvlrb.png', :folder => @folder).should == @folder + "/mdvlrb.png"
|
|
7
|
+
@capit = CapIt::Capture("http://mdvlrb.com/", :filename => 'test-mdvlrb.png', :folder => @folder).should == @folder + "/test-mdvlrb.png"
|
|
8
8
|
destroy_temporary_folder(@folder)
|
|
9
9
|
end
|
|
10
10
|
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: capit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.2.
|
|
5
|
+
version: 0.2.2
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Ezekiel Templin
|
|
@@ -10,8 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
14
|
-
default_executable:
|
|
13
|
+
date: 2011-04-14 00:00:00 Z
|
|
15
14
|
dependencies:
|
|
16
15
|
- !ruby/object:Gem::Dependency
|
|
17
16
|
name: rspec
|
|
@@ -109,7 +108,6 @@ files:
|
|
|
109
108
|
- spec/support/deferred_garbage_collection.rb
|
|
110
109
|
- spec/support/temporary_folder_helper.rb
|
|
111
110
|
- spec/support/with_constants.rb
|
|
112
|
-
has_rdoc: true
|
|
113
111
|
homepage: http://github.com/meadvillerb/capit
|
|
114
112
|
licenses: []
|
|
115
113
|
|
|
@@ -133,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
131
|
requirements: []
|
|
134
132
|
|
|
135
133
|
rubyforge_project:
|
|
136
|
-
rubygems_version: 1.
|
|
134
|
+
rubygems_version: 1.7.2
|
|
137
135
|
signing_key:
|
|
138
136
|
specification_version: 3
|
|
139
137
|
summary: Easy screen captures with the help of CutyCapt
|
|
@@ -144,3 +142,4 @@ test_files:
|
|
|
144
142
|
- spec/support/deferred_garbage_collection.rb
|
|
145
143
|
- spec/support/temporary_folder_helper.rb
|
|
146
144
|
- spec/support/with_constants.rb
|
|
145
|
+
has_rdoc:
|