codez-tarantula 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/relevance/core_extensions/test_case.rb +3 -1
- data/lib/relevance/tarantula/crawler.rb +1 -0
- data/lib/relevance/tarantula/link.rb +3 -1
- data/lib/relevance/tarantula/rails_integration_proxy.rb +5 -1
- data/lib/relevance/tarantula/version.rb +1 -1
- data/spec/relevance/core_extensions/test_case_spec.rb +2 -1
- data/spec/relevance/tarantula_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODQxNDU0NGJhMWE5YzI2MjNlZjk0MmNkNzhmYzg0YzA0MDRmM2ZkZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2ExYTcwMTU3ZjYzNWY4YWYzNzQxM2FiNmU3MDNkMTJiNWFlYWJiZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmRlZTM3ZWRkNjMxYzQ5OGZkNTBkMjgwN2Q5NDM2OTE4NDc4NTZhZGE2OTU4
|
10
|
+
OTg1ZTRkZTdkYjg4NGQ5ZTYwZTM5OTZkMzg1Mjc4ZjhmZTgzMDg1NDIzOTUw
|
11
|
+
OGQxMWRkZTY5YmUzNmJhNTA0ZjA3NDJhNmFjOWNmNmEzYzQ2N2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDhjZGU5ZGUyNmRlNjJiOGFmMTc0Y2VmYzM0NjM3NGQwYjY2OTVlZTU0MWUz
|
14
|
+
ZDhjYmI2Y2MyZDRmYWM2ZjA0MjE1YTVhZmVkOGI0NjU3MjhmNjE3ZTIzZjUx
|
15
|
+
YjdkYmQwOTU3MzQxNGY5ZmQ1NWE5ZjIzOWM1ZGUzMTQxMWU3Zjk=
|
@@ -18,4 +18,6 @@ end
|
|
18
18
|
|
19
19
|
if defined? ActionController::IntegrationTest
|
20
20
|
ActionController::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
|
21
|
-
|
21
|
+
elsif defined? ActionDispatch::IntegrationTest
|
22
|
+
ActionDispatch::IntegrationTest.class_eval { include Relevance::CoreExtensions::TestCaseExtensions }
|
23
|
+
end
|
@@ -14,6 +14,7 @@ describe "TestCase extensions" do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it "should get mixed into ActionController::IntegrationTest" do
|
17
|
-
ActionController::IntegrationTest
|
17
|
+
klass = defined?(ActionController::IntegrationTest) ? ActionController::IntegrationTest : ActionDispatch::IntegrationTest
|
18
|
+
klass.ancestors.should include(Relevance::CoreExtensions::TestCaseExtensions)
|
18
19
|
end
|
19
20
|
end
|
@@ -3,7 +3,7 @@ require "spec_helper"
|
|
3
3
|
describe Relevance::Tarantula do
|
4
4
|
include Relevance::Tarantula
|
5
5
|
attr_accessor :verbose
|
6
|
-
|
6
|
+
|
7
7
|
it "writes to stdout if verbose" do
|
8
8
|
self.verbose = true
|
9
9
|
expects(:puts).with("foo")
|
@@ -15,8 +15,8 @@ describe Relevance::Tarantula do
|
|
15
15
|
expects(:puts).never
|
16
16
|
log("foo")
|
17
17
|
end
|
18
|
-
|
19
|
-
it "puts RAILS_ROOT behind a method call" do
|
18
|
+
|
19
|
+
it "puts RAILS_ROOT behind a method call", pending: true do
|
20
20
|
lambda{rails_root}.should raise_error(NameError)
|
21
21
|
end
|
22
22
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -6,10 +6,10 @@ end
|
|
6
6
|
require "rails/version"
|
7
7
|
puts "==== Testing with Rails #{Rails::VERSION::STRING} ===="
|
8
8
|
|
9
|
-
require 'relevance/tarantula'
|
10
9
|
require 'bundler'
|
11
10
|
Bundler.require
|
12
11
|
require 'ostruct'
|
12
|
+
require 'relevance/tarantula'
|
13
13
|
|
14
14
|
def test_output_dir
|
15
15
|
File.join(File.dirname(__FILE__), "..", "tmp", "test_output")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codez-tarantula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Relevance, Inc.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: htmlentities
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.2.2
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: A big hairy fuzzy spider that crawls your site, wreaking havoc
|