logstash-output-scalyr 0.1.4 → 0.1.9
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/CHANGELOG.md +26 -0
- data/Gemfile +1 -0
- data/README.md +64 -5
- data/lib/logstash/outputs/scalyr.rb +165 -22
- data/lib/scalyr/common/client.rb +66 -18
- data/logstash-output-scalyr.gemspec +2 -1
- data/spec/benchmarks/flattening_and_serialization.rb +125 -0
- data/spec/benchmarks/metrics_overhead.rb +48 -0
- data/spec/logstash/outputs/scalyr_integration_spec.rb +77 -0
- data/spec/logstash/outputs/scalyr_spec.rb +172 -3
- data/vendor/bundle/jruby/2.5.0/bin/htmldiff +1 -1
- data/vendor/bundle/jruby/2.5.0/bin/ldiff +1 -1
- data/vendor/bundle/jruby/2.5.0/cache/connection_pool-2.2.5.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/net-http-persistent-4.0.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/quantile-0.2.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/Changes.md +11 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.2 → connection_pool-2.2.5}/Gemfile +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.2 → connection_pool-2.2.5}/LICENSE +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/README.md +29 -5
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/Rakefile +0 -1
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/connection_pool.gemspec +1 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/lib/connection_pool.rb +16 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/lib/connection_pool/timed_stack.rb +9 -5
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.2 → connection_pool-2.2.5}/lib/connection_pool/version.rb +1 -1
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/lib/connection_pool/wrapper.rb +17 -3
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/test/helper.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/test/test_connection_pool.rb +16 -2
- data/vendor/bundle/jruby/2.5.0/gems/{connection_pool-2.2.3 → connection_pool-2.2.5}/test/test_connection_pool_timed_stack.rb +10 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/Gemfile +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/History.txt +6 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/Manifest.txt +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/README.rdoc +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/Rakefile +1 -1
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/lib/net/http/persistent.rb +1 -1
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-3.0.1 → net-http-persistent-4.0.1}/lib/net/http/persistent/connection.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/lib/net/http/persistent/pool.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/lib/net/http/persistent/timed_stack_multi.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-4.0.0 → net-http-persistent-4.0.1}/test/test_net_http_persistent.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/{net-http-persistent-3.0.1 → net-http-persistent-4.0.1}/test/test_net_http_persistent_timed_stack_multi.rb +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/LICENSE +191 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/README.md +55 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/lib/quantile.rb +17 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/lib/quantile/estimator.rb +186 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/lib/quantile/quantile.rb +66 -0
- data/vendor/bundle/jruby/2.5.0/gems/quantile-0.2.1/lib/quantile/version.rb +16 -0
- data/vendor/bundle/jruby/2.5.0/specifications/{connection_pool-2.2.2.gemspec → connection_pool-2.2.5.gemspec} +4 -3
- data/vendor/bundle/jruby/2.5.0/specifications/{net-http-persistent-4.0.0.gemspec → net-http-persistent-4.0.1.gemspec} +4 -5
- data/vendor/bundle/jruby/2.5.0/specifications/quantile-0.2.1.gemspec +20 -0
- metadata +60 -743
- data/vendor/bundle/jruby/2.5.0/bin/jruby_executable_hooks +0 -25
- data/vendor/bundle/jruby/2.5.0/cache/concurrent-ruby-1.1.6.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/connection_pool-2.2.2.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/connection_pool-2.2.3.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/faraday-1.0.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/ffi-1.12.2-java.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/jrjackson-0.4.12-java.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/multi_json-1.14.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/net-http-persistent-3.0.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/net-http-persistent-4.0.0.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rake-13.0.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rspec-3.9.0.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rspec-core-3.9.2.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rspec-expectations-3.9.2.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rspec-mocks-3.9.1.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/rspec-support-3.9.3.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/tempfile-0.1.0.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/cache/tilt-2.0.10.gem +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/CHANGELOG.md +0 -502
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/Gemfile +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/LICENSE.md +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/README.md +0 -384
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/Rakefile +0 -332
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/ConcurrentRubyService.java +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/AtomicReferenceLibrary.java +0 -175
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/JRubyMapBackendLibrary.java +0 -248
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicBooleanLibrary.java +0 -93
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaAtomicFixnumLibrary.java +0 -113
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/JavaSemaphoreLibrary.java +0 -159
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/SynchronizationLibrary.java +0 -307
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMap.java +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/ConcurrentHashMapV8.java +0 -3863
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/LongAdder.java +0 -203
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/Striped64.java +0 -342
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/ConcurrentHashMapV8.java +0 -3800
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/LongAdder.java +0 -204
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166e/nounsafe/Striped64.java +0 -291
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/ext/concurrent-ruby/com/concurrent_ruby/ext/jsr166y/ThreadLocalRandom.java +0 -199
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent-ruby.rb +0 -1
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/agent.rb +0 -587
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/array.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/async.rb +0 -459
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atom.rb +0 -222
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/abstract_thread_local_var.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb +0 -126
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb +0 -143
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb +0 -164
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb +0 -204
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb +0 -100
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb +0 -128
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/event.rb +0 -109
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/java_count_down_latch.rb +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/java_thread_local_var.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb +0 -62
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb +0 -44
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb +0 -115
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb +0 -254
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb +0 -379
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/ruby_thread_local_var.rb +0 -171
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/semaphore.rb +0 -145
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb +0 -104
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb +0 -56
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb +0 -28
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/atomics.rb +0 -10
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb +0 -107
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb +0 -111
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/java_non_concurrent_priority_queue.rb +0 -84
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb +0 -158
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/map/atomic_reference_map_backend.rb +0 -927
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/map/mri_map_backend.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb +0 -140
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/map/synchronized_map_backend.rb +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb +0 -143
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb +0 -150
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concern/deprecation.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concern/dereferenceable.rb +0 -73
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concern/logging.rb +0 -32
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concern/obligation.rb +0 -220
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concern/observable.rb +0 -110
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/concurrent_ruby.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/configuration.rb +0 -188
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/constants.rb +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/dataflow.rb +0 -81
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/delay.rb +0 -199
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/errors.rb +0 -69
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/exchanger.rb +0 -352
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb +0 -128
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb +0 -62
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/executor_service.rb +0 -185
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb +0 -203
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/immediate_executor.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb +0 -44
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/java_executor_service.rb +0 -103
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/java_single_thread_executor.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/java_thread_pool_executor.rb +0 -124
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb +0 -76
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb +0 -367
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb +0 -35
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/serialized_execution.rb +0 -107
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb +0 -28
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb +0 -100
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb +0 -57
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb +0 -87
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executor/timer_set.rb +0 -172
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/executors.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/future.rb +0 -141
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/hash.rb +0 -59
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/immutable_struct.rb +0 -101
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/ivar.rb +0 -207
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/map.rb +0 -337
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/maybe.rb +0 -229
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/mutable_struct.rb +0 -239
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/mvar.rb +0 -242
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/options.rb +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/promise.rb +0 -579
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/promises.rb +0 -2167
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/re_include.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/scheduled_task.rb +0 -318
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/set.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/settable_struct.rb +0 -139
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/abstract_lockable_object.rb +0 -98
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/abstract_object.rb +0 -24
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb +0 -171
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/condition.rb +0 -60
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/jruby_lockable_object.rb +0 -13
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/jruby_object.rb +0 -45
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/lock.rb +0 -36
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/lockable_object.rb +0 -74
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/mri_object.rb +0 -44
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb +0 -76
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/object.rb +0 -183
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/rbx_lockable_object.rb +0 -65
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/rbx_object.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/truffleruby_object.rb +0 -47
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/synchronization/volatile.rb +0 -36
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb +0 -50
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/adder.rb +0 -74
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/cheap_lockable.rb +0 -118
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb +0 -63
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/power_of_two_tuple.rb +0 -38
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/striped64.rb +0 -246
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/volatile.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/thread_safe/util/xor_shift_random.rb +0 -50
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/timer_task.rb +0 -334
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/tuple.rb +0 -86
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/tvar.rb +0 -258
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/engine.rb +0 -56
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_extension_loader.rb +0 -79
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/native_integer.rb +0 -53
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/utility/processor_counter.rb +0 -163
- data/vendor/bundle/jruby/2.5.0/gems/concurrent-ruby-1.1.6/lib/concurrent-ruby/concurrent/version.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/Changes.md +0 -123
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/README.md +0 -107
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/Rakefile +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/connection_pool.gemspec +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/lib/connection_pool.rb +0 -161
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/lib/connection_pool/monotonic_time.rb +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/lib/connection_pool/timed_stack.rb +0 -176
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/test/helper.rb +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/test/test_connection_pool.rb +0 -516
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.2/test/test_connection_pool_timed_stack.rb +0 -149
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.3/Gemfile +0 -5
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.3/LICENSE +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/connection_pool-2.2.3/lib/connection_pool/version.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/CHANGELOG.md +0 -276
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/LICENSE.md +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/README.md +0 -55
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/Rakefile +0 -7
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/examples/client_spec.rb +0 -65
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/examples/client_test.rb +0 -79
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday.rb +0 -166
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter.rb +0 -115
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/em_http.rb +0 -286
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/em_http_ssl_patch.rb +0 -62
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/em_synchrony.rb +0 -150
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -69
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/excon.rb +0 -124
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/httpclient.rb +0 -152
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http.rb +0 -219
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/net_http_persistent.rb +0 -91
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/patron.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/rack.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/test.rb +0 -246
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter/typhoeus.rb +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/adapter_registry.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/autoload.rb +0 -95
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/connection.rb +0 -614
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/dependency_loader.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/encoders/flat_params_encoder.rb +0 -98
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/encoders/nested_params_encoder.rb +0 -171
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/error.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/file_part.rb +0 -128
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/logging/formatter.rb +0 -105
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/middleware.rb +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/middleware_registry.rb +0 -129
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options.rb +0 -222
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options/connection_options.rb +0 -22
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options/env.rb +0 -181
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options/proxy_options.rb +0 -28
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options/request_options.rb +0 -22
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/options/ssl_options.rb +0 -59
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/param_part.rb +0 -53
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/parameters.rb +0 -5
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/rack_builder.rb +0 -248
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request.rb +0 -146
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/authorization.rb +0 -55
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/basic_authentication.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/instrumentation.rb +0 -54
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/multipart.rb +0 -99
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/retry.rb +0 -239
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/token_authentication.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/request/url_encoded.rb +0 -56
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/response.rb +0 -107
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/response/logger.rb +0 -33
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/response/raise_error.rb +0 -45
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/utils.rb +0 -117
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/utils/headers.rb +0 -139
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/lib/faraday/utils/params_hash.rb +0 -61
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/external_adapters/faraday_specs_setup.rb +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/em_http_spec.rb +0 -47
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/em_synchrony_spec.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/excon_spec.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/httpclient_spec.rb +0 -73
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/net_http_persistent_spec.rb +0 -57
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/net_http_spec.rb +0 -64
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/patron_spec.rb +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/rack_spec.rb +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter/typhoeus_spec.rb +0 -7
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter_registry_spec.rb +0 -28
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/adapter_spec.rb +0 -55
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/composite_read_io_spec.rb +0 -80
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/connection_spec.rb +0 -691
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/error_spec.rb +0 -45
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/middleware_spec.rb +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/options/env_spec.rb +0 -70
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/options/options_spec.rb +0 -297
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/options/proxy_options_spec.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/options/request_options_spec.rb +0 -19
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/params_encoders/flat_spec.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/params_encoders/nested_spec.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/rack_builder_spec.rb +0 -196
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request/authorization_spec.rb +0 -88
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request/instrumentation_spec.rb +0 -76
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request/multipart_spec.rb +0 -274
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request/retry_spec.rb +0 -242
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request/url_encoded_spec.rb +0 -83
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/request_spec.rb +0 -109
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/response/logger_spec.rb +0 -220
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/response/middleware_spec.rb +0 -68
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/response/raise_error_spec.rb +0 -106
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/response_spec.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/utils/headers_spec.rb +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday/utils_spec.rb +0 -56
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/faraday_spec.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/spec_helper.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/disabling_stub.rb +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/fake_safe_buffer.rb +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/helper_methods.rb +0 -133
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/shared_examples/adapter.rb +0 -104
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/shared_examples/params_encoder.rb +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/shared_examples/request_method.rb +0 -234
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/streaming_response_checker.rb +0 -35
- data/vendor/bundle/jruby/2.5.0/gems/faraday-1.0.1/spec/support/webmock_rack_app.rb +0 -68
- data/vendor/bundle/jruby/2.5.0/gems/ffi-1.12.2-java/CHANGELOG.md +0 -181
- data/vendor/bundle/jruby/2.5.0/gems/ffi-1.12.2-java/COPYING +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/ffi-1.12.2-java/LICENSE +0 -24
- data/vendor/bundle/jruby/2.5.0/gems/ffi-1.12.2-java/README.md +0 -124
- data/vendor/bundle/jruby/2.5.0/gems/ffi-1.12.2-java/Rakefile +0 -196
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/Gemfile +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/Mavenfile +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/README.md +0 -150
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/Rakefile +0 -33
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/alt_bench.rb +0 -46
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/changelog.md +0 -166
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/jrjackson.gemspec +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/com/fasterxml/jackson/core/jackson-annotations/2.9.10/jackson-annotations-2.9.10.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/com/fasterxml/jackson/core/jackson-core/2.9.10/jackson-core-2.9.10.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/com/fasterxml/jackson/core/jackson-databind/2.9.10.4/jackson-databind-2.9.10.4.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/com/fasterxml/jackson/module/jackson-module-afterburner/2.9.10/jackson-module-afterburner-2.9.10.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/jrjackson.rb +0 -2
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/jrjackson/build_info.rb +0 -47
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/jrjackson/jars/jrjackson-1.2.30.jar +0 -0
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/jrjackson/jrjackson.rb +0 -95
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/jrjackson_jars.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/lib/require_relative_patch.rb +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/pom.xml +0 -178
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/profiling/profiled.rb +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/run_all_individual_bench.sh +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/run_jruby_individual_bench.sh +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/run_mri_individual_bench.sh +0 -7
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/IParseHandler.java +0 -53
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaBigDecimalValueConverter.java +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaBigIntValueConverter.java +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaConverter.java +0 -10
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaFloatValueConverter.java +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaHandler.java +0 -118
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JavaLongValueConverter.java +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JjParse.java +0 -139
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonBase.java +0 -152
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonJava.java +0 -81
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonRaw.java +0 -108
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonRuby.java +0 -89
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonSaj.java +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonSch.java +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrJacksonService.java +0 -38
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/JrParse.java +0 -142
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/ParseError.java +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyAnySerializer.java +0 -291
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyBigDecimalValueConverter.java +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyConverter.java +0 -12
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyDateFormat.java +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyFloatValueConverter.java +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyHandler.java +0 -119
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyIntValueConverter.java +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyJacksonModule.java +0 -80
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyKeyConverter.java +0 -12
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyNameConverter.java +0 -9
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyObjectDeserializer.java +0 -182
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyStringConverter.java +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyStringKeyConverter.java +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyStringNameConverter.java +0 -12
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubySymbolKeyConverter.java +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubySymbolNameConverter.java +0 -12
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/RubyUtils.java +0 -149
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/SajParse.java +0 -169
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/SchParse.java +0 -209
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/main/java/com/jrjackson/StreamParse.java +0 -66
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/src/test/java/com/jrjackson/RubyAnySerializerTest.java +0 -56
- data/vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.12-java/test/jrjackson_test.rb +0 -578
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/CHANGELOG.md +0 -270
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/CONTRIBUTING.md +0 -46
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/LICENSE.md +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/README.md +0 -120
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json.rb +0 -161
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapter.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapter_error.rb +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/gson.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/jr_jackson.rb +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/json_common.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/json_gem.rb +0 -11
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/json_pure.rb +0 -11
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/nsjsonserialization.rb +0 -35
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/oj.rb +0 -63
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/ok_json.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/adapters/yajl.rb +0 -19
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/convertible_hash_keys.rb +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/options.rb +0 -39
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/options_cache.rb +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/parse_error.rb +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/vendor/okjson.rb +0 -606
- data/vendor/bundle/jruby/2.5.0/gems/multi_json-1.14.1/lib/multi_json/version.rb +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/History.txt +0 -354
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/Manifest.txt +0 -13
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/README.rdoc +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/Rakefile +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent.rb +0 -1189
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent/pool.rb +0 -50
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent/timed_stack_multi.rb +0 -69
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/test/test_net_http_persistent.rb +0 -1589
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-4.0.0/lib/net/http/persistent/connection.rb +0 -40
- data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-4.0.0/test/test_net_http_persistent_timed_stack_multi.rb +0 -151
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/CONTRIBUTING.rdoc +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/Gemfile +0 -10
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/History.rdoc +0 -2368
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/MIT-LICENSE +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/README.rdoc +0 -155
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/Rakefile +0 -41
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/bundle +0 -105
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/console +0 -7
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/rake +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/rdoc +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/rubocop +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/bin/setup +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/command_line_usage.rdoc +0 -158
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/example/Rakefile1 +0 -38
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/example/Rakefile2 +0 -35
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/example/a.c +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/example/b.c +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/example/main.c +0 -11
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/glossary.rdoc +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/jamis.rb +0 -592
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/proto_rake.rdoc +0 -127
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/rake.1 +0 -156
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/rakefile.rdoc +0 -622
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/doc/rational.rdoc +0 -151
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/exe/rake +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake.rb +0 -71
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/application.rb +0 -824
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/backtrace.rb +0 -24
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/clean.rb +0 -78
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/cloneable.rb +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/cpu_counter.rb +0 -107
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/default_loader.rb +0 -15
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/dsl_definition.rb +0 -195
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/early_time.rb +0 -22
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/ext/core.rb +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/ext/string.rb +0 -176
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/file_creation_task.rb +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb +0 -435
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/file_task.rb +0 -54
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/file_utils_ext.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/invocation_chain.rb +0 -57
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/invocation_exception_mixin.rb +0 -17
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/late_time.rb +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/linked_list.rb +0 -112
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/loaders/makefile.rb +0 -54
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/multi_task.rb +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/name_space.rb +0 -38
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/packagetask.rb +0 -222
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/phony.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/private_reader.rb +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/promise.rb +0 -100
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/pseudo_status.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_module.rb +0 -67
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/rake_test_loader.rb +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/rule_recursion_overflow_error.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/scope.rb +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/task.rb +0 -434
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/task_argument_error.rb +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/task_arguments.rb +0 -109
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/task_manager.rb +0 -331
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/tasklib.rb +0 -12
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/testtask.rb +0 -224
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/thread_history_display.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/thread_pool.rb +0 -163
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/version.rb +0 -10
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/win32.rb +0 -51
- data/vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/rake.gemspec +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/rspec-3.9.0/LICENSE.md +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/rspec-3.9.0/README.md +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/rspec-3.9.0/lib/rspec.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/rspec-3.9.0/lib/rspec/version.rb +0 -5
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/Changelog.md +0 -2291
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/LICENSE.md +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/README.md +0 -384
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/exe/rspec +0 -4
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/autorun.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core.rb +0 -186
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/backtrace_formatter.rb +0 -65
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/coordinator.rb +0 -62
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/example_minimizer.rb +0 -173
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/fork_runner.rb +0 -135
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/server.rb +0 -61
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_command.rb +0 -126
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/shell_runner.rb +0 -73
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/bisect/utilities.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration.rb +0 -2363
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/configuration_options.rb +0 -233
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/did_you_mean.rb +0 -46
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/drb.rb +0 -113
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/dsl.rb +0 -98
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example.rb +0 -656
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example_group.rb +0 -900
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/example_status_persister.rb +0 -235
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/filter_manager.rb +0 -231
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/flat_map.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters.rb +0 -273
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -45
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_formatter.rb +0 -70
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/base_text_formatter.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -157
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/console_codes.rb +0 -68
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/deprecation_formatter.rb +0 -223
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/documentation_formatter.rb +0 -102
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/exception_presenter.rb +0 -511
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/failure_list_formatter.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -28
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/helpers.rb +0 -110
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_formatter.rb +0 -153
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_printer.rb +0 -414
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -120
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/json_formatter.rb +0 -102
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/profile_formatter.rb +0 -68
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/progress_formatter.rb +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/protocol.rb +0 -182
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/snippet_extractor.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/formatters/syntax_highlighter.rb +0 -91
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/hooks.rb +0 -641
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/invocations.rb +0 -87
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/memoized_helpers.rb +0 -554
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata.rb +0 -498
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/metadata_filter.rb +0 -255
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/minitest_assertions_adapter.rb +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/flexmock.rb +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/mocha.rb +0 -57
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/null.rb +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rr.rb +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/mocking_adapters/rspec.rb +0 -32
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/notifications.rb +0 -521
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/option_parser.rb +0 -316
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/ordering.rb +0 -158
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/output_wrapper.rb +0 -29
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/pending.rb +0 -165
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/profiler.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer.rb +0 -48
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -100
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/rake_task.rb +0 -188
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/reporter.rb +0 -265
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/ruby_project.rb +0 -53
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/runner.rb +0 -204
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/sandbox.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/set.rb +0 -54
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_context.rb +0 -55
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shared_example_group.rb +0 -271
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/shell_escape.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/test_unit_assertions_adapter.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/version.rb +0 -9
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/warnings.rb +0 -40
- data/vendor/bundle/jruby/2.5.0/gems/rspec-core-3.9.2/lib/rspec/core/world.rb +0 -276
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/Changelog.md +0 -1191
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/LICENSE.md +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/README.md +0 -320
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations.rb +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/block_snippet_extractor.rb +0 -253
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/configuration.rb +0 -215
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/expectation_target.rb +0 -127
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/fail_with.rb +0 -39
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/failure_aggregator.rb +0 -194
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/handler.rb +0 -170
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/minitest_integration.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/syntax.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/expectations/version.rb +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers.rb +0 -1038
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/aliased_matcher.rb +0 -116
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in.rb +0 -52
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/all.rb +0 -86
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/base_matcher.rb +0 -193
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be.rb +0 -288
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_between.rb +0 -77
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_instance_of.rb +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_kind_of.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/be_within.rb +0 -72
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/change.rb +0 -428
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/compound.rb +0 -276
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/contain_exactly.rb +0 -302
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/cover.rb +0 -24
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eq.rb +0 -40
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/eql.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/equal.rb +0 -81
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/exist.rb +0 -90
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/has.rb +0 -103
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/have_attributes.rb +0 -114
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/include.rb +0 -149
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/match.rb +0 -106
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/operators.rb +0 -128
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/output.rb +0 -200
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/raise_error.rb +0 -230
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/respond_to.rb +0 -199
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/satisfy.rb +0 -60
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -94
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/throw_symbol.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/built_in/yield.rb +0 -441
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/composable.rb +0 -171
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/dsl.rb +0 -540
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/english_phrasing.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/fail_matchers.rb +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/generated_descriptions.rb +0 -41
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_delegator.rb +0 -35
- data/vendor/bundle/jruby/2.5.0/gems/rspec-expectations-3.9.2/lib/rspec/matchers/matcher_protocol.rb +0 -99
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/Changelog.md +0 -1133
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/LICENSE.md +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/README.md +0 -463
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks.rb +0 -130
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance.rb +0 -11
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/chain.rb +0 -111
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/error_generator.rb +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -31
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -50
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/message_chains.rb +0 -83
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/proxy.rb +0 -116
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/recorder.rb +0 -294
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain.rb +0 -51
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_list_matcher.rb +0 -100
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/argument_matchers.rb +0 -322
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/configuration.rb +0 -212
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/error_generator.rb +0 -369
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/example_methods.rb +0 -434
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/instance_method_stasher.rb +0 -146
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/marshal_extension.rb +0 -41
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/expectation_customization.rb +0 -20
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/have_received.rb +0 -134
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive.rb +0 -132
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -82
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/matchers/receive_messages.rb +0 -77
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_chain.rb +0 -87
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/message_expectation.rb +0 -751
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_double.rb +0 -287
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/method_reference.rb +0 -202
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/minitest_integration.rb +0 -68
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/mutate_const.rb +0 -339
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/object_reference.rb +0 -149
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/order_group.rb +0 -81
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/proxy.rb +0 -503
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/space.rb +0 -238
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/standalone.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/syntax.rb +0 -325
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/targets.rb +0 -124
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/test_double.rb +0 -171
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_double.rb +0 -129
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_message_expectation.rb +0 -54
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/verifying_proxy.rb +0 -220
- data/vendor/bundle/jruby/2.5.0/gems/rspec-mocks-3.9.1/lib/rspec/mocks/version.rb +0 -9
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/Changelog.md +0 -302
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/LICENSE.md +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/README.md +0 -40
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support.rb +0 -149
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/caller_filter.rb +0 -83
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/comparable_version.rb +0 -46
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/differ.rb +0 -215
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/directory_maker.rb +0 -63
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/encoded_string.rb +0 -161
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/fuzzy_matcher.rb +0 -48
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/hunk_generator.rb +0 -47
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/matcher_definition.rb +0 -42
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/method_signature_verifier.rb +0 -438
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/mutex.rb +0 -73
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/object_formatter.rb +0 -275
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/recursive_const_methods.rb +0 -76
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/reentrant_mutex.rb +0 -61
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/ruby_features.rb +0 -190
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/location.rb +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/node.rb +0 -110
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/source/token.rb +0 -87
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec.rb +0 -81
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/deprecation_helpers.rb +0 -64
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/formatting_support.rb +0 -9
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/in_sub_process.rb +0 -69
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/library_wide_checks.rb +0 -150
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/shell_out.rb +0 -89
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/stderr_splitter.rb +0 -75
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/string_matcher.rb +0 -46
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_directory.rb +0 -13
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/spec/with_isolated_stderr.rb +0 -13
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/version.rb +0 -7
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/warnings.rb +0 -39
- data/vendor/bundle/jruby/2.5.0/gems/rspec-support-3.9.3/lib/rspec/support/with_keywords_when_needed.rb +0 -33
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/Gemfile +0 -6
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/Gemfile.lock +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/README.md +0 -51
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/Rakefile +0 -10
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/bin/console +0 -14
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/bin/setup +0 -8
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/lib/tempfile.rb +0 -350
- data/vendor/bundle/jruby/2.5.0/gems/tempfile-0.1.0/tempfile.gemspec +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/COPYING +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/bin/tilt +0 -122
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt.rb +0 -166
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/asciidoc.rb +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/babel.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/bluecloth.rb +0 -24
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/builder.rb +0 -37
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/coffee.rb +0 -58
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/commonmarker.rb +0 -78
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/creole.rb +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/csv.rb +0 -65
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/dummy.rb +0 -3
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/erb.rb +0 -63
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/erubi.rb +0 -32
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/erubis.rb +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/etanni.rb +0 -27
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/haml.rb +0 -86
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/kramdown.rb +0 -25
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/less.rb +0 -30
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/liquid.rb +0 -44
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/livescript.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/mapping.rb +0 -293
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/markaby.rb +0 -45
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/maruku.rb +0 -22
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/nokogiri.rb +0 -36
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/pandoc.rb +0 -49
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/plain.rb +0 -16
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/prawn.rb +0 -43
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/radius.rb +0 -48
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/rdiscount.rb +0 -39
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/rdoc.rb +0 -40
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/redcarpet.rb +0 -83
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/redcloth.rb +0 -23
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/rst-pandoc.rb +0 -18
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/sass.rb +0 -52
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/sigil.rb +0 -34
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/string.rb +0 -21
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/template.rb +0 -297
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/typescript.rb +0 -26
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/wikicloth.rb +0 -22
- data/vendor/bundle/jruby/2.5.0/gems/tilt-2.0.10/lib/tilt/yajl.rb +0 -87
- data/vendor/bundle/jruby/2.5.0/specifications/concurrent-ruby-1.1.6.gemspec +0 -24
- data/vendor/bundle/jruby/2.5.0/specifications/connection_pool-2.2.3.gemspec +0 -34
- data/vendor/bundle/jruby/2.5.0/specifications/faraday-1.0.1.gemspec +0 -0
- data/vendor/bundle/jruby/2.5.0/specifications/ffi-1.12.2-java.gemspec +0 -22
- data/vendor/bundle/jruby/2.5.0/specifications/jrjackson-0.4.12-java.gemspec +0 -34
- data/vendor/bundle/jruby/2.5.0/specifications/multi_json-1.14.1.gemspec +0 -36
- data/vendor/bundle/jruby/2.5.0/specifications/net-http-persistent-3.0.1.gemspec +0 -45
- data/vendor/bundle/jruby/2.5.0/specifications/rake-13.0.1.gemspec +0 -26
- data/vendor/bundle/jruby/2.5.0/specifications/rspec-3.9.0.gemspec +0 -43
- data/vendor/bundle/jruby/2.5.0/specifications/rspec-core-3.9.2.gemspec +0 -63
- data/vendor/bundle/jruby/2.5.0/specifications/rspec-expectations-3.9.2.gemspec +0 -51
- data/vendor/bundle/jruby/2.5.0/specifications/rspec-mocks-3.9.1.gemspec +0 -51
- data/vendor/bundle/jruby/2.5.0/specifications/rspec-support-3.9.3.gemspec +0 -39
- data/vendor/bundle/jruby/2.5.0/specifications/tempfile-0.1.0.gemspec +0 -22
- data/vendor/bundle/jruby/2.5.0/specifications/tilt-2.0.10.gemspec +0 -23
data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/lib/net/http/persistent/pool.rb
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
class Net::HTTP::Persistent::Pool < ConnectionPool # :nodoc:
|
2
|
-
|
3
|
-
attr_reader :available # :nodoc:
|
4
|
-
attr_reader :key # :nodoc:
|
5
|
-
|
6
|
-
def initialize(options = {}, &block)
|
7
|
-
super
|
8
|
-
|
9
|
-
@available = Net::HTTP::Persistent::TimedStackMulti.new(@size, &block)
|
10
|
-
@key = "current-#{@available.object_id}"
|
11
|
-
end
|
12
|
-
|
13
|
-
def checkin net_http_args
|
14
|
-
stack = Thread.current[@key][net_http_args] ||= []
|
15
|
-
|
16
|
-
raise ConnectionPool::Error, 'no connections are checked out' if
|
17
|
-
stack.empty?
|
18
|
-
|
19
|
-
conn = stack.pop
|
20
|
-
|
21
|
-
if stack.empty?
|
22
|
-
@available.push conn, connection_args: net_http_args
|
23
|
-
end
|
24
|
-
|
25
|
-
nil
|
26
|
-
end
|
27
|
-
|
28
|
-
def checkout net_http_args
|
29
|
-
stacks = Thread.current[@key] ||= {}
|
30
|
-
stack = stacks[net_http_args] ||= []
|
31
|
-
|
32
|
-
if stack.empty? then
|
33
|
-
conn = @available.pop connection_args: net_http_args
|
34
|
-
else
|
35
|
-
conn = stack.last
|
36
|
-
end
|
37
|
-
|
38
|
-
stack.push conn
|
39
|
-
|
40
|
-
conn
|
41
|
-
end
|
42
|
-
|
43
|
-
def shutdown
|
44
|
-
Thread.current[@key] = nil
|
45
|
-
super
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
require 'net/http/persistent/timed_stack_multi'
|
50
|
-
|
@@ -1,69 +0,0 @@
|
|
1
|
-
class Net::HTTP::Persistent::TimedStackMulti < ConnectionPool::TimedStack # :nodoc:
|
2
|
-
|
3
|
-
def initialize(size = 0, &block)
|
4
|
-
super
|
5
|
-
|
6
|
-
@enqueued = 0
|
7
|
-
@ques = Hash.new { |h, k| h[k] = [] }
|
8
|
-
@lru = {}
|
9
|
-
@key = :"connection_args-#{object_id}"
|
10
|
-
end
|
11
|
-
|
12
|
-
def empty?
|
13
|
-
(@created - @enqueued) >= @max
|
14
|
-
end
|
15
|
-
|
16
|
-
def length
|
17
|
-
@max - @created + @enqueued
|
18
|
-
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def connection_stored? options = {} # :nodoc:
|
23
|
-
!@ques[options[:connection_args]].empty?
|
24
|
-
end
|
25
|
-
|
26
|
-
def fetch_connection options = {} # :nodoc:
|
27
|
-
connection_args = options[:connection_args]
|
28
|
-
|
29
|
-
@enqueued -= 1
|
30
|
-
lru_update connection_args
|
31
|
-
@ques[connection_args].pop
|
32
|
-
end
|
33
|
-
|
34
|
-
def lru_update connection_args # :nodoc:
|
35
|
-
@lru.delete connection_args
|
36
|
-
@lru[connection_args] = true
|
37
|
-
end
|
38
|
-
|
39
|
-
def shutdown_connections # :nodoc:
|
40
|
-
@ques.each_key do |key|
|
41
|
-
super connection_args: key
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
def store_connection obj, options = {} # :nodoc:
|
46
|
-
@ques[options[:connection_args]].push obj
|
47
|
-
@enqueued += 1
|
48
|
-
end
|
49
|
-
|
50
|
-
def try_create options = {} # :nodoc:
|
51
|
-
connection_args = options[:connection_args]
|
52
|
-
|
53
|
-
if @created >= @max && @enqueued >= 1
|
54
|
-
oldest, = @lru.first
|
55
|
-
@lru.delete oldest
|
56
|
-
@ques[oldest].pop
|
57
|
-
|
58
|
-
@created -= 1
|
59
|
-
end
|
60
|
-
|
61
|
-
if @created < @max
|
62
|
-
@created += 1
|
63
|
-
lru_update connection_args
|
64
|
-
return @create_block.call(connection_args)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
end
|
69
|
-
|
data/vendor/bundle/jruby/2.5.0/gems/net-http-persistent-3.0.1/test/test_net_http_persistent.rb
DELETED
@@ -1,1589 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'minitest/autorun'
|
3
|
-
require 'net/http/persistent'
|
4
|
-
require 'stringio'
|
5
|
-
|
6
|
-
HAVE_OPENSSL = defined?(OpenSSL::SSL)
|
7
|
-
|
8
|
-
module Net::HTTP::Persistent::TestConnect
|
9
|
-
def self.included mod
|
10
|
-
mod.send :alias_method, :orig_connect, :connect
|
11
|
-
|
12
|
-
def mod.use_connect which
|
13
|
-
self.send :remove_method, :connect
|
14
|
-
self.send :alias_method, :connect, which
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def host_down_connect
|
19
|
-
raise Errno::EHOSTDOWN
|
20
|
-
end
|
21
|
-
|
22
|
-
def test_connect
|
23
|
-
unless use_ssl? then
|
24
|
-
io = Object.new
|
25
|
-
def io.setsockopt(*a) @setsockopts ||= []; @setsockopts << a end
|
26
|
-
|
27
|
-
@socket = Net::BufferedIO.new io
|
28
|
-
|
29
|
-
return
|
30
|
-
end
|
31
|
-
|
32
|
-
io = open '/dev/null'
|
33
|
-
def io.setsockopt(*a) @setsockopts ||= []; @setsockopts << a end
|
34
|
-
|
35
|
-
@ssl_context ||= OpenSSL::SSL::SSLContext.new
|
36
|
-
|
37
|
-
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_PEER unless
|
38
|
-
@ssl_context.verify_mode
|
39
|
-
|
40
|
-
s = OpenSSL::SSL::SSLSocket.new io, @ssl_context
|
41
|
-
|
42
|
-
@socket = Net::BufferedIO.new s
|
43
|
-
end
|
44
|
-
|
45
|
-
def refused_connect
|
46
|
-
raise Errno::ECONNREFUSED
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
class Net::HTTP
|
51
|
-
include Net::HTTP::Persistent::TestConnect
|
52
|
-
end
|
53
|
-
|
54
|
-
class TestNetHttpPersistent < Minitest::Test
|
55
|
-
|
56
|
-
def setup
|
57
|
-
@http = Net::HTTP::Persistent.new
|
58
|
-
|
59
|
-
@uri = URI.parse 'http://example.com/path'
|
60
|
-
|
61
|
-
ENV.delete 'http_proxy'
|
62
|
-
ENV.delete 'HTTP_PROXY'
|
63
|
-
ENV.delete 'http_proxy_user'
|
64
|
-
ENV.delete 'HTTP_PROXY_USER'
|
65
|
-
ENV.delete 'http_proxy_pass'
|
66
|
-
ENV.delete 'HTTP_PROXY_PASS'
|
67
|
-
ENV.delete 'no_proxy'
|
68
|
-
ENV.delete 'NO_PROXY'
|
69
|
-
|
70
|
-
Net::HTTP.use_connect :test_connect
|
71
|
-
end
|
72
|
-
|
73
|
-
def teardown
|
74
|
-
Net::HTTP.use_connect :orig_connect
|
75
|
-
end
|
76
|
-
|
77
|
-
class BasicConnection
|
78
|
-
attr_accessor :started, :finished, :address, :port, :use_ssl,
|
79
|
-
:read_timeout, :open_timeout, :keep_alive_timeout
|
80
|
-
attr_accessor :ciphers, :ssl_timeout, :ssl_version, :min_version,
|
81
|
-
:max_version, :verify_depth, :verify_mode, :cert_store,
|
82
|
-
:ca_file, :ca_path, :cert, :key
|
83
|
-
attr_reader :req, :debug_output
|
84
|
-
def initialize
|
85
|
-
@started, @finished = 0, 0
|
86
|
-
@address, @port = 'example.com', 80
|
87
|
-
@use_ssl = false
|
88
|
-
end
|
89
|
-
def finish
|
90
|
-
@finished += 1
|
91
|
-
@socket = nil
|
92
|
-
end
|
93
|
-
def finished?
|
94
|
-
@finished >= 1
|
95
|
-
end
|
96
|
-
def pipeline requests, &block
|
97
|
-
requests.map { |r| r.path }
|
98
|
-
end
|
99
|
-
def reset?
|
100
|
-
@started == @finished + 1
|
101
|
-
end
|
102
|
-
def set_debug_output io
|
103
|
-
@debug_output = io
|
104
|
-
end
|
105
|
-
def start
|
106
|
-
@started += 1
|
107
|
-
io = Object.new
|
108
|
-
def io.setsockopt(*a) @setsockopts ||= []; @setsockopts << a end
|
109
|
-
@socket = Net::BufferedIO.new io
|
110
|
-
end
|
111
|
-
def started?
|
112
|
-
@started >= 1
|
113
|
-
end
|
114
|
-
def proxy_address
|
115
|
-
end
|
116
|
-
def proxy_port
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
def basic_connection
|
121
|
-
raise "#{@uri} is not HTTP" unless @uri.scheme.downcase == 'http'
|
122
|
-
|
123
|
-
net_http_args = [@uri.host, @uri.port]
|
124
|
-
|
125
|
-
connection = Net::HTTP::Persistent::Connection.allocate
|
126
|
-
connection.ssl_generation = @http.ssl_generation
|
127
|
-
connection.http = BasicConnection.new
|
128
|
-
connection.reset
|
129
|
-
|
130
|
-
@http.pool.available.push connection, connection_args: net_http_args
|
131
|
-
|
132
|
-
connection
|
133
|
-
end
|
134
|
-
|
135
|
-
def connection
|
136
|
-
connection = basic_connection
|
137
|
-
connection.last_use = Time.now
|
138
|
-
|
139
|
-
def (connection.http).request(req)
|
140
|
-
@req = req
|
141
|
-
r = Net::HTTPResponse.allocate
|
142
|
-
r.instance_variable_set :@header, {}
|
143
|
-
def r.http_version() '1.1' end
|
144
|
-
def r.read_body() :read_body end
|
145
|
-
yield r if block_given?
|
146
|
-
r
|
147
|
-
end
|
148
|
-
|
149
|
-
connection
|
150
|
-
end
|
151
|
-
|
152
|
-
def ssl_connection
|
153
|
-
raise "#{@uri} is not HTTPS" unless @uri.scheme.downcase == 'https'
|
154
|
-
|
155
|
-
net_http_args = [@uri.host, @uri.port]
|
156
|
-
|
157
|
-
connection = Net::HTTP::Persistent::Connection.allocate
|
158
|
-
connection.ssl_generation = @http.ssl_generation
|
159
|
-
connection.http = BasicConnection.new
|
160
|
-
connection.reset
|
161
|
-
|
162
|
-
@http.pool.available.push connection, connection_args: net_http_args
|
163
|
-
|
164
|
-
connection
|
165
|
-
end
|
166
|
-
|
167
|
-
def test_initialize
|
168
|
-
assert_nil @http.proxy_uri
|
169
|
-
|
170
|
-
assert_empty @http.no_proxy
|
171
|
-
|
172
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
173
|
-
|
174
|
-
ssl_session_exists = OpenSSL::SSL.const_defined? :Session
|
175
|
-
|
176
|
-
assert_equal ssl_session_exists, @http.reuse_ssl_sessions
|
177
|
-
end
|
178
|
-
|
179
|
-
def test_initialize_name
|
180
|
-
http = Net::HTTP::Persistent.new name: 'name'
|
181
|
-
assert_equal 'name', http.name
|
182
|
-
end
|
183
|
-
|
184
|
-
def test_initialize_no_ssl_session
|
185
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
186
|
-
|
187
|
-
skip "OpenSSL::SSL::Session does not exist on #{RUBY_PLATFORM}" unless
|
188
|
-
OpenSSL::SSL.const_defined? :Session
|
189
|
-
|
190
|
-
ssl_session = OpenSSL::SSL::Session
|
191
|
-
|
192
|
-
OpenSSL::SSL.send :remove_const, :Session
|
193
|
-
|
194
|
-
http = Net::HTTP::Persistent.new
|
195
|
-
|
196
|
-
refute http.reuse_ssl_sessions
|
197
|
-
ensure
|
198
|
-
OpenSSL::SSL.const_set :Session, ssl_session if ssl_session
|
199
|
-
end
|
200
|
-
|
201
|
-
def test_initialize_proxy
|
202
|
-
proxy_uri = URI.parse 'http://proxy.example'
|
203
|
-
|
204
|
-
http = Net::HTTP::Persistent.new proxy: proxy_uri
|
205
|
-
|
206
|
-
assert_equal proxy_uri, http.proxy_uri
|
207
|
-
end
|
208
|
-
|
209
|
-
def test_ca_file_equals
|
210
|
-
@http.ca_file = :ca_file
|
211
|
-
|
212
|
-
assert_equal :ca_file, @http.ca_file
|
213
|
-
assert_equal 1, @http.ssl_generation
|
214
|
-
end
|
215
|
-
|
216
|
-
def test_ca_path_equals
|
217
|
-
@http.ca_path = :ca_path
|
218
|
-
|
219
|
-
assert_equal :ca_path, @http.ca_path
|
220
|
-
assert_equal 1, @http.ssl_generation
|
221
|
-
end
|
222
|
-
|
223
|
-
def test_can_retry_eh_change_requests
|
224
|
-
post = Net::HTTP::Post.new '/'
|
225
|
-
|
226
|
-
refute @http.can_retry? post
|
227
|
-
|
228
|
-
@http.retry_change_requests = true
|
229
|
-
|
230
|
-
assert @http.can_retry? post
|
231
|
-
end
|
232
|
-
|
233
|
-
def test_can_retry_eh_idempotent
|
234
|
-
head = Net::HTTP::Head.new '/'
|
235
|
-
|
236
|
-
refute @http.can_retry? head
|
237
|
-
|
238
|
-
post = Net::HTTP::Post.new '/'
|
239
|
-
|
240
|
-
refute @http.can_retry? post
|
241
|
-
end
|
242
|
-
|
243
|
-
def test_cert_store_equals
|
244
|
-
@http.cert_store = :cert_store
|
245
|
-
|
246
|
-
assert_equal :cert_store, @http.cert_store
|
247
|
-
assert_equal 1, @http.ssl_generation
|
248
|
-
end
|
249
|
-
|
250
|
-
def test_certificate_equals
|
251
|
-
@http.certificate = :cert
|
252
|
-
|
253
|
-
assert_equal :cert, @http.certificate
|
254
|
-
assert_equal 1, @http.ssl_generation
|
255
|
-
end
|
256
|
-
|
257
|
-
def test_ciphers_equals
|
258
|
-
@http.ciphers = :ciphers
|
259
|
-
|
260
|
-
assert_equal :ciphers, @http.ciphers
|
261
|
-
assert_equal 1, @http.ssl_generation
|
262
|
-
end
|
263
|
-
|
264
|
-
def test_connection_for
|
265
|
-
@http.open_timeout = 123
|
266
|
-
@http.read_timeout = 321
|
267
|
-
@http.idle_timeout = 42
|
268
|
-
|
269
|
-
used = @http.connection_for @uri do |c|
|
270
|
-
assert_kind_of Net::HTTP, c.http
|
271
|
-
|
272
|
-
assert c.http.started?
|
273
|
-
refute c.http.proxy?
|
274
|
-
|
275
|
-
assert_equal 123, c.http.open_timeout
|
276
|
-
assert_equal 321, c.http.read_timeout
|
277
|
-
assert_equal 42, c.http.keep_alive_timeout
|
278
|
-
|
279
|
-
c
|
280
|
-
end
|
281
|
-
|
282
|
-
stored = @http.pool.checkout ['example.com', 80]
|
283
|
-
|
284
|
-
assert_same used, stored
|
285
|
-
end
|
286
|
-
|
287
|
-
def test_connection_for_cached
|
288
|
-
cached = basic_connection
|
289
|
-
cached.http.start
|
290
|
-
|
291
|
-
@http.read_timeout = 5
|
292
|
-
|
293
|
-
@http.connection_for @uri do |c|
|
294
|
-
assert c.http.started?
|
295
|
-
|
296
|
-
assert_equal 5, c.http.read_timeout
|
297
|
-
|
298
|
-
assert_same cached, c
|
299
|
-
end
|
300
|
-
end
|
301
|
-
|
302
|
-
def test_connection_for_closed
|
303
|
-
cached = basic_connection
|
304
|
-
cached.http.start
|
305
|
-
if Socket.const_defined? :TCP_NODELAY then
|
306
|
-
io = Object.new
|
307
|
-
def io.setsockopt(*a) raise IOError, 'closed stream' end
|
308
|
-
cached.instance_variable_set :@socket, Net::BufferedIO.new(io)
|
309
|
-
end
|
310
|
-
|
311
|
-
@http.connection_for @uri do |c|
|
312
|
-
assert c.http.started?
|
313
|
-
|
314
|
-
socket = c.http.instance_variable_get :@socket
|
315
|
-
|
316
|
-
refute_includes socket.io.instance_variables, :@setsockopt
|
317
|
-
refute_includes socket.io.instance_variables, '@setsockopt'
|
318
|
-
end
|
319
|
-
end
|
320
|
-
|
321
|
-
def test_connection_for_debug_output
|
322
|
-
io = StringIO.new
|
323
|
-
@http.debug_output = io
|
324
|
-
|
325
|
-
@http.connection_for @uri do |c|
|
326
|
-
assert c.http.started?
|
327
|
-
assert_equal io, c.http.instance_variable_get(:@debug_output)
|
328
|
-
end
|
329
|
-
end
|
330
|
-
|
331
|
-
def test_connection_for_cached_expire_always
|
332
|
-
cached = basic_connection
|
333
|
-
cached.http.start
|
334
|
-
cached.requests = 10
|
335
|
-
cached.last_use = Time.now # last used right now
|
336
|
-
|
337
|
-
@http.idle_timeout = 0
|
338
|
-
|
339
|
-
@http.connection_for @uri do |c|
|
340
|
-
assert c.http.started?
|
341
|
-
|
342
|
-
assert_same cached, c
|
343
|
-
|
344
|
-
assert_equal 0, c.requests, 'connection reset due to timeout'
|
345
|
-
end
|
346
|
-
end
|
347
|
-
|
348
|
-
def test_connection_for_cached_expire_never
|
349
|
-
cached = basic_connection
|
350
|
-
cached.http.start
|
351
|
-
cached.requests = 10
|
352
|
-
cached.last_use = Time.now # last used right now
|
353
|
-
|
354
|
-
@http.idle_timeout = nil
|
355
|
-
|
356
|
-
@http.connection_for @uri do |c|
|
357
|
-
assert c.http.started?
|
358
|
-
|
359
|
-
assert_same cached, c
|
360
|
-
|
361
|
-
assert_equal 10, c.requests, 'connection reset despite no timeout'
|
362
|
-
end
|
363
|
-
end
|
364
|
-
|
365
|
-
def test_connection_for_cached_expired
|
366
|
-
cached = basic_connection
|
367
|
-
cached.http.start
|
368
|
-
cached.requests = 10
|
369
|
-
cached.last_use = Time.now - 3600
|
370
|
-
|
371
|
-
@http.connection_for @uri do |c|
|
372
|
-
assert c.http.started?
|
373
|
-
|
374
|
-
assert_same cached, c
|
375
|
-
assert_equal 0, cached.requests, 'connection not reset due to timeout'
|
376
|
-
end
|
377
|
-
end
|
378
|
-
|
379
|
-
def test_connection_for_finished_ssl
|
380
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
381
|
-
|
382
|
-
uri = URI.parse 'https://example.com/path'
|
383
|
-
|
384
|
-
@http.connection_for uri do |c|
|
385
|
-
assert c.http.started?
|
386
|
-
assert c.http.use_ssl?
|
387
|
-
|
388
|
-
@http.finish c
|
389
|
-
|
390
|
-
refute c.http.started?
|
391
|
-
end
|
392
|
-
|
393
|
-
@http.connection_for uri do |c2|
|
394
|
-
assert c2.http.started?
|
395
|
-
end
|
396
|
-
end
|
397
|
-
|
398
|
-
def test_connection_for_host_down
|
399
|
-
c = basic_connection
|
400
|
-
def (c.http).start; raise Errno::EHOSTDOWN end
|
401
|
-
def (c.http).started?; false end
|
402
|
-
|
403
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
404
|
-
@http.connection_for @uri do end
|
405
|
-
end
|
406
|
-
|
407
|
-
assert_equal 'host down: example.com:80', e.message
|
408
|
-
end
|
409
|
-
|
410
|
-
def test_connection_for_http_class_with_fakeweb
|
411
|
-
Object.send :const_set, :FakeWeb, nil
|
412
|
-
|
413
|
-
@http.connection_for @uri do |c|
|
414
|
-
assert_instance_of Net::HTTP, c.http
|
415
|
-
end
|
416
|
-
ensure
|
417
|
-
if Object.const_defined?(:FakeWeb) then
|
418
|
-
Object.send :remove_const, :FakeWeb
|
419
|
-
end
|
420
|
-
end
|
421
|
-
|
422
|
-
def test_connection_for_http_class_with_webmock
|
423
|
-
Object.send :const_set, :WebMock, nil
|
424
|
-
@http.connection_for @uri do |c|
|
425
|
-
assert_instance_of Net::HTTP, c.http
|
426
|
-
end
|
427
|
-
ensure
|
428
|
-
if Object.const_defined?(:WebMock) then
|
429
|
-
Object.send :remove_const, :WebMock
|
430
|
-
end
|
431
|
-
end
|
432
|
-
|
433
|
-
def test_connection_for_http_class_with_artifice
|
434
|
-
Object.send :const_set, :Artifice, nil
|
435
|
-
@http.connection_for @uri do |c|
|
436
|
-
assert_instance_of Net::HTTP, c.http
|
437
|
-
end
|
438
|
-
ensure
|
439
|
-
if Object.const_defined?(:Artifice) then
|
440
|
-
Object.send :remove_const, :Artifice
|
441
|
-
end
|
442
|
-
end
|
443
|
-
|
444
|
-
def test_connection_for_name
|
445
|
-
http = Net::HTTP::Persistent.new name: 'name'
|
446
|
-
uri = URI.parse 'http://example/'
|
447
|
-
|
448
|
-
http.connection_for uri do |c|
|
449
|
-
assert c.http.started?
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
def test_connection_for_proxy
|
454
|
-
uri = URI.parse 'http://proxy.example'
|
455
|
-
uri.user = 'johndoe'
|
456
|
-
uri.password = 'muffins'
|
457
|
-
|
458
|
-
http = Net::HTTP::Persistent.new proxy: uri
|
459
|
-
|
460
|
-
used = http.connection_for @uri do |c|
|
461
|
-
assert c.http.started?
|
462
|
-
assert c.http.proxy?
|
463
|
-
|
464
|
-
c
|
465
|
-
end
|
466
|
-
|
467
|
-
stored = http.pool.checkout ['example.com', 80,
|
468
|
-
'proxy.example', 80,
|
469
|
-
'johndoe', 'muffins']
|
470
|
-
|
471
|
-
assert_same used, stored
|
472
|
-
end
|
473
|
-
|
474
|
-
def test_connection_for_proxy_unescaped
|
475
|
-
uri = URI.parse 'http://proxy.example'
|
476
|
-
uri.user = 'john%40doe'
|
477
|
-
uri.password = 'muf%3Afins'
|
478
|
-
uri.freeze
|
479
|
-
|
480
|
-
http = Net::HTTP::Persistent.new proxy: uri
|
481
|
-
|
482
|
-
http.connection_for @uri do end
|
483
|
-
|
484
|
-
stored = http.pool.checkout ['example.com', 80,
|
485
|
-
'proxy.example', 80,
|
486
|
-
'john@doe', 'muf:fins']
|
487
|
-
|
488
|
-
assert stored
|
489
|
-
end
|
490
|
-
|
491
|
-
def test_connection_for_proxy_host_down
|
492
|
-
Net::HTTP.use_connect :host_down_connect
|
493
|
-
|
494
|
-
uri = URI.parse 'http://proxy.example'
|
495
|
-
uri.user = 'johndoe'
|
496
|
-
uri.password = 'muffins'
|
497
|
-
|
498
|
-
http = Net::HTTP::Persistent.new proxy: uri
|
499
|
-
|
500
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
501
|
-
http.connection_for @uri do end
|
502
|
-
end
|
503
|
-
|
504
|
-
assert_equal 'host down: proxy.example:80', e.message
|
505
|
-
end
|
506
|
-
|
507
|
-
def test_connection_for_proxy_refused
|
508
|
-
Net::HTTP.use_connect :refused_connect
|
509
|
-
|
510
|
-
uri = URI.parse 'http://proxy.example'
|
511
|
-
uri.user = 'johndoe'
|
512
|
-
uri.password = 'muffins'
|
513
|
-
|
514
|
-
http = Net::HTTP::Persistent.new proxy: uri
|
515
|
-
|
516
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
517
|
-
http.connection_for @uri do end
|
518
|
-
end
|
519
|
-
|
520
|
-
assert_equal 'connection refused: proxy.example:80', e.message
|
521
|
-
end
|
522
|
-
|
523
|
-
def test_connection_for_no_proxy
|
524
|
-
uri = URI.parse 'http://proxy.example'
|
525
|
-
uri.user = 'johndoe'
|
526
|
-
uri.password = 'muffins'
|
527
|
-
uri.query = 'no_proxy=example.com'
|
528
|
-
|
529
|
-
http = Net::HTTP::Persistent.new proxy: uri
|
530
|
-
|
531
|
-
http.connection_for @uri do |c|
|
532
|
-
assert c.http.started?
|
533
|
-
refute c.http.proxy?
|
534
|
-
end
|
535
|
-
|
536
|
-
stored = http.pool.checkout ['example.com', 80]
|
537
|
-
|
538
|
-
assert stored
|
539
|
-
end
|
540
|
-
|
541
|
-
def test_connection_for_refused
|
542
|
-
Net::HTTP.use_connect :refused_connect
|
543
|
-
|
544
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
545
|
-
@http.connection_for @uri do end
|
546
|
-
end
|
547
|
-
|
548
|
-
assert_equal 'connection refused: example.com:80', e.message
|
549
|
-
end
|
550
|
-
|
551
|
-
def test_connection_for_ssl
|
552
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
553
|
-
|
554
|
-
uri = URI.parse 'https://example.com/path'
|
555
|
-
|
556
|
-
@http.connection_for uri do |c|
|
557
|
-
assert c.http.started?
|
558
|
-
assert c.http.use_ssl?
|
559
|
-
end
|
560
|
-
end
|
561
|
-
|
562
|
-
def test_connection_for_ssl_cached
|
563
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
564
|
-
|
565
|
-
@uri = URI.parse 'https://example.com/path'
|
566
|
-
|
567
|
-
cached = ssl_connection
|
568
|
-
|
569
|
-
@http.connection_for @uri do |c|
|
570
|
-
assert_same cached, c
|
571
|
-
end
|
572
|
-
end
|
573
|
-
|
574
|
-
def test_connection_for_ssl_cached_reconnect
|
575
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
576
|
-
|
577
|
-
@uri = URI.parse 'https://example.com/path'
|
578
|
-
|
579
|
-
cached = ssl_connection
|
580
|
-
|
581
|
-
ssl_generation = @http.ssl_generation
|
582
|
-
|
583
|
-
@http.reconnect_ssl
|
584
|
-
|
585
|
-
@http.connection_for @uri do |c|
|
586
|
-
assert_same cached, c
|
587
|
-
refute_equal ssl_generation, c.ssl_generation
|
588
|
-
end
|
589
|
-
end
|
590
|
-
|
591
|
-
def test_connection_for_ssl_case
|
592
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
593
|
-
|
594
|
-
uri = URI.parse 'HTTPS://example.com/path'
|
595
|
-
@http.connection_for uri do |c|
|
596
|
-
assert c.http.started?
|
597
|
-
assert c.http.use_ssl?
|
598
|
-
end
|
599
|
-
end
|
600
|
-
|
601
|
-
def test_connection_for_timeout
|
602
|
-
cached = basic_connection
|
603
|
-
cached.http.start
|
604
|
-
cached.requests = 10
|
605
|
-
cached.last_use = Time.now - 6
|
606
|
-
|
607
|
-
@http.connection_for @uri do |c|
|
608
|
-
assert c.http.started?
|
609
|
-
assert_equal 0, c.requests
|
610
|
-
|
611
|
-
assert_same cached, c
|
612
|
-
end
|
613
|
-
end
|
614
|
-
|
615
|
-
def test_error_message
|
616
|
-
c = basic_connection
|
617
|
-
c.last_use = Time.now - 1
|
618
|
-
c.requests = 5
|
619
|
-
|
620
|
-
message = @http.error_message c
|
621
|
-
assert_match %r%after 4 requests on #{c.http.object_id}%, message
|
622
|
-
assert_match %r%, last used [\d.]+ seconds ago%, message
|
623
|
-
end
|
624
|
-
|
625
|
-
def test_escape
|
626
|
-
assert_nil @http.escape nil
|
627
|
-
|
628
|
-
assert_equal '+%3F', @http.escape(' ?')
|
629
|
-
end
|
630
|
-
|
631
|
-
def test_unescape
|
632
|
-
assert_nil @http.unescape nil
|
633
|
-
|
634
|
-
assert_equal ' ?', @http.unescape('+%3F')
|
635
|
-
end
|
636
|
-
|
637
|
-
def test_expired_eh
|
638
|
-
c = basic_connection
|
639
|
-
c.requests = 0
|
640
|
-
c.last_use = Time.now - 11
|
641
|
-
|
642
|
-
@http.idle_timeout = 0
|
643
|
-
assert @http.expired? c
|
644
|
-
|
645
|
-
@http.idle_timeout = 10
|
646
|
-
assert @http.expired? c
|
647
|
-
|
648
|
-
@http.idle_timeout = 11
|
649
|
-
assert @http.expired? c
|
650
|
-
|
651
|
-
@http.idle_timeout = 12
|
652
|
-
refute @http.expired? c
|
653
|
-
|
654
|
-
@http.idle_timeout = nil
|
655
|
-
refute @http.expired? c
|
656
|
-
end
|
657
|
-
|
658
|
-
def test_expired_due_to_max_requests
|
659
|
-
c = basic_connection
|
660
|
-
c.requests = 0
|
661
|
-
c.last_use = Time.now
|
662
|
-
|
663
|
-
refute @http.expired? c
|
664
|
-
|
665
|
-
c.requests = 10
|
666
|
-
refute @http.expired? c
|
667
|
-
|
668
|
-
@http.max_requests = 10
|
669
|
-
assert @http.expired? c
|
670
|
-
|
671
|
-
c.requests = 9
|
672
|
-
refute @http.expired? c
|
673
|
-
end
|
674
|
-
|
675
|
-
def test_finish
|
676
|
-
c = basic_connection
|
677
|
-
c.requests = 5
|
678
|
-
|
679
|
-
@http.finish c
|
680
|
-
|
681
|
-
refute c.http.started?
|
682
|
-
assert c.http.finished?
|
683
|
-
|
684
|
-
assert_equal 0, c.requests
|
685
|
-
assert_equal Net::HTTP::Persistent::EPOCH, c.last_use
|
686
|
-
end
|
687
|
-
|
688
|
-
def test_finish_io_error
|
689
|
-
c = basic_connection
|
690
|
-
def (c.http).finish; @finished += 1; raise IOError end
|
691
|
-
c.requests = 5
|
692
|
-
|
693
|
-
@http.finish c
|
694
|
-
|
695
|
-
refute c.http.started?
|
696
|
-
assert c.http.finished?
|
697
|
-
end
|
698
|
-
|
699
|
-
def test_finish_ssl_no_session_reuse
|
700
|
-
http = Net::HTTP.new 'localhost', 443, ssl: true
|
701
|
-
http.instance_variable_set :@ssl_session, :something
|
702
|
-
|
703
|
-
c = Net::HTTP::Persistent::Connection.allocate
|
704
|
-
c.instance_variable_set :@http, http
|
705
|
-
|
706
|
-
@http.reuse_ssl_sessions = false
|
707
|
-
|
708
|
-
@http.finish c
|
709
|
-
|
710
|
-
assert_nil c.http.instance_variable_get :@ssl_session
|
711
|
-
end
|
712
|
-
|
713
|
-
def test_http_version
|
714
|
-
assert_nil @http.http_version @uri
|
715
|
-
|
716
|
-
connection
|
717
|
-
|
718
|
-
@http.request @uri
|
719
|
-
|
720
|
-
assert_equal '1.1', @http.http_version(@uri)
|
721
|
-
end
|
722
|
-
|
723
|
-
def test_idempotent_eh
|
724
|
-
assert @http.idempotent? Net::HTTP::Delete.new '/'
|
725
|
-
assert @http.idempotent? Net::HTTP::Get.new '/'
|
726
|
-
assert @http.idempotent? Net::HTTP::Head.new '/'
|
727
|
-
assert @http.idempotent? Net::HTTP::Options.new '/'
|
728
|
-
assert @http.idempotent? Net::HTTP::Put.new '/'
|
729
|
-
assert @http.idempotent? Net::HTTP::Trace.new '/'
|
730
|
-
|
731
|
-
refute @http.idempotent? Net::HTTP::Post.new '/'
|
732
|
-
end
|
733
|
-
|
734
|
-
def test_normalize_uri
|
735
|
-
assert_equal 'http://example', @http.normalize_uri('example')
|
736
|
-
assert_equal 'http://example', @http.normalize_uri('http://example')
|
737
|
-
assert_equal 'https://example', @http.normalize_uri('https://example')
|
738
|
-
end
|
739
|
-
|
740
|
-
def test_override_haeders
|
741
|
-
assert_empty @http.override_headers
|
742
|
-
|
743
|
-
@http.override_headers['User-Agent'] = 'MyCustomAgent'
|
744
|
-
|
745
|
-
expected = { 'User-Agent' => 'MyCustomAgent' }
|
746
|
-
|
747
|
-
assert_equal expected, @http.override_headers
|
748
|
-
end
|
749
|
-
|
750
|
-
def test_pipeline
|
751
|
-
skip 'net-http-pipeline not installed' unless defined?(Net::HTTP::Pipeline)
|
752
|
-
|
753
|
-
cached = basic_connection
|
754
|
-
cached.start
|
755
|
-
|
756
|
-
requests = [
|
757
|
-
Net::HTTP::Get.new((@uri + '1').request_uri),
|
758
|
-
Net::HTTP::Get.new((@uri + '2').request_uri),
|
759
|
-
]
|
760
|
-
|
761
|
-
responses = @http.pipeline @uri, requests
|
762
|
-
|
763
|
-
assert_equal 2, responses.length
|
764
|
-
assert_equal '/1', responses.first
|
765
|
-
assert_equal '/2', responses.last
|
766
|
-
end
|
767
|
-
|
768
|
-
def test_private_key_equals
|
769
|
-
@http.private_key = :private_key
|
770
|
-
|
771
|
-
assert_equal :private_key, @http.private_key
|
772
|
-
assert_equal 1, @http.ssl_generation
|
773
|
-
end
|
774
|
-
|
775
|
-
def test_proxy_equals_env
|
776
|
-
ENV['http_proxy'] = 'proxy.example'
|
777
|
-
|
778
|
-
@http.proxy = :ENV
|
779
|
-
|
780
|
-
assert_equal URI.parse('http://proxy.example'), @http.proxy_uri
|
781
|
-
|
782
|
-
assert_equal 1, @http.generation, 'generation'
|
783
|
-
assert_equal 1, @http.ssl_generation, 'ssl_generation'
|
784
|
-
end
|
785
|
-
|
786
|
-
def test_proxy_equals_nil
|
787
|
-
@http.proxy = nil
|
788
|
-
|
789
|
-
assert_nil @http.proxy_uri
|
790
|
-
|
791
|
-
assert_equal 1, @http.generation, 'generation'
|
792
|
-
assert_equal 1, @http.ssl_generation, 'ssl_generation'
|
793
|
-
end
|
794
|
-
|
795
|
-
def test_proxy_equals_uri
|
796
|
-
proxy_uri = URI.parse 'http://proxy.example'
|
797
|
-
|
798
|
-
@http.proxy = proxy_uri
|
799
|
-
|
800
|
-
assert_equal proxy_uri, @http.proxy_uri
|
801
|
-
end
|
802
|
-
|
803
|
-
def test_proxy_from_env
|
804
|
-
ENV['http_proxy'] = 'proxy.example'
|
805
|
-
ENV['http_proxy_user'] = 'johndoe'
|
806
|
-
ENV['http_proxy_pass'] = 'muffins'
|
807
|
-
ENV['NO_PROXY'] = 'localhost,example.com'
|
808
|
-
|
809
|
-
uri = @http.proxy_from_env
|
810
|
-
|
811
|
-
expected = URI.parse 'http://proxy.example'
|
812
|
-
expected.user = 'johndoe'
|
813
|
-
expected.password = 'muffins'
|
814
|
-
expected.query = 'no_proxy=localhost%2Cexample.com'
|
815
|
-
|
816
|
-
assert_equal expected, uri
|
817
|
-
end
|
818
|
-
|
819
|
-
def test_proxy_from_env_lower
|
820
|
-
ENV['http_proxy'] = 'proxy.example'
|
821
|
-
ENV['http_proxy_user'] = 'johndoe'
|
822
|
-
ENV['http_proxy_pass'] = 'muffins'
|
823
|
-
ENV['no_proxy'] = 'localhost,example.com'
|
824
|
-
|
825
|
-
uri = @http.proxy_from_env
|
826
|
-
|
827
|
-
expected = URI.parse 'http://proxy.example'
|
828
|
-
expected.user = 'johndoe'
|
829
|
-
expected.password = 'muffins'
|
830
|
-
expected.query = 'no_proxy=localhost%2Cexample.com'
|
831
|
-
|
832
|
-
assert_equal expected, uri
|
833
|
-
end
|
834
|
-
|
835
|
-
def test_proxy_from_env_nil
|
836
|
-
uri = @http.proxy_from_env
|
837
|
-
|
838
|
-
assert_nil uri
|
839
|
-
|
840
|
-
ENV['http_proxy'] = ''
|
841
|
-
|
842
|
-
uri = @http.proxy_from_env
|
843
|
-
|
844
|
-
assert_nil uri
|
845
|
-
end
|
846
|
-
|
847
|
-
def test_proxy_from_env_no_proxy_star
|
848
|
-
uri = @http.proxy_from_env
|
849
|
-
|
850
|
-
assert_nil uri
|
851
|
-
|
852
|
-
ENV['http_proxy'] = 'proxy.example'
|
853
|
-
ENV['no_proxy'] = '*'
|
854
|
-
|
855
|
-
uri = @http.proxy_from_env
|
856
|
-
|
857
|
-
assert_nil uri
|
858
|
-
end
|
859
|
-
|
860
|
-
def test_proxy_bypass
|
861
|
-
ENV['http_proxy'] = 'proxy.example'
|
862
|
-
ENV['no_proxy'] = 'localhost,example.com:80'
|
863
|
-
|
864
|
-
@http.proxy = :ENV
|
865
|
-
|
866
|
-
assert @http.proxy_bypass? 'localhost', 80
|
867
|
-
assert @http.proxy_bypass? 'localhost', 443
|
868
|
-
assert @http.proxy_bypass? 'LOCALHOST', 80
|
869
|
-
assert @http.proxy_bypass? 'example.com', 80
|
870
|
-
refute @http.proxy_bypass? 'example.com', 443
|
871
|
-
assert @http.proxy_bypass? 'www.example.com', 80
|
872
|
-
refute @http.proxy_bypass? 'www.example.com', 443
|
873
|
-
assert @http.proxy_bypass? 'endingexample.com', 80
|
874
|
-
refute @http.proxy_bypass? 'example.org', 80
|
875
|
-
end
|
876
|
-
|
877
|
-
def test_proxy_bypass_space
|
878
|
-
ENV['http_proxy'] = 'proxy.example'
|
879
|
-
ENV['no_proxy'] = 'localhost, example.com'
|
880
|
-
|
881
|
-
@http.proxy = :ENV
|
882
|
-
|
883
|
-
assert @http.proxy_bypass? 'example.com', 80
|
884
|
-
refute @http.proxy_bypass? 'example.org', 80
|
885
|
-
end
|
886
|
-
|
887
|
-
def test_proxy_bypass_trailing
|
888
|
-
ENV['http_proxy'] = 'proxy.example'
|
889
|
-
ENV['no_proxy'] = 'localhost,example.com,'
|
890
|
-
|
891
|
-
@http.proxy = :ENV
|
892
|
-
|
893
|
-
assert @http.proxy_bypass? 'example.com', 80
|
894
|
-
refute @http.proxy_bypass? 'example.org', 80
|
895
|
-
end
|
896
|
-
|
897
|
-
def test_proxy_bypass_double_comma
|
898
|
-
ENV['http_proxy'] = 'proxy.example'
|
899
|
-
ENV['no_proxy'] = 'localhost,,example.com'
|
900
|
-
|
901
|
-
@http.proxy = :ENV
|
902
|
-
|
903
|
-
assert @http.proxy_bypass? 'example.com', 80
|
904
|
-
refute @http.proxy_bypass? 'example.org', 80
|
905
|
-
end
|
906
|
-
|
907
|
-
def test_reconnect
|
908
|
-
result = @http.reconnect
|
909
|
-
|
910
|
-
assert_equal 1, result
|
911
|
-
end
|
912
|
-
|
913
|
-
def test_reconnect_ssl
|
914
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
915
|
-
|
916
|
-
@uri = URI 'https://example.com'
|
917
|
-
now = Time.now
|
918
|
-
|
919
|
-
ssl_http = ssl_connection
|
920
|
-
|
921
|
-
def (ssl_http.http).finish
|
922
|
-
@started = 0
|
923
|
-
end
|
924
|
-
|
925
|
-
used1 = @http.connection_for @uri do |c|
|
926
|
-
c.requests = 1
|
927
|
-
c.last_use = now
|
928
|
-
c
|
929
|
-
end
|
930
|
-
|
931
|
-
assert_equal OpenSSL::SSL::VERIFY_PEER, used1.http.verify_mode
|
932
|
-
|
933
|
-
@http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
934
|
-
@http.reconnect_ssl
|
935
|
-
|
936
|
-
used2 = @http.connection_for @uri do |c|
|
937
|
-
c
|
938
|
-
end
|
939
|
-
|
940
|
-
assert_same used1, used2
|
941
|
-
|
942
|
-
assert_equal OpenSSL::SSL::VERIFY_NONE, used2.http.verify_mode,
|
943
|
-
'verify mode must change'
|
944
|
-
assert_equal 0, used2.requests
|
945
|
-
assert_equal Net::HTTP::Persistent::EPOCH, used2.last_use
|
946
|
-
end
|
947
|
-
|
948
|
-
def test_request
|
949
|
-
@http.override_headers['user-agent'] = 'test ua'
|
950
|
-
@http.headers['accept'] = 'text/*'
|
951
|
-
c = connection
|
952
|
-
|
953
|
-
res = @http.request @uri
|
954
|
-
req = c.http.req
|
955
|
-
|
956
|
-
assert_kind_of Net::HTTPResponse, res
|
957
|
-
|
958
|
-
assert_kind_of Net::HTTP::Get, req
|
959
|
-
assert_equal '/path', req.path
|
960
|
-
|
961
|
-
assert_equal 'test ua', req['user-agent']
|
962
|
-
assert_match %r%text/\*%, req['accept']
|
963
|
-
|
964
|
-
assert_equal 'keep-alive', req['connection']
|
965
|
-
assert_equal '30', req['keep-alive']
|
966
|
-
|
967
|
-
assert_in_delta Time.now, c.last_use
|
968
|
-
|
969
|
-
assert_equal 1, c.requests
|
970
|
-
end
|
971
|
-
|
972
|
-
def test_request_ETIMEDOUT
|
973
|
-
c = basic_connection
|
974
|
-
def (c.http).request(*a) raise Errno::ETIMEDOUT, "timed out" end
|
975
|
-
|
976
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
977
|
-
@http.request @uri
|
978
|
-
end
|
979
|
-
|
980
|
-
assert_equal 0, c.requests
|
981
|
-
assert_match %r%too many connection resets%, e.message
|
982
|
-
end
|
983
|
-
|
984
|
-
def test_request_bad_response
|
985
|
-
c = basic_connection
|
986
|
-
def (c.http).request(*a) raise Net::HTTPBadResponse end
|
987
|
-
|
988
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
989
|
-
@http.request @uri
|
990
|
-
end
|
991
|
-
|
992
|
-
assert_equal 0, c.requests
|
993
|
-
assert_match %r%too many bad responses%, e.message
|
994
|
-
end
|
995
|
-
|
996
|
-
def test_request_bad_response_retry
|
997
|
-
c = basic_connection
|
998
|
-
def (c.http).request(*a)
|
999
|
-
raise Net::HTTPBadResponse
|
1000
|
-
end
|
1001
|
-
|
1002
|
-
assert_raises Net::HTTP::Persistent::Error do
|
1003
|
-
@http.request @uri
|
1004
|
-
end
|
1005
|
-
|
1006
|
-
assert c.http.finished?
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
def test_request_bad_response_unsafe
|
1010
|
-
c = basic_connection
|
1011
|
-
def (c.http).request(*a)
|
1012
|
-
if instance_variable_defined? :@request then
|
1013
|
-
raise 'POST must not be retried'
|
1014
|
-
else
|
1015
|
-
@request = true
|
1016
|
-
raise Net::HTTPBadResponse
|
1017
|
-
end
|
1018
|
-
end
|
1019
|
-
|
1020
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1021
|
-
@http.request @uri, Net::HTTP::Post.new(@uri.path)
|
1022
|
-
end
|
1023
|
-
|
1024
|
-
assert_equal 0, c.requests
|
1025
|
-
assert_match %r%too many bad responses%, e.message
|
1026
|
-
end
|
1027
|
-
|
1028
|
-
def test_request_block
|
1029
|
-
@http.headers['user-agent'] = 'test ua'
|
1030
|
-
c = connection
|
1031
|
-
body = nil
|
1032
|
-
|
1033
|
-
res = @http.request @uri do |r|
|
1034
|
-
body = r.read_body
|
1035
|
-
end
|
1036
|
-
|
1037
|
-
req = c.http.req
|
1038
|
-
|
1039
|
-
assert_kind_of Net::HTTPResponse, res
|
1040
|
-
refute_nil body
|
1041
|
-
|
1042
|
-
assert_kind_of Net::HTTP::Get, req
|
1043
|
-
assert_equal '/path', req.path
|
1044
|
-
assert_equal 'keep-alive', req['connection']
|
1045
|
-
assert_equal '30', req['keep-alive']
|
1046
|
-
assert_match %r%test ua%, req['user-agent']
|
1047
|
-
|
1048
|
-
assert_equal 1, c.requests
|
1049
|
-
end
|
1050
|
-
|
1051
|
-
def test_request_close_1_0
|
1052
|
-
c = connection
|
1053
|
-
|
1054
|
-
class << c.http
|
1055
|
-
remove_method :request
|
1056
|
-
end
|
1057
|
-
|
1058
|
-
def (c.http).request req
|
1059
|
-
@req = req
|
1060
|
-
r = Net::HTTPResponse.allocate
|
1061
|
-
r.instance_variable_set :@header, {}
|
1062
|
-
def r.http_version() '1.0' end
|
1063
|
-
def r.read_body() :read_body end
|
1064
|
-
yield r if block_given?
|
1065
|
-
r
|
1066
|
-
end
|
1067
|
-
|
1068
|
-
request = Net::HTTP::Get.new @uri.request_uri
|
1069
|
-
|
1070
|
-
res = @http.request @uri, request
|
1071
|
-
req = c.http.req
|
1072
|
-
|
1073
|
-
assert_kind_of Net::HTTPResponse, res
|
1074
|
-
|
1075
|
-
assert_kind_of Net::HTTP::Get, req
|
1076
|
-
assert_equal '/path', req.path
|
1077
|
-
assert_equal 'keep-alive', req['connection']
|
1078
|
-
assert_equal '30', req['keep-alive']
|
1079
|
-
|
1080
|
-
assert c.http.finished?
|
1081
|
-
end
|
1082
|
-
|
1083
|
-
def test_request_connection_close_request
|
1084
|
-
c = connection
|
1085
|
-
|
1086
|
-
request = Net::HTTP::Get.new @uri.request_uri
|
1087
|
-
request['connection'] = 'close'
|
1088
|
-
|
1089
|
-
res = @http.request @uri, request
|
1090
|
-
req = c.http.req
|
1091
|
-
|
1092
|
-
assert_kind_of Net::HTTPResponse, res
|
1093
|
-
|
1094
|
-
assert_kind_of Net::HTTP::Get, req
|
1095
|
-
assert_equal '/path', req.path
|
1096
|
-
assert_equal 'close', req['connection']
|
1097
|
-
assert_nil req['keep-alive']
|
1098
|
-
|
1099
|
-
assert c.http.finished?
|
1100
|
-
end
|
1101
|
-
|
1102
|
-
def test_request_connection_close_response
|
1103
|
-
c = connection
|
1104
|
-
|
1105
|
-
class << c.http
|
1106
|
-
remove_method :request
|
1107
|
-
end
|
1108
|
-
|
1109
|
-
def (c.http).request req
|
1110
|
-
@req = req
|
1111
|
-
r = Net::HTTPResponse.allocate
|
1112
|
-
r.instance_variable_set :@header, {}
|
1113
|
-
r['connection'] = 'close'
|
1114
|
-
def r.http_version() '1.1' end
|
1115
|
-
def r.read_body() :read_body end
|
1116
|
-
yield r if block_given?
|
1117
|
-
r
|
1118
|
-
end
|
1119
|
-
|
1120
|
-
request = Net::HTTP::Get.new @uri.request_uri
|
1121
|
-
|
1122
|
-
res = @http.request @uri, request
|
1123
|
-
req = c.http.req
|
1124
|
-
|
1125
|
-
assert_kind_of Net::HTTPResponse, res
|
1126
|
-
|
1127
|
-
assert_kind_of Net::HTTP::Get, req
|
1128
|
-
assert_equal '/path', req.path
|
1129
|
-
assert_equal 'keep-alive', req['connection']
|
1130
|
-
assert_equal '30', req['keep-alive']
|
1131
|
-
|
1132
|
-
assert c.http.finished?
|
1133
|
-
end
|
1134
|
-
|
1135
|
-
def test_request_exception
|
1136
|
-
c = basic_connection
|
1137
|
-
def (c.http).request(*a)
|
1138
|
-
raise Exception, "very bad things happened"
|
1139
|
-
end
|
1140
|
-
|
1141
|
-
assert_raises Exception do
|
1142
|
-
@http.request @uri
|
1143
|
-
end
|
1144
|
-
|
1145
|
-
assert_equal 0, c.requests
|
1146
|
-
assert c.http.finished?
|
1147
|
-
end
|
1148
|
-
|
1149
|
-
def test_request_invalid
|
1150
|
-
c = basic_connection
|
1151
|
-
def (c.http).request(*a) raise Errno::EINVAL, "write" end
|
1152
|
-
|
1153
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1154
|
-
@http.request @uri
|
1155
|
-
end
|
1156
|
-
|
1157
|
-
assert_equal 0, c.requests
|
1158
|
-
assert_match %r%too many connection resets%, e.message
|
1159
|
-
end
|
1160
|
-
|
1161
|
-
def test_request_post
|
1162
|
-
c = connection
|
1163
|
-
|
1164
|
-
post = Net::HTTP::Post.new @uri.path
|
1165
|
-
|
1166
|
-
@http.request @uri, post
|
1167
|
-
req = c.http.req
|
1168
|
-
|
1169
|
-
assert_same post, req
|
1170
|
-
end
|
1171
|
-
|
1172
|
-
def test_request_reset
|
1173
|
-
c = basic_connection
|
1174
|
-
def (c.http).request(*a) raise Errno::ECONNRESET end
|
1175
|
-
|
1176
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1177
|
-
@http.request @uri
|
1178
|
-
end
|
1179
|
-
|
1180
|
-
assert_equal 0, c.requests
|
1181
|
-
assert_match %r%too many connection resets%, e.message
|
1182
|
-
end
|
1183
|
-
|
1184
|
-
def test_request_reset_retry
|
1185
|
-
c = basic_connection
|
1186
|
-
c.last_use = Time.now
|
1187
|
-
|
1188
|
-
def (c.http).request(*a)
|
1189
|
-
raise Errno::ECONNRESET
|
1190
|
-
end
|
1191
|
-
|
1192
|
-
assert_raises Net::HTTP::Persistent::Error do
|
1193
|
-
@http.request @uri
|
1194
|
-
end
|
1195
|
-
|
1196
|
-
refute (c.http).reset?
|
1197
|
-
assert (c.http).finished?
|
1198
|
-
end
|
1199
|
-
|
1200
|
-
def test_request_reset_unsafe
|
1201
|
-
c = basic_connection
|
1202
|
-
def (c.http).request(*a)
|
1203
|
-
if instance_variable_defined? :@request then
|
1204
|
-
raise 'POST must not be retried'
|
1205
|
-
else
|
1206
|
-
@request = true
|
1207
|
-
raise Errno::ECONNRESET
|
1208
|
-
end
|
1209
|
-
end
|
1210
|
-
|
1211
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1212
|
-
@http.request @uri, Net::HTTP::Post.new(@uri.path)
|
1213
|
-
end
|
1214
|
-
|
1215
|
-
assert_equal 0, c.requests
|
1216
|
-
assert_match %r%too many connection resets%, e.message
|
1217
|
-
end
|
1218
|
-
|
1219
|
-
def test_request_ssl_error
|
1220
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1221
|
-
|
1222
|
-
uri = URI.parse 'https://example.com/path'
|
1223
|
-
@http.connection_for uri do |c|
|
1224
|
-
def (c.http).request(*)
|
1225
|
-
raise OpenSSL::SSL::SSLError, "SSL3_WRITE_PENDING:bad write retry"
|
1226
|
-
end
|
1227
|
-
|
1228
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1229
|
-
@http.request uri
|
1230
|
-
end
|
1231
|
-
assert_match %r%bad write retry%, e.message
|
1232
|
-
end
|
1233
|
-
end
|
1234
|
-
|
1235
|
-
def test_request_setup
|
1236
|
-
@http.override_headers['user-agent'] = 'test ua'
|
1237
|
-
@http.headers['accept'] = 'text/*'
|
1238
|
-
|
1239
|
-
input = Net::HTTP::Post.new '/path'
|
1240
|
-
|
1241
|
-
req = @http.request_setup input
|
1242
|
-
|
1243
|
-
assert_same input, req
|
1244
|
-
assert_equal '/path', req.path
|
1245
|
-
|
1246
|
-
assert_equal 'test ua', req['user-agent']
|
1247
|
-
assert_match %r%text/\*%, req['accept']
|
1248
|
-
|
1249
|
-
assert_equal 'keep-alive', req['connection']
|
1250
|
-
assert_equal '30', req['keep-alive']
|
1251
|
-
end
|
1252
|
-
|
1253
|
-
def test_request_string
|
1254
|
-
@http.override_headers['user-agent'] = 'test ua'
|
1255
|
-
@http.headers['accept'] = 'text/*'
|
1256
|
-
c = connection
|
1257
|
-
|
1258
|
-
res = @http.request @uri.to_s
|
1259
|
-
req = c.http.req
|
1260
|
-
|
1261
|
-
assert_kind_of Net::HTTPResponse, res
|
1262
|
-
|
1263
|
-
assert_kind_of Net::HTTP::Get, req
|
1264
|
-
assert_equal '/path', req.path
|
1265
|
-
|
1266
|
-
assert_equal 1, c.requests
|
1267
|
-
end
|
1268
|
-
|
1269
|
-
def test_request_setup_uri
|
1270
|
-
uri = @uri + '?a=b'
|
1271
|
-
|
1272
|
-
req = @http.request_setup uri
|
1273
|
-
|
1274
|
-
assert_kind_of Net::HTTP::Get, req
|
1275
|
-
assert_equal '/path?a=b', req.path
|
1276
|
-
end
|
1277
|
-
|
1278
|
-
def test_request_failed
|
1279
|
-
c = basic_connection
|
1280
|
-
c.requests = 1
|
1281
|
-
c.last_use = Time.now
|
1282
|
-
|
1283
|
-
original = nil
|
1284
|
-
|
1285
|
-
begin
|
1286
|
-
raise 'original'
|
1287
|
-
rescue => original
|
1288
|
-
end
|
1289
|
-
|
1290
|
-
req = Net::HTTP::Get.new '/'
|
1291
|
-
|
1292
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1293
|
-
@http.request_failed original, req, c
|
1294
|
-
end
|
1295
|
-
|
1296
|
-
assert_match "too many connection resets (due to original - RuntimeError)",
|
1297
|
-
e.message
|
1298
|
-
|
1299
|
-
assert_equal original.backtrace, e.backtrace
|
1300
|
-
end
|
1301
|
-
|
1302
|
-
def test_reset
|
1303
|
-
c = basic_connection
|
1304
|
-
c.http.start
|
1305
|
-
c.last_use = Time.now
|
1306
|
-
c.requests = 5
|
1307
|
-
|
1308
|
-
@http.reset c
|
1309
|
-
|
1310
|
-
assert c.http.started?
|
1311
|
-
assert c.http.finished?
|
1312
|
-
assert c.http.reset?
|
1313
|
-
assert_equal 0, c.requests
|
1314
|
-
assert_equal Net::HTTP::Persistent::EPOCH, c.last_use
|
1315
|
-
end
|
1316
|
-
|
1317
|
-
def test_reset_host_down
|
1318
|
-
c = basic_connection
|
1319
|
-
c.last_use = Time.now
|
1320
|
-
def (c.http).start; raise Errno::EHOSTDOWN end
|
1321
|
-
c.requests = 5
|
1322
|
-
|
1323
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1324
|
-
@http.reset c
|
1325
|
-
end
|
1326
|
-
|
1327
|
-
assert_match %r%host down%, e.message
|
1328
|
-
assert_match __FILE__, e.backtrace.first
|
1329
|
-
end
|
1330
|
-
|
1331
|
-
def test_reset_io_error
|
1332
|
-
c = basic_connection
|
1333
|
-
c.last_use = Time.now
|
1334
|
-
c.requests = 5
|
1335
|
-
|
1336
|
-
@http.reset c
|
1337
|
-
|
1338
|
-
assert c.http.started?
|
1339
|
-
assert c.http.finished?
|
1340
|
-
end
|
1341
|
-
|
1342
|
-
def test_reset_refused
|
1343
|
-
c = basic_connection
|
1344
|
-
c.last_use = Time.now
|
1345
|
-
def (c.http).start; raise Errno::ECONNREFUSED end
|
1346
|
-
c.requests = 5
|
1347
|
-
|
1348
|
-
e = assert_raises Net::HTTP::Persistent::Error do
|
1349
|
-
@http.reset c
|
1350
|
-
end
|
1351
|
-
|
1352
|
-
assert_match %r%connection refused%, e.message
|
1353
|
-
assert_match __FILE__, e.backtrace.first
|
1354
|
-
end
|
1355
|
-
|
1356
|
-
def test_retry_change_requests_equals
|
1357
|
-
get = Net::HTTP::Get.new('/')
|
1358
|
-
post = Net::HTTP::Post.new('/')
|
1359
|
-
|
1360
|
-
refute @http.retry_change_requests
|
1361
|
-
|
1362
|
-
refute @http.can_retry?(get)
|
1363
|
-
refute @http.can_retry?(post)
|
1364
|
-
|
1365
|
-
@http.retry_change_requests = true
|
1366
|
-
|
1367
|
-
assert @http.retry_change_requests
|
1368
|
-
|
1369
|
-
refute @http.can_retry?(get)
|
1370
|
-
assert @http.can_retry?(post)
|
1371
|
-
end
|
1372
|
-
|
1373
|
-
def test_shutdown
|
1374
|
-
c = connection
|
1375
|
-
|
1376
|
-
orig = @http
|
1377
|
-
@http = Net::HTTP::Persistent.new name: 'name'
|
1378
|
-
c2 = connection
|
1379
|
-
|
1380
|
-
orig.shutdown
|
1381
|
-
|
1382
|
-
@http = orig
|
1383
|
-
|
1384
|
-
assert c.http.finished?, 'last-generation connection must be finished'
|
1385
|
-
refute c2.http.finished?, 'present generation connection must not be finished'
|
1386
|
-
end
|
1387
|
-
|
1388
|
-
def test_ssl
|
1389
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1390
|
-
|
1391
|
-
@http.verify_callback = :callback
|
1392
|
-
c = Net::HTTP.new 'localhost', 80
|
1393
|
-
|
1394
|
-
@http.ssl c
|
1395
|
-
|
1396
|
-
assert c.use_ssl?
|
1397
|
-
assert_equal OpenSSL::SSL::VERIFY_PEER, c.verify_mode
|
1398
|
-
assert_kind_of OpenSSL::X509::Store, c.cert_store
|
1399
|
-
assert_nil c.verify_callback
|
1400
|
-
end
|
1401
|
-
|
1402
|
-
def test_ssl_ca_file
|
1403
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1404
|
-
|
1405
|
-
@http.ca_file = 'ca_file'
|
1406
|
-
@http.verify_callback = :callback
|
1407
|
-
c = Net::HTTP.new 'localhost', 80
|
1408
|
-
|
1409
|
-
@http.ssl c
|
1410
|
-
|
1411
|
-
assert c.use_ssl?
|
1412
|
-
assert_equal OpenSSL::SSL::VERIFY_PEER, c.verify_mode
|
1413
|
-
assert_equal :callback, c.verify_callback
|
1414
|
-
end
|
1415
|
-
|
1416
|
-
def test_ssl_ca_path
|
1417
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1418
|
-
|
1419
|
-
@http.ca_path = 'ca_path'
|
1420
|
-
@http.verify_callback = :callback
|
1421
|
-
c = Net::HTTP.new 'localhost', 80
|
1422
|
-
|
1423
|
-
@http.ssl c
|
1424
|
-
|
1425
|
-
assert c.use_ssl?
|
1426
|
-
assert_equal OpenSSL::SSL::VERIFY_PEER, c.verify_mode
|
1427
|
-
assert_equal :callback, c.verify_callback
|
1428
|
-
end
|
1429
|
-
|
1430
|
-
def test_ssl_cert_store
|
1431
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1432
|
-
|
1433
|
-
store = OpenSSL::X509::Store.new
|
1434
|
-
@http.cert_store = store
|
1435
|
-
|
1436
|
-
c = Net::HTTP.new 'localhost', 80
|
1437
|
-
|
1438
|
-
@http.ssl c
|
1439
|
-
|
1440
|
-
assert c.use_ssl?
|
1441
|
-
assert_equal store, c.cert_store
|
1442
|
-
end
|
1443
|
-
|
1444
|
-
def test_ssl_cert_store_default
|
1445
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1446
|
-
|
1447
|
-
@http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
1448
|
-
|
1449
|
-
c = Net::HTTP.new 'localhost', 80
|
1450
|
-
|
1451
|
-
@http.ssl c
|
1452
|
-
|
1453
|
-
assert c.use_ssl?
|
1454
|
-
assert c.cert_store
|
1455
|
-
end
|
1456
|
-
|
1457
|
-
def test_ssl_certificate
|
1458
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1459
|
-
|
1460
|
-
@http.certificate = :cert
|
1461
|
-
@http.private_key = :key
|
1462
|
-
c = Net::HTTP.new 'localhost', 80
|
1463
|
-
|
1464
|
-
@http.ssl c
|
1465
|
-
|
1466
|
-
assert c.use_ssl?
|
1467
|
-
assert_equal :cert, c.cert
|
1468
|
-
assert_equal :key, c.key
|
1469
|
-
end
|
1470
|
-
|
1471
|
-
def test_ssl_verify_mode
|
1472
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1473
|
-
|
1474
|
-
@http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
1475
|
-
c = Net::HTTP.new 'localhost', 80
|
1476
|
-
|
1477
|
-
@http.ssl c
|
1478
|
-
|
1479
|
-
assert c.use_ssl?
|
1480
|
-
assert_equal OpenSSL::SSL::VERIFY_NONE, c.verify_mode
|
1481
|
-
end
|
1482
|
-
|
1483
|
-
def test_ssl_warning
|
1484
|
-
skip 'OpenSSL is missing' unless HAVE_OPENSSL
|
1485
|
-
|
1486
|
-
begin
|
1487
|
-
orig_verify_peer = OpenSSL::SSL::VERIFY_PEER
|
1488
|
-
OpenSSL::SSL.send :remove_const, :VERIFY_PEER
|
1489
|
-
OpenSSL::SSL.send :const_set, :VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE
|
1490
|
-
|
1491
|
-
c = Net::HTTP.new 'localhost', 80
|
1492
|
-
|
1493
|
-
out, err = capture_io do
|
1494
|
-
@http.ssl c
|
1495
|
-
end
|
1496
|
-
|
1497
|
-
assert_empty out
|
1498
|
-
|
1499
|
-
assert_match %r%localhost:80%, err
|
1500
|
-
assert_match %r%I_KNOW_THAT_OPENSSL%, err
|
1501
|
-
|
1502
|
-
Object.send :const_set, :I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG, nil
|
1503
|
-
|
1504
|
-
assert_silent do
|
1505
|
-
@http.ssl c
|
1506
|
-
end
|
1507
|
-
ensure
|
1508
|
-
OpenSSL::SSL.send :remove_const, :VERIFY_PEER
|
1509
|
-
OpenSSL::SSL.send :const_set, :VERIFY_PEER, orig_verify_peer
|
1510
|
-
if Object.const_defined?(:I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG) then
|
1511
|
-
Object.send :remove_const, :I_KNOW_THAT_OPENSSL_VERIFY_PEER_EQUALS_VERIFY_NONE_IS_WRONG
|
1512
|
-
end
|
1513
|
-
end
|
1514
|
-
end
|
1515
|
-
|
1516
|
-
def test_ssl_timeout_equals
|
1517
|
-
@http.ssl_timeout = :ssl_timeout
|
1518
|
-
|
1519
|
-
assert_equal :ssl_timeout, @http.ssl_timeout
|
1520
|
-
assert_equal 1, @http.ssl_generation
|
1521
|
-
end
|
1522
|
-
|
1523
|
-
def test_ssl_version_equals
|
1524
|
-
@http.ssl_version = :ssl_version
|
1525
|
-
|
1526
|
-
assert_equal :ssl_version, @http.ssl_version
|
1527
|
-
assert_equal 1, @http.ssl_generation
|
1528
|
-
end
|
1529
|
-
|
1530
|
-
def test_min_version_equals
|
1531
|
-
@http.min_version = :min_version
|
1532
|
-
|
1533
|
-
assert_equal :min_version, @http.min_version
|
1534
|
-
assert_equal 1, @http.ssl_generation
|
1535
|
-
end
|
1536
|
-
|
1537
|
-
def test_max_version_equals
|
1538
|
-
@http.max_version = :max_version
|
1539
|
-
|
1540
|
-
assert_equal :max_version, @http.max_version
|
1541
|
-
assert_equal 1, @http.ssl_generation
|
1542
|
-
end
|
1543
|
-
|
1544
|
-
def test_start
|
1545
|
-
c = basic_connection
|
1546
|
-
c = c.http
|
1547
|
-
|
1548
|
-
@http.socket_options << [Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1]
|
1549
|
-
@http.debug_output = $stderr
|
1550
|
-
@http.open_timeout = 6
|
1551
|
-
|
1552
|
-
@http.start c
|
1553
|
-
|
1554
|
-
assert_equal $stderr, c.debug_output
|
1555
|
-
assert_equal 6, c.open_timeout
|
1556
|
-
|
1557
|
-
socket = c.instance_variable_get :@socket
|
1558
|
-
|
1559
|
-
expected = []
|
1560
|
-
expected << [Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1] if
|
1561
|
-
Socket.const_defined? :TCP_NODELAY
|
1562
|
-
expected << [Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1]
|
1563
|
-
|
1564
|
-
assert_equal expected, socket.io.instance_variable_get(:@setsockopts)
|
1565
|
-
end
|
1566
|
-
|
1567
|
-
def test_verify_callback_equals
|
1568
|
-
@http.verify_callback = :verify_callback
|
1569
|
-
|
1570
|
-
assert_equal :verify_callback, @http.verify_callback
|
1571
|
-
assert_equal 1, @http.ssl_generation
|
1572
|
-
end
|
1573
|
-
|
1574
|
-
def test_verify_depth_equals
|
1575
|
-
@http.verify_depth = :verify_depth
|
1576
|
-
|
1577
|
-
assert_equal :verify_depth, @http.verify_depth
|
1578
|
-
assert_equal 1, @http.ssl_generation
|
1579
|
-
end
|
1580
|
-
|
1581
|
-
def test_verify_mode_equals
|
1582
|
-
@http.verify_mode = :verify_mode
|
1583
|
-
|
1584
|
-
assert_equal :verify_mode, @http.verify_mode
|
1585
|
-
assert_equal 1, @http.ssl_generation
|
1586
|
-
end
|
1587
|
-
|
1588
|
-
end
|
1589
|
-
|