proxy_tester 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/.gitignore +22 -0
  2. data/.rdebugrc +7 -0
  3. data/.rspec +3 -0
  4. data/.simplecov +8 -0
  5. data/Gemfile +37 -0
  6. data/Gemfile.lock +199 -0
  7. data/LICENSE.txt +22 -0
  8. data/Procfile +1 -0
  9. data/README.md +582 -0
  10. data/Rakefile +64 -0
  11. data/bin/proxy_tester +11 -0
  12. data/db/migrate/20140314_create_environment.rb +8 -0
  13. data/files/config.yaml +1 -0
  14. data/files/example-config.erb +12 -0
  15. data/files/example-spec_helper.rb.erb +23 -0
  16. data/files/example-test_case.rb.erb +27 -0
  17. data/files/example-test_cases-gemfile.rb.erb +9 -0
  18. data/files/example-user_file.erb +4 -0
  19. data/lib/proxy_tester/actions/add_examples_to_test_cases_directory.rb +125 -0
  20. data/lib/proxy_tester/actions/clone_repository.rb +39 -0
  21. data/lib/proxy_tester/actions/create_directory.rb +33 -0
  22. data/lib/proxy_tester/actions/create_file.rb +55 -0
  23. data/lib/proxy_tester/actions/create_output.rb +36 -0
  24. data/lib/proxy_tester/actions/handle_error.rb +37 -0
  25. data/lib/proxy_tester/actions/initialize_application.rb +70 -0
  26. data/lib/proxy_tester/actions/show_config.rb +10 -0
  27. data/lib/proxy_tester/capybara_proxy.rb +54 -0
  28. data/lib/proxy_tester/capybara_proxy_pac.rb +62 -0
  29. data/lib/proxy_tester/cli/main.rb +59 -0
  30. data/lib/proxy_tester/config.rb +100 -0
  31. data/lib/proxy_tester/data.rb +23 -0
  32. data/lib/proxy_tester/database_session.rb +15 -0
  33. data/lib/proxy_tester/environment.rb +21 -0
  34. data/lib/proxy_tester/erb_generator.rb +34 -0
  35. data/lib/proxy_tester/error_handler.rb +107 -0
  36. data/lib/proxy_tester/error_messages.rb +82 -0
  37. data/lib/proxy_tester/exceptions.rb +53 -0
  38. data/lib/proxy_tester/git_file.rb +31 -0
  39. data/lib/proxy_tester/git_null_file.rb +32 -0
  40. data/lib/proxy_tester/git_repository.rb +120 -0
  41. data/lib/proxy_tester/handle_error.rb +37 -0
  42. data/lib/proxy_tester/locales/en-rails.yml +205 -0
  43. data/lib/proxy_tester/locales/en.yml +42 -0
  44. data/lib/proxy_tester/main.rb +46 -0
  45. data/lib/proxy_tester/models/user.rb +17 -0
  46. data/lib/proxy_tester/pac_result.rb +50 -0
  47. data/lib/proxy_tester/rspec/helper.rb +211 -0
  48. data/lib/proxy_tester/rspec_runner.rb +43 -0
  49. data/lib/proxy_tester/template_file.rb +19 -0
  50. data/lib/proxy_tester/template_repository.rb +22 -0
  51. data/lib/proxy_tester/ui_logger.rb +30 -0
  52. data/lib/proxy_tester/user_database.rb +24 -0
  53. data/lib/proxy_tester/version.rb +3 -0
  54. data/lib/proxy_tester.rb +54 -0
  55. data/proxy_tester.gemspec +34 -0
  56. data/script/acceptance_test +4 -0
  57. data/script/bootstrap +56 -0
  58. data/script/ci +3 -0
  59. data/script/console +14 -0
  60. data/script/release +3 -0
  61. data/script/test_web +22 -0
  62. data/script/unit_test +3 -0
  63. data/spec/actions/add_examples_to_test_cases_directory_spec.rb +52 -0
  64. data/spec/actions/clone_repository_spec.rb +83 -0
  65. data/spec/actions/create_directory_spec.rb +59 -0
  66. data/spec/actions/create_file_spec.rb +139 -0
  67. data/spec/actions/create_output_spec.rb +46 -0
  68. data/spec/actions/handle_error_spec.rb +74 -0
  69. data/spec/actions/initialize_application_spec.rb +40 -0
  70. data/spec/actions/show_config_spec.rb +22 -0
  71. data/spec/capybara_proxy_pac_spec.rb +42 -0
  72. data/spec/capybara_proxy_spec.rb +76 -0
  73. data/spec/config_spec.rb +86 -0
  74. data/spec/data_spec.rb +34 -0
  75. data/spec/environment_spec.rb +25 -0
  76. data/spec/erb_generator_spec.rb +31 -0
  77. data/spec/examples/proxy.pac +7 -0
  78. data/spec/factories.rb +8 -0
  79. data/spec/features/check_ssl_sites_spec.rb +8 -0
  80. data/spec/git_file_spec.rb +46 -0
  81. data/spec/git_repository_spec.rb +111 -0
  82. data/spec/main_spec.rb +25 -0
  83. data/spec/pac_result_spec.rb +20 -0
  84. data/spec/proxy_tester_spec_helper_spec.rb +137 -0
  85. data/spec/rspec_runner_spec.rb +29 -0
  86. data/spec/spec_helper.rb +15 -0
  87. data/spec/support/capybara.rb +11 -0
  88. data/spec/support/database_cleaner.rb +14 -0
  89. data/spec/support/debugging.rb +3 -0
  90. data/spec/support/environment.rb +33 -0
  91. data/spec/support/example.rb +16 -0
  92. data/spec/support/factory_girl.rb +15 -0
  93. data/spec/support/filesystem.rb +19 -0
  94. data/spec/support/helper_features.rb +31 -0
  95. data/spec/support/matcher.rb +17 -0
  96. data/spec/support/reporting.rb +1 -0
  97. data/spec/support/rspec.rb +5 -0
  98. data/spec/support/string.rb +2 -0
  99. data/spec/template_file_spec.rb +25 -0
  100. data/spec/template_repository_spec.rb +44 -0
  101. data/spec/user_database_spec.rb +63 -0
  102. data/spec/user_spec.rb +62 -0
  103. metadata +398 -0
metadata ADDED
@@ -0,0 +1,398 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: proxy_tester
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dennis Günnewig
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-03-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activerecord
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '4.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '4.0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '4.0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '4.0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sqlite3
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: crypt_keeper
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
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: rspec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: fuubar
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
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
+ - !ruby/object:Gem::Dependency
111
+ name: thor
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: i18n
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: rugged
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: addressable
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: poltergeist
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :runtime
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ - !ruby/object:Gem::Dependency
191
+ name: proxy_pac_rb
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ~>
196
+ - !ruby/object:Gem::Version
197
+ version: 0.2.5
198
+ type: :runtime
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ~>
204
+ - !ruby/object:Gem::Version
205
+ version: 0.2.5
206
+ - !ruby/object:Gem::Dependency
207
+ name: therubyracer
208
+ requirement: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ type: :runtime
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ description: Test proxies to be sure it works
223
+ email:
224
+ - dg1@vrnetze.de
225
+ executables:
226
+ - proxy_tester
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - .gitignore
231
+ - .rdebugrc
232
+ - .rspec
233
+ - .simplecov
234
+ - Gemfile
235
+ - Gemfile.lock
236
+ - LICENSE.txt
237
+ - Procfile
238
+ - README.md
239
+ - Rakefile
240
+ - bin/proxy_tester
241
+ - db/migrate/20140314_create_environment.rb
242
+ - files/config.yaml
243
+ - files/example-config.erb
244
+ - files/example-spec_helper.rb.erb
245
+ - files/example-test_case.rb.erb
246
+ - files/example-test_cases-gemfile.rb.erb
247
+ - files/example-user_file.erb
248
+ - lib/proxy_tester.rb
249
+ - lib/proxy_tester/actions/add_examples_to_test_cases_directory.rb
250
+ - lib/proxy_tester/actions/clone_repository.rb
251
+ - lib/proxy_tester/actions/create_directory.rb
252
+ - lib/proxy_tester/actions/create_file.rb
253
+ - lib/proxy_tester/actions/create_output.rb
254
+ - lib/proxy_tester/actions/handle_error.rb
255
+ - lib/proxy_tester/actions/initialize_application.rb
256
+ - lib/proxy_tester/actions/show_config.rb
257
+ - lib/proxy_tester/capybara_proxy.rb
258
+ - lib/proxy_tester/capybara_proxy_pac.rb
259
+ - lib/proxy_tester/cli/main.rb
260
+ - lib/proxy_tester/config.rb
261
+ - lib/proxy_tester/data.rb
262
+ - lib/proxy_tester/database_session.rb
263
+ - lib/proxy_tester/environment.rb
264
+ - lib/proxy_tester/erb_generator.rb
265
+ - lib/proxy_tester/error_handler.rb
266
+ - lib/proxy_tester/error_messages.rb
267
+ - lib/proxy_tester/exceptions.rb
268
+ - lib/proxy_tester/git_file.rb
269
+ - lib/proxy_tester/git_null_file.rb
270
+ - lib/proxy_tester/git_repository.rb
271
+ - lib/proxy_tester/handle_error.rb
272
+ - lib/proxy_tester/locales/en-rails.yml
273
+ - lib/proxy_tester/locales/en.yml
274
+ - lib/proxy_tester/main.rb
275
+ - lib/proxy_tester/models/user.rb
276
+ - lib/proxy_tester/pac_result.rb
277
+ - lib/proxy_tester/rspec/helper.rb
278
+ - lib/proxy_tester/rspec_runner.rb
279
+ - lib/proxy_tester/template_file.rb
280
+ - lib/proxy_tester/template_repository.rb
281
+ - lib/proxy_tester/ui_logger.rb
282
+ - lib/proxy_tester/user_database.rb
283
+ - lib/proxy_tester/version.rb
284
+ - proxy_tester.gemspec
285
+ - script/acceptance_test
286
+ - script/bootstrap
287
+ - script/ci
288
+ - script/console
289
+ - script/release
290
+ - script/test_web
291
+ - script/unit_test
292
+ - spec/actions/add_examples_to_test_cases_directory_spec.rb
293
+ - spec/actions/clone_repository_spec.rb
294
+ - spec/actions/create_directory_spec.rb
295
+ - spec/actions/create_file_spec.rb
296
+ - spec/actions/create_output_spec.rb
297
+ - spec/actions/handle_error_spec.rb
298
+ - spec/actions/initialize_application_spec.rb
299
+ - spec/actions/show_config_spec.rb
300
+ - spec/capybara_proxy_pac_spec.rb
301
+ - spec/capybara_proxy_spec.rb
302
+ - spec/config_spec.rb
303
+ - spec/data_spec.rb
304
+ - spec/environment_spec.rb
305
+ - spec/erb_generator_spec.rb
306
+ - spec/examples/proxy.pac
307
+ - spec/factories.rb
308
+ - spec/features/check_ssl_sites_spec.rb
309
+ - spec/git_file_spec.rb
310
+ - spec/git_repository_spec.rb
311
+ - spec/main_spec.rb
312
+ - spec/pac_result_spec.rb
313
+ - spec/proxy_tester_spec_helper_spec.rb
314
+ - spec/rspec_runner_spec.rb
315
+ - spec/spec_helper.rb
316
+ - spec/support/capybara.rb
317
+ - spec/support/database_cleaner.rb
318
+ - spec/support/debugging.rb
319
+ - spec/support/environment.rb
320
+ - spec/support/example.rb
321
+ - spec/support/factory_girl.rb
322
+ - spec/support/filesystem.rb
323
+ - spec/support/helper_features.rb
324
+ - spec/support/matcher.rb
325
+ - spec/support/reporting.rb
326
+ - spec/support/rspec.rb
327
+ - spec/support/string.rb
328
+ - spec/template_file_spec.rb
329
+ - spec/template_repository_spec.rb
330
+ - spec/user_database_spec.rb
331
+ - spec/user_spec.rb
332
+ homepage:
333
+ licenses:
334
+ - MIT
335
+ post_install_message:
336
+ rdoc_options: []
337
+ require_paths:
338
+ - lib
339
+ required_ruby_version: !ruby/object:Gem::Requirement
340
+ none: false
341
+ requirements:
342
+ - - ! '>='
343
+ - !ruby/object:Gem::Version
344
+ version: '0'
345
+ required_rubygems_version: !ruby/object:Gem::Requirement
346
+ none: false
347
+ requirements:
348
+ - - ! '>='
349
+ - !ruby/object:Gem::Version
350
+ version: '0'
351
+ requirements: []
352
+ rubyforge_project:
353
+ rubygems_version: 1.8.23
354
+ signing_key:
355
+ specification_version: 3
356
+ summary: Test proxies
357
+ test_files:
358
+ - spec/actions/add_examples_to_test_cases_directory_spec.rb
359
+ - spec/actions/clone_repository_spec.rb
360
+ - spec/actions/create_directory_spec.rb
361
+ - spec/actions/create_file_spec.rb
362
+ - spec/actions/create_output_spec.rb
363
+ - spec/actions/handle_error_spec.rb
364
+ - spec/actions/initialize_application_spec.rb
365
+ - spec/actions/show_config_spec.rb
366
+ - spec/capybara_proxy_pac_spec.rb
367
+ - spec/capybara_proxy_spec.rb
368
+ - spec/config_spec.rb
369
+ - spec/data_spec.rb
370
+ - spec/environment_spec.rb
371
+ - spec/erb_generator_spec.rb
372
+ - spec/examples/proxy.pac
373
+ - spec/factories.rb
374
+ - spec/features/check_ssl_sites_spec.rb
375
+ - spec/git_file_spec.rb
376
+ - spec/git_repository_spec.rb
377
+ - spec/main_spec.rb
378
+ - spec/pac_result_spec.rb
379
+ - spec/proxy_tester_spec_helper_spec.rb
380
+ - spec/rspec_runner_spec.rb
381
+ - spec/spec_helper.rb
382
+ - spec/support/capybara.rb
383
+ - spec/support/database_cleaner.rb
384
+ - spec/support/debugging.rb
385
+ - spec/support/environment.rb
386
+ - spec/support/example.rb
387
+ - spec/support/factory_girl.rb
388
+ - spec/support/filesystem.rb
389
+ - spec/support/helper_features.rb
390
+ - spec/support/matcher.rb
391
+ - spec/support/reporting.rb
392
+ - spec/support/rspec.rb
393
+ - spec/support/string.rb
394
+ - spec/template_file_spec.rb
395
+ - spec/template_repository_spec.rb
396
+ - spec/user_database_spec.rb
397
+ - spec/user_spec.rb
398
+ has_rdoc: