thinner 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/LICENSE +20 -0
- data/README +17 -0
- data/Rakefile +64 -0
- data/VERSION +1 -0
- data/bin/thinner +4 -0
- data/doc/Thinner/Client.html +602 -0
- data/doc/Thinner/CommandLine.html +291 -0
- data/doc/Thinner/Configuration.html +592 -0
- data/doc/Thinner/Purger.html +433 -0
- data/doc/Thinner.html +455 -0
- data/doc/_index.html +138 -0
- data/doc/class_list.html +36 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +53 -0
- data/doc/css/style.css +307 -0
- data/doc/file.README.html +71 -0
- data/doc/file_list.html +38 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +71 -0
- data/doc/js/app.js +202 -0
- data/doc/js/full_list.js +149 -0
- data/doc/js/jquery.js +154 -0
- data/doc/method_list.html +211 -0
- data/doc/top-level-namespace.html +88 -0
- data/documentation/css/dawn.css +121 -0
- data/documentation/css/styles.css +53 -0
- data/documentation/examples/configure.rb +25 -0
- data/documentation/examples/purge.rb +5 -0
- data/documentation/images/proplogo.png +0 -0
- data/documentation/index.html.erb +64 -0
- data/index.html +87 -0
- data/lib/thinner/client.rb +88 -0
- data/lib/thinner/command_line.rb +80 -0
- data/lib/thinner/configuration.rb +37 -0
- data/lib/thinner/purger.rb +46 -0
- data/lib/thinner.rb +37 -0
- data/test/helper.rb +10 -0
- data/test/test_thinner.rb +32 -0
- data/thinner.gemspec +90 -0
- metadata +138 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'helper'
|
2
|
+
|
3
|
+
class TestClient < Test::Unit::TestCase
|
4
|
+
|
5
|
+
context "a thinner client" do
|
6
|
+
|
7
|
+
setup do
|
8
|
+
@client = Thinner::Client.new(URLS)
|
9
|
+
end
|
10
|
+
|
11
|
+
should "purge urls" do
|
12
|
+
@client.run!
|
13
|
+
$0 = "Tester"
|
14
|
+
assert_equal @client.purged_urls, URLS
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
context "a thinner purger" do
|
20
|
+
|
21
|
+
setup do
|
22
|
+
@purger = Thinner::Purger.new(URLS)
|
23
|
+
end
|
24
|
+
|
25
|
+
should "fork a client" do
|
26
|
+
@purger.purge!
|
27
|
+
assert Thinner::Purger.job_ids.length > 0
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
data/thinner.gemspec
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{thinner}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jeff Larson"]
|
12
|
+
s.date = %q{2010-11-02}
|
13
|
+
s.default_executable = %q{thinner}
|
14
|
+
s.description = %q{Thinner takes a list of urls or newline seperated stdin and purges them from Varnish.}
|
15
|
+
s.email = %q{thejefflarson@gmail.com}
|
16
|
+
s.executables = ["thinner"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE",
|
19
|
+
"README"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".gitignore",
|
24
|
+
"LICENSE",
|
25
|
+
"README",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/thinner",
|
29
|
+
"doc/Thinner.html",
|
30
|
+
"doc/Thinner/Client.html",
|
31
|
+
"doc/Thinner/CommandLine.html",
|
32
|
+
"doc/Thinner/Configuration.html",
|
33
|
+
"doc/Thinner/Purger.html",
|
34
|
+
"doc/_index.html",
|
35
|
+
"doc/class_list.html",
|
36
|
+
"doc/css/common.css",
|
37
|
+
"doc/css/full_list.css",
|
38
|
+
"doc/css/style.css",
|
39
|
+
"doc/file.README.html",
|
40
|
+
"doc/file_list.html",
|
41
|
+
"doc/frames.html",
|
42
|
+
"doc/index.html",
|
43
|
+
"doc/js/app.js",
|
44
|
+
"doc/js/full_list.js",
|
45
|
+
"doc/js/jquery.js",
|
46
|
+
"doc/method_list.html",
|
47
|
+
"doc/top-level-namespace.html",
|
48
|
+
"documentation/css/dawn.css",
|
49
|
+
"documentation/css/styles.css",
|
50
|
+
"documentation/examples/configure.rb",
|
51
|
+
"documentation/examples/purge.rb",
|
52
|
+
"documentation/images/proplogo.png",
|
53
|
+
"documentation/index.html.erb",
|
54
|
+
"index.html",
|
55
|
+
"lib/thinner.rb",
|
56
|
+
"lib/thinner/client.rb",
|
57
|
+
"lib/thinner/command_line.rb",
|
58
|
+
"lib/thinner/configuration.rb",
|
59
|
+
"lib/thinner/purger.rb",
|
60
|
+
"test/helper.rb",
|
61
|
+
"test/test_thinner.rb",
|
62
|
+
"thinner.gemspec"
|
63
|
+
]
|
64
|
+
s.homepage = %q{http://github.com/propublica/thinner}
|
65
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
66
|
+
s.require_paths = ["lib"]
|
67
|
+
s.rubygems_version = %q{1.3.7}
|
68
|
+
s.summary = %q{Thinner removes Varnish cache, as slowly as you need it to.}
|
69
|
+
s.test_files = [
|
70
|
+
"test/helper.rb",
|
71
|
+
"test/test_thinner.rb"
|
72
|
+
]
|
73
|
+
|
74
|
+
if s.respond_to? :specification_version then
|
75
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
76
|
+
s.specification_version = 3
|
77
|
+
|
78
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
79
|
+
s.add_runtime_dependency(%q<klarlack>, ["~> 0.0.6"])
|
80
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
81
|
+
else
|
82
|
+
s.add_dependency(%q<klarlack>, ["~> 0.0.6"])
|
83
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
84
|
+
end
|
85
|
+
else
|
86
|
+
s.add_dependency(%q<klarlack>, ["~> 0.0.6"])
|
87
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: thinner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Jeff Larson
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-11-02 00:00:00 -04:00
|
19
|
+
default_executable: thinner
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: klarlack
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 19
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 0
|
33
|
+
- 6
|
34
|
+
version: 0.0.6
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: thoughtbot-shoulda
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
51
|
+
description: Thinner takes a list of urls or newline seperated stdin and purges them from Varnish.
|
52
|
+
email: thejefflarson@gmail.com
|
53
|
+
executables:
|
54
|
+
- thinner
|
55
|
+
extensions: []
|
56
|
+
|
57
|
+
extra_rdoc_files:
|
58
|
+
- LICENSE
|
59
|
+
- README
|
60
|
+
files:
|
61
|
+
- .document
|
62
|
+
- .gitignore
|
63
|
+
- LICENSE
|
64
|
+
- README
|
65
|
+
- Rakefile
|
66
|
+
- VERSION
|
67
|
+
- bin/thinner
|
68
|
+
- doc/Thinner.html
|
69
|
+
- doc/Thinner/Client.html
|
70
|
+
- doc/Thinner/CommandLine.html
|
71
|
+
- doc/Thinner/Configuration.html
|
72
|
+
- doc/Thinner/Purger.html
|
73
|
+
- doc/_index.html
|
74
|
+
- doc/class_list.html
|
75
|
+
- doc/css/common.css
|
76
|
+
- doc/css/full_list.css
|
77
|
+
- doc/css/style.css
|
78
|
+
- doc/file.README.html
|
79
|
+
- doc/file_list.html
|
80
|
+
- doc/frames.html
|
81
|
+
- doc/index.html
|
82
|
+
- doc/js/app.js
|
83
|
+
- doc/js/full_list.js
|
84
|
+
- doc/js/jquery.js
|
85
|
+
- doc/method_list.html
|
86
|
+
- doc/top-level-namespace.html
|
87
|
+
- documentation/css/dawn.css
|
88
|
+
- documentation/css/styles.css
|
89
|
+
- documentation/examples/configure.rb
|
90
|
+
- documentation/examples/purge.rb
|
91
|
+
- documentation/images/proplogo.png
|
92
|
+
- documentation/index.html.erb
|
93
|
+
- index.html
|
94
|
+
- lib/thinner.rb
|
95
|
+
- lib/thinner/client.rb
|
96
|
+
- lib/thinner/command_line.rb
|
97
|
+
- lib/thinner/configuration.rb
|
98
|
+
- lib/thinner/purger.rb
|
99
|
+
- test/helper.rb
|
100
|
+
- test/test_thinner.rb
|
101
|
+
- thinner.gemspec
|
102
|
+
has_rdoc: true
|
103
|
+
homepage: http://github.com/propublica/thinner
|
104
|
+
licenses: []
|
105
|
+
|
106
|
+
post_install_message:
|
107
|
+
rdoc_options:
|
108
|
+
- --charset=UTF-8
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
hash: 3
|
117
|
+
segments:
|
118
|
+
- 0
|
119
|
+
version: "0"
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
hash: 3
|
126
|
+
segments:
|
127
|
+
- 0
|
128
|
+
version: "0"
|
129
|
+
requirements: []
|
130
|
+
|
131
|
+
rubyforge_project:
|
132
|
+
rubygems_version: 1.3.7
|
133
|
+
signing_key:
|
134
|
+
specification_version: 3
|
135
|
+
summary: Thinner removes Varnish cache, as slowly as you need it to.
|
136
|
+
test_files:
|
137
|
+
- test/helper.rb
|
138
|
+
- test/test_thinner.rb
|