wsoc 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/Gemfile +5 -18
- data/Gemfile.lock +36 -0
- data/README.md +6 -6
- data/Rakefile +11 -15
- data/gemspec.yml +22 -0
- data/lib/wsoc.rb +1 -1
- data/lib/wsoc/app.rb +1 -1
- data/lib/wsoc/config.rb +1 -1
- data/lib/wsoc/course.rb +2 -2
- data/lib/wsoc/course_specs.rb +1 -1
- data/lib/wsoc/helpers.rb +1 -1
- data/lib/wsoc/helpers/authentication.rb +1 -1
- data/lib/wsoc/helpers/course.rb +1 -1
- data/lib/wsoc/helpers/rendering.rb +1 -1
- data/lib/wsoc/runner.rb +1 -1
- data/lib/wsoc/specs.rb +1 -1
- data/lib/wsoc/version.rb +2 -2
- data/wsoc.gemspec +128 -96
- metadata +57 -83
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
@@ -1,22 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
gem 'json_pure', '~> 1.4.0'
|
5
|
-
gem 'sinatra', '~> 1.0'
|
6
|
-
end
|
7
|
-
|
8
|
-
group(:development) do
|
9
|
-
gem 'rake', '~> 0.8.7'
|
10
|
-
gem 'jeweler', '~> 1.4.0', :git => 'git://github.com/technicalpickles/jeweler.git'
|
11
|
-
end
|
12
|
-
|
13
|
-
group(:doc) do
|
14
|
-
case RUBY_PLATFORM
|
15
|
-
when 'java'
|
16
|
-
gem 'maruku', '~> 0.6.0'
|
17
|
-
else
|
18
|
-
gem 'rdiscount', '~> 1.6.3'
|
19
|
-
end
|
3
|
+
gemspec
|
20
4
|
|
21
|
-
|
5
|
+
group :development do
|
6
|
+
gem 'rake', '~> 0.8'
|
7
|
+
gem 'kramdown', '~> 0.13'
|
8
|
+
gem 'ore-tasks', '~> 0.4'
|
22
9
|
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
wsoc (0.1.3)
|
5
|
+
json (~> 1.4)
|
6
|
+
sinatra (~> 1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
json (1.6.3)
|
12
|
+
kramdown (0.13.3)
|
13
|
+
ore-core (0.1.5)
|
14
|
+
ore-tasks (0.5.0)
|
15
|
+
ore-core (>= 0.1.3, ~> 0.1)
|
16
|
+
rack (1.3.5)
|
17
|
+
rack-protection (1.1.4)
|
18
|
+
rack
|
19
|
+
rake (0.9.2.2)
|
20
|
+
sinatra (1.3.1)
|
21
|
+
rack (~> 1.3, >= 1.3.4)
|
22
|
+
rack-protection (~> 1.1, >= 1.1.2)
|
23
|
+
tilt (~> 1.3, >= 1.3.3)
|
24
|
+
tilt (1.3.3)
|
25
|
+
yard (0.7.4)
|
26
|
+
|
27
|
+
PLATFORMS
|
28
|
+
ruby
|
29
|
+
|
30
|
+
DEPENDENCIES
|
31
|
+
bundler (~> 1.0)
|
32
|
+
kramdown (~> 0.13)
|
33
|
+
ore-tasks (~> 0.4)
|
34
|
+
rake (~> 0.8)
|
35
|
+
wsoc!
|
36
|
+
yard (~> 0.7)
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Web Spider Obstacle Course (WSOC)
|
2
2
|
|
3
|
-
* [
|
4
|
-
* [
|
5
|
-
*
|
3
|
+
* [Source](https://github.com/postmodern/wsoc/)
|
4
|
+
* [Issues](https://github.com/postmodern/wsoc/issues)
|
5
|
+
* [Email](mailto:postmodern.mod3 at gmail.com)
|
6
6
|
|
7
7
|
## Description
|
8
8
|
|
@@ -33,18 +33,18 @@ the thoroughness and resilience of Web Spiders.
|
|
33
33
|
|
34
34
|
## Requirements
|
35
35
|
|
36
|
-
* [
|
36
|
+
* [json](http://flori.github.com/json/) ~> 1.4
|
37
37
|
* [sinatra](http://sinatrarb.com) ~> 1.0
|
38
38
|
|
39
39
|
## Install
|
40
40
|
|
41
|
-
$
|
41
|
+
$ gem install wsoc
|
42
42
|
|
43
43
|
## License
|
44
44
|
|
45
45
|
WSOC - The Web Spider Obstacle Course
|
46
46
|
|
47
|
-
Copyright (c) 2009-
|
47
|
+
Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
48
48
|
|
49
49
|
This program is free software; you can redistribute it and/or modify
|
50
50
|
it under the terms of the GNU General Public License as published by
|
data/Rakefile
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'bundler'
|
3
2
|
|
4
3
|
begin
|
5
|
-
|
4
|
+
require 'bundler'
|
5
|
+
rescue LoadError => e
|
6
|
+
STDERR.puts e.message
|
7
|
+
STDERR.puts "Run `gem install bundler` to install Bundler."
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
|
11
|
+
begin
|
12
|
+
Bundler.setup(:development)
|
6
13
|
rescue Bundler::BundlerError => e
|
7
14
|
STDERR.puts e.message
|
8
15
|
STDERR.puts "Run `bundle install` to install missing gems"
|
@@ -10,20 +17,9 @@ rescue Bundler::BundlerError => e
|
|
10
17
|
end
|
11
18
|
|
12
19
|
require 'rake'
|
13
|
-
require 'jeweler'
|
14
|
-
require './lib/wsoc/version.rb'
|
15
20
|
|
16
|
-
|
17
|
-
|
18
|
-
gem.version = WSOC::VERSION
|
19
|
-
gem.license = 'GPL-2'
|
20
|
-
gem.summary = %Q{An example web server that tests the thoroughness and resilience of Web Spiders}
|
21
|
-
gem.description = %Q{The Web Spider Obstacle Course (WSOC) is an example web server that tests the thoroughness and resilience of Web Spiders.}
|
22
|
-
gem.email = 'postmodern.mod3@gmail.com'
|
23
|
-
gem.homepage = 'http://github.com/postmodern/wsoc'
|
24
|
-
gem.authors = ['Postmodern']
|
25
|
-
gem.has_rdoc = 'yard'
|
26
|
-
end
|
21
|
+
require 'ore/tasks'
|
22
|
+
Ore::Tasks.new
|
27
23
|
|
28
24
|
require 'yard'
|
29
25
|
YARD::Rake::YardocTask.new
|
data/gemspec.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
name: wsoc
|
2
|
+
summary:
|
3
|
+
An example web server that tests the thoroughness and resilience of
|
4
|
+
Web Spiders
|
5
|
+
|
6
|
+
description:
|
7
|
+
The Web Spider Obstacle Course (WSOC) is an example web server that tests
|
8
|
+
the thoroughness and resilience of Web Spiders.
|
9
|
+
|
10
|
+
license: MIT
|
11
|
+
authors: Postmodern
|
12
|
+
email: postmodern.mod3@gmail.com
|
13
|
+
homepage: http://github.com/postmodern/wsoc
|
14
|
+
has_yard: true
|
15
|
+
|
16
|
+
dependencies:
|
17
|
+
json: ~> 1.4
|
18
|
+
sinatra: ~> 1.0
|
19
|
+
|
20
|
+
development_dependencies:
|
21
|
+
bundler: ~> 1.0
|
22
|
+
yard: ~> 0.7
|
data/lib/wsoc.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/app.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/config.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/course.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
@@ -28,7 +28,7 @@ module WSOC
|
|
28
28
|
set :port, Config::DEFAULT_PORT
|
29
29
|
|
30
30
|
set :root, File.expand_path(File.join(File.dirname(__FILE__),'..','..'))
|
31
|
-
set :course, File.join(self.
|
31
|
+
set :course, File.join(self.root,'course')
|
32
32
|
enable :static, :sessions
|
33
33
|
|
34
34
|
helpers WSOC::Helpers
|
data/lib/wsoc/course_specs.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/helpers.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/helpers/course.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/runner.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/specs.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
data/lib/wsoc/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# WSOC - The Web Spider Obstacle Course
|
3
3
|
#
|
4
|
-
# Copyright (c) 2009-
|
4
|
+
# Copyright (c) 2009-2011 Hal Brodigan (postmodern.mod3 at gmail.com)
|
5
5
|
#
|
6
6
|
# This program is free software; you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU General Public License as published by
|
@@ -20,5 +20,5 @@
|
|
20
20
|
|
21
21
|
module WSOC
|
22
22
|
# wsoc version
|
23
|
-
VERSION = '0.1.
|
23
|
+
VERSION = '0.1.4'
|
24
24
|
end
|
data/wsoc.gemspec
CHANGED
@@ -1,99 +1,131 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"COPYING.txt",
|
25
|
-
"ChangeLog.md",
|
26
|
-
"Gemfile",
|
27
|
-
"README.md",
|
28
|
-
"Rakefile",
|
29
|
-
"bin/wsoc_server",
|
30
|
-
"config.ru",
|
31
|
-
"lib/wsoc.rb",
|
32
|
-
"lib/wsoc/app.rb",
|
33
|
-
"lib/wsoc/config.rb",
|
34
|
-
"lib/wsoc/course.rb",
|
35
|
-
"lib/wsoc/course_specs.rb",
|
36
|
-
"lib/wsoc/helpers.rb",
|
37
|
-
"lib/wsoc/helpers/authentication.rb",
|
38
|
-
"lib/wsoc/helpers/course.rb",
|
39
|
-
"lib/wsoc/helpers/rendering.rb",
|
40
|
-
"lib/wsoc/runner.rb",
|
41
|
-
"lib/wsoc/specs.rb",
|
42
|
-
"lib/wsoc/version.rb",
|
43
|
-
"public/css/layout.css",
|
44
|
-
"public/css/specs.css",
|
45
|
-
"public/js/jquery-1.3.2.min.js",
|
46
|
-
"views/course_absolute_start.erb",
|
47
|
-
"views/course_auth_start.erb",
|
48
|
-
"views/course_cookies_get.erb",
|
49
|
-
"views/course_cookies_start.erb",
|
50
|
-
"views/course_empty_start.erb",
|
51
|
-
"views/course_fail.erb",
|
52
|
-
"views/course_frames_frame.erb",
|
53
|
-
"views/course_frames_iframe.erb",
|
54
|
-
"views/course_frames_start.erb",
|
55
|
-
"views/course_javascript_start.erb",
|
56
|
-
"views/course_loop_next.erb",
|
57
|
-
"views/course_loop_start.erb",
|
58
|
-
"views/course_pass.erb",
|
59
|
-
"views/course_redirects_meta.erb",
|
60
|
-
"views/course_redirects_start.erb",
|
61
|
-
"views/course_relative_start.erb",
|
62
|
-
"views/course_remote_next.erb",
|
63
|
-
"views/course_remote_start.erb",
|
64
|
-
"views/course_start.erb",
|
65
|
-
"views/layout.erb",
|
66
|
-
"views/specs.erb",
|
67
|
-
"views/welcome.erb",
|
68
|
-
"wsoc.gemspec"
|
69
|
-
]
|
70
|
-
s.has_rdoc = %q{yard}
|
71
|
-
s.homepage = %q{http://github.com/postmodern/wsoc}
|
72
|
-
s.licenses = ["GPL-2"]
|
73
|
-
s.require_paths = ["lib"]
|
74
|
-
s.rubygems_version = %q{1.3.7}
|
75
|
-
s.summary = %q{An example web server that tests the thoroughness and resilience of Web Spiders}
|
76
|
-
|
77
|
-
if s.respond_to? :specification_version then
|
78
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
79
|
-
s.specification_version = 3
|
80
|
-
|
81
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
82
|
-
s.add_runtime_dependency(%q<json_pure>, ["~> 1.4.0"])
|
83
|
-
s.add_runtime_dependency(%q<sinatra>, ["~> 1.0"])
|
84
|
-
s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
|
85
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
|
86
|
-
else
|
87
|
-
s.add_dependency(%q<json_pure>, ["~> 1.4.0"])
|
88
|
-
s.add_dependency(%q<sinatra>, ["~> 1.0"])
|
89
|
-
s.add_dependency(%q<rake>, ["~> 0.8.7"])
|
90
|
-
s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
Gem::Specification.new do |gemspec|
|
6
|
+
root = File.dirname(__FILE__)
|
7
|
+
lib_dir = File.join(root,'lib')
|
8
|
+
files = if File.directory?('.git')
|
9
|
+
`git ls-files`.split($/)
|
10
|
+
elsif File.directory?('.hg')
|
11
|
+
`hg manifest`.split($/)
|
12
|
+
elsif File.directory?('.svn')
|
13
|
+
`svn ls -R`.split($/).select { |path| File.file?(path) }
|
14
|
+
else
|
15
|
+
Dir['{**/}{.*,*}'].select { |path| File.file?(path) }
|
16
|
+
end
|
17
|
+
|
18
|
+
filter_files = lambda { |paths|
|
19
|
+
case paths
|
20
|
+
when Array
|
21
|
+
(files & paths)
|
22
|
+
when String
|
23
|
+
(files & Dir[paths])
|
91
24
|
end
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
25
|
+
}
|
26
|
+
|
27
|
+
version = {
|
28
|
+
:file => 'wsoc/version',
|
29
|
+
:constant => 'WSOC::VERSION'
|
30
|
+
}
|
31
|
+
|
32
|
+
defaults = {
|
33
|
+
'name' => File.basename(root),
|
34
|
+
'files' => files,
|
35
|
+
'executables' => filter_files['bin/*'].map { |path| File.basename(path) },
|
36
|
+
'test_files' => filter_files['{test/{**/}*_test.rb,spec/{**/}*_spec.rb}'],
|
37
|
+
'extra_doc_files' => filter_files['*.{txt,rdoc,md,markdown,tt,textile}'],
|
38
|
+
}
|
39
|
+
|
40
|
+
metadata = defaults.merge(YAML.load_file('gemspec.yml'))
|
41
|
+
|
42
|
+
gemspec.name = metadata.fetch('name',defaults[:name])
|
43
|
+
gemspec.version = if metadata['version']
|
44
|
+
metadata['version']
|
45
|
+
else
|
46
|
+
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
47
|
+
|
48
|
+
require version[:file]
|
49
|
+
eval(version[:constant])
|
50
|
+
end
|
51
|
+
|
52
|
+
gemspec.summary = metadata.fetch('summary',metadata['description'])
|
53
|
+
gemspec.description = metadata.fetch('description',metadata['summary'])
|
54
|
+
|
55
|
+
case metadata['license']
|
56
|
+
when Array
|
57
|
+
gemspec.licenses = metadata['license']
|
58
|
+
when String
|
59
|
+
gemspec.license = metadata['license']
|
60
|
+
end
|
61
|
+
|
62
|
+
case metadata['authors']
|
63
|
+
when Array
|
64
|
+
gemspec.authors = metadata['authors']
|
65
|
+
when String
|
66
|
+
gemspec.author = metadata['authors']
|
67
|
+
end
|
68
|
+
|
69
|
+
gemspec.email = metadata['email']
|
70
|
+
gemspec.homepage = metadata['homepage']
|
71
|
+
|
72
|
+
case metadata['require_paths']
|
73
|
+
when Array
|
74
|
+
gemspec.require_paths = metadata['require_paths']
|
75
|
+
when String
|
76
|
+
gemspec.require_path = metadata['require_paths']
|
77
|
+
end
|
78
|
+
|
79
|
+
gemspec.files = filter_files[metadata['files']]
|
80
|
+
|
81
|
+
gemspec.executables = metadata['executables']
|
82
|
+
gemspec.extensions = metadata['extensions']
|
83
|
+
|
84
|
+
if Gem::VERSION < '1.7.'
|
85
|
+
gemspec.default_executable = gemspec.executables.first
|
97
86
|
end
|
98
|
-
end
|
99
87
|
|
88
|
+
gemspec.test_files = filter_files[metadata['test_files']]
|
89
|
+
|
90
|
+
unless gemspec.files.include?('.document')
|
91
|
+
gemspec.extra_rdoc_files = metadata['extra_doc_files']
|
92
|
+
end
|
93
|
+
|
94
|
+
gemspec.post_install_message = metadata['post_install_message']
|
95
|
+
gemspec.requirements = metadata['requirements']
|
96
|
+
|
97
|
+
if gemspec.respond_to?(:required_ruby_version=)
|
98
|
+
gemspec.required_ruby_version = metadata['required_ruby_version']
|
99
|
+
end
|
100
|
+
|
101
|
+
if gemspec.respond_to?(:required_rubygems_version=)
|
102
|
+
gemspec.required_rubygems_version = metadata['required_rubygems_version']
|
103
|
+
end
|
104
|
+
|
105
|
+
parse_versions = lambda { |versions|
|
106
|
+
case versions
|
107
|
+
when Array
|
108
|
+
versions.map { |v| v.to_s }
|
109
|
+
when String
|
110
|
+
versions.split(/,\s*/)
|
111
|
+
end
|
112
|
+
}
|
113
|
+
|
114
|
+
if metadata['dependencies']
|
115
|
+
metadata['dependencies'].each do |name,versions|
|
116
|
+
gemspec.add_dependency(name,parse_versions[versions])
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
if metadata['runtime_dependencies']
|
121
|
+
metadata['runtime_dependencies'].each do |name,versions|
|
122
|
+
gemspec.add_runtime_dependency(name,parse_versions[versions])
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
if metadata['development_dependencies']
|
127
|
+
metadata['development_dependencies'].each do |name,versions|
|
128
|
+
gemspec.add_development_dependency(name,parse_versions[versions])
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
metadata
CHANGED
@@ -1,100 +1,82 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: wsoc
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
version: 0.1.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Postmodern
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
name: json_pure
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
12
|
+
date: 2011-12-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: json
|
16
|
+
requirement: &14440860 !ruby/object:Gem::Requirement
|
23
17
|
none: false
|
24
|
-
requirements:
|
18
|
+
requirements:
|
25
19
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 1
|
29
|
-
- 4
|
30
|
-
- 0
|
31
|
-
version: 1.4.0
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.4'
|
32
22
|
type: :runtime
|
33
23
|
prerelease: false
|
34
|
-
version_requirements: *
|
35
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *14440860
|
25
|
+
- !ruby/object:Gem::Dependency
|
36
26
|
name: sinatra
|
37
|
-
requirement: &
|
27
|
+
requirement: &14440140 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
29
|
+
requirements:
|
40
30
|
- - ~>
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 1
|
44
|
-
- 0
|
45
|
-
version: "1.0"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
46
33
|
type: :runtime
|
47
34
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
51
|
-
requirement: &
|
35
|
+
version_requirements: *14440140
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: bundler
|
38
|
+
requirement: &14439440 !ruby/object:Gem::Requirement
|
52
39
|
none: false
|
53
|
-
requirements:
|
40
|
+
requirements:
|
54
41
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
- 0
|
58
|
-
- 8
|
59
|
-
- 7
|
60
|
-
version: 0.8.7
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
61
44
|
type: :development
|
62
45
|
prerelease: false
|
63
|
-
version_requirements: *
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
66
|
-
requirement: &
|
46
|
+
version_requirements: *14439440
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: yard
|
49
|
+
requirement: &14438520 !ruby/object:Gem::Requirement
|
67
50
|
none: false
|
68
|
-
requirements:
|
51
|
+
requirements:
|
69
52
|
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
- 1
|
73
|
-
- 4
|
74
|
-
- 0
|
75
|
-
version: 1.4.0
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
76
55
|
type: :development
|
77
56
|
prerelease: false
|
78
|
-
version_requirements: *
|
79
|
-
description: The Web Spider Obstacle Course (WSOC) is an example web server that tests
|
57
|
+
version_requirements: *14438520
|
58
|
+
description: The Web Spider Obstacle Course (WSOC) is an example web server that tests
|
59
|
+
the thoroughness and resilience of Web Spiders.
|
80
60
|
email: postmodern.mod3@gmail.com
|
81
|
-
executables:
|
61
|
+
executables:
|
82
62
|
- wsoc_server
|
83
63
|
extensions: []
|
84
|
-
|
85
|
-
|
64
|
+
extra_rdoc_files:
|
65
|
+
- COPYING.txt
|
86
66
|
- ChangeLog.md
|
87
67
|
- README.md
|
88
|
-
files:
|
68
|
+
files:
|
89
69
|
- .gitignore
|
90
70
|
- .yardopts
|
91
71
|
- COPYING.txt
|
92
72
|
- ChangeLog.md
|
93
73
|
- Gemfile
|
74
|
+
- Gemfile.lock
|
94
75
|
- README.md
|
95
76
|
- Rakefile
|
96
77
|
- bin/wsoc_server
|
97
78
|
- config.ru
|
79
|
+
- gemspec.yml
|
98
80
|
- lib/wsoc.rb
|
99
81
|
- lib/wsoc/app.rb
|
100
82
|
- lib/wsoc/config.rb
|
@@ -133,38 +115,30 @@ files:
|
|
133
115
|
- views/specs.erb
|
134
116
|
- views/welcome.erb
|
135
117
|
- wsoc.gemspec
|
136
|
-
has_rdoc: yard
|
137
118
|
homepage: http://github.com/postmodern/wsoc
|
138
|
-
licenses:
|
139
|
-
-
|
119
|
+
licenses:
|
120
|
+
- MIT
|
140
121
|
post_install_message:
|
141
122
|
rdoc_options: []
|
142
|
-
|
143
|
-
require_paths:
|
123
|
+
require_paths:
|
144
124
|
- lib
|
145
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
126
|
none: false
|
147
|
-
requirements:
|
148
|
-
- -
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
|
151
|
-
|
152
|
-
- 0
|
153
|
-
version: "0"
|
154
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
132
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
- 0
|
161
|
-
version: "0"
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
162
137
|
requirements: []
|
163
|
-
|
164
138
|
rubyforge_project:
|
165
|
-
rubygems_version: 1.
|
139
|
+
rubygems_version: 1.8.10
|
166
140
|
signing_key:
|
167
141
|
specification_version: 3
|
168
142
|
summary: An example web server that tests the thoroughness and resilience of Web Spiders
|
169
143
|
test_files: []
|
170
|
-
|
144
|
+
has_rdoc:
|