deelay 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -0
- data/Gemfile +0 -0
- data/README.md +1 -1
- data/Rakefile +0 -0
- data/deelay.gemspec +0 -0
- data/lib/deelay.rb +0 -0
- data/lib/deelay/deelay_app.rb +0 -0
- data/lib/deelay/homepage.rb +0 -0
- data/lib/deelay/version.rb +1 -1
- data/spec/deelay_app_spec.rb +12 -15
- metadata +10 -11
data/.gitignore
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# [Deelay.me](http://deelay.me)
|
2
2
|
|
3
|
-
|
3
|
+
**Inline delay proxy for http resources**
|
4
4
|
|
5
5
|
Slow loading resources (images, scripts, etc) can break your code. Test it simulating unexpected network conditions applied to specific resource.
|
6
6
|
|
data/Rakefile
CHANGED
File without changes
|
data/deelay.gemspec
CHANGED
File without changes
|
data/lib/deelay.rb
CHANGED
File without changes
|
data/lib/deelay/deelay_app.rb
CHANGED
File without changes
|
data/lib/deelay/homepage.rb
CHANGED
File without changes
|
data/lib/deelay/version.rb
CHANGED
data/spec/deelay_app_spec.rb
CHANGED
@@ -12,33 +12,30 @@ describe "DeelayApp" do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
context "when url invalid" do
|
15
|
-
it "raise error if
|
16
|
-
expect {
|
17
|
-
|
18
|
-
}.to raise_error
|
15
|
+
it "raise error if query is not a valid url" do
|
16
|
+
expect { get "/10?testurl.com" }.to raise_error
|
17
|
+
expect { get "/10?" }.to raise_error
|
19
18
|
end
|
20
19
|
|
21
|
-
it "raise error if
|
22
|
-
expect {
|
23
|
-
get "/10?/testurl.com"
|
24
|
-
}.to raise_error
|
20
|
+
it "raise error if no query" do
|
21
|
+
expect { get "/10" }.to raise_error
|
25
22
|
end
|
26
23
|
end
|
27
24
|
|
28
25
|
context "when url valid" do
|
29
|
-
it "redirects request
|
30
|
-
get "/10?http://testurl.com
|
31
|
-
last_response.
|
26
|
+
it "redirects request to specified url" do
|
27
|
+
get "/10?http://testurl.com"
|
28
|
+
last_response.location.should == "http://testurl.com"
|
32
29
|
end
|
33
30
|
|
34
|
-
it "redirects request
|
31
|
+
it "redirects request" do
|
35
32
|
get "/10?http://testurl.com"
|
36
33
|
last_response.status.should == 302
|
37
34
|
end
|
38
35
|
|
39
|
-
it "redirects
|
40
|
-
get "/10?http://testurl.com"
|
41
|
-
last_response.
|
36
|
+
it "redirects request with port" do
|
37
|
+
get "/10?http://testurl.com:1234"
|
38
|
+
last_response.status.should == 302
|
42
39
|
end
|
43
40
|
end
|
44
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deelay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
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-
|
12
|
+
date: 2012-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,12 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
description: Delay proxy for http resources
|
26
31
|
email:
|
27
32
|
- gbiesiadecki@gmail.com
|
@@ -53,21 +58,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
58
|
- - ! '>='
|
54
59
|
- !ruby/object:Gem::Version
|
55
60
|
version: '0'
|
56
|
-
segments:
|
57
|
-
- 0
|
58
|
-
hash: -244110734486052895
|
59
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
62
|
none: false
|
61
63
|
requirements:
|
62
64
|
- - ! '>='
|
63
65
|
- !ruby/object:Gem::Version
|
64
66
|
version: '0'
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
hash: -244110734486052895
|
68
67
|
requirements: []
|
69
68
|
rubyforge_project: deelay
|
70
|
-
rubygems_version: 1.8.
|
69
|
+
rubygems_version: 1.8.24
|
71
70
|
signing_key:
|
72
71
|
specification_version: 3
|
73
72
|
summary: Delay proxy
|