kauperts_link_checker 0.4.0 → 0.4.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.
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib/", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "kauperts_link_checker"
5
- s.version = "0.4.0"
5
+ s.version = "0.4.1"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Wolfgang Vogl", "Carsten Zimmermann"]
8
8
  s.email = ["carp@hacksocke.de"]
@@ -71,8 +71,8 @@ module Kauperts
71
71
  end
72
72
 
73
73
  # Immediately checks +object+ and returns the LinkChecker instance
74
- def self.check!(object)
75
- checker = new(object)
74
+ def self.check!(object, options = {})
75
+ checker = new(object, options)
76
76
  checker.check!
77
77
  checker
78
78
  end
@@ -34,6 +34,7 @@ class LinkCheckerTest < ActiveSupport::TestCase
34
34
  test "should have check! method" do
35
35
  obj = checker.new(url_object)
36
36
  assert_respond_to obj, :check!
37
+ assert_equal checker.method(:check!).arity, -2
37
38
  end
38
39
 
39
40
  test "should return status array with 200" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kauperts_link_checker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wolfgang Vogl
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-04-05 00:00:00 +02:00
19
+ date: 2012-04-16 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency