dubdubdub 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +42 -0
- data/LICENSE.txt +20 -0
- data/README.md +4 -0
- data/Rakefile +36 -0
- data/dubdubdub.gemspec +77 -0
- data/lib/dubdubdub.rb +22 -0
- data/lib/dubdubdub/client.rb +121 -0
- data/lib/dubdubdub/exceptions.rb +2 -0
- data/spec/dubdubdub_spec.rb +104 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/support/vcr.rb +6 -0
- data/spec/vcr/follow_url/alias_link.yml +22648 -0
- data/spec/vcr/follow_url/base.yml +1388 -0
- data/spec/vcr/follow_url/block_base_url.yml +502 -0
- data/spec/vcr/follow_url/eoferror.yml +98 -0
- data/spec/vcr/follow_url/https.yml +376 -0
- data/spec/vcr/follow_url/pass_block.yml +733 -0
- data/spec/vcr/follow_url/pass_block_iteration.yml +455 -0
- data/spec/vcr/follow_url/proxied.yml +116 -0
- data/spec/vcr/follow_url/proxy.yml +22654 -0
- data/spec/vcr/follow_url/proxy_forbidden.yml +116 -0
- metadata +169 -0
@@ -0,0 +1,116 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://yfrog.us/evlb0z:medium
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*'
|
12
|
+
user-agent:
|
13
|
+
- Ruby
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 403
|
17
|
+
message: Forbidden
|
18
|
+
headers:
|
19
|
+
server:
|
20
|
+
- squid/3.1.6
|
21
|
+
mime-version:
|
22
|
+
- '1.0'
|
23
|
+
date:
|
24
|
+
- Mon, 03 Dec 2012 10:57:01 GMT
|
25
|
+
content-type:
|
26
|
+
- text/html
|
27
|
+
content-length:
|
28
|
+
- '3209'
|
29
|
+
x-squid-error:
|
30
|
+
- ERR_ACCESS_DENIED 0
|
31
|
+
x-cache:
|
32
|
+
- MISS from iutdeltadns
|
33
|
+
x-cache-lookup:
|
34
|
+
- NONE from iutdeltadns:3128
|
35
|
+
via:
|
36
|
+
- 1.0 iutdeltadns (squid/3.1.6)
|
37
|
+
proxy-connection:
|
38
|
+
- close
|
39
|
+
body:
|
40
|
+
encoding: ASCII-8BIT
|
41
|
+
string: !binary |-
|
42
|
+
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEv
|
43
|
+
L0VOIiAiaHR0cDovL3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+
|
44
|
+
IDxodG1sPjxoZWFkPiA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUi
|
45
|
+
IGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCI+IDx0aXRsZT5F
|
46
|
+
UlJPUjogRWwgVVJMIHNvbGljaXRhZG8gbm8gc2UgaGEgcG9kaWRvIGNvbnNl
|
47
|
+
Z3VpcjwvdGl0bGU+IDxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PCEtLSAgLyoK
|
48
|
+
IFN0eWxlc2hlZXQgZm9yIFNxdWlkIEVycm9yIHBhZ2VzCiBBZGFwdGVkIGZy
|
49
|
+
b20gZGVzaWduIGJ5IEZyZWUgQ1NTIFRlbXBsYXRlcwogaHR0cDovL3d3dy5m
|
50
|
+
cmVlY3NzdGVtcGxhdGVzLm9yZwogUmVsZWFzZWQgZm9yIGZyZWUgdW5kZXIg
|
51
|
+
YSBDcmVhdGl2ZSBDb21tb25zIEF0dHJpYnV0aW9uIDIuNSBMaWNlbnNlCiov
|
52
|
+
CgovKiBQYWdlIGJhc2ljcyAqLwoqIHsKCWZvbnQtZmFtaWx5OiB2ZXJkYW5h
|
53
|
+
LCBzYW5zLXNlcmlmOwp9CgpodG1sIGJvZHkgewoJbWFyZ2luOiAwOwoJcGFk
|
54
|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!ruby/object:Gem::Specification
|
2
|
+
name: dubdubdub
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- James Hu
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-12-03 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.8.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.8.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: vcr
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.3.0
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.3.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: fakeweb
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.3.0
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: bundler
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: jeweler
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.8.4
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.4
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: pry
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
description: A library that provides web utility methods with proxification.
|
111
|
+
email: axsuul@gmail.com
|
112
|
+
executables: []
|
113
|
+
extensions: []
|
114
|
+
extra_rdoc_files:
|
115
|
+
- LICENSE.txt
|
116
|
+
- README.md
|
117
|
+
files:
|
118
|
+
- .rspec
|
119
|
+
- Gemfile
|
120
|
+
- Gemfile.lock
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.md
|
123
|
+
- Rakefile
|
124
|
+
- dubdubdub.gemspec
|
125
|
+
- lib/dubdubdub.rb
|
126
|
+
- lib/dubdubdub/client.rb
|
127
|
+
- lib/dubdubdub/exceptions.rb
|
128
|
+
- spec/dubdubdub_spec.rb
|
129
|
+
- spec/spec_helper.rb
|
130
|
+
- spec/support/vcr.rb
|
131
|
+
- spec/vcr/follow_url/alias_link.yml
|
132
|
+
- spec/vcr/follow_url/base.yml
|
133
|
+
- spec/vcr/follow_url/block_base_url.yml
|
134
|
+
- spec/vcr/follow_url/eoferror.yml
|
135
|
+
- spec/vcr/follow_url/https.yml
|
136
|
+
- spec/vcr/follow_url/pass_block.yml
|
137
|
+
- spec/vcr/follow_url/pass_block_iteration.yml
|
138
|
+
- spec/vcr/follow_url/proxied.yml
|
139
|
+
- spec/vcr/follow_url/proxy.yml
|
140
|
+
- spec/vcr/follow_url/proxy_forbidden.yml
|
141
|
+
homepage: http://github.com/axsuul/dubdubdub
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
segments:
|
155
|
+
- 0
|
156
|
+
hash: -3573896982270163900
|
157
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ! '>='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
163
|
+
requirements: []
|
164
|
+
rubyforge_project:
|
165
|
+
rubygems_version: 1.8.23
|
166
|
+
signing_key:
|
167
|
+
specification_version: 3
|
168
|
+
summary: Networking dubstep.
|
169
|
+
test_files: []
|