tarantula 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,3 +1,7 @@
1
1
  rvm:
2
- - 1.8.7
3
- - 1.9.2
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - 1.9.3
5
+ gemfile:
6
+ - ci/rails2.gemfile
7
+ - ci/rails3.gemfile
data/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
+ v0.4.3
2
+ * Fix rake tasks #25 [cldwalker]
3
+ * Remove removing String#chars #18 [cldwalker]
4
+ * Update dev dependencies
5
+
1
6
  v0.4.2
2
- * Fix Response#html? for Rails 3 (jgkite + rsanheim)
7
+ * Fix Response#html? for Rails 3 [jgkite + rsanheim]
3
8
  * All tests green again [cldwalker]
4
9
 
5
10
  v0.2.0 Implementation of updated look-and-feel [Jason Rudolph]
data/README.rdoc CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  == DESCRIPTION
4
4
 
5
- Tarantula is a big fuzzy spider. It crawls your Rails 3 application, fuzzing data to see what breaks.
5
+ Tarantula is a big fuzzy spider. It crawls your Rails 2.3 and 3.x applications, fuzzing data to see what breaks.
6
+
7
+ {<img src="https://secure.travis-ci.org/relevance/tarantula.png"
8
+ />}[http://travis-ci.org/relevance/tarantula]
6
9
 
7
10
  == Usage
8
11
 
@@ -18,8 +21,7 @@ just let RubyGems handle it). Add it to your Gemfile as normal:
18
21
  Use the included rake task to create a Rails integration test that will allow Tarantula to crawl your
19
22
  app.
20
23
 
21
- #!sh
22
- rake tarantula:setup
24
+ $ rake tarantula:setup
23
25
 
24
26
  Take a moment to familiarize yourself with the generated test. If parts of your application require
25
27
  login, update the test to make sure Tarantula can access those parts of your app.
@@ -63,9 +65,8 @@ it. For example, this would turn on HTMLTidy.
63
65
 
64
66
  Now it's time to turn Tarantula loose on your app. Assuming your project is at /work/project/:
65
67
 
66
- #!sh
67
- cd /work/project
68
- rake tarantula:test
68
+ $ cd /work/project
69
+ $ rake tarantula:test
69
70
 
70
71
  == Verbose Mode
71
72
 
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rake'
2
2
  require 'rake/testtask'
3
- require 'rake/rdoctask'
3
+ require 'rdoc/task'
4
+ Dir["lib/relevance/tasks/*.rake"].each {|f| load f }
4
5
 
5
6
  begin
6
7
  require 'rspec'
@@ -22,15 +23,6 @@ rescue LoadError
22
23
  puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
23
24
  end
24
25
 
25
- begin
26
- %w{sdoc sdoc-helpers rdiscount}.each { |name| gem name }
27
- require 'sdoc_helpers'
28
- rescue LoadError => ex
29
- puts "sdoc support not enabled:"
30
- puts ex.inspect
31
- end
32
-
33
- require 'rake/rdoctask'
34
26
  Rake::RDocTask.new do |rdoc|
35
27
  version = File.exist?('VERSION') ? File.read('VERSION') : ''
36
28
  rdoc.rdoc_dir = 'rdoc'
data/ci/rails2.gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+
3
+ gemspec :path => "../"
4
+ gem 'rails', '~> 2.3.14', :group => :development
data/ci/rails3.gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+
3
+ gemspec :path => "../"
4
+ gem 'rails', '~> 3.0.10', :group => :development
@@ -28,7 +28,6 @@ require "relevance/core_extensions/ellipsize"
28
28
  require "relevance/core_extensions/file"
29
29
  require "relevance/core_extensions/response"
30
30
  require "relevance/core_extensions/metaclass"
31
- require "relevance/core_extensions/string_chars_fix"
32
31
 
33
32
  require "relevance/tarantula/html_reporter"
34
33
  require "relevance/tarantula/html_report_helper"
@@ -1,5 +1,5 @@
1
1
  module Relevance
2
2
  module Tarantula
3
- VERSION = "0.4.2"
3
+ VERSION = "0.4.3"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -4,10 +4,6 @@ if rails_version = ENV['RAILS_VERSION']
4
4
  end
5
5
 
6
6
  require "rails/version"
7
- if Rails::VERSION::STRING < "2.3.1" && RUBY_VERSION >= "1.9.1"
8
- puts "Tarantula requires Rails 2.3.1 or higher for Ruby 1.9 support"
9
- exit(1)
10
- end
11
7
  puts "==== Testing with Rails #{Rails::VERSION::STRING} ===="
12
8
 
13
9
  require 'relevance/tarantula'
data/tarantula.gemspec CHANGED
@@ -5,27 +5,21 @@ require "relevance/tarantula/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "tarantula"
7
7
  s.version = Relevance::Tarantula::VERSION
8
- s.platform = Gem::Platform::RUBY
9
8
  s.authors = ["Relevance, Inc."]
10
9
  s.email = ["opensource@thinkrelevance.com"]
11
10
  s.homepage = "https://github.com/relevance/tarantula"
12
11
  s.summary = %q{A big hairy fuzzy spider that crawls your site, wreaking havoc}
13
- s.description = %q{A big hairy fuzzy spider that crawls your site, wreaking havoc}
14
-
15
- s.rubyforge_project = "tarantula"
12
+ s.description = "Tarantula is a big fuzzy spider. It crawls your Rails 2.3 and 3.x applications, fuzzing data to see what breaks."
16
13
 
17
14
  s.files = `git ls-files`.split("\n")
18
15
  s.test_files = `git ls-files -- {examples,template}`.split("\n")
19
- s.require_paths = ["lib"]
20
16
 
21
17
  s.add_runtime_dependency "htmlentities", "~> 4.3.0"
22
18
  s.add_runtime_dependency "hpricot", "~> 0.8.4"
23
19
 
24
- s.add_development_dependency "rspec", "~> 2.6.0"
25
- s.add_development_dependency "sdoc", "~> 0.3.0"
26
- s.add_development_dependency "sdoc-helpers", "~> 0.1.4"
27
- s.add_development_dependency "rdiscount", "~> 1.6.8"
20
+ s.add_development_dependency "rspec", "~> 2.8.0"
21
+ s.add_development_dependency 'rdoc', '~> 3.12.0'
28
22
  s.add_development_dependency "log_buddy", "~> 0.6.0"
29
23
  s.add_development_dependency "mocha", "~> 0.9.12"
30
- s.add_development_dependency "rails", "~> 3.0.9"
24
+ s.add_development_dependency "rails", ">= 2.3.0"
31
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarantula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-20 00:00:00.000000000Z
12
+ date: 2012-02-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
16
- requirement: &70348248358760 !ruby/object:Gem::Requirement
16
+ requirement: &70200734539400 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 4.3.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70348248358760
24
+ version_requirements: *70200734539400
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hpricot
27
- requirement: &70348248358220 !ruby/object:Gem::Requirement
27
+ requirement: &70200734538900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,54 +32,32 @@ dependencies:
32
32
  version: 0.8.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70348248358220
35
+ version_requirements: *70200734538900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70348248357700 !ruby/object:Gem::Requirement
38
+ requirement: &70200734538440 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 2.6.0
43
+ version: 2.8.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70348248357700
46
+ version_requirements: *70200734538440
47
47
  - !ruby/object:Gem::Dependency
48
- name: sdoc
49
- requirement: &70348248357240 !ruby/object:Gem::Requirement
48
+ name: rdoc
49
+ requirement: &70200734537980 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.0
54
+ version: 3.12.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70348248357240
58
- - !ruby/object:Gem::Dependency
59
- name: sdoc-helpers
60
- requirement: &70348248356660 !ruby/object:Gem::Requirement
61
- none: false
62
- requirements:
63
- - - ~>
64
- - !ruby/object:Gem::Version
65
- version: 0.1.4
66
- type: :development
67
- prerelease: false
68
- version_requirements: *70348248356660
69
- - !ruby/object:Gem::Dependency
70
- name: rdiscount
71
- requirement: &70348248356080 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- version: 1.6.8
77
- type: :development
78
- prerelease: false
79
- version_requirements: *70348248356080
57
+ version_requirements: *70200734537980
80
58
  - !ruby/object:Gem::Dependency
81
59
  name: log_buddy
82
- requirement: &70348248339640 !ruby/object:Gem::Requirement
60
+ requirement: &70200734537520 !ruby/object:Gem::Requirement
83
61
  none: false
84
62
  requirements:
85
63
  - - ~>
@@ -87,10 +65,10 @@ dependencies:
87
65
  version: 0.6.0
88
66
  type: :development
89
67
  prerelease: false
90
- version_requirements: *70348248339640
68
+ version_requirements: *70200734537520
91
69
  - !ruby/object:Gem::Dependency
92
70
  name: mocha
93
- requirement: &70348248339060 !ruby/object:Gem::Requirement
71
+ requirement: &70200724830800 !ruby/object:Gem::Requirement
94
72
  none: false
95
73
  requirements:
96
74
  - - ~>
@@ -98,19 +76,20 @@ dependencies:
98
76
  version: 0.9.12
99
77
  type: :development
100
78
  prerelease: false
101
- version_requirements: *70348248339060
79
+ version_requirements: *70200724830800
102
80
  - !ruby/object:Gem::Dependency
103
81
  name: rails
104
- requirement: &70348248338480 !ruby/object:Gem::Requirement
82
+ requirement: &70200724830340 !ruby/object:Gem::Requirement
105
83
  none: false
106
84
  requirements:
107
- - - ~>
85
+ - - ! '>='
108
86
  - !ruby/object:Gem::Version
109
- version: 3.0.9
87
+ version: 2.3.0
110
88
  type: :development
111
89
  prerelease: false
112
- version_requirements: *70348248338480
113
- description: A big hairy fuzzy spider that crawls your site, wreaking havoc
90
+ version_requirements: *70200724830340
91
+ description: Tarantula is a big fuzzy spider. It crawls your Rails 2.3 and 3.x applications,
92
+ fuzzing data to see what breaks.
114
93
  email:
115
94
  - opensource@thinkrelevance.com
116
95
  executables: []
@@ -127,6 +106,8 @@ files:
127
106
  - LICENSE
128
107
  - README.rdoc
129
108
  - Rakefile
109
+ - ci/rails2.gemfile
110
+ - ci/rails3.gemfile
130
111
  - laf/images/header_bg.jpg
131
112
  - laf/images/logo.png
132
113
  - laf/images/tagline.png
@@ -139,7 +120,6 @@ files:
139
120
  - lib/relevance/core_extensions/file.rb
140
121
  - lib/relevance/core_extensions/metaclass.rb
141
122
  - lib/relevance/core_extensions/response.rb
142
- - lib/relevance/core_extensions/string_chars_fix.rb
143
123
  - lib/relevance/core_extensions/test_case.rb
144
124
  - lib/relevance/tarantula.rb
145
125
  - lib/relevance/tarantula/attack.rb
@@ -223,8 +203,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
203
  - !ruby/object:Gem::Version
224
204
  version: '0'
225
205
  requirements: []
226
- rubyforge_project: tarantula
227
- rubygems_version: 1.8.15
206
+ rubyforge_project:
207
+ rubygems_version: 1.8.16
228
208
  signing_key:
229
209
  specification_version: 3
230
210
  summary: A big hairy fuzzy spider that crawls your site, wreaking havoc
@@ -1,11 +0,0 @@
1
- if RUBY_VERSION == "1.8.7" # fix interaction between Ruby 187 and Rails 202, so we can at least run the test suite on that combination
2
- unless '1.9'.respond_to?(:force_encoding)
3
- String.class_eval do
4
- begin
5
- remove_method :chars
6
- rescue NameError
7
- # OK
8
- end
9
- end
10
- end
11
- end