proxy_tester 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +27 -27
- data/Gemfile.lock +74 -60
- data/Rakefile +3 -0
- data/bin/proxy_tester +15 -15
- data/lib/proxy_tester/models/user.rb +4 -0
- data/lib/proxy_tester/version.rb +1 -1
- data/spec/user_spec.rb +11 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db1860166aeb11639d6da9a10869a8bf80484ee6
|
|
4
|
+
data.tar.gz: 25d29d04f70f693034b1d339b8f7eef0a0f879bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0eb429790cf7ba9151c759828e80487146f8fbf971873978418cbafff221e40bc0d7e1bdb45f8041d0631a88c7b0db6fdcbc3ea136b42660b77cdf23c652b9c
|
|
7
|
+
data.tar.gz: e219df45e695c7ab28108d27144d3d898dcb6b136a29c0a4ba1947a38184bf2eb9713a256b424571a3925f13f2ed55aba5dfe4e7da095a006f886f2b9db752b2
|
data/Gemfile
CHANGED
|
@@ -2,39 +2,39 @@ source 'https://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
4
|
|
|
5
|
-
group :test do
|
|
5
|
+
group :development, :test do
|
|
6
|
+
gem 'activesupport', require: false
|
|
7
|
+
gem 'aruba', require: false
|
|
8
|
+
gem 'awesome_print', require: 'ap'
|
|
9
|
+
gem 'bundler', require: false
|
|
6
10
|
gem 'capybara', require: 'capybara/rspec'
|
|
7
|
-
gem '
|
|
8
|
-
gem 'rspec', require: false
|
|
9
|
-
gem 'fuubar', require: false
|
|
10
|
-
gem 'simplecov'
|
|
11
|
+
gem 'coveralls', require: false
|
|
11
12
|
gem 'cucumber', require: false
|
|
12
|
-
gem '
|
|
13
|
+
gem 'database_cleaner'
|
|
14
|
+
gem 'erubis'
|
|
13
15
|
gem 'excon'
|
|
14
16
|
gem 'factory_girl'
|
|
15
|
-
gem '
|
|
16
|
-
gem '
|
|
17
|
+
gem 'fuubar', require: false
|
|
18
|
+
gem 'poltergeist', require: 'capybara/poltergeist'
|
|
19
|
+
gem 'rspec-legacy_formatters', require: false
|
|
20
|
+
gem 'rspec', require: false
|
|
21
|
+
gem 'rubocop', require: false
|
|
22
|
+
gem 'simplecov', require: false
|
|
23
|
+
gem 'versionomy', require: false
|
|
17
24
|
gem 'webmock', require: 'webmock/rspec'
|
|
18
|
-
end
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
gem '
|
|
22
|
-
gem '
|
|
23
|
-
gem 'pry-byebug', require: false
|
|
24
|
-
gem 'pry-doc', require: false
|
|
26
|
+
gem 'foreman', require: false
|
|
27
|
+
gem 'github-markup'
|
|
28
|
+
gem 'redcarpet', require: false
|
|
25
29
|
gem 'tmrb', require: false
|
|
26
30
|
gem 'yard', require: false
|
|
27
|
-
gem '
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
gem '
|
|
31
|
-
gem '
|
|
32
|
-
gem '
|
|
33
|
-
gem '
|
|
34
|
-
gem 'versionomy', group: [:development, :test], require: false
|
|
35
|
-
gem 'activesupport', '~> 4.0.0', group: [:development, :test], require: false
|
|
36
|
-
gem 'sinatra', group: [:development, :test]
|
|
37
|
-
gem 'foreman', group: [:development, :test], require: false
|
|
38
|
-
gem 'license_finder', group: [:development, :test], require: false
|
|
31
|
+
gem 'inch', require: false
|
|
32
|
+
gem 'license_finder'
|
|
33
|
+
gem 'filegen', require: false
|
|
34
|
+
gem 'travis-lint', require: false
|
|
35
|
+
gem 'command_exec', require: false
|
|
36
|
+
gem 'rake', require: false
|
|
37
|
+
gem 'launchy', require: false
|
|
39
38
|
|
|
40
|
-
gem '
|
|
39
|
+
gem 'fedux_org-stdlib', require: false
|
|
40
|
+
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
proxy_tester (0.1.
|
|
4
|
+
proxy_tester (0.1.9)
|
|
5
5
|
activerecord (~> 4.0)
|
|
6
6
|
activesupport (~> 4.0)
|
|
7
7
|
addressable
|
|
@@ -22,35 +22,31 @@ PATH
|
|
|
22
22
|
GEM
|
|
23
23
|
remote: https://rubygems.org/
|
|
24
24
|
specs:
|
|
25
|
-
activemodel (4.
|
|
26
|
-
activesupport (= 4.
|
|
27
|
-
builder (~> 3.1
|
|
28
|
-
activerecord (4.
|
|
29
|
-
activemodel (= 4.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
activerecord-deprecated_finders (1.0.3)
|
|
34
|
-
activesupport (4.0.8)
|
|
25
|
+
activemodel (4.1.5)
|
|
26
|
+
activesupport (= 4.1.5)
|
|
27
|
+
builder (~> 3.1)
|
|
28
|
+
activerecord (4.1.5)
|
|
29
|
+
activemodel (= 4.1.5)
|
|
30
|
+
activesupport (= 4.1.5)
|
|
31
|
+
arel (~> 5.0.0)
|
|
32
|
+
activesupport (4.1.5)
|
|
35
33
|
i18n (~> 0.6, >= 0.6.9)
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
json (~> 1.7, >= 1.7.7)
|
|
35
|
+
minitest (~> 5.1)
|
|
38
36
|
thread_safe (~> 0.1)
|
|
39
|
-
tzinfo (~>
|
|
37
|
+
tzinfo (~> 1.1)
|
|
40
38
|
addressable (2.3.6)
|
|
41
39
|
aes (0.5.0)
|
|
42
|
-
arel (
|
|
40
|
+
arel (5.0.1.20140414130214)
|
|
43
41
|
armor (0.0.3)
|
|
44
42
|
aruba (0.6.0)
|
|
45
43
|
childprocess (>= 0.3.6)
|
|
46
44
|
cucumber (>= 1.1.1)
|
|
47
45
|
rspec-expectations (>= 2.7.0)
|
|
46
|
+
ast (2.0.0)
|
|
48
47
|
awesome_print (1.2.0)
|
|
49
48
|
blockenspiel (0.4.5)
|
|
50
|
-
builder (3.
|
|
51
|
-
byebug (2.7.0)
|
|
52
|
-
columnize (~> 0.3)
|
|
53
|
-
debugger-linecache (~> 1.2)
|
|
49
|
+
builder (3.2.2)
|
|
54
50
|
capybara (2.4.1)
|
|
55
51
|
mime-types (>= 1.16)
|
|
56
52
|
nokogiri (>= 1.3.3)
|
|
@@ -61,8 +57,11 @@ GEM
|
|
|
61
57
|
ffi (~> 1.0, >= 1.0.11)
|
|
62
58
|
cliver (0.3.2)
|
|
63
59
|
coderay (1.1.0)
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
command_exec (0.2.0)
|
|
61
|
+
activesupport
|
|
62
|
+
smart_colored
|
|
63
|
+
xml-simple
|
|
64
|
+
coveralls (0.7.1)
|
|
66
65
|
multi_json (~> 1.3)
|
|
67
66
|
rest-client
|
|
68
67
|
simplecov (>= 0.7)
|
|
@@ -75,24 +74,23 @@ GEM
|
|
|
75
74
|
activesupport (>= 3.1, < 4.2)
|
|
76
75
|
aes (~> 0.5.0)
|
|
77
76
|
armor (~> 0.0.2)
|
|
78
|
-
cucumber (1.3.
|
|
77
|
+
cucumber (1.3.16)
|
|
79
78
|
builder (>= 2.1.2)
|
|
80
79
|
diff-lcs (>= 1.1.3)
|
|
81
80
|
gherkin (~> 2.12)
|
|
82
81
|
multi_json (>= 1.7.5, < 2.0)
|
|
83
82
|
multi_test (>= 0.1.1)
|
|
84
83
|
database_cleaner (1.3.0)
|
|
85
|
-
debugger-linecache (1.2.0)
|
|
86
84
|
diff-lcs (1.2.5)
|
|
87
85
|
docile (1.1.5)
|
|
88
86
|
dotenv (0.11.1)
|
|
89
87
|
dotenv-deployment (~> 0.0.2)
|
|
90
88
|
dotenv-deployment (0.0.2)
|
|
91
89
|
erubis (2.7.0)
|
|
92
|
-
excon (0.
|
|
90
|
+
excon (0.39.5)
|
|
93
91
|
factory_girl (4.4.0)
|
|
94
92
|
activesupport (>= 3.0.0)
|
|
95
|
-
fedux_org-stdlib (0.
|
|
93
|
+
fedux_org-stdlib (0.7.8)
|
|
96
94
|
activesupport
|
|
97
95
|
ffi (1.9.3)
|
|
98
96
|
filegen (0.4.3)
|
|
@@ -100,19 +98,28 @@ GEM
|
|
|
100
98
|
foreman (0.74.0)
|
|
101
99
|
dotenv (~> 0.11.1)
|
|
102
100
|
thor (~> 0.19.1)
|
|
103
|
-
fuubar (2.0.0
|
|
104
|
-
rspec (~> 3.0
|
|
101
|
+
fuubar (2.0.0)
|
|
102
|
+
rspec (~> 3.0)
|
|
105
103
|
ruby-progressbar (~> 1.4)
|
|
106
104
|
gherkin (2.12.2)
|
|
107
105
|
multi_json (~> 1.3)
|
|
106
|
+
github-markup (1.2.1)
|
|
107
|
+
posix-spawn (~> 0.3.8)
|
|
108
108
|
highline (1.6.21)
|
|
109
109
|
httparty (0.13.1)
|
|
110
110
|
json (~> 1.8)
|
|
111
111
|
multi_xml (>= 0.5.2)
|
|
112
112
|
i18n (0.6.11)
|
|
113
|
+
inch (0.4.10)
|
|
114
|
+
pry
|
|
115
|
+
sparkr (>= 0.2.0)
|
|
116
|
+
term-ansicolor
|
|
117
|
+
yard (~> 0.8.7)
|
|
113
118
|
json (1.8.1)
|
|
119
|
+
launchy (2.4.2)
|
|
120
|
+
addressable (~> 2.3)
|
|
114
121
|
libv8 (3.16.14.3)
|
|
115
|
-
license_finder (1.1.
|
|
122
|
+
license_finder (1.1.1)
|
|
116
123
|
bundler
|
|
117
124
|
httparty
|
|
118
125
|
sequel
|
|
@@ -122,37 +129,36 @@ GEM
|
|
|
122
129
|
method_source (0.8.2)
|
|
123
130
|
mime-types (2.3)
|
|
124
131
|
mini_portile (0.6.0)
|
|
125
|
-
minitest (4.
|
|
132
|
+
minitest (5.4.0)
|
|
126
133
|
multi_json (1.10.1)
|
|
127
134
|
multi_test (0.1.1)
|
|
128
135
|
multi_xml (0.5.5)
|
|
129
136
|
netrc (0.7.7)
|
|
130
|
-
nokogiri (1.6.
|
|
137
|
+
nokogiri (1.6.3.1)
|
|
131
138
|
mini_portile (= 0.6.0)
|
|
139
|
+
parser (2.2.0.pre.4)
|
|
140
|
+
ast (>= 1.1, < 3.0)
|
|
141
|
+
slop (~> 3.4, >= 3.4.5)
|
|
132
142
|
poltergeist (1.5.1)
|
|
133
143
|
capybara (~> 2.1)
|
|
134
144
|
cliver (~> 0.3.1)
|
|
135
145
|
multi_json (~> 1.0)
|
|
136
146
|
websocket-driver (>= 0.2.0)
|
|
147
|
+
posix-spawn (0.3.9)
|
|
148
|
+
powerpack (0.0.9)
|
|
137
149
|
proxy_pac_rb (0.2.6)
|
|
138
150
|
activesupport
|
|
139
151
|
addressable
|
|
140
|
-
pry (0.10.
|
|
152
|
+
pry (0.10.1)
|
|
141
153
|
coderay (~> 1.1.0)
|
|
142
154
|
method_source (~> 0.8.1)
|
|
143
155
|
slop (~> 3.4)
|
|
144
|
-
pry-byebug (1.3.3)
|
|
145
|
-
byebug (~> 2.7)
|
|
146
|
-
pry (~> 0.10)
|
|
147
|
-
pry-doc (0.6.0)
|
|
148
|
-
pry (~> 0.9)
|
|
149
|
-
yard (~> 0.8)
|
|
150
156
|
rack (1.5.2)
|
|
151
|
-
rack-protection (1.5.3)
|
|
152
|
-
rack
|
|
153
157
|
rack-test (0.6.2)
|
|
154
158
|
rack (>= 1.0)
|
|
159
|
+
rainbow (2.0.0)
|
|
155
160
|
rake (10.3.2)
|
|
161
|
+
redcarpet (3.1.2)
|
|
156
162
|
ref (1.0.5)
|
|
157
163
|
rest-client (1.7.2)
|
|
158
164
|
mime-types (>= 1.16, < 3.0)
|
|
@@ -161,31 +167,34 @@ GEM
|
|
|
161
167
|
rspec-core (~> 3.0.0)
|
|
162
168
|
rspec-expectations (~> 3.0.0)
|
|
163
169
|
rspec-mocks (~> 3.0.0)
|
|
164
|
-
rspec-core (3.0.
|
|
170
|
+
rspec-core (3.0.4)
|
|
165
171
|
rspec-support (~> 3.0.0)
|
|
166
|
-
rspec-expectations (3.0.
|
|
172
|
+
rspec-expectations (3.0.4)
|
|
167
173
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
168
174
|
rspec-support (~> 3.0.0)
|
|
169
175
|
rspec-legacy_formatters (1.0.0)
|
|
170
176
|
rspec-core (>= 3.0.0.beta2)
|
|
171
177
|
rspec-support (>= 3.0.0.beta2)
|
|
172
|
-
rspec-mocks (3.0.
|
|
178
|
+
rspec-mocks (3.0.4)
|
|
173
179
|
rspec-support (~> 3.0.0)
|
|
174
|
-
rspec-support (3.0.
|
|
180
|
+
rspec-support (3.0.4)
|
|
181
|
+
rubocop (0.25.0)
|
|
182
|
+
parser (>= 2.2.0.pre.4, < 3.0)
|
|
183
|
+
powerpack (~> 0.0.6)
|
|
184
|
+
rainbow (>= 1.99.1, < 3.0)
|
|
185
|
+
ruby-progressbar (~> 1.4)
|
|
175
186
|
ruby-progressbar (1.5.1)
|
|
176
187
|
rugged (0.21.0)
|
|
177
188
|
safe_yaml (1.0.3)
|
|
178
|
-
sequel (4.
|
|
179
|
-
simplecov (0.
|
|
189
|
+
sequel (4.13.0)
|
|
190
|
+
simplecov (0.9.0)
|
|
180
191
|
docile (~> 1.1.0)
|
|
181
192
|
multi_json
|
|
182
193
|
simplecov-html (~> 0.8.0)
|
|
183
194
|
simplecov-html (0.8.0)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
tilt (~> 1.3, >= 1.3.4)
|
|
188
|
-
slop (3.5.0)
|
|
195
|
+
slop (3.6.0)
|
|
196
|
+
smart_colored (1.1.1)
|
|
197
|
+
sparkr (0.4.1)
|
|
189
198
|
sqlite3 (1.3.9)
|
|
190
199
|
term-ansicolor (1.3.0)
|
|
191
200
|
tins (~> 1.0)
|
|
@@ -194,11 +203,13 @@ GEM
|
|
|
194
203
|
ref
|
|
195
204
|
thor (0.19.1)
|
|
196
205
|
thread_safe (0.3.4)
|
|
197
|
-
|
|
198
|
-
tins (1.3.0)
|
|
206
|
+
tins (1.3.1)
|
|
199
207
|
tmrb (1.2.7)
|
|
200
208
|
thor
|
|
201
|
-
|
|
209
|
+
travis-lint (2.0.0)
|
|
210
|
+
json
|
|
211
|
+
tzinfo (1.2.2)
|
|
212
|
+
thread_safe (~> 0.1)
|
|
202
213
|
versionomy (0.4.4)
|
|
203
214
|
blockenspiel (>= 0.4.5)
|
|
204
215
|
webmock (1.18.0)
|
|
@@ -214,12 +225,12 @@ PLATFORMS
|
|
|
214
225
|
ruby
|
|
215
226
|
|
|
216
227
|
DEPENDENCIES
|
|
217
|
-
activesupport
|
|
228
|
+
activesupport
|
|
218
229
|
aruba
|
|
219
230
|
awesome_print
|
|
220
|
-
bundler
|
|
221
|
-
byebug
|
|
231
|
+
bundler
|
|
222
232
|
capybara
|
|
233
|
+
command_exec
|
|
223
234
|
coveralls
|
|
224
235
|
cucumber
|
|
225
236
|
database_cleaner
|
|
@@ -230,17 +241,20 @@ DEPENDENCIES
|
|
|
230
241
|
filegen
|
|
231
242
|
foreman
|
|
232
243
|
fuubar
|
|
244
|
+
github-markup
|
|
245
|
+
inch
|
|
246
|
+
launchy
|
|
233
247
|
license_finder
|
|
234
248
|
poltergeist
|
|
235
249
|
proxy_tester!
|
|
236
|
-
pry
|
|
237
|
-
pry-byebug
|
|
238
|
-
pry-doc
|
|
239
250
|
rake
|
|
251
|
+
redcarpet
|
|
240
252
|
rspec
|
|
253
|
+
rspec-legacy_formatters
|
|
254
|
+
rubocop
|
|
241
255
|
simplecov
|
|
242
|
-
sinatra
|
|
243
256
|
tmrb
|
|
257
|
+
travis-lint
|
|
244
258
|
versionomy
|
|
245
259
|
webmock
|
|
246
260
|
yard
|
data/Rakefile
CHANGED
data/bin/proxy_tester
CHANGED
|
@@ -4,19 +4,19 @@ $LOAD_PATH << ::File.expand_path('../lib', __FILE__)
|
|
|
4
4
|
|
|
5
5
|
require 'proxy_tester'
|
|
6
6
|
|
|
7
|
-
begin
|
|
7
|
+
#begin
|
|
8
8
|
ProxyTester::Cli::Main.start
|
|
9
|
-
rescue StandardError => e
|
|
10
|
-
ProxyTester::Actions::HandleError.new(e).run
|
|
11
|
-
rescue Interrupt => e
|
|
12
|
-
ProxyTester::Actions::HandleError.new(e).run
|
|
13
|
-
rescue SignalException => e
|
|
14
|
-
exception = case e.signm
|
|
15
|
-
when 'SIGTERM'
|
|
16
|
-
ProxyTester::Exceptions::SIGTERM.new(e.message)
|
|
17
|
-
else
|
|
18
|
-
e
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
ProxyTester::Actions::HandleError.new(exception).run
|
|
22
|
-
end
|
|
9
|
+
#rescue StandardError => e
|
|
10
|
+
# ProxyTester::Actions::HandleError.new(e).run
|
|
11
|
+
#rescue Interrupt => e
|
|
12
|
+
# ProxyTester::Actions::HandleError.new(e).run
|
|
13
|
+
#rescue SignalException => e
|
|
14
|
+
# exception = case e.signm
|
|
15
|
+
# when 'SIGTERM'
|
|
16
|
+
# ProxyTester::Exceptions::SIGTERM.new(e.message)
|
|
17
|
+
# else
|
|
18
|
+
# e
|
|
19
|
+
# end
|
|
20
|
+
#
|
|
21
|
+
# ProxyTester::Actions::HandleError.new(exception).run
|
|
22
|
+
#end
|
data/lib/proxy_tester/version.rb
CHANGED
data/spec/user_spec.rb
CHANGED
|
@@ -50,7 +50,7 @@ describe User do
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
context '#
|
|
53
|
+
context '#to_login' do
|
|
54
54
|
it 'returns the user as textual representation in cleartext' do
|
|
55
55
|
user = create(:user,
|
|
56
56
|
name: 'name',
|
|
@@ -67,4 +67,14 @@ describe User do
|
|
|
67
67
|
expect(user.to_login).to eq('name:\*\*\*\*')
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
|
+
|
|
71
|
+
context '#to_string' do
|
|
72
|
+
it 'returns the user as textual representation in cleartext' do
|
|
73
|
+
user = create(:user,
|
|
74
|
+
name: 'name',
|
|
75
|
+
password: 'password',
|
|
76
|
+
)
|
|
77
|
+
expect(user.to_string).to eq('name')
|
|
78
|
+
end
|
|
79
|
+
end
|
|
70
80
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: proxy_tester
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dennis Günnewig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
391
391
|
version: '0'
|
|
392
392
|
requirements: []
|
|
393
393
|
rubyforge_project:
|
|
394
|
-
rubygems_version: 2.
|
|
394
|
+
rubygems_version: 2.4.1
|
|
395
395
|
signing_key:
|
|
396
396
|
specification_version: 4
|
|
397
397
|
summary: Test proxies
|