monero_wallet_gen 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1370) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +14 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/lib/monero_wallet_gen.rb +133 -0
  12. data/lib/monero_wallet_gen/base58.rb +86 -0
  13. data/lib/monero_wallet_gen/ed25519.rb +177 -0
  14. data/lib/monero_wallet_gen/version.rb +3 -0
  15. data/lib/monero_wallet_gen/words.rb +206 -0
  16. data/monero_wallet_gen.gemspec +30 -0
  17. data/vendor/bundle/ruby/2.3.0/bin/coderay +23 -0
  18. data/vendor/bundle/ruby/2.3.0/bin/htmldiff +25 -0
  19. data/vendor/bundle/ruby/2.3.0/bin/ldiff +25 -0
  20. data/vendor/bundle/ruby/2.3.0/bin/pry +23 -0
  21. data/vendor/bundle/ruby/2.3.0/bin/rake +23 -0
  22. data/vendor/bundle/ruby/2.3.0/bin/rspec +23 -0
  23. data/vendor/bundle/ruby/2.3.0/cache/activesupport-5.2.0.gem +0 -0
  24. data/vendor/bundle/ruby/2.3.0/cache/coderay-1.1.2.gem +0 -0
  25. data/vendor/bundle/ruby/2.3.0/cache/concurrent-ruby-1.0.5.gem +0 -0
  26. data/vendor/bundle/ruby/2.3.0/cache/diff-lcs-1.3.gem +0 -0
  27. data/vendor/bundle/ruby/2.3.0/cache/digest-sha3-1.1.0.gem +0 -0
  28. data/vendor/bundle/ruby/2.3.0/cache/i18n-1.0.1.gem +0 -0
  29. data/vendor/bundle/ruby/2.3.0/cache/method_source-0.9.0.gem +0 -0
  30. data/vendor/bundle/ruby/2.3.0/cache/minitest-5.11.3.gem +0 -0
  31. data/vendor/bundle/ruby/2.3.0/cache/pry-0.11.3.gem +0 -0
  32. data/vendor/bundle/ruby/2.3.0/cache/rake-10.5.0.gem +0 -0
  33. data/vendor/bundle/ruby/2.3.0/cache/rspec-3.7.0.gem +0 -0
  34. data/vendor/bundle/ruby/2.3.0/cache/rspec-core-3.7.1.gem +0 -0
  35. data/vendor/bundle/ruby/2.3.0/cache/rspec-expectations-3.7.0.gem +0 -0
  36. data/vendor/bundle/ruby/2.3.0/cache/rspec-mocks-3.7.0.gem +0 -0
  37. data/vendor/bundle/ruby/2.3.0/cache/rspec-support-3.7.1.gem +0 -0
  38. data/vendor/bundle/ruby/2.3.0/cache/thread_safe-0.3.6.gem +0 -0
  39. data/vendor/bundle/ruby/2.3.0/cache/tzinfo-1.2.5.gem +0 -0
  40. data/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/digest-sha3-1.1.0/gem_make.out +5 -0
  41. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/CHANGELOG.md +522 -0
  42. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/MIT-LICENSE +20 -0
  43. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/README.rdoc +39 -0
  44. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support.rb +95 -0
  45. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/all.rb +5 -0
  46. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/array_inquirer.rb +48 -0
  47. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/backtrace_cleaner.rb +105 -0
  48. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/benchmarkable.rb +51 -0
  49. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/builder.rb +8 -0
  50. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache.rb +811 -0
  51. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/file_store.rb +196 -0
  52. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/mem_cache_store.rb +207 -0
  53. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/memory_store.rb +169 -0
  54. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/null_store.rb +43 -0
  55. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/redis_cache_store.rb +454 -0
  56. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/strategy/local_cache.rb +194 -0
  57. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb +45 -0
  58. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/callbacks.rb +845 -0
  59. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/concern.rb +144 -0
  60. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/concurrency/load_interlock_aware_monitor.rb +17 -0
  61. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/concurrency/share_lock.rb +227 -0
  62. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/configurable.rb +150 -0
  63. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext.rb +5 -0
  64. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array.rb +9 -0
  65. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/access.rb +92 -0
  66. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/conversions.rb +213 -0
  67. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/extract_options.rb +31 -0
  68. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/grouping.rb +109 -0
  69. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/inquiry.rb +19 -0
  70. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/prepend_and_append.rb +9 -0
  71. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/array/wrap.rb +48 -0
  72. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/benchmark.rb +16 -0
  73. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/big_decimal.rb +3 -0
  74. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/big_decimal/conversions.rb +14 -0
  75. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/class.rb +4 -0
  76. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/class/attribute.rb +146 -0
  77. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/class/attribute_accessors.rb +6 -0
  78. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/class/subclasses.rb +54 -0
  79. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date.rb +7 -0
  80. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date/acts_like.rb +10 -0
  81. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date/blank.rb +14 -0
  82. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date/calculations.rb +145 -0
  83. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date/conversions.rb +96 -0
  84. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date/zones.rb +8 -0
  85. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_and_time/calculations.rb +374 -0
  86. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_and_time/compatibility.rb +16 -0
  87. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_and_time/zones.rb +41 -0
  88. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time.rb +7 -0
  89. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time/acts_like.rb +16 -0
  90. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time/blank.rb +14 -0
  91. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time/calculations.rb +211 -0
  92. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time/compatibility.rb +18 -0
  93. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/date_time/conversions.rb +107 -0
  94. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/digest/uuid.rb +53 -0
  95. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/enumerable.rb +159 -0
  96. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/file.rb +3 -0
  97. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/file/atomic.rb +70 -0
  98. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash.rb +11 -0
  99. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/compact.rb +29 -0
  100. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/conversions.rb +263 -0
  101. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/deep_merge.rb +34 -0
  102. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/except.rb +24 -0
  103. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/indifferent_access.rb +24 -0
  104. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/keys.rb +172 -0
  105. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/reverse_merge.rb +25 -0
  106. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/slice.rb +48 -0
  107. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/hash/transform_values.rb +32 -0
  108. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/integer.rb +5 -0
  109. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/integer/inflections.rb +31 -0
  110. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/integer/multiple.rb +12 -0
  111. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/integer/time.rb +22 -0
  112. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel.rb +6 -0
  113. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/agnostics.rb +13 -0
  114. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/concern.rb +14 -0
  115. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/reporting.rb +45 -0
  116. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/kernel/singleton_class.rb +8 -0
  117. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/load_error.rb +9 -0
  118. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/marshal.rb +24 -0
  119. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module.rb +14 -0
  120. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/aliasing.rb +31 -0
  121. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/anonymous.rb +30 -0
  122. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/attr_internal.rb +38 -0
  123. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/attribute_accessors.rb +215 -0
  124. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/attribute_accessors_per_thread.rb +150 -0
  125. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/concerning.rb +134 -0
  126. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/delegation.rb +287 -0
  127. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/deprecation.rb +25 -0
  128. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/introspection.rb +62 -0
  129. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/reachable.rb +11 -0
  130. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/redefine_method.rb +49 -0
  131. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/module/remove_method.rb +17 -0
  132. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/name_error.rb +38 -0
  133. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/numeric.rb +6 -0
  134. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/numeric/bytes.rb +66 -0
  135. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/numeric/conversions.rb +140 -0
  136. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/numeric/inquiry.rb +28 -0
  137. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/numeric/time.rb +66 -0
  138. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object.rb +16 -0
  139. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/acts_like.rb +21 -0
  140. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/blank.rb +156 -0
  141. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/conversions.rb +6 -0
  142. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/deep_dup.rb +55 -0
  143. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/duplicable.rb +156 -0
  144. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/inclusion.rb +29 -0
  145. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/instance_variables.rb +30 -0
  146. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/json.rb +227 -0
  147. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/to_param.rb +3 -0
  148. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/to_query.rb +86 -0
  149. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/try.rb +148 -0
  150. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/object/with_options.rb +82 -0
  151. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range.rb +7 -0
  152. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range/conversions.rb +39 -0
  153. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range/each.rb +25 -0
  154. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range/include_range.rb +25 -0
  155. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range/include_time_with_zone.rb +23 -0
  156. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/range/overlaps.rb +10 -0
  157. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/regexp.rb +11 -0
  158. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/securerandom.rb +25 -0
  159. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string.rb +15 -0
  160. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/access.rb +106 -0
  161. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/behavior.rb +8 -0
  162. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/conversions.rb +59 -0
  163. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/exclude.rb +13 -0
  164. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/filters.rb +104 -0
  165. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/indent.rb +45 -0
  166. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/inflections.rb +254 -0
  167. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/inquiry.rb +15 -0
  168. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/multibyte.rb +57 -0
  169. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/output_safety.rb +258 -0
  170. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/starts_ends_with.rb +6 -0
  171. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/strip.rb +25 -0
  172. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/string/zones.rb +16 -0
  173. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time.rb +7 -0
  174. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/acts_like.rb +10 -0
  175. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/calculations.rb +315 -0
  176. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/compatibility.rb +16 -0
  177. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/conversions.rb +72 -0
  178. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/time/zones.rb +113 -0
  179. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/core_ext/uri.rb +27 -0
  180. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/current_attributes.rb +195 -0
  181. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies.rb +745 -0
  182. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies/autoload.rb +79 -0
  183. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/dependencies/interlock.rb +57 -0
  184. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation.rb +46 -0
  185. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/behaviors.rb +105 -0
  186. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/constant_accessor.rb +52 -0
  187. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/instance_delegator.rb +39 -0
  188. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/method_wrappers.rb +77 -0
  189. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/proxy_wrappers.rb +154 -0
  190. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/deprecation/reporting.rb +114 -0
  191. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/descendants_tracker.rb +62 -0
  192. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/digest.rb +20 -0
  193. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/duration.rb +432 -0
  194. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/duration/iso8601_parser.rb +125 -0
  195. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/duration/iso8601_serializer.rb +55 -0
  196. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/encrypted_configuration.rb +49 -0
  197. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/encrypted_file.rb +99 -0
  198. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/evented_file_update_checker.rb +205 -0
  199. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/execution_wrapper.rb +128 -0
  200. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/executor.rb +8 -0
  201. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/file_update_checker.rb +163 -0
  202. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/gem_version.rb +17 -0
  203. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/gzip.rb +38 -0
  204. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/hash_with_indifferent_access.rb +381 -0
  205. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/i18n.rb +15 -0
  206. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/i18n_railtie.rb +114 -0
  207. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/inflections.rb +72 -0
  208. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/inflector.rb +9 -0
  209. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/inflector/inflections.rb +260 -0
  210. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/inflector/methods.rb +408 -0
  211. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/inflector/transliterate.rb +118 -0
  212. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/json.rb +4 -0
  213. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/json/decoding.rb +76 -0
  214. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/json/encoding.rb +130 -0
  215. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/key_generator.rb +73 -0
  216. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/lazy_load_hooks.rb +78 -0
  217. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/locale/en.yml +135 -0
  218. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/log_subscriber.rb +112 -0
  219. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/log_subscriber/test_helper.rb +106 -0
  220. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/logger.rb +108 -0
  221. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/logger_silence.rb +29 -0
  222. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/logger_thread_safe_level.rb +33 -0
  223. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb +229 -0
  224. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/message_verifier.rb +205 -0
  225. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/messages/metadata.rb +71 -0
  226. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/messages/rotation_configuration.rb +22 -0
  227. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/messages/rotator.rb +56 -0
  228. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/multibyte.rb +23 -0
  229. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/multibyte/chars.rb +235 -0
  230. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/multibyte/unicode.rb +394 -0
  231. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/notifications.rb +216 -0
  232. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/notifications/fanout.rb +159 -0
  233. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/notifications/instrumenter.rb +93 -0
  234. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper.rb +371 -0
  235. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_converter.rb +184 -0
  236. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_currency_converter.rb +46 -0
  237. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_delimited_converter.rb +29 -0
  238. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_human_converter.rb +68 -0
  239. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_human_size_converter.rb +59 -0
  240. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_percentage_converter.rb +14 -0
  241. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_phone_converter.rb +58 -0
  242. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/number_to_rounded_converter.rb +54 -0
  243. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/number_helper/rounding_helper.rb +66 -0
  244. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/option_merger.rb +27 -0
  245. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/ordered_hash.rb +50 -0
  246. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/ordered_options.rb +85 -0
  247. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/per_thread_registry.rb +60 -0
  248. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/proxy_object.rb +15 -0
  249. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/rails.rb +35 -0
  250. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/railtie.rb +80 -0
  251. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/reloader.rb +131 -0
  252. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/rescuable.rb +174 -0
  253. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/security_utils.rb +31 -0
  254. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/string_inquirer.rb +34 -0
  255. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/subscriber.rb +126 -0
  256. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/tagged_logging.rb +79 -0
  257. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/test_case.rb +72 -0
  258. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/assertions.rb +214 -0
  259. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/autorun.rb +7 -0
  260. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/constant_lookup.rb +51 -0
  261. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/declarative.rb +28 -0
  262. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/deprecation.rb +39 -0
  263. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/file_fixtures.rb +36 -0
  264. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/isolation.rb +110 -0
  265. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/method_call_assertions.rb +43 -0
  266. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/setup_and_teardown.rb +59 -0
  267. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/stream.rb +44 -0
  268. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/tagged_logging.rb +27 -0
  269. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/testing/time_helpers.rb +200 -0
  270. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/time.rb +20 -0
  271. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/time_with_zone.rb +551 -0
  272. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/values/time_zone.rb +564 -0
  273. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/values/unicode_tables.dat +0 -0
  274. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/version.rb +10 -0
  275. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini.rb +209 -0
  276. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/jdom.rb +183 -0
  277. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/libxml.rb +80 -0
  278. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/libxmlsax.rb +83 -0
  279. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/nokogiri.rb +83 -0
  280. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/nokogirisax.rb +86 -0
  281. data/vendor/bundle/ruby/2.3.0/gems/activesupport-5.2.0/lib/active_support/xml_mini/rexml.rb +130 -0
  282. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/MIT-LICENSE +22 -0
  283. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/README_INDEX.rdoc +123 -0
  284. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/bin/coderay +215 -0
  285. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay.rb +284 -0
  286. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/duo.rb +81 -0
  287. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders.rb +18 -0
  288. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/_map.rb +17 -0
  289. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/comment_filter.rb +25 -0
  290. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/count.rb +39 -0
  291. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/debug.rb +49 -0
  292. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/debug_lint.rb +63 -0
  293. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/div.rb +23 -0
  294. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/encoder.rb +190 -0
  295. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/filter.rb +58 -0
  296. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/html.rb +333 -0
  297. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/html/css.rb +65 -0
  298. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/html/numbering.rb +108 -0
  299. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/html/output.rb +166 -0
  300. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/json.rb +83 -0
  301. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/lines_of_code.rb +45 -0
  302. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/lint.rb +59 -0
  303. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/null.rb +18 -0
  304. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/page.rb +24 -0
  305. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/span.rb +23 -0
  306. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/statistic.rb +95 -0
  307. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/terminal.rb +195 -0
  308. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/text.rb +46 -0
  309. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/token_kind_filter.rb +111 -0
  310. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/xml.rb +72 -0
  311. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/encoders/yaml.rb +50 -0
  312. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/for_redcloth.rb +95 -0
  313. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/helpers/file_type.rb +151 -0
  314. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin.rb +55 -0
  315. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/helpers/plugin_host.rb +221 -0
  316. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/helpers/word_list.rb +72 -0
  317. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners.rb +27 -0
  318. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/_map.rb +24 -0
  319. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/c.rb +189 -0
  320. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/clojure.rb +217 -0
  321. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/cpp.rb +217 -0
  322. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/css.rb +196 -0
  323. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/debug.rb +75 -0
  324. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/delphi.rb +144 -0
  325. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/diff.rb +221 -0
  326. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/erb.rb +81 -0
  327. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/go.rb +208 -0
  328. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/groovy.rb +268 -0
  329. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/haml.rb +168 -0
  330. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/html.rb +275 -0
  331. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/java.rb +174 -0
  332. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/java/builtin_types.rb +421 -0
  333. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/java_script.rb +237 -0
  334. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/json.rb +98 -0
  335. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/lua.rb +280 -0
  336. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/php.rb +527 -0
  337. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/python.rb +287 -0
  338. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/raydebug.rb +75 -0
  339. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby.rb +477 -0
  340. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/patterns.rb +178 -0
  341. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/ruby/string_state.rb +79 -0
  342. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/sass.rb +232 -0
  343. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/scanner.rb +337 -0
  344. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/sql.rb +169 -0
  345. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/taskpaper.rb +36 -0
  346. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/text.rb +26 -0
  347. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/xml.rb +17 -0
  348. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/scanners/yaml.rb +140 -0
  349. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/styles.rb +15 -0
  350. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/styles/_map.rb +7 -0
  351. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/styles/alpha.rb +153 -0
  352. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/styles/style.rb +18 -0
  353. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/token_kinds.rb +85 -0
  354. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/tokens.rb +161 -0
  355. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/tokens_proxy.rb +55 -0
  356. data/vendor/bundle/ruby/2.3.0/gems/coderay-1.1.2/lib/coderay/version.rb +3 -0
  357. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/CHANGELOG.md +387 -0
  358. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/LICENSE.txt +21 -0
  359. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/README.md +247 -0
  360. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent.rb +130 -0
  361. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/agent.rb +587 -0
  362. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/array.rb +39 -0
  363. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/async.rb +445 -0
  364. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atom.rb +222 -0
  365. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/abstract_thread_local_var.rb +66 -0
  366. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/atomic_boolean.rb +122 -0
  367. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/atomic_fixnum.rb +139 -0
  368. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/atomic_reference.rb +51 -0
  369. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/count_down_latch.rb +100 -0
  370. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/cyclic_barrier.rb +128 -0
  371. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/event.rb +109 -0
  372. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/java_count_down_latch.rb +39 -0
  373. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/java_thread_local_var.rb +37 -0
  374. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/mutex_atomic_boolean.rb +60 -0
  375. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/mutex_atomic_fixnum.rb +75 -0
  376. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/mutex_count_down_latch.rb +43 -0
  377. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/mutex_semaphore.rb +115 -0
  378. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/read_write_lock.rb +253 -0
  379. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/reentrant_read_write_lock.rb +377 -0
  380. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/ruby_thread_local_var.rb +161 -0
  381. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/semaphore.rb +145 -0
  382. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic/thread_local_var.rb +104 -0
  383. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/concurrent_update_error.rb +8 -0
  384. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/direct_update.rb +81 -0
  385. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/jruby+truffle.rb +2 -0
  386. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/jruby.rb +16 -0
  387. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/mutex_atomic.rb +61 -0
  388. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/numeric_cas_wrapper.rb +28 -0
  389. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/rbx.rb +22 -0
  390. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomic_reference/ruby.rb +32 -0
  391. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/atomics.rb +53 -0
  392. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/copy_on_notify_observer_set.rb +107 -0
  393. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/copy_on_write_observer_set.rb +111 -0
  394. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/java_non_concurrent_priority_queue.rb +84 -0
  395. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/map/atomic_reference_map_backend.rb +927 -0
  396. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/map/mri_map_backend.rb +66 -0
  397. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/map/non_concurrent_map_backend.rb +141 -0
  398. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/map/synchronized_map_backend.rb +82 -0
  399. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/non_concurrent_priority_queue.rb +143 -0
  400. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/collection/ruby_non_concurrent_priority_queue.rb +150 -0
  401. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/concern/deprecation.rb +34 -0
  402. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/concern/dereferenceable.rb +73 -0
  403. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/concern/logging.rb +27 -0
  404. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/concern/obligation.rb +220 -0
  405. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/concern/observable.rb +110 -0
  406. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/configuration.rb +188 -0
  407. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/constants.rb +8 -0
  408. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/dataflow.rb +80 -0
  409. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/delay.rb +197 -0
  410. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/edge.rb +26 -0
  411. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/errors.rb +69 -0
  412. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/exchanger.rb +356 -0
  413. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/abstract_executor_service.rb +134 -0
  414. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/cached_thread_pool.rb +62 -0
  415. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/executor_service.rb +185 -0
  416. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/fixed_thread_pool.rb +206 -0
  417. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/immediate_executor.rb +66 -0
  418. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/indirect_immediate_executor.rb +44 -0
  419. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/java_executor_service.rb +100 -0
  420. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/java_single_thread_executor.rb +29 -0
  421. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/java_thread_pool_executor.rb +120 -0
  422. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_executor_service.rb +78 -0
  423. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_single_thread_executor.rb +22 -0
  424. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/ruby_thread_pool_executor.rb +362 -0
  425. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/safe_task_executor.rb +35 -0
  426. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serial_executor_service.rb +34 -0
  427. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution.rb +107 -0
  428. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/serialized_execution_delegator.rb +28 -0
  429. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/simple_executor_service.rb +100 -0
  430. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/single_thread_executor.rb +56 -0
  431. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/thread_pool_executor.rb +87 -0
  432. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executor/timer_set.rb +175 -0
  433. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/executors.rb +20 -0
  434. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/future.rb +138 -0
  435. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/hash.rb +36 -0
  436. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/immutable_struct.rb +93 -0
  437. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/ivar.rb +208 -0
  438. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/lazy_register.rb +81 -0
  439. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/map.rb +240 -0
  440. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/maybe.rb +229 -0
  441. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/mutable_struct.rb +228 -0
  442. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/mvar.rb +242 -0
  443. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/options.rb +42 -0
  444. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/promise.rb +547 -0
  445. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/scheduled_task.rb +318 -0
  446. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/settable_struct.rb +128 -0
  447. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization.rb +31 -0
  448. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/abstract_lockable_object.rb +98 -0
  449. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/abstract_object.rb +24 -0
  450. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/abstract_struct.rb +157 -0
  451. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/condition.rb +58 -0
  452. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/jruby_lockable_object.rb +13 -0
  453. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/jruby_object.rb +44 -0
  454. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/lock.rb +34 -0
  455. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/lockable_object.rb +74 -0
  456. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_lockable_object.rb +71 -0
  457. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/mri_object.rb +43 -0
  458. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/object.rb +153 -0
  459. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/rbx_lockable_object.rb +65 -0
  460. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/rbx_object.rb +48 -0
  461. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/truffle_lockable_object.rb +9 -0
  462. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/truffle_object.rb +31 -0
  463. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/synchronization/volatile.rb +34 -0
  464. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/synchronized_delegator.rb +50 -0
  465. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util.rb +16 -0
  466. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/adder.rb +74 -0
  467. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/array_hash_rbx.rb +30 -0
  468. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/cheap_lockable.rb +118 -0
  469. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/power_of_two_tuple.rb +38 -0
  470. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/striped64.rb +241 -0
  471. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/volatile.rb +75 -0
  472. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/thread_safe/util/xor_shift_random.rb +50 -0
  473. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/timer_task.rb +331 -0
  474. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/tuple.rb +86 -0
  475. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/tvar.rb +258 -0
  476. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/at_exit.rb +97 -0
  477. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/engine.rb +56 -0
  478. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/monotonic_time.rb +58 -0
  479. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/native_extension_loader.rb +73 -0
  480. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/native_integer.rb +53 -0
  481. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/utility/processor_counter.rb +160 -0
  482. data/vendor/bundle/ruby/2.3.0/gems/concurrent-ruby-1.0.5/lib/concurrent/version.rb +4 -0
  483. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/.rspec +1 -0
  484. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/Code-of-Conduct.md +74 -0
  485. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/Contributing.md +83 -0
  486. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/History.md +220 -0
  487. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/License.md +39 -0
  488. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/Manifest.txt +37 -0
  489. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/README.rdoc +84 -0
  490. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/Rakefile +57 -0
  491. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/autotest/discover.rb +1 -0
  492. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/bin/htmldiff +32 -0
  493. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/bin/ldiff +6 -0
  494. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/docs/COPYING.txt +339 -0
  495. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/docs/artistic.txt +127 -0
  496. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff-lcs.rb +3 -0
  497. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs.rb +725 -0
  498. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/array.rb +7 -0
  499. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/block.rb +37 -0
  500. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/callbacks.rb +322 -0
  501. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/change.rb +181 -0
  502. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/htmldiff.rb +149 -0
  503. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/hunk.rb +276 -0
  504. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/internals.rb +307 -0
  505. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/ldiff.rb +167 -0
  506. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/lib/diff/lcs/string.rb +5 -0
  507. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/change_spec.rb +65 -0
  508. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/diff_spec.rb +47 -0
  509. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/fixtures/ds1.csv +50 -0
  510. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/fixtures/ds2.csv +51 -0
  511. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/hunk_spec.rb +72 -0
  512. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/issues_spec.rb +49 -0
  513. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/lcs_spec.rb +56 -0
  514. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/ldiff_spec.rb +47 -0
  515. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/patch_spec.rb +422 -0
  516. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/sdiff_spec.rb +214 -0
  517. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/spec_helper.rb +321 -0
  518. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/traverse_balanced_spec.rb +310 -0
  519. data/vendor/bundle/ruby/2.3.0/gems/diff-lcs-1.3/spec/traverse_sequences_spec.rb +139 -0
  520. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/LICENSE +9 -0
  521. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/Makefile +18 -0
  522. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/README.md +52 -0
  523. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/digest-sha3.gemspec +23 -0
  524. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakF-1600-int-set.h +6 -0
  525. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakF-1600-interface.h +46 -0
  526. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakF-1600-reference.c +300 -0
  527. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakNISTInterface.c +81 -0
  528. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakNISTInterface.h +70 -0
  529. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakSponge.c +266 -0
  530. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/KeccakSponge.h +76 -0
  531. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/brg_endian.h +142 -0
  532. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/displayIntermediateValues.c +117 -0
  533. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/displayIntermediateValues.h +29 -0
  534. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/extconf.rb +7 -0
  535. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/ext/digest/sha3.c +153 -0
  536. data/vendor/bundle/ruby/2.3.0/gems/digest-sha3-1.1.0/lib/digest/sha3/version.rb +7 -0
  537. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/MIT-LICENSE +20 -0
  538. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/README.md +84 -0
  539. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-3.2.x +10 -0
  540. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-4.0.x +10 -0
  541. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-4.1.x +10 -0
  542. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-4.2.x +10 -0
  543. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-5.0.x +10 -0
  544. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-5.1.x +10 -0
  545. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/gemfiles/Gemfile.rails-master +10 -0
  546. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n.rb +372 -0
  547. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend.rb +20 -0
  548. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/base.rb +257 -0
  549. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/cache.rb +116 -0
  550. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/cascade.rb +56 -0
  551. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/chain.rb +99 -0
  552. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/fallbacks.rb +84 -0
  553. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/flatten.rb +115 -0
  554. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/gettext.rb +83 -0
  555. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/interpolation_compiler.rb +123 -0
  556. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/key_value.rb +179 -0
  557. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/memoize.rb +48 -0
  558. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/metadata.rb +71 -0
  559. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/pluralization.rb +55 -0
  560. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/simple.rb +95 -0
  561. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/backend/transliterator.rb +108 -0
  562. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/config.rb +149 -0
  563. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/core_ext/hash.rb +29 -0
  564. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/core_ext/kernel/suppress_warnings.rb +8 -0
  565. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/core_ext/string/interpolate.rb +9 -0
  566. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/exceptions.rb +106 -0
  567. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/gettext.rb +28 -0
  568. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/gettext/helpers.rb +75 -0
  569. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/gettext/po_parser.rb +329 -0
  570. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/interpolate/ruby.rb +37 -0
  571. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale.rb +8 -0
  572. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale/fallbacks.rb +96 -0
  573. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale/tag.rb +28 -0
  574. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale/tag/parents.rb +22 -0
  575. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale/tag/rfc4646.rb +74 -0
  576. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/locale/tag/simple.rb +39 -0
  577. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/middleware.rb +17 -0
  578. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests.rb +14 -0
  579. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/basics.rb +60 -0
  580. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/defaults.rb +52 -0
  581. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/interpolation.rb +159 -0
  582. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/link.rb +56 -0
  583. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/localization.rb +19 -0
  584. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/localization/date.rb +95 -0
  585. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/localization/date_time.rb +82 -0
  586. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/localization/procs.rb +116 -0
  587. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/localization/time.rb +81 -0
  588. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/lookup.rb +81 -0
  589. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/pluralization.rb +35 -0
  590. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/tests/procs.rb +55 -0
  591. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/lib/i18n/version.rb +5 -0
  592. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/all_features_test.rb +58 -0
  593. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/cascade_test.rb +28 -0
  594. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/chain_test.rb +24 -0
  595. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/fallbacks_test.rb +30 -0
  596. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/key_value_test.rb +24 -0
  597. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/memoize_test.rb +56 -0
  598. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/override_test.rb +42 -0
  599. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/pluralization_test.rb +30 -0
  600. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/api/simple_test.rb +28 -0
  601. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/cache_test.rb +109 -0
  602. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/cascade_test.rb +86 -0
  603. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/chain_test.rb +122 -0
  604. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/exceptions_test.rb +36 -0
  605. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/fallbacks_test.rb +219 -0
  606. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/interpolation_compiler_test.rb +118 -0
  607. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/key_value_test.rb +61 -0
  608. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/memoize_test.rb +79 -0
  609. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/metadata_test.rb +48 -0
  610. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/pluralization_test.rb +45 -0
  611. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/simple_test.rb +103 -0
  612. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/backend/transliterator_test.rb +84 -0
  613. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/core_ext/hash_test.rb +36 -0
  614. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/gettext/api_test.rb +214 -0
  615. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/gettext/backend_test.rb +92 -0
  616. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n/exceptions_test.rb +117 -0
  617. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n/gettext_plural_keys_test.rb +20 -0
  618. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n/interpolate_test.rb +91 -0
  619. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n/load_path_test.rb +34 -0
  620. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n/middleware_test.rb +24 -0
  621. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/i18n_test.rb +462 -0
  622. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/locale/fallbacks_test.rb +133 -0
  623. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/locale/tag/rfc4646_test.rb +143 -0
  624. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/locale/tag/simple_test.rb +32 -0
  625. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/run_all.rb +20 -0
  626. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/de.po +82 -0
  627. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/en.rb +3 -0
  628. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/en.yml +3 -0
  629. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/invalid/empty.yml +0 -0
  630. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/invalid/syntax.yml +4 -0
  631. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_data/locales/plurals.rb +113 -0
  632. data/vendor/bundle/ruby/2.3.0/gems/i18n-1.0.1/test/test_helper.rb +61 -0
  633. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/.gemtest +0 -0
  634. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/.travis.yml +30 -0
  635. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/.yardopts +1 -0
  636. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/Gemfile +2 -0
  637. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/LICENSE +25 -0
  638. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/README.markdown +91 -0
  639. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/Rakefile +80 -0
  640. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/lib/method_source.rb +141 -0
  641. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/lib/method_source/code_helpers.rb +154 -0
  642. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/lib/method_source/source_location.rb +138 -0
  643. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/lib/method_source/version.rb +3 -0
  644. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/method_source.gemspec +34 -0
  645. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/spec/method_source/code_helpers_spec.rb +43 -0
  646. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/spec/method_source_spec.rb +143 -0
  647. data/vendor/bundle/ruby/2.3.0/gems/method_source-0.9.0/spec/spec_helper.rb +101 -0
  648. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/.autotest +34 -0
  649. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/History.rdoc +1310 -0
  650. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/Manifest.txt +26 -0
  651. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/README.rdoc +746 -0
  652. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/Rakefile +86 -0
  653. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/design_rationale.rb +52 -0
  654. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/hoe/minitest.rb +32 -0
  655. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest.rb +987 -0
  656. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/assertions.rb +693 -0
  657. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/autorun.rb +13 -0
  658. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/benchmark.rb +455 -0
  659. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/expectations.rb +284 -0
  660. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/hell.rb +11 -0
  661. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/mock.rb +240 -0
  662. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/parallel.rb +70 -0
  663. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/pride.rb +4 -0
  664. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/pride_plugin.rb +142 -0
  665. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/spec.rb +331 -0
  666. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/test.rb +220 -0
  667. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/lib/minitest/unit.rb +45 -0
  668. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/metametameta.rb +102 -0
  669. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/test_minitest_benchmark.rb +137 -0
  670. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/test_minitest_mock.rb +874 -0
  671. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/test_minitest_reporter.rb +299 -0
  672. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/test_minitest_spec.rb +987 -0
  673. data/vendor/bundle/ruby/2.3.0/gems/minitest-5.11.3/test/minitest/test_minitest_test.rb +2142 -0
  674. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/CHANGELOG.md +797 -0
  675. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/LICENSE +25 -0
  676. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/README.md +407 -0
  677. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/bin/pry +12 -0
  678. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry.rb +162 -0
  679. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/basic_object.rb +6 -0
  680. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/cli.rb +225 -0
  681. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/code.rb +353 -0
  682. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/code/code_file.rb +109 -0
  683. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/code/code_range.rb +71 -0
  684. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/code/loc.rb +92 -0
  685. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/code_object.rb +195 -0
  686. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/color_printer.rb +64 -0
  687. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/command.rb +716 -0
  688. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/command_set.rb +450 -0
  689. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands.rb +6 -0
  690. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/amend_line.rb +99 -0
  691. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/bang.rb +20 -0
  692. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/bang_pry.rb +17 -0
  693. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cat.rb +62 -0
  694. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cat/abstract_formatter.rb +27 -0
  695. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cat/exception_formatter.rb +78 -0
  696. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cat/file_formatter.rb +71 -0
  697. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
  698. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/cd.rb +41 -0
  699. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/change_inspector.rb +27 -0
  700. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/change_prompt.rb +26 -0
  701. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/code_collector.rb +167 -0
  702. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/disable_pry.rb +27 -0
  703. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/disabled_commands.rb +2 -0
  704. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/easter_eggs.rb +112 -0
  705. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/edit.rb +199 -0
  706. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/edit/exception_patcher.rb +25 -0
  707. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/edit/file_and_line_locator.rb +36 -0
  708. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/exit.rb +42 -0
  709. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/exit_all.rb +29 -0
  710. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/exit_program.rb +23 -0
  711. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/find_method.rb +193 -0
  712. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/fix_indent.rb +19 -0
  713. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_cd.rb +26 -0
  714. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_install.rb +32 -0
  715. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_list.rb +33 -0
  716. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_open.rb +29 -0
  717. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_readme.rb +25 -0
  718. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gem_search.rb +40 -0
  719. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/gist.rb +101 -0
  720. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/help.rb +164 -0
  721. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/hist.rb +180 -0
  722. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/import_set.rb +22 -0
  723. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/install_command.rb +53 -0
  724. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/jump_to.rb +29 -0
  725. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/list_inspectors.rb +35 -0
  726. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/list_prompts.rb +35 -0
  727. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls.rb +116 -0
  728. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/constants.rb +58 -0
  729. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/formatter.rb +50 -0
  730. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/globals.rb +48 -0
  731. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/grep.rb +21 -0
  732. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/instance_vars.rb +39 -0
  733. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/interrogatable.rb +18 -0
  734. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/jruby_hacks.rb +49 -0
  735. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/local_names.rb +35 -0
  736. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/local_vars.rb +39 -0
  737. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/ls_entity.rb +70 -0
  738. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/methods.rb +57 -0
  739. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/methods_helper.rb +46 -0
  740. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ls/self_methods.rb +34 -0
  741. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/nesting.rb +25 -0
  742. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/play.rb +103 -0
  743. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/pry_backtrace.rb +25 -0
  744. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/pry_version.rb +17 -0
  745. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/raise_up.rb +32 -0
  746. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/reload_code.rb +62 -0
  747. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/reset.rb +18 -0
  748. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/ri.rb +64 -0
  749. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/save_file.rb +61 -0
  750. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/shell_command.rb +74 -0
  751. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/shell_mode.rb +25 -0
  752. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/show_doc.rb +83 -0
  753. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/show_info.rb +209 -0
  754. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/show_input.rb +17 -0
  755. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/show_source.rb +50 -0
  756. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/simple_prompt.rb +22 -0
  757. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/stat.rb +40 -0
  758. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/switch_to.rb +23 -0
  759. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/toggle_color.rb +24 -0
  760. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/watch_expression.rb +105 -0
  761. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/watch_expression/expression.rb +38 -0
  762. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/whereami.rb +197 -0
  763. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/commands/wtf.rb +57 -0
  764. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/config.rb +11 -0
  765. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/config/behavior.rb +231 -0
  766. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/config/convenience.rb +25 -0
  767. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/config/default.rb +149 -0
  768. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/config/memoization.rb +44 -0
  769. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/core_extensions.rb +141 -0
  770. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/editor.rb +135 -0
  771. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/exceptions.rb +78 -0
  772. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/forwardable.rb +23 -0
  773. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers.rb +5 -0
  774. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/base_helpers.rb +71 -0
  775. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/command_helpers.rb +156 -0
  776. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/documentation_helpers.rb +76 -0
  777. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/options_helpers.rb +27 -0
  778. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/table.rb +109 -0
  779. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/helpers/text.rb +116 -0
  780. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/history.rb +148 -0
  781. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/history_array.rb +121 -0
  782. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/hooks.rb +171 -0
  783. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/indent.rb +410 -0
  784. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/input_completer.rb +260 -0
  785. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/input_lock.rb +132 -0
  786. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/inspector.rb +27 -0
  787. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/last_exception.rb +61 -0
  788. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/method.rb +546 -0
  789. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/method/disowned.rb +54 -0
  790. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/method/patcher.rb +122 -0
  791. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/method/weird_method_locator.rb +199 -0
  792. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/object_path.rb +82 -0
  793. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/output.rb +49 -0
  794. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/pager.rb +242 -0
  795. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/platform.rb +93 -0
  796. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/plugins.rb +118 -0
  797. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/prompt.rb +26 -0
  798. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/pry_class.rb +401 -0
  799. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/pry_instance.rb +666 -0
  800. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/rbx_path.rb +22 -0
  801. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/repl.rb +232 -0
  802. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/repl_file_loader.rb +74 -0
  803. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/rubygem.rb +84 -0
  804. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/slop.rb +661 -0
  805. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/slop/LICENSE +20 -0
  806. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/slop/commands.rb +196 -0
  807. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/slop/option.rb +208 -0
  808. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/terminal.rb +90 -0
  809. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable.rb +70 -0
  810. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable/evalable.rb +15 -0
  811. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable/mockable.rb +14 -0
  812. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable/pry_tester.rb +73 -0
  813. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable/utility.rb +26 -0
  814. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/testable/variables.rb +46 -0
  815. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/version.rb +3 -0
  816. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/wrapped_module.rb +378 -0
  817. data/vendor/bundle/ruby/2.3.0/gems/pry-0.11.3/lib/pry/wrapped_module/candidate.rb +131 -0
  818. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/.autotest +7 -0
  819. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/.rubocop.yml +27 -0
  820. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/.togglerc +7 -0
  821. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/CONTRIBUTING.rdoc +38 -0
  822. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/History.rdoc +659 -0
  823. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/MIT-LICENSE +21 -0
  824. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/Manifest.txt +166 -0
  825. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/README.rdoc +139 -0
  826. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/Rakefile +81 -0
  827. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/bin/rake +33 -0
  828. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/command_line_usage.rdoc +158 -0
  829. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/example/Rakefile1 +38 -0
  830. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/example/Rakefile2 +35 -0
  831. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/example/a.c +6 -0
  832. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/example/b.c +6 -0
  833. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/example/main.c +11 -0
  834. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/glossary.rdoc +42 -0
  835. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/jamis.rb +591 -0
  836. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/proto_rake.rdoc +127 -0
  837. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/rake.1 +141 -0
  838. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/rakefile.rdoc +624 -0
  839. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/rational.rdoc +151 -0
  840. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.14.rdoc +23 -0
  841. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.4.15.rdoc +35 -0
  842. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.0.rdoc +53 -0
  843. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.3.rdoc +78 -0
  844. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.5.4.rdoc +46 -0
  845. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.6.0.rdoc +141 -0
  846. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.0.rdoc +119 -0
  847. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.1.rdoc +59 -0
  848. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.2.rdoc +121 -0
  849. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.7.3.rdoc +47 -0
  850. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.0.rdoc +114 -0
  851. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.2.rdoc +165 -0
  852. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.3.rdoc +112 -0
  853. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.4.rdoc +147 -0
  854. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.5.rdoc +53 -0
  855. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.6.rdoc +37 -0
  856. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.8.7.rdoc +55 -0
  857. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.0.rdoc +112 -0
  858. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.1.rdoc +52 -0
  859. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.2.rdoc +55 -0
  860. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.2.rdoc +49 -0
  861. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.3.rdoc +102 -0
  862. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.4.rdoc +60 -0
  863. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.5.rdoc +55 -0
  864. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-0.9.6.rdoc +64 -0
  865. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.0.rdoc +178 -0
  866. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.1.rdoc +58 -0
  867. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.2.rdoc +53 -0
  868. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-10.0.3.rdoc +191 -0
  869. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/doc/release_notes/rake-10.1.0.rdoc +61 -0
  870. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake.rb +79 -0
  871. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/alt_system.rb +110 -0
  872. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb +790 -0
  873. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/backtrace.rb +23 -0
  874. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/clean.rb +76 -0
  875. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/cloneable.rb +16 -0
  876. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/.document +1 -0
  877. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/compositepublisher.rb +21 -0
  878. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/ftptools.rb +137 -0
  879. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/publisher.rb +81 -0
  880. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/rubyforgepublisher.rb +18 -0
  881. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sshpublisher.rb +61 -0
  882. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/contrib/sys.rb +4 -0
  883. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/cpu_counter.rb +125 -0
  884. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/default_loader.rb +14 -0
  885. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/dsl_definition.rb +201 -0
  886. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/early_time.rb +21 -0
  887. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/core.rb +25 -0
  888. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/module.rb +2 -0
  889. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/pathname.rb +25 -0
  890. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/string.rb +175 -0
  891. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ext/time.rb +18 -0
  892. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/file_creation_task.rb +24 -0
  893. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/file_list.rb +428 -0
  894. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/file_task.rb +46 -0
  895. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils.rb +128 -0
  896. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/file_utils_ext.rb +144 -0
  897. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/gempackagetask.rb +4 -0
  898. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_chain.rb +56 -0
  899. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/invocation_exception_mixin.rb +16 -0
  900. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/late_time.rb +17 -0
  901. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/linked_list.rb +103 -0
  902. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/loaders/makefile.rb +53 -0
  903. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/multi_task.rb +13 -0
  904. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/name_space.rb +38 -0
  905. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/packagetask.rb +199 -0
  906. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pathmap.rb +3 -0
  907. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/phony.rb +15 -0
  908. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/private_reader.rb +20 -0
  909. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/promise.rb +99 -0
  910. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/pseudo_status.rb +29 -0
  911. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_module.rb +38 -0
  912. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb +22 -0
  913. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/rdoctask.rb +4 -0
  914. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/ruby182_test_unit_fix.rb +29 -0
  915. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/rule_recursion_overflow_error.rb +20 -0
  916. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/runtest.rb +27 -0
  917. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/scope.rb +42 -0
  918. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb +383 -0
  919. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task_argument_error.rb +7 -0
  920. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task_arguments.rb +98 -0
  921. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task_manager.rb +307 -0
  922. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/tasklib.rb +24 -0
  923. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/testtask.rb +213 -0
  924. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_history_display.rb +48 -0
  925. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/thread_pool.rb +164 -0
  926. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/trace_output.rb +22 -0
  927. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/version.rb +7 -0
  928. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/win32.rb +56 -0
  929. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/rakelib/publish.rake +20 -0
  930. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/rakelib/test_times.rake +25 -0
  931. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/file_creation.rb +34 -0
  932. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/helper.rb +129 -0
  933. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/support/rakefile_definitions.rb +478 -0
  934. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/support/ruby_runner.rb +34 -0
  935. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_private_reader.rb +42 -0
  936. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake.rb +40 -0
  937. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_application.rb +643 -0
  938. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_application_options.rb +468 -0
  939. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_backtrace.rb +119 -0
  940. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_clean.rb +61 -0
  941. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_cpu_counter.rb +68 -0
  942. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_definitions.rb +84 -0
  943. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_directory_task.rb +76 -0
  944. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_dsl.rb +40 -0
  945. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_early_time.rb +31 -0
  946. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_extension.rb +59 -0
  947. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_creation_task.rb +56 -0
  948. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list.rb +670 -0
  949. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_list_path_map.rb +8 -0
  950. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_task.rb +197 -0
  951. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_file_utils.rb +314 -0
  952. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_ftp_file.rb +74 -0
  953. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_functional.rb +482 -0
  954. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_invocation_chain.rb +64 -0
  955. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_late_time.rb +18 -0
  956. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_linked_list.rb +84 -0
  957. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_makefile_loader.rb +46 -0
  958. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_multi_task.rb +64 -0
  959. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_name_space.rb +57 -0
  960. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_package_task.rb +79 -0
  961. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map.rb +168 -0
  962. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_explode.rb +34 -0
  963. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_path_map_partial.rb +18 -0
  964. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_pathname_extensions.rb +15 -0
  965. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_pseudo_status.rb +21 -0
  966. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_rake_test_loader.rb +20 -0
  967. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_reduce_compat.rb +26 -0
  968. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_require.rb +40 -0
  969. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_rules.rb +388 -0
  970. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_scope.rb +44 -0
  971. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task.rb +393 -0
  972. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_argument_parsing.rb +119 -0
  973. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_arguments.rb +127 -0
  974. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_lib.rb +9 -0
  975. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager.rb +178 -0
  976. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_manager_argument_resolution.rb +19 -0
  977. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_task_with_arguments.rb +172 -0
  978. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_test_task.rb +146 -0
  979. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_thread_pool.rb +145 -0
  980. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_top_level_functions.rb +71 -0
  981. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_rake_win32.rb +72 -0
  982. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_thread_history_display.rb +101 -0
  983. data/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/test/test_trace_output.rb +52 -0
  984. data/vendor/bundle/ruby/2.3.0/gems/rspec-3.7.0/LICENSE.md +27 -0
  985. data/vendor/bundle/ruby/2.3.0/gems/rspec-3.7.0/README.md +39 -0
  986. data/vendor/bundle/ruby/2.3.0/gems/rspec-3.7.0/lib/rspec.rb +3 -0
  987. data/vendor/bundle/ruby/2.3.0/gems/rspec-3.7.0/lib/rspec/version.rb +5 -0
  988. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/.document +5 -0
  989. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/.yardopts +8 -0
  990. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/Changelog.md +2192 -0
  991. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/LICENSE.md +26 -0
  992. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/README.md +384 -0
  993. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/exe/rspec +4 -0
  994. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/autorun.rb +3 -0
  995. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core.rb +185 -0
  996. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/backtrace_formatter.rb +65 -0
  997. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/bisect/coordinator.rb +66 -0
  998. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/bisect/example_minimizer.rb +169 -0
  999. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/bisect/runner.rb +169 -0
  1000. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/bisect/server.rb +70 -0
  1001. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration.rb +2209 -0
  1002. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/configuration_options.rb +196 -0
  1003. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/drb.rb +113 -0
  1004. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/dsl.rb +98 -0
  1005. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/example.rb +653 -0
  1006. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/example_group.rb +884 -0
  1007. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/example_status_persister.rb +235 -0
  1008. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/filter_manager.rb +231 -0
  1009. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/flat_map.rb +20 -0
  1010. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters.rb +265 -0
  1011. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/base_formatter.rb +70 -0
  1012. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/base_text_formatter.rb +75 -0
  1013. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/bisect_formatter.rb +69 -0
  1014. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/bisect_progress_formatter.rb +144 -0
  1015. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/console_codes.rb +68 -0
  1016. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/deprecation_formatter.rb +221 -0
  1017. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/documentation_formatter.rb +70 -0
  1018. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/exception_presenter.rb +496 -0
  1019. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/fallback_message_formatter.rb +28 -0
  1020. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/helpers.rb +110 -0
  1021. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_formatter.rb +153 -0
  1022. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_printer.rb +416 -0
  1023. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/html_snippet_extractor.rb +120 -0
  1024. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/json_formatter.rb +102 -0
  1025. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/profile_formatter.rb +68 -0
  1026. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/progress_formatter.rb +29 -0
  1027. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/protocol.rb +182 -0
  1028. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/snippet_extractor.rb +134 -0
  1029. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/formatters/syntax_highlighter.rb +91 -0
  1030. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/hooks.rb +626 -0
  1031. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/invocations.rb +85 -0
  1032. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/memoized_helpers.rb +535 -0
  1033. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/metadata.rb +499 -0
  1034. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/metadata_filter.rb +255 -0
  1035. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/minitest_assertions_adapter.rb +31 -0
  1036. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/flexmock.rb +31 -0
  1037. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/mocha.rb +57 -0
  1038. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/null.rb +14 -0
  1039. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rr.rb +31 -0
  1040. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/mocking_adapters/rspec.rb +32 -0
  1041. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/notifications.rb +521 -0
  1042. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/option_parser.rb +309 -0
  1043. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/ordering.rb +158 -0
  1044. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/output_wrapper.rb +29 -0
  1045. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/pending.rb +165 -0
  1046. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/profiler.rb +32 -0
  1047. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer.rb +48 -0
  1048. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer/.rspec +1 -0
  1049. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/project_initializer/spec/spec_helper.rb +100 -0
  1050. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/rake_task.rb +168 -0
  1051. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/reporter.rb +260 -0
  1052. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/ruby_project.rb +53 -0
  1053. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/runner.rb +193 -0
  1054. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/sandbox.rb +37 -0
  1055. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/set.rb +54 -0
  1056. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/shared_context.rb +55 -0
  1057. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/shared_example_group.rb +271 -0
  1058. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/shell_escape.rb +49 -0
  1059. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/test_unit_assertions_adapter.rb +30 -0
  1060. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/version.rb +9 -0
  1061. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/warnings.rb +40 -0
  1062. data/vendor/bundle/ruby/2.3.0/gems/rspec-core-3.7.1/lib/rspec/core/world.rb +264 -0
  1063. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/.document +5 -0
  1064. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/.yardopts +6 -0
  1065. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/Changelog.md +1083 -0
  1066. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/LICENSE.md +25 -0
  1067. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/README.md +305 -0
  1068. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations.rb +82 -0
  1069. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/block_snippet_extractor.rb +253 -0
  1070. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/configuration.rb +201 -0
  1071. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/expectation_target.rb +127 -0
  1072. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/fail_with.rb +39 -0
  1073. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/failure_aggregator.rb +194 -0
  1074. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb +170 -0
  1075. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/minitest_integration.rb +58 -0
  1076. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/syntax.rb +132 -0
  1077. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/version.rb +8 -0
  1078. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers.rb +1031 -0
  1079. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/aliased_matcher.rb +116 -0
  1080. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in.rb +52 -0
  1081. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/all.rb +85 -0
  1082. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/base_matcher.rb +193 -0
  1083. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be.rb +288 -0
  1084. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_between.rb +77 -0
  1085. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_instance_of.rb +22 -0
  1086. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_kind_of.rb +16 -0
  1087. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/be_within.rb +72 -0
  1088. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/change.rb +387 -0
  1089. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/compound.rb +272 -0
  1090. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/contain_exactly.rb +301 -0
  1091. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/cover.rb +24 -0
  1092. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/eq.rb +40 -0
  1093. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/eql.rb +34 -0
  1094. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/equal.rb +81 -0
  1095. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/exist.rb +90 -0
  1096. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/has.rb +103 -0
  1097. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/have_attributes.rb +114 -0
  1098. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/include.rb +143 -0
  1099. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/match.rb +106 -0
  1100. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/operators.rb +128 -0
  1101. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/output.rb +200 -0
  1102. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/raise_error.rb +230 -0
  1103. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/respond_to.rb +165 -0
  1104. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/satisfy.rb +60 -0
  1105. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/start_or_end_with.rb +94 -0
  1106. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/throw_symbol.rb +132 -0
  1107. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/built_in/yield.rb +432 -0
  1108. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/composable.rb +169 -0
  1109. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/dsl.rb +527 -0
  1110. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/english_phrasing.rb +58 -0
  1111. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +73 -0
  1112. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/fail_matchers.rb +42 -0
  1113. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/generated_descriptions.rb +42 -0
  1114. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/matcher_delegator.rb +35 -0
  1115. data/vendor/bundle/ruby/2.3.0/gems/rspec-expectations-3.7.0/lib/rspec/matchers/matcher_protocol.rb +99 -0
  1116. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/.document +5 -0
  1117. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/.yardopts +6 -0
  1118. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/Changelog.md +1089 -0
  1119. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/LICENSE.md +25 -0
  1120. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/README.md +460 -0
  1121. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks.rb +130 -0
  1122. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance.rb +11 -0
  1123. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/chain.rb +110 -0
  1124. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/error_generator.rb +31 -0
  1125. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expect_chain_chain.rb +31 -0
  1126. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/expectation_chain.rb +50 -0
  1127. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/message_chains.rb +83 -0
  1128. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/proxy.rb +116 -0
  1129. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/recorder.rb +289 -0
  1130. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain.rb +51 -0
  1131. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/any_instance/stub_chain_chain.rb +23 -0
  1132. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_list_matcher.rb +100 -0
  1133. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/argument_matchers.rb +320 -0
  1134. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/configuration.rb +212 -0
  1135. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/error_generator.rb +369 -0
  1136. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/example_methods.rb +434 -0
  1137. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/instance_method_stasher.rb +146 -0
  1138. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/marshal_extension.rb +41 -0
  1139. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/expectation_customization.rb +20 -0
  1140. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/have_received.rb +130 -0
  1141. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive.rb +132 -0
  1142. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_message_chain.rb +82 -0
  1143. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/matchers/receive_messages.rb +77 -0
  1144. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_chain.rb +87 -0
  1145. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/message_expectation.rb +740 -0
  1146. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_double.rb +287 -0
  1147. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/method_reference.rb +202 -0
  1148. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/minitest_integration.rb +68 -0
  1149. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/mutate_const.rb +339 -0
  1150. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/object_reference.rb +149 -0
  1151. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/order_group.rb +81 -0
  1152. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/proxy.rb +484 -0
  1153. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/space.rb +238 -0
  1154. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/standalone.rb +3 -0
  1155. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/syntax.rb +325 -0
  1156. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/targets.rb +124 -0
  1157. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/test_double.rb +171 -0
  1158. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_double.rb +129 -0
  1159. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_message_expectation.rb +54 -0
  1160. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/verifying_proxy.rb +220 -0
  1161. data/vendor/bundle/ruby/2.3.0/gems/rspec-mocks-3.7.0/lib/rspec/mocks/version.rb +9 -0
  1162. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/Changelog.md +234 -0
  1163. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/LICENSE.md +23 -0
  1164. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/README.md +40 -0
  1165. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support.rb +149 -0
  1166. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/caller_filter.rb +83 -0
  1167. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/comparable_version.rb +46 -0
  1168. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/differ.rb +215 -0
  1169. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/directory_maker.rb +63 -0
  1170. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/encoded_string.rb +165 -0
  1171. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/fuzzy_matcher.rb +48 -0
  1172. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/hunk_generator.rb +47 -0
  1173. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/matcher_definition.rb +42 -0
  1174. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/method_signature_verifier.rb +392 -0
  1175. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/mutex.rb +73 -0
  1176. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/object_formatter.rb +267 -0
  1177. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/recursive_const_methods.rb +76 -0
  1178. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/reentrant_mutex.rb +53 -0
  1179. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/ruby_features.rb +162 -0
  1180. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/source.rb +75 -0
  1181. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/source/location.rb +21 -0
  1182. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/source/node.rb +110 -0
  1183. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/source/token.rb +87 -0
  1184. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec.rb +81 -0
  1185. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/deprecation_helpers.rb +64 -0
  1186. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/formatting_support.rb +9 -0
  1187. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/in_sub_process.rb +69 -0
  1188. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/library_wide_checks.rb +150 -0
  1189. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/shell_out.rb +84 -0
  1190. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/stderr_splitter.rb +63 -0
  1191. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/string_matcher.rb +46 -0
  1192. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/with_isolated_directory.rb +13 -0
  1193. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/spec/with_isolated_stderr.rb +13 -0
  1194. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/version.rb +7 -0
  1195. data/vendor/bundle/ruby/2.3.0/gems/rspec-support-3.7.1/lib/rspec/support/warnings.rb +39 -0
  1196. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/.rspec +2 -0
  1197. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/.travis.yml +46 -0
  1198. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/.yardopts +13 -0
  1199. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/Gemfile +20 -0
  1200. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/LICENSE +144 -0
  1201. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/README.md +60 -0
  1202. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/Rakefile +62 -0
  1203. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/examples/bench_cache.rb +35 -0
  1204. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/JRubyCacheBackendLibrary.java +245 -0
  1205. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMap.java +31 -0
  1206. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/ConcurrentHashMapV8.java +3863 -0
  1207. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/LongAdder.java +203 -0
  1208. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/Striped64.java +342 -0
  1209. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/ConcurrentHashMapV8.java +3800 -0
  1210. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/LongAdder.java +204 -0
  1211. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166e/nounsafe/Striped64.java +291 -0
  1212. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/org/jruby/ext/thread_safe/jsr166y/ThreadLocalRandom.java +199 -0
  1213. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/ext/thread_safe/JrubyCacheBackendService.java +15 -0
  1214. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe.rb +65 -0
  1215. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/atomic_reference_cache_backend.rb +908 -0
  1216. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/cache.rb +161 -0
  1217. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/mri_cache_backend.rb +60 -0
  1218. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/non_concurrent_cache_backend.rb +135 -0
  1219. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb +77 -0
  1220. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_delegator.rb +43 -0
  1221. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util.rb +16 -0
  1222. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/adder.rb +62 -0
  1223. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/atomic_reference.rb +44 -0
  1224. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/cheap_lockable.rb +106 -0
  1225. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/power_of_two_tuple.rb +26 -0
  1226. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/striped64.rb +222 -0
  1227. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile.rb +64 -0
  1228. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/volatile_tuple.rb +46 -0
  1229. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/util/xor_shift_random.rb +41 -0
  1230. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/lib/thread_safe/version.rb +21 -0
  1231. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/.gitignore +0 -0
  1232. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/spec_helper.rb +31 -0
  1233. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/src/thread_safe/SecurityManager.java +21 -0
  1234. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/support/.gitignore +0 -0
  1235. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/support/threads.rb +1 -0
  1236. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/support/threadsafe_test.rb +75 -0
  1237. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/.gitignore +0 -0
  1238. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/array_spec.rb +18 -0
  1239. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/cache_loops_spec.rb +507 -0
  1240. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/cache_spec.rb +943 -0
  1241. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/hash_spec.rb +17 -0
  1242. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/no_unsafe_spec.rb +27 -0
  1243. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/spec/thread_safe/synchronized_delegator_spec.rb +85 -0
  1244. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/tasks/update_doc.rake +45 -0
  1245. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/thread_safe.gemspec +26 -0
  1246. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/yard-template/default/fulldoc/html/css/common.css +125 -0
  1247. data/vendor/bundle/ruby/2.3.0/gems/thread_safe-0.3.6/yard-template/default/layout/html/footer.erb +16 -0
  1248. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/.yardopts +6 -0
  1249. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/CHANGES.md +786 -0
  1250. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/LICENSE +19 -0
  1251. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/README.md +151 -0
  1252. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/Rakefile +107 -0
  1253. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo.rb +40 -0
  1254. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/country.rb +196 -0
  1255. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/country_index_definition.rb +31 -0
  1256. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/country_info.rb +42 -0
  1257. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/country_timezone.rb +135 -0
  1258. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/data_source.rb +190 -0
  1259. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone.rb +58 -0
  1260. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/data_timezone_info.rb +55 -0
  1261. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/info_timezone.rb +30 -0
  1262. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone.rb +63 -0
  1263. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/linked_timezone_info.rb +26 -0
  1264. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/offset_rationals.rb +77 -0
  1265. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_core_support.rb +146 -0
  1266. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_country_info.rb +74 -0
  1267. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/ruby_data_source.rb +136 -0
  1268. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/time_or_datetime.rb +340 -0
  1269. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone.rb +669 -0
  1270. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_definition.rb +36 -0
  1271. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_index_definition.rb +54 -0
  1272. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_info.rb +30 -0
  1273. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_offset.rb +101 -0
  1274. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_period.rb +245 -0
  1275. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_proxy.rb +105 -0
  1276. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition.rb +130 -0
  1277. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/timezone_transition_definition.rb +104 -0
  1278. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/transition_data_timezone_info.rb +274 -0
  1279. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_country_info.rb +37 -0
  1280. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_data_source.rb +488 -0
  1281. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/lib/tzinfo/zoneinfo_timezone_info.rb +296 -0
  1282. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_country.rb +234 -0
  1283. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_country_index_definition.rb +69 -0
  1284. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_country_info.rb +16 -0
  1285. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_country_timezone.rb +173 -0
  1286. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_data_source.rb +218 -0
  1287. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_data_timezone.rb +99 -0
  1288. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_data_timezone_info.rb +18 -0
  1289. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb +34 -0
  1290. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_linked_timezone.rb +155 -0
  1291. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_linked_timezone_info.rb +23 -0
  1292. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_offset_rationals.rb +23 -0
  1293. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_ruby_core_support.rb +168 -0
  1294. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_ruby_country_info.rb +110 -0
  1295. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_ruby_data_source.rb +143 -0
  1296. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_time_or_datetime.rb +654 -0
  1297. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone.rb +1350 -0
  1298. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_definition.rb +113 -0
  1299. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_index_definition.rb +73 -0
  1300. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_info.rb +11 -0
  1301. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_london.rb +143 -0
  1302. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_melbourne.rb +142 -0
  1303. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_new_york.rb +142 -0
  1304. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_offset.rb +126 -0
  1305. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_period.rb +555 -0
  1306. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_proxy.rb +136 -0
  1307. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_transition.rb +366 -0
  1308. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_transition_definition.rb +295 -0
  1309. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_timezone_utc.rb +27 -0
  1310. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_transition_data_timezone_info.rb +423 -0
  1311. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_country_info.rb +78 -0
  1312. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_data_source.rb +1195 -0
  1313. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tc_zoneinfo_timezone_info.rb +1232 -0
  1314. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/test_utils.rb +163 -0
  1315. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/ts_all.rb +7 -0
  1316. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/ts_all_ruby.rb +5 -0
  1317. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/ts_all_zoneinfo.rb +7 -0
  1318. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data.rb +8 -0
  1319. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/Argentina/Buenos_Aires.rb +89 -0
  1320. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/America/New_York.rb +315 -0
  1321. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Australia/Melbourne.rb +218 -0
  1322. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/EST.rb +19 -0
  1323. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__m__1.rb +21 -0
  1324. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/GMT__p__1.rb +21 -0
  1325. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Etc/UTC.rb +21 -0
  1326. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Amsterdam.rb +261 -0
  1327. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Andorra.rb +186 -0
  1328. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/London.rb +321 -0
  1329. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Paris.rb +265 -0
  1330. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/Europe/Prague.rb +220 -0
  1331. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/definitions/UTC.rb +16 -0
  1332. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/countries.rb +927 -0
  1333. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/indexes/timezones.rb +596 -0
  1334. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/tzinfo-data/tzinfo/data/version.rb +14 -0
  1335. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/America/Argentina/Buenos_Aires +0 -0
  1336. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/America/New_York +0 -0
  1337. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Australia/Melbourne +0 -0
  1338. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/EST +0 -0
  1339. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Etc/UTC +0 -0
  1340. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Amsterdam +0 -0
  1341. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Andorra +0 -0
  1342. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/London +0 -0
  1343. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Paris +0 -0
  1344. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Europe/Prague +0 -0
  1345. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/Factory +0 -0
  1346. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/iso3166.tab +275 -0
  1347. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/leapseconds +61 -0
  1348. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/posix/Europe/London +0 -0
  1349. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/posixrules +0 -0
  1350. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/right/Europe/London +0 -0
  1351. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/zone.tab +439 -0
  1352. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/test/zoneinfo/zone1970.tab +369 -0
  1353. data/vendor/bundle/ruby/2.3.0/gems/tzinfo-1.2.5/tzinfo.gemspec +21 -0
  1354. data/vendor/bundle/ruby/2.3.0/specifications/activesupport-5.2.0.gemspec +44 -0
  1355. data/vendor/bundle/ruby/2.3.0/specifications/coderay-1.1.2.gemspec +26 -0
  1356. data/vendor/bundle/ruby/2.3.0/specifications/concurrent-ruby-1.0.5.gemspec +23 -0
  1357. data/vendor/bundle/ruby/2.3.0/specifications/diff-lcs-1.3.gemspec +61 -0
  1358. data/vendor/bundle/ruby/2.3.0/specifications/i18n-1.0.1.gemspec +34 -0
  1359. data/vendor/bundle/ruby/2.3.0/specifications/method_source-0.9.0.gemspec +34 -0
  1360. data/vendor/bundle/ruby/2.3.0/specifications/minitest-5.11.3.gemspec +39 -0
  1361. data/vendor/bundle/ruby/2.3.0/specifications/pry-0.11.3.gemspec +41 -0
  1362. data/vendor/bundle/ruby/2.3.0/specifications/rake-10.5.0.gemspec +43 -0
  1363. data/vendor/bundle/ruby/2.3.0/specifications/rspec-3.7.0.gemspec +42 -0
  1364. data/vendor/bundle/ruby/2.3.0/specifications/rspec-core-3.7.1.gemspec +62 -0
  1365. data/vendor/bundle/ruby/2.3.0/specifications/rspec-expectations-3.7.0.gemspec +50 -0
  1366. data/vendor/bundle/ruby/2.3.0/specifications/rspec-mocks-3.7.0.gemspec +50 -0
  1367. data/vendor/bundle/ruby/2.3.0/specifications/rspec-support-3.7.1.gemspec +41 -0
  1368. data/vendor/bundle/ruby/2.3.0/specifications/thread_safe-0.3.6.gemspec +38 -0
  1369. data/vendor/bundle/ruby/2.3.0/specifications/tzinfo-1.2.5.gemspec +37 -0
  1370. metadata +1498 -0
@@ -0,0 +1,70 @@
1
+ require 'drb/drb'
2
+ require 'drb/acl'
3
+
4
+ module RSpec
5
+ module Core
6
+ # @private
7
+ module Bisect
8
+ # @private
9
+ BisectFailedError = Class.new(StandardError)
10
+
11
+ # @private
12
+ # A DRb server that receives run results from a separate RSpec process
13
+ # started by the bisect process.
14
+ class Server
15
+ def self.run
16
+ server = new
17
+ server.start
18
+ yield server
19
+ ensure
20
+ server.stop
21
+ end
22
+
23
+ def capture_run_results(files_or_directories_to_run=[], expected_failures=[])
24
+ self.expected_failures = expected_failures
25
+ self.files_or_directories_to_run = files_or_directories_to_run
26
+ self.latest_run_results = nil
27
+ run_output = yield
28
+
29
+ if latest_run_results.nil? || latest_run_results.all_example_ids.empty?
30
+ raise_bisect_failed(run_output)
31
+ end
32
+
33
+ latest_run_results
34
+ end
35
+
36
+ def start
37
+ # Only allow remote DRb requests from this machine.
38
+ DRb.install_acl ACL.new(%w[ deny all allow localhost allow 127.0.0.1 ])
39
+
40
+ # We pass `nil` as the first arg to allow it to pick a DRb port.
41
+ @drb = DRb.start_service(nil, self)
42
+ end
43
+
44
+ def stop
45
+ @drb.stop_service
46
+ end
47
+
48
+ def drb_port
49
+ @drb_port ||= Integer(@drb.uri[/\d+$/])
50
+ end
51
+
52
+ # Fetched via DRb by the BisectFormatter to determine when to abort.
53
+ attr_accessor :expected_failures
54
+
55
+ # Set via DRb by the BisectFormatter with the results of the run.
56
+ attr_accessor :latest_run_results
57
+
58
+ # Fetched via DRb to tell clients which files to run
59
+ attr_accessor :files_or_directories_to_run
60
+
61
+ private
62
+
63
+ def raise_bisect_failed(run_output)
64
+ raise BisectFailedError, "Failed to get results from the spec " \
65
+ "run. Spec run output:\n\n#{run_output}"
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,2209 @@
1
+ RSpec::Support.require_rspec_core "backtrace_formatter"
2
+ RSpec::Support.require_rspec_core "ruby_project"
3
+ RSpec::Support.require_rspec_core "formatters/deprecation_formatter"
4
+ RSpec::Support.require_rspec_core "output_wrapper"
5
+
6
+ module RSpec
7
+ module Core
8
+ # rubocop:disable Metrics/ClassLength
9
+
10
+ # Stores runtime configuration information.
11
+ #
12
+ # Configuration options are loaded from `~/.rspec`, `.rspec`,
13
+ # `.rspec-local`, command line switches, and the `SPEC_OPTS` environment
14
+ # variable (listed in lowest to highest precedence; for example, an option
15
+ # in `~/.rspec` can be overridden by an option in `.rspec-local`).
16
+ #
17
+ # @example Standard settings
18
+ # RSpec.configure do |c|
19
+ # c.drb = true
20
+ # c.drb_port = 1234
21
+ # c.default_path = 'behavior'
22
+ # end
23
+ #
24
+ # @example Hooks
25
+ # RSpec.configure do |c|
26
+ # c.before(:suite) { establish_connection }
27
+ # c.before(:example) { log_in_as :authorized }
28
+ # c.around(:example) { |ex| Database.transaction(&ex) }
29
+ # end
30
+ #
31
+ # @see RSpec.configure
32
+ # @see Hooks
33
+ class Configuration
34
+ include RSpec::Core::Hooks
35
+
36
+ # Module that holds `attr_reader` declarations. It's in a separate
37
+ # module to allow us to override those methods and use `super`.
38
+ # @private
39
+ Readers = Module.new
40
+ include Readers
41
+
42
+ # @private
43
+ class MustBeConfiguredBeforeExampleGroupsError < StandardError; end
44
+
45
+ # @private
46
+ def self.define_reader(name)
47
+ Readers.class_eval do
48
+ remove_method name if method_defined?(name)
49
+ attr_reader name
50
+ end
51
+
52
+ define_method(name) { value_for(name) { super() } }
53
+ end
54
+
55
+ # @private
56
+ def self.define_aliases(name, alias_name)
57
+ alias_method alias_name, name
58
+ alias_method "#{alias_name}=", "#{name}="
59
+ define_predicate_for alias_name
60
+ end
61
+
62
+ # @private
63
+ def self.define_predicate_for(*names)
64
+ names.each { |name| alias_method "#{name}?", name }
65
+ end
66
+
67
+ # @private
68
+ #
69
+ # Invoked by the `add_setting` instance method. Use that method on a
70
+ # `Configuration` instance rather than this class method.
71
+ def self.add_setting(name, opts={})
72
+ raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
73
+ attr_writer name
74
+ add_read_only_setting name
75
+
76
+ Array(opts[:alias_with]).each do |alias_name|
77
+ define_aliases(name, alias_name)
78
+ end
79
+ end
80
+
81
+ # @private
82
+ #
83
+ # As `add_setting` but only add the reader.
84
+ def self.add_read_only_setting(name, opts={})
85
+ raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
86
+ define_reader name
87
+ define_predicate_for name
88
+ end
89
+
90
+ # @macro [attach] add_setting
91
+ # @!attribute [rw] $1
92
+ # @!method $1=(value)
93
+ #
94
+ # @macro [attach] define_reader
95
+ # @!attribute [r] $1
96
+
97
+ # @macro add_setting
98
+ # Path to use if no path is provided to the `rspec` command (default:
99
+ # `"spec"`). Allows you to just type `rspec` instead of `rspec spec` to
100
+ # run all the examples in the `spec` directory.
101
+ #
102
+ # @note Other scripts invoking `rspec` indirectly will ignore this
103
+ # setting.
104
+ add_read_only_setting :default_path
105
+ def default_path=(path)
106
+ project_source_dirs << path
107
+ @default_path = path
108
+ end
109
+
110
+ # @macro add_setting
111
+ # Run examples over DRb (default: `false`). RSpec doesn't supply the DRb
112
+ # server, but you can use tools like spork.
113
+ add_setting :drb
114
+
115
+ # @macro add_setting
116
+ # The drb_port (default: nil).
117
+ add_setting :drb_port
118
+
119
+ # @macro add_setting
120
+ # Default: `$stderr`.
121
+ add_setting :error_stream
122
+
123
+ # Indicates if the DSL has been exposed off of modules and `main`.
124
+ # Default: true
125
+ def expose_dsl_globally?
126
+ Core::DSL.exposed_globally?
127
+ end
128
+
129
+ # Use this to expose the core RSpec DSL via `Module` and the `main`
130
+ # object. It will be set automatically but you can override it to
131
+ # remove the DSL.
132
+ # Default: true
133
+ def expose_dsl_globally=(value)
134
+ if value
135
+ Core::DSL.expose_globally!
136
+ Core::SharedExampleGroup::TopLevelDSL.expose_globally!
137
+ else
138
+ Core::DSL.remove_globally!
139
+ Core::SharedExampleGroup::TopLevelDSL.remove_globally!
140
+ end
141
+ end
142
+
143
+ # Determines where deprecation warnings are printed.
144
+ # Defaults to `$stderr`.
145
+ # @return [IO, String] IO or filename to write to
146
+ define_reader :deprecation_stream
147
+
148
+ # Determines where deprecation warnings are printed.
149
+ # @param value [IO, String] IO to write to or filename to write to
150
+ def deprecation_stream=(value)
151
+ if @reporter && !value.equal?(@deprecation_stream)
152
+ warn "RSpec's reporter has already been initialized with " \
153
+ "#{deprecation_stream.inspect} as the deprecation stream, so your change to "\
154
+ "`deprecation_stream` will be ignored. You should configure it earlier for " \
155
+ "it to take effect, or use the `--deprecation-out` CLI option. " \
156
+ "(Called from #{CallerFilter.first_non_rspec_line})"
157
+ else
158
+ @deprecation_stream = value
159
+ end
160
+ end
161
+
162
+ # @macro define_reader
163
+ # The file path to use for persisting example statuses. Necessary for the
164
+ # `--only-failures` and `--next-failure` CLI options.
165
+ #
166
+ # @overload example_status_persistence_file_path
167
+ # @return [String] the file path
168
+ # @overload example_status_persistence_file_path=(value)
169
+ # @param value [String] the file path
170
+ define_reader :example_status_persistence_file_path
171
+
172
+ # Sets the file path to use for persisting example statuses. Necessary for the
173
+ # `--only-failures` and `--next-failure` CLI options.
174
+ def example_status_persistence_file_path=(value)
175
+ @example_status_persistence_file_path = value
176
+ clear_values_derived_from_example_status_persistence_file_path
177
+ end
178
+
179
+ # @macro define_reader
180
+ # Indicates if the `--only-failures` (or `--next-failure`) flag is being used.
181
+ define_reader :only_failures
182
+ alias_method :only_failures?, :only_failures
183
+
184
+ # @private
185
+ def only_failures_but_not_configured?
186
+ only_failures? && !example_status_persistence_file_path
187
+ end
188
+
189
+ # @macro add_setting
190
+ # If specified, indicates the number of failures required before cleaning
191
+ # up and exit (default: `nil`).
192
+ add_setting :fail_fast
193
+
194
+ # @macro add_setting
195
+ # Prints the formatter output of your suite without running any
196
+ # examples or hooks.
197
+ add_setting :dry_run
198
+
199
+ # @macro add_setting
200
+ # The exit code to return if there are any failures (default: 1).
201
+ add_setting :failure_exit_code
202
+
203
+ # @macro add_setting
204
+ # Whether or not to fail when there are no RSpec examples (default: false).
205
+ add_setting :fail_if_no_examples
206
+
207
+ # @macro define_reader
208
+ # Indicates files configured to be required.
209
+ define_reader :requires
210
+
211
+ # @macro define_reader
212
+ # Returns dirs that have been prepended to the load path by the `-I`
213
+ # command line option.
214
+ define_reader :libs
215
+
216
+ # @macro add_setting
217
+ # Determines where RSpec will send its output.
218
+ # Default: `$stdout`.
219
+ define_reader :output_stream
220
+
221
+ # Set the output stream for reporter.
222
+ # @attr value [IO, String] IO to write to or filename to write to, defaults to $stdout
223
+ def output_stream=(value)
224
+ if @reporter && !value.equal?(@output_stream)
225
+ warn "RSpec's reporter has already been initialized with " \
226
+ "#{output_stream.inspect} as the output stream, so your change to "\
227
+ "`output_stream` will be ignored. You should configure it earlier for " \
228
+ "it to take effect. (Called from #{CallerFilter.first_non_rspec_line})"
229
+ else
230
+ @output_stream = value
231
+ output_wrapper.output = @output_stream
232
+ end
233
+ end
234
+
235
+ # @macro define_reader
236
+ # Load files matching this pattern (default: `'**{,/*/**}/*_spec.rb'`).
237
+ define_reader :pattern
238
+
239
+ # Set pattern to match files to load.
240
+ # @attr value [String] the filename pattern to filter spec files by
241
+ def pattern=(value)
242
+ update_pattern_attr :pattern, value
243
+ end
244
+
245
+ # @macro define_reader
246
+ # Exclude files matching this pattern.
247
+ define_reader :exclude_pattern
248
+
249
+ # Set pattern to match files to exclude.
250
+ # @attr value [String] the filename pattern to exclude spec files by
251
+ def exclude_pattern=(value)
252
+ update_pattern_attr :exclude_pattern, value
253
+ end
254
+
255
+ # @macro add_setting
256
+ # Specifies which directories contain the source code for your project.
257
+ # When a failure occurs, RSpec looks through the backtrace to find a
258
+ # a line of source to print. It first looks for a line coming from
259
+ # one of the project source directories so that, for example, it prints
260
+ # the expectation or assertion call rather than the source code from
261
+ # the expectation or assertion framework.
262
+ # @return [Array<String>]
263
+ add_setting :project_source_dirs
264
+
265
+ # @macro add_setting
266
+ # Report the times for the slowest examples (default: `false`).
267
+ # Use this to specify the number of examples to include in the profile.
268
+ add_setting :profile_examples
269
+
270
+ # @macro add_setting
271
+ # Run all examples if none match the configured filters
272
+ # (default: `false`).
273
+ # @deprecated Use {#filter_run_when_matching} instead for the specific
274
+ # filters that you want to be ignored if none match.
275
+ add_setting :run_all_when_everything_filtered
276
+
277
+ # @macro add_setting
278
+ # Color to use to indicate success.
279
+ # @param color [Symbol] defaults to `:green` but can be set to one of the
280
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
281
+ # :cyan]`
282
+ add_setting :success_color
283
+
284
+ # @macro add_setting
285
+ # Color to use to print pending examples.
286
+ # @param color [Symbol] defaults to `:yellow` but can be set to one of the
287
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
288
+ # :cyan]`
289
+ add_setting :pending_color
290
+
291
+ # @macro add_setting
292
+ # Color to use to indicate failure.
293
+ # @param color [Symbol] defaults to `:red` but can be set to one of the
294
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
295
+ # :cyan]`
296
+ add_setting :failure_color
297
+
298
+ # @macro add_setting
299
+ # The default output color.
300
+ # @param color [Symbol] defaults to `:white` but can be set to one of the
301
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
302
+ # :cyan]`
303
+ add_setting :default_color
304
+
305
+ # @macro add_setting
306
+ # Color used when a pending example is fixed.
307
+ # @param color [Symbol] defaults to `:blue` but can be set to one of the
308
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
309
+ # :cyan]`
310
+ add_setting :fixed_color
311
+
312
+ # @macro add_setting
313
+ # Color used to print details.
314
+ # @param color [Symbol] defaults to `:cyan` but can be set to one of the
315
+ # following: `[:black, :white, :red, :green, :yellow, :blue, :magenta,
316
+ # :cyan]`
317
+ add_setting :detail_color
318
+
319
+ # @macro add_setting
320
+ # Don't print filter info i.e. "Run options: include {:focus=>true}"
321
+ # (default `false`).
322
+ add_setting :silence_filter_announcements
323
+
324
+ # Deprecated. This config option was added in RSpec 2 to pave the way
325
+ # for this being the default behavior in RSpec 3. Now this option is
326
+ # a no-op.
327
+ def treat_symbols_as_metadata_keys_with_true_values=(_value)
328
+ RSpec.deprecate(
329
+ "RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values=",
330
+ :message => "RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= " \
331
+ "is deprecated, it is now set to true as default and " \
332
+ "setting it to false has no effect."
333
+ )
334
+ end
335
+
336
+ # @macro define_reader
337
+ # Configures how RSpec treats metadata passed as part of a shared example
338
+ # group definition. For example, given this shared example group definition:
339
+ #
340
+ # RSpec.shared_context "uses DB", :db => true do
341
+ # around(:example) do |ex|
342
+ # MyORM.transaction(:rollback => true, &ex)
343
+ # end
344
+ # end
345
+ #
346
+ # ...there are two ways RSpec can treat the `:db => true` metadata, each
347
+ # of which has a corresponding config option:
348
+ #
349
+ # 1. `:trigger_inclusion`: this shared context will be implicitly included
350
+ # in any groups (or examples) that have `:db => true` metadata.
351
+ # 2. `:apply_to_host_groups`: the metadata will be inherited by the metadata
352
+ # hash of all host groups and examples.
353
+ #
354
+ # `:trigger_inclusion` is the legacy behavior from before RSpec 3.5 but should
355
+ # be considered deprecated. Instead, you can explicitly include a group with
356
+ # `include_context`:
357
+ #
358
+ # RSpec.describe "My model" do
359
+ # include_context "uses DB"
360
+ # end
361
+ #
362
+ # ...or you can configure RSpec to include the context based on matching metadata
363
+ # using an API that mirrors configured module inclusion:
364
+ #
365
+ # RSpec.configure do |rspec|
366
+ # rspec.include_context "uses DB", :db => true
367
+ # end
368
+ #
369
+ # `:apply_to_host_groups` is a new feature of RSpec 3.5 and will be the only
370
+ # supported behavior in RSpec 4.
371
+ #
372
+ # @overload shared_context_metadata_behavior
373
+ # @return [:trigger_inclusion, :apply_to_host_groups] the configured behavior
374
+ # @overload shared_context_metadata_behavior=(value)
375
+ # @param value [:trigger_inclusion, :apply_to_host_groups] sets the configured behavior
376
+ define_reader :shared_context_metadata_behavior
377
+ # @see shared_context_metadata_behavior
378
+ def shared_context_metadata_behavior=(value)
379
+ case value
380
+ when :trigger_inclusion, :apply_to_host_groups
381
+ @shared_context_metadata_behavior = value
382
+ else
383
+ raise ArgumentError, "Cannot set `RSpec.configuration." \
384
+ "shared_context_metadata_behavior` to `#{value.inspect}`. Only " \
385
+ "`:trigger_inclusion` and `:apply_to_host_groups` are valid values."
386
+ end
387
+ end
388
+
389
+ # Record the start time of the spec suite to measure load time.
390
+ add_setting :start_time
391
+
392
+ # @macro add_setting
393
+ # Use threadsafe options where available.
394
+ # Currently this will place a mutex around memoized values such as let blocks.
395
+ add_setting :threadsafe
396
+
397
+ # @macro add_setting
398
+ # Maximum count of failed source lines to display in the failure reports.
399
+ # (default `10`).
400
+ add_setting :max_displayed_failure_line_count
401
+
402
+ # @private
403
+ # @deprecated Use {#color_mode} = :on, instead of {#color} with {#tty}
404
+ add_setting :tty
405
+ # @private
406
+ attr_writer :files_to_run
407
+ # @private
408
+ attr_accessor :filter_manager, :world
409
+ # @private
410
+ attr_accessor :static_config_filter_manager
411
+ # @private
412
+ attr_reader :backtrace_formatter, :ordering_manager, :loaded_spec_files
413
+
414
+ # rubocop:disable Metrics/AbcSize
415
+ # rubocop:disable Metrics/MethodLength
416
+
417
+ # Build an object to store runtime configuration options and set defaults
418
+ def initialize
419
+ # rubocop:disable Style/GlobalVars
420
+ @start_time = $_rspec_core_load_started_at || ::RSpec::Core::Time.now
421
+ # rubocop:enable Style/GlobalVars
422
+ @expectation_frameworks = []
423
+ @include_modules = FilterableItemRepository::QueryOptimized.new(:any?)
424
+ @extend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
425
+ @prepend_modules = FilterableItemRepository::QueryOptimized.new(:any?)
426
+
427
+ @before_suite_hooks = []
428
+ @after_suite_hooks = []
429
+
430
+ @mock_framework = nil
431
+ @files_or_directories_to_run = []
432
+ @loaded_spec_files = Set.new
433
+ @color = false
434
+ @color_mode = :automatic
435
+ @pattern = '**{,/*/**}/*_spec.rb'
436
+ @exclude_pattern = ''
437
+ @failure_exit_code = 1
438
+ @fail_if_no_examples = false
439
+ @spec_files_loaded = false
440
+
441
+ @backtrace_formatter = BacktraceFormatter.new
442
+
443
+ @default_path = 'spec'
444
+ @project_source_dirs = %w[ spec lib app ]
445
+ @deprecation_stream = $stderr
446
+ @output_stream = $stdout
447
+ @reporter = nil
448
+ @reporter_buffer = nil
449
+ @filter_manager = FilterManager.new
450
+ @static_config_filter_manager = FilterManager.new
451
+ @ordering_manager = Ordering::ConfigurationManager.new
452
+ @preferred_options = {}
453
+ @failure_color = :red
454
+ @success_color = :green
455
+ @pending_color = :yellow
456
+ @default_color = :white
457
+ @fixed_color = :blue
458
+ @detail_color = :cyan
459
+ @profile_examples = false
460
+ @requires = []
461
+ @libs = []
462
+ @derived_metadata_blocks = FilterableItemRepository::QueryOptimized.new(:any?)
463
+ @threadsafe = true
464
+ @max_displayed_failure_line_count = 10
465
+ @world = World::Null
466
+ @shared_context_metadata_behavior = :trigger_inclusion
467
+
468
+ define_built_in_hooks
469
+ end
470
+ # rubocop:enable Metrics/MethodLength
471
+ # rubocop:enable Metrics/AbcSize
472
+
473
+ # @private
474
+ #
475
+ # Used to set higher priority option values from the command line.
476
+ def force(hash)
477
+ ordering_manager.force(hash)
478
+ @preferred_options.merge!(hash)
479
+
480
+ return unless hash.key?(:example_status_persistence_file_path)
481
+ clear_values_derived_from_example_status_persistence_file_path
482
+ end
483
+
484
+ # @private
485
+ def reset
486
+ @spec_files_loaded = false
487
+ reset_reporter
488
+ end
489
+
490
+ # @private
491
+ def reset_reporter
492
+ @reporter = nil
493
+ @formatter_loader = nil
494
+ @output_wrapper = nil
495
+ end
496
+
497
+ # @private
498
+ def reset_filters
499
+ self.filter_manager = FilterManager.new
500
+ filter_manager.include_only(
501
+ Metadata.deep_hash_dup(static_config_filter_manager.inclusions.rules)
502
+ )
503
+ filter_manager.exclude_only(
504
+ Metadata.deep_hash_dup(static_config_filter_manager.exclusions.rules)
505
+ )
506
+ end
507
+
508
+ # @overload add_setting(name)
509
+ # @overload add_setting(name, opts)
510
+ # @option opts [Symbol] :default
511
+ #
512
+ # Set a default value for the generated getter and predicate methods:
513
+ #
514
+ # add_setting(:foo, :default => "default value")
515
+ #
516
+ # @option opts [Symbol] :alias_with
517
+ #
518
+ # Use `:alias_with` to alias the setter, getter, and predicate to
519
+ # another name, or names:
520
+ #
521
+ # add_setting(:foo, :alias_with => :bar)
522
+ # add_setting(:foo, :alias_with => [:bar, :baz])
523
+ #
524
+ # Adds a custom setting to the RSpec.configuration object.
525
+ #
526
+ # RSpec.configuration.add_setting :foo
527
+ #
528
+ # Used internally and by extension frameworks like rspec-rails, so they
529
+ # can add config settings that are domain specific. For example:
530
+ #
531
+ # RSpec.configure do |c|
532
+ # c.add_setting :use_transactional_fixtures,
533
+ # :default => true,
534
+ # :alias_with => :use_transactional_examples
535
+ # end
536
+ #
537
+ # `add_setting` creates three methods on the configuration object, a
538
+ # setter, a getter, and a predicate:
539
+ #
540
+ # RSpec.configuration.foo=(value)
541
+ # RSpec.configuration.foo
542
+ # RSpec.configuration.foo? # Returns true if foo returns anything but nil or false.
543
+ def add_setting(name, opts={})
544
+ default = opts.delete(:default)
545
+ (class << self; self; end).class_exec do
546
+ add_setting(name, opts)
547
+ end
548
+ __send__("#{name}=", default) if default
549
+ end
550
+
551
+ # Returns the configured mock framework adapter module.
552
+ def mock_framework
553
+ if @mock_framework.nil?
554
+ begin
555
+ mock_with :rspec
556
+ rescue LoadError
557
+ mock_with :nothing
558
+ end
559
+ end
560
+ @mock_framework
561
+ end
562
+
563
+ # Delegates to mock_framework=(framework).
564
+ def mock_framework=(framework)
565
+ mock_with framework
566
+ end
567
+
568
+ # Regexps used to exclude lines from backtraces.
569
+ #
570
+ # Excludes lines from ruby (and jruby) source, installed gems, anything
571
+ # in any "bin" directory, and any of the RSpec libs (outside gem
572
+ # installs) by default.
573
+ #
574
+ # You can modify the list via the getter, or replace it with the setter.
575
+ #
576
+ # To override this behaviour and display a full backtrace, use
577
+ # `--backtrace` on the command line, in a `.rspec` file, or in the
578
+ # `rspec_options` attribute of RSpec's rake task.
579
+ def backtrace_exclusion_patterns
580
+ @backtrace_formatter.exclusion_patterns
581
+ end
582
+
583
+ # Set regular expressions used to exclude lines in backtrace.
584
+ # @param patterns [Regexp] set the backtrace exlusion pattern
585
+ def backtrace_exclusion_patterns=(patterns)
586
+ @backtrace_formatter.exclusion_patterns = patterns
587
+ end
588
+
589
+ # Regexps used to include lines in backtraces.
590
+ #
591
+ # Defaults to [Regexp.new Dir.getwd].
592
+ #
593
+ # Lines that match an exclusion _and_ an inclusion pattern
594
+ # will be included.
595
+ #
596
+ # You can modify the list via the getter, or replace it with the setter.
597
+ def backtrace_inclusion_patterns
598
+ @backtrace_formatter.inclusion_patterns
599
+ end
600
+
601
+ # Set regular expressions used to include lines in backtrace.
602
+ # @attr patterns [Regexp] set backtrace_formatter inclusion_patterns
603
+ def backtrace_inclusion_patterns=(patterns)
604
+ @backtrace_formatter.inclusion_patterns = patterns
605
+ end
606
+
607
+ # Adds {#backtrace_exclusion_patterns} that will filter lines from
608
+ # the named gems from backtraces.
609
+ #
610
+ # @param gem_names [Array<String>] Names of the gems to filter
611
+ #
612
+ # @example
613
+ # RSpec.configure do |config|
614
+ # config.filter_gems_from_backtrace "rack", "rake"
615
+ # end
616
+ #
617
+ # @note The patterns this adds will match the named gems in their common
618
+ # locations (e.g. system gems, vendored with bundler, installed as a
619
+ # :git dependency with bundler, etc) but is not guaranteed to work for
620
+ # all possible gem locations. For example, if you have the gem source
621
+ # in a directory with a completely unrelated name, and use bundler's
622
+ # :path option, this will not filter it.
623
+ def filter_gems_from_backtrace(*gem_names)
624
+ gem_names.each do |name|
625
+ @backtrace_formatter.filter_gem(name)
626
+ end
627
+ end
628
+
629
+ # @private
630
+ MOCKING_ADAPTERS = {
631
+ :rspec => :RSpec,
632
+ :flexmock => :Flexmock,
633
+ :rr => :RR,
634
+ :mocha => :Mocha,
635
+ :nothing => :Null
636
+ }
637
+
638
+ # Sets the mock framework adapter module.
639
+ #
640
+ # `framework` can be a Symbol or a Module.
641
+ #
642
+ # Given any of `:rspec`, `:mocha`, `:flexmock`, or `:rr`, configures the
643
+ # named framework.
644
+ #
645
+ # Given `:nothing`, configures no framework. Use this if you don't use
646
+ # any mocking framework to save a little bit of overhead.
647
+ #
648
+ # Given a Module, includes that module in every example group. The module
649
+ # should adhere to RSpec's mock framework adapter API:
650
+ #
651
+ # setup_mocks_for_rspec
652
+ # - called before each example
653
+ #
654
+ # verify_mocks_for_rspec
655
+ # - called after each example if the example hasn't yet failed.
656
+ # Framework should raise an exception when expectations fail
657
+ #
658
+ # teardown_mocks_for_rspec
659
+ # - called after verify_mocks_for_rspec (even if there are errors)
660
+ #
661
+ # If the module responds to `configuration` and `mock_with` receives a
662
+ # block, it will yield the configuration object to the block e.g.
663
+ #
664
+ # config.mock_with OtherMockFrameworkAdapter do |mod_config|
665
+ # mod_config.custom_setting = true
666
+ # end
667
+ def mock_with(framework)
668
+ framework_module =
669
+ if framework.is_a?(Module)
670
+ framework
671
+ else
672
+ const_name = MOCKING_ADAPTERS.fetch(framework) do
673
+ raise ArgumentError,
674
+ "Unknown mocking framework: #{framework.inspect}. " \
675
+ "Pass a module or one of #{MOCKING_ADAPTERS.keys.inspect}"
676
+ end
677
+
678
+ RSpec::Support.require_rspec_core "mocking_adapters/#{const_name.to_s.downcase}"
679
+ RSpec::Core::MockingAdapters.const_get(const_name)
680
+ end
681
+
682
+ new_name, old_name = [framework_module, @mock_framework].map do |mod|
683
+ mod.respond_to?(:framework_name) ? mod.framework_name : :unnamed
684
+ end
685
+
686
+ unless new_name == old_name
687
+ assert_no_example_groups_defined(:mock_framework)
688
+ end
689
+
690
+ if block_given?
691
+ raise "#{framework_module} must respond to `configuration` so that " \
692
+ "mock_with can yield it." unless framework_module.respond_to?(:configuration)
693
+ yield framework_module.configuration
694
+ end
695
+
696
+ @mock_framework = framework_module
697
+ end
698
+
699
+ # Returns the configured expectation framework adapter module(s)
700
+ def expectation_frameworks
701
+ if @expectation_frameworks.empty?
702
+ begin
703
+ expect_with :rspec
704
+ rescue LoadError
705
+ expect_with Module.new
706
+ end
707
+ end
708
+ @expectation_frameworks
709
+ end
710
+
711
+ # Delegates to expect_with(framework).
712
+ def expectation_framework=(framework)
713
+ expect_with(framework)
714
+ end
715
+
716
+ # Sets the expectation framework module(s) to be included in each example
717
+ # group.
718
+ #
719
+ # `frameworks` can be `:rspec`, `:test_unit`, `:minitest`, a custom
720
+ # module, or any combination thereof:
721
+ #
722
+ # config.expect_with :rspec
723
+ # config.expect_with :test_unit
724
+ # config.expect_with :minitest
725
+ # config.expect_with :rspec, :minitest
726
+ # config.expect_with OtherExpectationFramework
727
+ #
728
+ # RSpec will translate `:rspec`, `:minitest`, and `:test_unit` into the
729
+ # appropriate modules.
730
+ #
731
+ # ## Configuration
732
+ #
733
+ # If the module responds to `configuration`, `expect_with` will
734
+ # yield the `configuration` object if given a block:
735
+ #
736
+ # config.expect_with OtherExpectationFramework do |custom_config|
737
+ # custom_config.custom_setting = true
738
+ # end
739
+ def expect_with(*frameworks)
740
+ modules = frameworks.map do |framework|
741
+ case framework
742
+ when Module
743
+ framework
744
+ when :rspec
745
+ require 'rspec/expectations'
746
+
747
+ # Tag this exception class so our exception formatting logic knows
748
+ # that it satisfies the `MultipleExceptionError` interface.
749
+ ::RSpec::Expectations::MultipleExpectationsNotMetError.__send__(
750
+ :include, MultipleExceptionError::InterfaceTag
751
+ )
752
+
753
+ ::RSpec::Matchers
754
+ when :test_unit
755
+ require 'rspec/core/test_unit_assertions_adapter'
756
+ ::RSpec::Core::TestUnitAssertionsAdapter
757
+ when :minitest
758
+ require 'rspec/core/minitest_assertions_adapter'
759
+ ::RSpec::Core::MinitestAssertionsAdapter
760
+ else
761
+ raise ArgumentError, "#{framework.inspect} is not supported"
762
+ end
763
+ end
764
+
765
+ if (modules - @expectation_frameworks).any?
766
+ assert_no_example_groups_defined(:expect_with)
767
+ end
768
+
769
+ if block_given?
770
+ raise "expect_with only accepts a block with a single argument. " \
771
+ "Call expect_with #{modules.length} times, " \
772
+ "once with each argument, instead." if modules.length > 1
773
+ raise "#{modules.first} must respond to `configuration` so that " \
774
+ "expect_with can yield it." unless modules.first.respond_to?(:configuration)
775
+ yield modules.first.configuration
776
+ end
777
+
778
+ @expectation_frameworks.push(*modules)
779
+ end
780
+
781
+ # Check if full backtrace is enabled.
782
+ # @return [Boolean] is full backtrace enabled
783
+ def full_backtrace?
784
+ @backtrace_formatter.full_backtrace?
785
+ end
786
+
787
+ # Toggle full backtrace.
788
+ # @attr true_or_false [Boolean] toggle full backtrace display
789
+ def full_backtrace=(true_or_false)
790
+ @backtrace_formatter.full_backtrace = true_or_false
791
+ end
792
+
793
+ # Enables color output if the output is a TTY. As of RSpec 3.6, this is
794
+ # the default behavior and this option is retained only for backwards
795
+ # compatibility.
796
+ #
797
+ # @deprecated No longer recommended because of complex behavior. Instead,
798
+ # rely on the fact that TTYs will display color by default, or set
799
+ # {#color_mode} to :on to display color on a non-TTY output.
800
+ # @see color_mode
801
+ # @see color_enabled?
802
+ # @return [Boolean]
803
+ def color
804
+ value_for(:color) { @color }
805
+ end
806
+
807
+ # The mode for determining whether to display output in color. One of:
808
+ #
809
+ # - :automatic - the output will be in color if the output is a TTY (the
810
+ # default)
811
+ # - :on - the output will be in color, whether or not the output is a TTY
812
+ # - :off - the output will not be in color
813
+ #
814
+ # @see color_enabled?
815
+ # @return [Boolean]
816
+ def color_mode
817
+ value_for(:color_mode) { @color_mode }
818
+ end
819
+
820
+ # Check if color is enabled for a particular output.
821
+ # @param output [IO] an output stream to use, defaults to the current
822
+ # `output_stream`
823
+ # @return [Boolean]
824
+ def color_enabled?(output=output_stream)
825
+ case color_mode
826
+ when :on then true
827
+ when :off then false
828
+ else # automatic
829
+ output_to_tty?(output) || (color && tty?)
830
+ end
831
+ end
832
+
833
+ # Set the color mode.
834
+ attr_writer :color_mode
835
+
836
+ # Toggle output color.
837
+ #
838
+ # @deprecated No longer recommended because of complex behavior. Instead,
839
+ # rely on the fact that TTYs will display color by default, or set
840
+ # {:color_mode} to :on to display color on a non-TTY output.
841
+ attr_writer :color
842
+
843
+ # @private
844
+ def libs=(libs)
845
+ libs.map do |lib|
846
+ @libs.unshift lib
847
+ $LOAD_PATH.unshift lib
848
+ end
849
+ end
850
+
851
+ # Run examples matching on `description` in all files to run.
852
+ # @param description [String, Regexp] the pattern to filter on
853
+ def full_description=(description)
854
+ filter_run :full_description => Regexp.union(*Array(description).map { |d| Regexp.new(d) })
855
+ end
856
+
857
+ # @return [Array] full description filter
858
+ def full_description
859
+ filter.fetch :full_description, nil
860
+ end
861
+
862
+ # @overload add_formatter(formatter)
863
+ # @overload add_formatter(formatter, output)
864
+ #
865
+ # @param formatter [Class, String] formatter to use. Can be any of the
866
+ # string values supported from the CLI (`p`/`progress`,
867
+ # `d`/`doc`/`documentation`, `h`/`html`, or `j`/`json`) or any
868
+ # class that implements the formatter protocol and has registered
869
+ # itself with RSpec as a formatter.
870
+ # @param output [String, IO] where the formatter will write its output.
871
+ # Can be an IO object or a string path to a file. If not provided,
872
+ # the configured `output_stream` (`$stdout`, by default) will be used.
873
+ #
874
+ # Adds a formatter to the set RSpec will use for this run.
875
+ #
876
+ # @see RSpec::Core::Formatters::Protocol
877
+ def add_formatter(formatter, output=output_wrapper)
878
+ formatter_loader.add(formatter, output)
879
+ end
880
+ alias_method :formatter=, :add_formatter
881
+
882
+ # The formatter that will be used if no formatter has been set.
883
+ # Defaults to 'progress'.
884
+ def default_formatter
885
+ formatter_loader.default_formatter
886
+ end
887
+
888
+ # Sets a fallback formatter to use if none other has been set.
889
+ #
890
+ # @example
891
+ #
892
+ # RSpec.configure do |rspec|
893
+ # rspec.default_formatter = 'doc'
894
+ # end
895
+ def default_formatter=(value)
896
+ formatter_loader.default_formatter = value
897
+ end
898
+
899
+ # Returns a duplicate of the formatters currently loaded in
900
+ # the `FormatterLoader` for introspection.
901
+ #
902
+ # Note as this is a duplicate, any mutations will be disregarded.
903
+ #
904
+ # @return [Array] the formatters currently loaded
905
+ def formatters
906
+ formatter_loader.formatters.dup
907
+ end
908
+
909
+ # @private
910
+ def formatter_loader
911
+ @formatter_loader ||= Formatters::Loader.new(Reporter.new(self))
912
+ end
913
+
914
+ # @private
915
+ #
916
+ # This buffer is used to capture all messages sent to the reporter during
917
+ # reporter initialization. It can then replay those messages after the
918
+ # formatter is correctly initialized. Otherwise, deprecation warnings
919
+ # during formatter initialization can cause an infinite loop.
920
+ class DeprecationReporterBuffer
921
+ def initialize
922
+ @calls = []
923
+ end
924
+
925
+ def deprecation(*args)
926
+ @calls << args
927
+ end
928
+
929
+ def play_onto(reporter)
930
+ @calls.each do |args|
931
+ reporter.deprecation(*args)
932
+ end
933
+ end
934
+ end
935
+
936
+ # @return [RSpec::Core::Reporter] the currently configured reporter
937
+ def reporter
938
+ # @reporter_buffer should only ever be set in this method to cover
939
+ # initialization of @reporter.
940
+ @reporter_buffer || @reporter ||=
941
+ begin
942
+ @reporter_buffer = DeprecationReporterBuffer.new
943
+ formatter_loader.prepare_default output_wrapper, deprecation_stream
944
+ @reporter_buffer.play_onto(formatter_loader.reporter)
945
+ @reporter_buffer = nil
946
+ formatter_loader.reporter
947
+ end
948
+ end
949
+
950
+ # @api private
951
+ #
952
+ # Defaults `profile_examples` to 10 examples when `@profile_examples` is
953
+ # `true`.
954
+ def profile_examples
955
+ profile = value_for(:profile_examples) { @profile_examples }
956
+ if profile && !profile.is_a?(Integer)
957
+ 10
958
+ else
959
+ profile
960
+ end
961
+ end
962
+
963
+ # @private
964
+ def files_or_directories_to_run=(*files)
965
+ files = files.flatten
966
+
967
+ if (command == 'rspec' || Runner.running_in_drb?) && default_path && files.empty?
968
+ files << default_path
969
+ end
970
+
971
+ @files_or_directories_to_run = files
972
+ @files_to_run = nil
973
+ end
974
+
975
+ # The spec files RSpec will run.
976
+ # @return [Array] specified files about to run
977
+ def files_to_run
978
+ @files_to_run ||= get_files_to_run(@files_or_directories_to_run)
979
+ end
980
+
981
+ # @private
982
+ def last_run_statuses
983
+ @last_run_statuses ||= Hash.new(UNKNOWN_STATUS).tap do |statuses|
984
+ if (path = example_status_persistence_file_path)
985
+ begin
986
+ ExampleStatusPersister.load_from(path).inject(statuses) do |hash, example|
987
+ status = example[:status]
988
+ status = UNKNOWN_STATUS unless VALID_STATUSES.include?(status)
989
+ hash[example.fetch(:example_id)] = status
990
+ hash
991
+ end
992
+ rescue SystemCallError => e
993
+ RSpec.warning "Could not read from #{path.inspect} (configured as " \
994
+ "`config.example_status_persistence_file_path`) due " \
995
+ "to a system error: #{e.inspect}. Please check that " \
996
+ "the config option is set to an accessible, valid " \
997
+ "file path", :call_site => nil
998
+ end
999
+ end
1000
+ end
1001
+ end
1002
+
1003
+ # @private
1004
+ UNKNOWN_STATUS = "unknown".freeze
1005
+
1006
+ # @private
1007
+ FAILED_STATUS = "failed".freeze
1008
+
1009
+ # @private
1010
+ PASSED_STATUS = "passed".freeze
1011
+
1012
+ # @private
1013
+ PENDING_STATUS = "pending".freeze
1014
+
1015
+ # @private
1016
+ VALID_STATUSES = [UNKNOWN_STATUS, FAILED_STATUS, PASSED_STATUS, PENDING_STATUS]
1017
+
1018
+ # @private
1019
+ def spec_files_with_failures
1020
+ @spec_files_with_failures ||= last_run_statuses.inject(Set.new) do |files, (id, status)|
1021
+ files << Example.parse_id(id).first if status == FAILED_STATUS
1022
+ files
1023
+ end.to_a
1024
+ end
1025
+
1026
+ # Creates a method that delegates to `example` including the submitted
1027
+ # `args`. Used internally to add variants of `example` like `pending`:
1028
+ # @param name [String] example name alias
1029
+ # @param args [Array<Symbol>, Hash] metadata for the generated example
1030
+ #
1031
+ # @note The specific example alias below (`pending`) is already
1032
+ # defined for you.
1033
+ # @note Use with caution. This extends the language used in your
1034
+ # specs, but does not add any additional documentation. We use this
1035
+ # in RSpec to define methods like `focus` and `xit`, but we also add
1036
+ # docs for those methods.
1037
+ #
1038
+ # @example
1039
+ # RSpec.configure do |config|
1040
+ # config.alias_example_to :pending, :pending => true
1041
+ # end
1042
+ #
1043
+ # # This lets you do this:
1044
+ #
1045
+ # describe Thing do
1046
+ # pending "does something" do
1047
+ # thing = Thing.new
1048
+ # end
1049
+ # end
1050
+ #
1051
+ # # ... which is the equivalent of
1052
+ #
1053
+ # describe Thing do
1054
+ # it "does something", :pending => true do
1055
+ # thing = Thing.new
1056
+ # end
1057
+ # end
1058
+ def alias_example_to(name, *args)
1059
+ extra_options = Metadata.build_hash_from(args)
1060
+ RSpec::Core::ExampleGroup.define_example_method(name, extra_options)
1061
+ end
1062
+
1063
+ # Creates a method that defines an example group with the provided
1064
+ # metadata. Can be used to define example group/metadata shortcuts.
1065
+ #
1066
+ # @example
1067
+ # RSpec.configure do |config|
1068
+ # config.alias_example_group_to :describe_model, :type => :model
1069
+ # end
1070
+ #
1071
+ # shared_context_for "model tests", :type => :model do
1072
+ # # define common model test helper methods, `let` declarations, etc
1073
+ # end
1074
+ #
1075
+ # # This lets you do this:
1076
+ #
1077
+ # RSpec.describe_model User do
1078
+ # end
1079
+ #
1080
+ # # ... which is the equivalent of
1081
+ #
1082
+ # RSpec.describe User, :type => :model do
1083
+ # end
1084
+ #
1085
+ # @note The defined aliased will also be added to the top level
1086
+ # (e.g. `main` and from within modules) if
1087
+ # `expose_dsl_globally` is set to true.
1088
+ # @see #alias_example_to
1089
+ # @see #expose_dsl_globally=
1090
+ def alias_example_group_to(new_name, *args)
1091
+ extra_options = Metadata.build_hash_from(args)
1092
+ RSpec::Core::ExampleGroup.define_example_group_method(new_name, extra_options)
1093
+ end
1094
+
1095
+ # Define an alias for it_should_behave_like that allows different
1096
+ # language (like "it_has_behavior" or "it_behaves_like") to be
1097
+ # employed when including shared examples.
1098
+ #
1099
+ # @example
1100
+ # RSpec.configure do |config|
1101
+ # config.alias_it_behaves_like_to(:it_has_behavior, 'has behavior:')
1102
+ # end
1103
+ #
1104
+ # # allows the user to include a shared example group like:
1105
+ #
1106
+ # describe Entity do
1107
+ # it_has_behavior 'sortability' do
1108
+ # let(:sortable) { Entity.new }
1109
+ # end
1110
+ # end
1111
+ #
1112
+ # # which is reported in the output as:
1113
+ # # Entity
1114
+ # # has behavior: sortability
1115
+ # # ...sortability examples here
1116
+ #
1117
+ # @note Use with caution. This extends the language used in your
1118
+ # specs, but does not add any additional documentation. We use this
1119
+ # in RSpec to define `it_should_behave_like` (for backward
1120
+ # compatibility), but we also add docs for that method.
1121
+ def alias_it_behaves_like_to(new_name, report_label='')
1122
+ RSpec::Core::ExampleGroup.define_nested_shared_group_method(new_name, report_label)
1123
+ end
1124
+ alias_method :alias_it_should_behave_like_to, :alias_it_behaves_like_to
1125
+
1126
+ # Adds key/value pairs to the `inclusion_filter`. If `args`
1127
+ # includes any symbols that are not part of the hash, each symbol
1128
+ # is treated as a key in the hash with the value `true`.
1129
+ #
1130
+ # ### Note
1131
+ #
1132
+ # Filters set using this method can be overridden from the command line
1133
+ # or config files (e.g. `.rspec`).
1134
+ #
1135
+ # @example
1136
+ # # Given this declaration.
1137
+ # describe "something", :foo => 'bar' do
1138
+ # # ...
1139
+ # end
1140
+ #
1141
+ # # Any of the following will include that group.
1142
+ # config.filter_run_including :foo => 'bar'
1143
+ # config.filter_run_including :foo => /^ba/
1144
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
1145
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
1146
+ #
1147
+ # # Given a proc with an arity of 1, the lambda is passed the value
1148
+ # # related to the key, e.g.
1149
+ # config.filter_run_including :foo => lambda {|v| v == 'bar'}
1150
+ #
1151
+ # # Given a proc with an arity of 2, the lambda is passed the value
1152
+ # # related to the key, and the metadata itself e.g.
1153
+ # config.filter_run_including :foo => lambda {|v,m| m[:foo] == 'bar'}
1154
+ #
1155
+ # filter_run_including :foo # same as filter_run_including :foo => true
1156
+ def filter_run_including(*args)
1157
+ meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
1158
+ filter_manager.include_with_low_priority meta
1159
+ static_config_filter_manager.include_with_low_priority Metadata.deep_hash_dup(meta)
1160
+ end
1161
+ alias_method :filter_run, :filter_run_including
1162
+
1163
+ # Applies the provided filter only if any of examples match, in constrast
1164
+ # to {#filter_run}, which always applies even if no examples match, in
1165
+ # which case no examples will be run. This allows you to leave configured
1166
+ # filters in place that are intended only for temporary use. The most common
1167
+ # example is focus filtering: `config.filter_run_when_matching :focus`.
1168
+ # With that configured, you can temporarily focus an example or group
1169
+ # by tagging it with `:focus` metadata, or prefixing it with an `f`
1170
+ # (as in `fdescribe`, `fcontext` and `fit`) since those are aliases for
1171
+ # `describe`/`context`/`it` with `:focus` metadata.
1172
+ def filter_run_when_matching(*args)
1173
+ when_first_matching_example_defined(*args) do
1174
+ filter_run(*args)
1175
+ end
1176
+ end
1177
+
1178
+ # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't
1179
+ # want any inclusion filter at all.
1180
+ #
1181
+ # ### Warning
1182
+ #
1183
+ # This overrides any inclusion filters/tags set on the command line or in
1184
+ # configuration files.
1185
+ def inclusion_filter=(filter)
1186
+ meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
1187
+ filter_manager.include_only meta
1188
+ end
1189
+
1190
+ alias_method :filter=, :inclusion_filter=
1191
+
1192
+ # Returns the `inclusion_filter`. If none has been set, returns an empty
1193
+ # hash.
1194
+ def inclusion_filter
1195
+ filter_manager.inclusions
1196
+ end
1197
+
1198
+ alias_method :filter, :inclusion_filter
1199
+
1200
+ # Adds key/value pairs to the `exclusion_filter`. If `args`
1201
+ # includes any symbols that are not part of the hash, each symbol
1202
+ # is treated as a key in the hash with the value `true`.
1203
+ #
1204
+ # ### Note
1205
+ #
1206
+ # Filters set using this method can be overridden from the command line
1207
+ # or config files (e.g. `.rspec`).
1208
+ #
1209
+ # @example
1210
+ # # Given this declaration.
1211
+ # describe "something", :foo => 'bar' do
1212
+ # # ...
1213
+ # end
1214
+ #
1215
+ # # Any of the following will exclude that group.
1216
+ # config.filter_run_excluding :foo => 'bar'
1217
+ # config.filter_run_excluding :foo => /^ba/
1218
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
1219
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
1220
+ #
1221
+ # # Given a proc with an arity of 1, the lambda is passed the value
1222
+ # # related to the key, e.g.
1223
+ # config.filter_run_excluding :foo => lambda {|v| v == 'bar'}
1224
+ #
1225
+ # # Given a proc with an arity of 2, the lambda is passed the value
1226
+ # # related to the key, and the metadata itself e.g.
1227
+ # config.filter_run_excluding :foo => lambda {|v,m| m[:foo] == 'bar'}
1228
+ #
1229
+ # filter_run_excluding :foo # same as filter_run_excluding :foo => true
1230
+ def filter_run_excluding(*args)
1231
+ meta = Metadata.build_hash_from(args, :warn_about_example_group_filtering)
1232
+ filter_manager.exclude_with_low_priority meta
1233
+ static_config_filter_manager.exclude_with_low_priority Metadata.deep_hash_dup(meta)
1234
+ end
1235
+
1236
+ # Clears and reassigns the `exclusion_filter`. Set to `nil` if you don't
1237
+ # want any exclusion filter at all.
1238
+ #
1239
+ # ### Warning
1240
+ #
1241
+ # This overrides any exclusion filters/tags set on the command line or in
1242
+ # configuration files.
1243
+ def exclusion_filter=(filter)
1244
+ meta = Metadata.build_hash_from([filter], :warn_about_example_group_filtering)
1245
+ filter_manager.exclude_only meta
1246
+ end
1247
+
1248
+ # Returns the `exclusion_filter`. If none has been set, returns an empty
1249
+ # hash.
1250
+ def exclusion_filter
1251
+ filter_manager.exclusions
1252
+ end
1253
+
1254
+ # Tells RSpec to include `mod` in example groups. Methods defined in
1255
+ # `mod` are exposed to examples (not example groups). Use `filters` to
1256
+ # constrain the groups or examples in which to include the module.
1257
+ #
1258
+ # @example
1259
+ #
1260
+ # module AuthenticationHelpers
1261
+ # def login_as(user)
1262
+ # # ...
1263
+ # end
1264
+ # end
1265
+ #
1266
+ # module UserHelpers
1267
+ # def users(username)
1268
+ # # ...
1269
+ # end
1270
+ # end
1271
+ #
1272
+ # RSpec.configure do |config|
1273
+ # config.include(UserHelpers) # included in all groups
1274
+ # config.include(AuthenticationHelpers, :type => :request)
1275
+ # end
1276
+ #
1277
+ # describe "edit profile", :type => :request do
1278
+ # it "can be viewed by owning user" do
1279
+ # login_as users(:jdoe)
1280
+ # get "/profiles/jdoe"
1281
+ # assert_select ".username", :text => 'jdoe'
1282
+ # end
1283
+ # end
1284
+ #
1285
+ # @note Filtered module inclusions can also be applied to
1286
+ # individual examples that have matching metadata. Just like
1287
+ # Ruby's object model is that every object has a singleton class
1288
+ # which has only a single instance, RSpec's model is that every
1289
+ # example has a singleton example group containing just the one
1290
+ # example.
1291
+ #
1292
+ # @see #include_context
1293
+ # @see #extend
1294
+ # @see #prepend
1295
+ def include(mod, *filters)
1296
+ define_mixed_in_module(mod, filters, @include_modules, :include) do |group|
1297
+ safe_include(mod, group)
1298
+ end
1299
+ end
1300
+
1301
+ # Tells RSpec to include the named shared example group in example groups.
1302
+ # Use `filters` to constrain the groups or examples in which to include
1303
+ # the example group.
1304
+ #
1305
+ # @example
1306
+ #
1307
+ # RSpec.shared_context "example users" do
1308
+ # let(:admin_user) { create_user(:admin) }
1309
+ # let(:guest_user) { create_user(:guest) }
1310
+ # end
1311
+ #
1312
+ # RSpec.configure do |config|
1313
+ # config.include_context "example users", :type => :request
1314
+ # end
1315
+ #
1316
+ # RSpec.describe "The admin page", :type => :request do
1317
+ # it "can be viewed by admins" do
1318
+ # login_with admin_user
1319
+ # get "/admin"
1320
+ # expect(response).to be_ok
1321
+ # end
1322
+ #
1323
+ # it "cannot be viewed by guests" do
1324
+ # login_with guest_user
1325
+ # get "/admin"
1326
+ # expect(response).to be_forbidden
1327
+ # end
1328
+ # end
1329
+ #
1330
+ # @note Filtered context inclusions can also be applied to
1331
+ # individual examples that have matching metadata. Just like
1332
+ # Ruby's object model is that every object has a singleton class
1333
+ # which has only a single instance, RSpec's model is that every
1334
+ # example has a singleton example group containing just the one
1335
+ # example.
1336
+ #
1337
+ # @see #include
1338
+ def include_context(shared_group_name, *filters)
1339
+ shared_module = world.shared_example_group_registry.find([:main], shared_group_name)
1340
+ include shared_module, *filters
1341
+ end
1342
+
1343
+ # Tells RSpec to extend example groups with `mod`. Methods defined in
1344
+ # `mod` are exposed to example groups (not examples). Use `filters` to
1345
+ # constrain the groups to extend.
1346
+ #
1347
+ # Similar to `include`, but behavior is added to example groups, which
1348
+ # are classes, rather than the examples, which are instances of those
1349
+ # classes.
1350
+ #
1351
+ # @example
1352
+ #
1353
+ # module UiHelpers
1354
+ # def run_in_browser
1355
+ # # ...
1356
+ # end
1357
+ # end
1358
+ #
1359
+ # RSpec.configure do |config|
1360
+ # config.extend(UiHelpers, :type => :request)
1361
+ # end
1362
+ #
1363
+ # describe "edit profile", :type => :request do
1364
+ # run_in_browser
1365
+ #
1366
+ # it "does stuff in the client" do
1367
+ # # ...
1368
+ # end
1369
+ # end
1370
+ #
1371
+ # @see #include
1372
+ # @see #prepend
1373
+ def extend(mod, *filters)
1374
+ define_mixed_in_module(mod, filters, @extend_modules, :extend) do |group|
1375
+ safe_extend(mod, group)
1376
+ end
1377
+ end
1378
+
1379
+ if RSpec::Support::RubyFeatures.module_prepends_supported?
1380
+ # Tells RSpec to prepend example groups with `mod`. Methods defined in
1381
+ # `mod` are exposed to examples (not example groups). Use `filters` to
1382
+ # constrain the groups in which to prepend the module.
1383
+ #
1384
+ # Similar to `include`, but module is included before the example group's class
1385
+ # in the ancestor chain.
1386
+ #
1387
+ # @example
1388
+ #
1389
+ # module OverrideMod
1390
+ # def override_me
1391
+ # "overridden"
1392
+ # end
1393
+ # end
1394
+ #
1395
+ # RSpec.configure do |config|
1396
+ # config.prepend(OverrideMod, :method => :prepend)
1397
+ # end
1398
+ #
1399
+ # describe "overriding example's class", :method => :prepend do
1400
+ # it "finds the user" do
1401
+ # self.class.class_eval do
1402
+ # def override_me
1403
+ # end
1404
+ # end
1405
+ # override_me # => "overridden"
1406
+ # # ...
1407
+ # end
1408
+ # end
1409
+ #
1410
+ # @see #include
1411
+ # @see #extend
1412
+ def prepend(mod, *filters)
1413
+ define_mixed_in_module(mod, filters, @prepend_modules, :prepend) do |group|
1414
+ safe_prepend(mod, group)
1415
+ end
1416
+ end
1417
+ end
1418
+
1419
+ # @private
1420
+ #
1421
+ # Used internally to extend a group with modules using `include`, `prepend` and/or
1422
+ # `extend`.
1423
+ def configure_group(group)
1424
+ group.hooks.register_globals(group, hooks)
1425
+
1426
+ configure_group_with group, @include_modules, :safe_include
1427
+ configure_group_with group, @extend_modules, :safe_extend
1428
+ configure_group_with group, @prepend_modules, :safe_prepend
1429
+ end
1430
+
1431
+ # @private
1432
+ #
1433
+ # Used internally to extend the singleton class of a single example's
1434
+ # example group instance with modules using `include` and/or `extend`.
1435
+ def configure_example(example, example_hooks)
1436
+ example_hooks.register_global_singleton_context_hooks(example, hooks)
1437
+ singleton_group = example.example_group_instance.singleton_class
1438
+
1439
+ # We replace the metadata so that SharedExampleGroupModule#included
1440
+ # has access to the example's metadata[:location].
1441
+ singleton_group.with_replaced_metadata(example.metadata) do
1442
+ modules = @include_modules.items_for(example.metadata)
1443
+ modules.each do |mod|
1444
+ safe_include(mod, example.example_group_instance.singleton_class)
1445
+ end
1446
+
1447
+ MemoizedHelpers.define_helpers_on(singleton_group) unless modules.empty?
1448
+ end
1449
+ end
1450
+
1451
+ # @private
1452
+ def requires=(paths)
1453
+ directories = ['lib', default_path].select { |p| File.directory? p }
1454
+ RSpec::Core::RubyProject.add_to_load_path(*directories)
1455
+ paths.each { |path| require path }
1456
+ @requires += paths
1457
+ end
1458
+
1459
+ # @private
1460
+ def in_project_source_dir_regex
1461
+ regexes = project_source_dirs.map do |dir|
1462
+ /\A#{Regexp.escape(File.expand_path(dir))}\//
1463
+ end
1464
+
1465
+ Regexp.union(regexes)
1466
+ end
1467
+
1468
+ # @private
1469
+ def configure_mock_framework
1470
+ RSpec::Core::ExampleGroup.__send__(:include, mock_framework)
1471
+ conditionally_disable_mocks_monkey_patching
1472
+ end
1473
+
1474
+ # @private
1475
+ def configure_expectation_framework
1476
+ expectation_frameworks.each do |framework|
1477
+ RSpec::Core::ExampleGroup.__send__(:include, framework)
1478
+ end
1479
+ conditionally_disable_expectations_monkey_patching
1480
+ end
1481
+
1482
+ # @private
1483
+ def load_spec_files
1484
+ # Note which spec files world is already aware of.
1485
+ # This is generally only needed for when the user runs
1486
+ # `ruby path/to/spec.rb` (and loads `rspec/autorun`) --
1487
+ # in that case, the spec file was loaded by `ruby` and
1488
+ # isn't loaded by us here so we only know about it because
1489
+ # of an example group being registered in it.
1490
+ world.registered_example_group_files.each do |f|
1491
+ loaded_spec_files << f # the registered files are already expended absolute paths
1492
+ end
1493
+
1494
+ files_to_run.uniq.each do |f|
1495
+ file = File.expand_path(f)
1496
+ load_spec_file_handling_errors(file)
1497
+ loaded_spec_files << file
1498
+ end
1499
+
1500
+ @spec_files_loaded = true
1501
+ end
1502
+
1503
+ # @private
1504
+ DEFAULT_FORMATTER = lambda { |string| string }
1505
+
1506
+ # Formats the docstring output using the block provided.
1507
+ #
1508
+ # @example
1509
+ # # This will strip the descriptions of both examples and example
1510
+ # # groups.
1511
+ # RSpec.configure do |config|
1512
+ # config.format_docstrings { |s| s.strip }
1513
+ # end
1514
+ def format_docstrings(&block)
1515
+ @format_docstrings_block = block_given? ? block : DEFAULT_FORMATTER
1516
+ end
1517
+
1518
+ # @private
1519
+ def format_docstrings_block
1520
+ @format_docstrings_block ||= DEFAULT_FORMATTER
1521
+ end
1522
+
1523
+ # @private
1524
+ # @macro [attach] delegate_to_ordering_manager
1525
+ # @!method $1
1526
+ def self.delegate_to_ordering_manager(*methods)
1527
+ methods.each do |method|
1528
+ define_method method do |*args, &block|
1529
+ ordering_manager.__send__(method, *args, &block)
1530
+ end
1531
+ end
1532
+ end
1533
+
1534
+ # @macro delegate_to_ordering_manager
1535
+ #
1536
+ # Sets the seed value and sets the default global ordering to random.
1537
+ delegate_to_ordering_manager :seed=
1538
+
1539
+ # @macro delegate_to_ordering_manager
1540
+ # Seed for random ordering (default: generated randomly each run).
1541
+ #
1542
+ # When you run specs with `--order random`, RSpec generates a random seed
1543
+ # for the randomization and prints it to the `output_stream` (assuming
1544
+ # you're using RSpec's built-in formatters). If you discover an ordering
1545
+ # dependency (i.e. examples fail intermittently depending on order), set
1546
+ # this (on Configuration or on the command line with `--seed`) to run
1547
+ # using the same seed while you debug the issue.
1548
+ #
1549
+ # We recommend, actually, that you use the command line approach so you
1550
+ # don't accidentally leave the seed encoded.
1551
+ delegate_to_ordering_manager :seed
1552
+
1553
+ # @macro delegate_to_ordering_manager
1554
+ #
1555
+ # Sets the default global ordering strategy. By default this can be one
1556
+ # of `:defined`, `:random`, but is customizable through the
1557
+ # `register_ordering` API. If order is set to `'rand:<seed>'`,
1558
+ # the seed will also be set.
1559
+ #
1560
+ # @see #register_ordering
1561
+ delegate_to_ordering_manager :order=
1562
+
1563
+ # @macro delegate_to_ordering_manager
1564
+ # Registers a named ordering strategy that can later be
1565
+ # used to order an example group's subgroups by adding
1566
+ # `:order => <name>` metadata to the example group.
1567
+ #
1568
+ # @param name [Symbol] The name of the ordering.
1569
+ # @yield Block that will order the given examples or example groups
1570
+ # @yieldparam list [Array<RSpec::Core::Example>,
1571
+ # Array<RSpec::Core::ExampleGroup>] The examples or groups to order
1572
+ # @yieldreturn [Array<RSpec::Core::Example>,
1573
+ # Array<RSpec::Core::ExampleGroup>] The re-ordered examples or groups
1574
+ #
1575
+ # @example
1576
+ # RSpec.configure do |rspec|
1577
+ # rspec.register_ordering :reverse do |list|
1578
+ # list.reverse
1579
+ # end
1580
+ # end
1581
+ #
1582
+ # RSpec.describe 'MyClass', :order => :reverse do
1583
+ # # ...
1584
+ # end
1585
+ #
1586
+ # @note Pass the symbol `:global` to set the ordering strategy that
1587
+ # will be used to order the top-level example groups and any example
1588
+ # groups that do not have declared `:order` metadata.
1589
+ #
1590
+ # @example
1591
+ # RSpec.configure do |rspec|
1592
+ # rspec.register_ordering :global do |examples|
1593
+ # acceptance, other = examples.partition do |example|
1594
+ # example.metadata[:type] == :acceptance
1595
+ # end
1596
+ # other + acceptance
1597
+ # end
1598
+ # end
1599
+ #
1600
+ # RSpec.describe 'MyClass', :type => :acceptance do
1601
+ # # will run last
1602
+ # end
1603
+ #
1604
+ # RSpec.describe 'MyClass' do
1605
+ # # will run first
1606
+ # end
1607
+ #
1608
+ delegate_to_ordering_manager :register_ordering
1609
+
1610
+ # @private
1611
+ delegate_to_ordering_manager :seed_used?, :ordering_registry
1612
+
1613
+ # Set Ruby warnings on or off.
1614
+ def warnings=(value)
1615
+ $VERBOSE = !!value
1616
+ end
1617
+
1618
+ # @return [Boolean] Whether or not ruby warnings are enabled.
1619
+ def warnings?
1620
+ $VERBOSE
1621
+ end
1622
+
1623
+ # @private
1624
+ RAISE_ERROR_WARNING_NOTIFIER = lambda { |message| raise message }
1625
+
1626
+ # Turns warnings into errors. This can be useful when
1627
+ # you want RSpec to run in a 'strict' no warning situation.
1628
+ #
1629
+ # @example
1630
+ #
1631
+ # RSpec.configure do |rspec|
1632
+ # rspec.raise_on_warning = true
1633
+ # end
1634
+ def raise_on_warning=(value)
1635
+ if value
1636
+ RSpec::Support.warning_notifier = RAISE_ERROR_WARNING_NOTIFIER
1637
+ else
1638
+ RSpec::Support.warning_notifier = RSpec::Support::DEFAULT_WARNING_NOTIFIER
1639
+ end
1640
+ end
1641
+
1642
+ # Exposes the current running example via the named
1643
+ # helper method. RSpec 2.x exposed this via `example`,
1644
+ # but in RSpec 3.0, the example is instead exposed via
1645
+ # an arg yielded to `it`, `before`, `let`, etc. However,
1646
+ # some extension gems (such as Capybara) depend on the
1647
+ # RSpec 2.x's `example` method, so this config option
1648
+ # can be used to maintain compatibility.
1649
+ #
1650
+ # @param method_name [Symbol] the name of the helper method
1651
+ #
1652
+ # @example
1653
+ #
1654
+ # RSpec.configure do |rspec|
1655
+ # rspec.expose_current_running_example_as :example
1656
+ # end
1657
+ #
1658
+ # describe MyClass do
1659
+ # before do
1660
+ # # `example` can be used here because of the above config.
1661
+ # do_something if example.metadata[:type] == "foo"
1662
+ # end
1663
+ # end
1664
+ def expose_current_running_example_as(method_name)
1665
+ ExposeCurrentExample.module_exec do
1666
+ extend RSpec::SharedContext
1667
+ let(method_name) { |ex| ex }
1668
+ end
1669
+
1670
+ include ExposeCurrentExample
1671
+ end
1672
+
1673
+ # @private
1674
+ module ExposeCurrentExample; end
1675
+
1676
+ # Turns deprecation warnings into errors, in order to surface
1677
+ # the full backtrace of the call site. This can be useful when
1678
+ # you need more context to address a deprecation than the
1679
+ # single-line call site normally provided.
1680
+ #
1681
+ # @example
1682
+ #
1683
+ # RSpec.configure do |rspec|
1684
+ # rspec.raise_errors_for_deprecations!
1685
+ # end
1686
+ def raise_errors_for_deprecations!
1687
+ self.deprecation_stream = Formatters::DeprecationFormatter::RaiseErrorStream.new
1688
+ end
1689
+
1690
+ # Enables zero monkey patching mode for RSpec. It removes monkey
1691
+ # patching of the top-level DSL methods (`describe`,
1692
+ # `shared_examples_for`, etc) onto `main` and `Module`, instead
1693
+ # requiring you to prefix these methods with `RSpec.`. It enables
1694
+ # expect-only syntax for rspec-mocks and rspec-expectations. It
1695
+ # simply disables monkey patching on whatever pieces of RSpec
1696
+ # the user is using.
1697
+ #
1698
+ # @note It configures rspec-mocks and rspec-expectations only
1699
+ # if the user is using those (either explicitly or implicitly
1700
+ # by not setting `mock_with` or `expect_with` to anything else).
1701
+ #
1702
+ # @note If the user uses this options with `mock_with :mocha`
1703
+ # (or similiar) they will still have monkey patching active
1704
+ # in their test environment from mocha.
1705
+ #
1706
+ # @example
1707
+ #
1708
+ # # It disables all monkey patching.
1709
+ # RSpec.configure do |config|
1710
+ # config.disable_monkey_patching!
1711
+ # end
1712
+ #
1713
+ # # Is an equivalent to
1714
+ # RSpec.configure do |config|
1715
+ # config.expose_dsl_globally = false
1716
+ #
1717
+ # config.mock_with :rspec do |mocks|
1718
+ # mocks.syntax = :expect
1719
+ # mocks.patch_marshal_to_support_partial_doubles = false
1720
+ # end
1721
+ #
1722
+ # config.expect_with :rspec do |expectations|
1723
+ # expectations.syntax = :expect
1724
+ # end
1725
+ # end
1726
+ def disable_monkey_patching!
1727
+ self.expose_dsl_globally = false
1728
+ self.disable_monkey_patching = true
1729
+ conditionally_disable_mocks_monkey_patching
1730
+ conditionally_disable_expectations_monkey_patching
1731
+ end
1732
+
1733
+ # @private
1734
+ attr_accessor :disable_monkey_patching
1735
+
1736
+ # Defines a callback that can assign derived metadata values.
1737
+ #
1738
+ # @param filters [Array<Symbol>, Hash] metadata filters that determine
1739
+ # which example or group metadata hashes the callback will be triggered
1740
+ # for. If none are given, the callback will be run against the metadata
1741
+ # hashes of all groups and examples.
1742
+ # @yieldparam metadata [Hash] original metadata hash from an example or
1743
+ # group. Mutate this in your block as needed.
1744
+ #
1745
+ # @example
1746
+ # RSpec.configure do |config|
1747
+ # # Tag all groups and examples in the spec/unit directory with
1748
+ # # :type => :unit
1749
+ # config.define_derived_metadata(:file_path => %r{/spec/unit/}) do |metadata|
1750
+ # metadata[:type] = :unit
1751
+ # end
1752
+ # end
1753
+ def define_derived_metadata(*filters, &block)
1754
+ meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
1755
+ @derived_metadata_blocks.append(block, meta)
1756
+ end
1757
+
1758
+ # Defines a callback that runs after the first example with matching
1759
+ # metadata is defined. If no examples are defined with matching metadata,
1760
+ # it will not get called at all.
1761
+ #
1762
+ # This can be used to ensure some setup is performed (such as bootstrapping
1763
+ # a DB or loading a specific file that adds significantly to the boot time)
1764
+ # if needed (as indicated by the presence of an example with matching metadata)
1765
+ # but avoided otherwise.
1766
+ #
1767
+ # @example
1768
+ # RSpec.configure do |config|
1769
+ # config.when_first_matching_example_defined(:db) do
1770
+ # # Load a support file that does some heavyweight setup,
1771
+ # # including bootstrapping the DB, but only if we have loaded
1772
+ # # any examples tagged with `:db`.
1773
+ # require 'support/db'
1774
+ # end
1775
+ # end
1776
+ def when_first_matching_example_defined(*filters, &block)
1777
+ specified_meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
1778
+
1779
+ callback = lambda do |example_or_group_meta|
1780
+ # Example groups do not have `:example_group` metadata
1781
+ # (instead they have `:parent_example_group` metadata).
1782
+ return unless example_or_group_meta.key?(:example_group)
1783
+
1784
+ # Ensure the callback only fires once.
1785
+ @derived_metadata_blocks.delete(callback, specified_meta)
1786
+
1787
+ block.call
1788
+ end
1789
+
1790
+ @derived_metadata_blocks.append(callback, specified_meta)
1791
+ end
1792
+
1793
+ # @private
1794
+ def apply_derived_metadata_to(metadata)
1795
+ @derived_metadata_blocks.items_for(metadata).each do |block|
1796
+ block.call(metadata)
1797
+ end
1798
+ end
1799
+
1800
+ # Defines a `before` hook. See {Hooks#before} for full docs.
1801
+ #
1802
+ # This method differs from {Hooks#before} in only one way: it supports
1803
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once before
1804
+ # the first example of the entire suite is executed.
1805
+ #
1806
+ # @see #prepend_before
1807
+ # @see #after
1808
+ # @see #append_after
1809
+ def before(scope=nil, *meta, &block)
1810
+ handle_suite_hook(scope, meta) do
1811
+ @before_suite_hooks << Hooks::BeforeHook.new(block, {})
1812
+ end || begin
1813
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1814
+ # the methods below are passed the same proc instances
1815
+ # so `Hook` equality is preserved. For more info, see:
1816
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1817
+ block.__id__
1818
+
1819
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.before(scope, *meta, &block) }
1820
+ super(scope, *meta, &block)
1821
+ end
1822
+ end
1823
+ alias_method :append_before, :before
1824
+
1825
+ # Adds `block` to the start of the list of `before` blocks in the same
1826
+ # scope (`:example`, `:context`, or `:suite`), in contrast to {#before},
1827
+ # which adds the hook to the end of the list.
1828
+ #
1829
+ # See {Hooks#before} for full `before` hook docs.
1830
+ #
1831
+ # This method differs from {Hooks#prepend_before} in only one way: it supports
1832
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once before
1833
+ # the first example of the entire suite is executed.
1834
+ #
1835
+ # @see #before
1836
+ # @see #after
1837
+ # @see #append_after
1838
+ def prepend_before(scope=nil, *meta, &block)
1839
+ handle_suite_hook(scope, meta) do
1840
+ @before_suite_hooks.unshift Hooks::BeforeHook.new(block, {})
1841
+ end || begin
1842
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1843
+ # the methods below are passed the same proc instances
1844
+ # so `Hook` equality is preserved. For more info, see:
1845
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1846
+ block.__id__
1847
+
1848
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.prepend_before(scope, *meta, &block) }
1849
+ super(scope, *meta, &block)
1850
+ end
1851
+ end
1852
+
1853
+ # Defines a `after` hook. See {Hooks#after} for full docs.
1854
+ #
1855
+ # This method differs from {Hooks#after} in only one way: it supports
1856
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once after
1857
+ # the last example of the entire suite is executed.
1858
+ #
1859
+ # @see #append_after
1860
+ # @see #before
1861
+ # @see #prepend_before
1862
+ def after(scope=nil, *meta, &block)
1863
+ handle_suite_hook(scope, meta) do
1864
+ @after_suite_hooks.unshift Hooks::AfterHook.new(block, {})
1865
+ end || begin
1866
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1867
+ # the methods below are passed the same proc instances
1868
+ # so `Hook` equality is preserved. For more info, see:
1869
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1870
+ block.__id__
1871
+
1872
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.after(scope, *meta, &block) }
1873
+ super(scope, *meta, &block)
1874
+ end
1875
+ end
1876
+ alias_method :prepend_after, :after
1877
+
1878
+ # Adds `block` to the end of the list of `after` blocks in the same
1879
+ # scope (`:example`, `:context`, or `:suite`), in contrast to {#after},
1880
+ # which adds the hook to the start of the list.
1881
+ #
1882
+ # See {Hooks#after} for full `after` hook docs.
1883
+ #
1884
+ # This method differs from {Hooks#append_after} in only one way: it supports
1885
+ # the `:suite` scope. Hooks with the `:suite` scope will be run once after
1886
+ # the last example of the entire suite is executed.
1887
+ #
1888
+ # @see #append_after
1889
+ # @see #before
1890
+ # @see #prepend_before
1891
+ def append_after(scope=nil, *meta, &block)
1892
+ handle_suite_hook(scope, meta) do
1893
+ @after_suite_hooks << Hooks::AfterHook.new(block, {})
1894
+ end || begin
1895
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1896
+ # the methods below are passed the same proc instances
1897
+ # so `Hook` equality is preserved. For more info, see:
1898
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1899
+ block.__id__
1900
+
1901
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.append_after(scope, *meta, &block) }
1902
+ super(scope, *meta, &block)
1903
+ end
1904
+ end
1905
+
1906
+ # Registers `block` as an `around` hook.
1907
+ #
1908
+ # See {Hooks#around} for full `around` hook docs.
1909
+ def around(scope=nil, *meta, &block)
1910
+ # defeat Ruby 2.5 lazy proc allocation to ensure
1911
+ # the methods below are passed the same proc instances
1912
+ # so `Hook` equality is preserved. For more info, see:
1913
+ # https://bugs.ruby-lang.org/issues/14045#note-5
1914
+ block.__id__
1915
+
1916
+ add_hook_to_existing_matching_groups(meta, scope) { |g| g.around(scope, *meta, &block) }
1917
+ super(scope, *meta, &block)
1918
+ end
1919
+
1920
+ # @private
1921
+ def with_suite_hooks
1922
+ return yield if dry_run?
1923
+
1924
+ begin
1925
+ run_suite_hooks("a `before(:suite)` hook", @before_suite_hooks)
1926
+ yield
1927
+ ensure
1928
+ run_suite_hooks("an `after(:suite)` hook", @after_suite_hooks)
1929
+ end
1930
+ end
1931
+
1932
+ # @private
1933
+ # Holds the various registered hooks. Here we use a FilterableItemRepository
1934
+ # implementation that is specifically optimized for the read/write patterns
1935
+ # of the config object.
1936
+ def hooks
1937
+ @hooks ||= HookCollections.new(self, FilterableItemRepository::QueryOptimized)
1938
+ end
1939
+
1940
+ # Invokes block before defining an example group
1941
+ def on_example_group_definition(&block)
1942
+ on_example_group_definition_callbacks << block
1943
+ end
1944
+
1945
+ # @api private
1946
+ # Returns an array of blocks to call before defining an example group
1947
+ def on_example_group_definition_callbacks
1948
+ @on_example_group_definition_callbacks ||= []
1949
+ end
1950
+
1951
+ private
1952
+
1953
+ def load_spec_file_handling_errors(file)
1954
+ load file
1955
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
1956
+ relative_file = Metadata.relative_path(file)
1957
+ reporter.notify_non_example_exception(ex, "An error occurred while loading #{relative_file}.")
1958
+ RSpec.world.wants_to_quit = true
1959
+ end
1960
+
1961
+ def handle_suite_hook(scope, meta)
1962
+ return nil unless scope == :suite
1963
+
1964
+ unless meta.empty?
1965
+ # TODO: in RSpec 4, consider raising an error here.
1966
+ # We warn only for backwards compatibility.
1967
+ RSpec.warn_with "WARNING: `:suite` hooks do not support metadata since " \
1968
+ "they apply to the suite as a whole rather than " \
1969
+ "any individual example or example group that has metadata. " \
1970
+ "The metadata you have provided (#{meta.inspect}) will be ignored."
1971
+ end
1972
+
1973
+ yield
1974
+ end
1975
+
1976
+ def run_suite_hooks(hook_description, hooks)
1977
+ context = SuiteHookContext.new(hook_description, reporter)
1978
+
1979
+ hooks.each do |hook|
1980
+ begin
1981
+ hook.run(context)
1982
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
1983
+ context.set_exception(ex)
1984
+
1985
+ # Do not run subsequent `before` hooks if one fails.
1986
+ # But for `after` hooks, we run them all so that all
1987
+ # cleanup bits get a chance to complete, minimizing the
1988
+ # chance that resources get left behind.
1989
+ break if hooks.equal?(@before_suite_hooks)
1990
+ end
1991
+ end
1992
+ end
1993
+
1994
+ def get_files_to_run(paths)
1995
+ files = FlatMap.flat_map(paths_to_check(paths)) do |path|
1996
+ path = path.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
1997
+ File.directory?(path) ? gather_directories(path) : extract_location(path)
1998
+ end.uniq
1999
+
2000
+ return files unless only_failures?
2001
+ relative_files = files.map { |f| Metadata.relative_path(File.expand_path f) }
2002
+ intersection = (relative_files & spec_files_with_failures.to_a)
2003
+ intersection.empty? ? files : intersection
2004
+ end
2005
+
2006
+ def paths_to_check(paths)
2007
+ return paths if pattern_might_load_specs_from_vendored_dirs?
2008
+ paths + [Dir.getwd]
2009
+ end
2010
+
2011
+ def pattern_might_load_specs_from_vendored_dirs?
2012
+ pattern.split(File::SEPARATOR).first.include?('**')
2013
+ end
2014
+
2015
+ def gather_directories(path)
2016
+ include_files = get_matching_files(path, pattern)
2017
+ exclude_files = get_matching_files(path, exclude_pattern)
2018
+ (include_files - exclude_files).uniq
2019
+ end
2020
+
2021
+ def get_matching_files(path, pattern)
2022
+ raw_files = Dir[file_glob_from(path, pattern)]
2023
+ raw_files.map { |file| File.expand_path(file) }.sort
2024
+ end
2025
+
2026
+ def file_glob_from(path, pattern)
2027
+ stripped = "{#{pattern.gsub(/\s*,\s*/, ',')}}"
2028
+ return stripped if pattern =~ /^(\.\/)?#{Regexp.escape path}/ || absolute_pattern?(pattern)
2029
+ File.join(path, stripped)
2030
+ end
2031
+
2032
+ if RSpec::Support::OS.windows?
2033
+ # :nocov:
2034
+ def absolute_pattern?(pattern)
2035
+ pattern =~ /\A[A-Z]:\\/ || windows_absolute_network_path?(pattern)
2036
+ end
2037
+
2038
+ def windows_absolute_network_path?(pattern)
2039
+ return false unless ::File::ALT_SEPARATOR
2040
+ pattern.start_with?(::File::ALT_SEPARATOR + ::File::ALT_SEPARATOR)
2041
+ end
2042
+ # :nocov:
2043
+ else
2044
+ def absolute_pattern?(pattern)
2045
+ pattern.start_with?(File::Separator)
2046
+ end
2047
+ end
2048
+
2049
+ def extract_location(path)
2050
+ match = /^(.*?)((?:\:\d+)+)$/.match(path)
2051
+
2052
+ if match
2053
+ captures = match.captures
2054
+ path = captures[0]
2055
+ lines = captures[1][1..-1].split(":").map(&:to_i)
2056
+ filter_manager.add_location path, lines
2057
+ else
2058
+ path, scoped_ids = Example.parse_id(path)
2059
+ filter_manager.add_ids(path, scoped_ids.split(/\s*,\s*/)) if scoped_ids
2060
+ end
2061
+
2062
+ return [] if path == default_path
2063
+ File.expand_path(path)
2064
+ end
2065
+
2066
+ def command
2067
+ $0.split(File::SEPARATOR).last
2068
+ end
2069
+
2070
+ def value_for(key)
2071
+ @preferred_options.fetch(key) { yield }
2072
+ end
2073
+
2074
+ def define_built_in_hooks
2075
+ around(:example, :aggregate_failures => true) do |procsy|
2076
+ begin
2077
+ aggregate_failures(nil, :hide_backtrace => true, &procsy)
2078
+ rescue Support::AllExceptionsExceptOnesWeMustNotRescue => exception
2079
+ procsy.example.set_aggregate_failures_exception(exception)
2080
+ end
2081
+ end
2082
+ end
2083
+
2084
+ def assert_no_example_groups_defined(config_option)
2085
+ return unless world.example_groups.any?
2086
+
2087
+ raise MustBeConfiguredBeforeExampleGroupsError.new(
2088
+ "RSpec's #{config_option} configuration option must be configured before " \
2089
+ "any example groups are defined, but you have already defined a group."
2090
+ )
2091
+ end
2092
+
2093
+ def output_wrapper
2094
+ @output_wrapper ||= OutputWrapper.new(output_stream)
2095
+ end
2096
+
2097
+ def output_to_tty?(output=output_stream)
2098
+ output.respond_to?(:tty?) && output.tty?
2099
+ end
2100
+
2101
+ def conditionally_disable_mocks_monkey_patching
2102
+ return unless disable_monkey_patching && rspec_mocks_loaded?
2103
+
2104
+ RSpec::Mocks.configuration.tap do |config|
2105
+ config.syntax = :expect
2106
+ config.patch_marshal_to_support_partial_doubles = false
2107
+ end
2108
+ end
2109
+
2110
+ def conditionally_disable_expectations_monkey_patching
2111
+ return unless disable_monkey_patching && rspec_expectations_loaded?
2112
+
2113
+ RSpec::Expectations.configuration.syntax = :expect
2114
+ end
2115
+
2116
+ def rspec_mocks_loaded?
2117
+ defined?(RSpec::Mocks.configuration)
2118
+ end
2119
+
2120
+ def rspec_expectations_loaded?
2121
+ defined?(RSpec::Expectations.configuration)
2122
+ end
2123
+
2124
+ def update_pattern_attr(name, value)
2125
+ if @spec_files_loaded
2126
+ RSpec.warning "Configuring `#{name}` to #{value} has no effect since " \
2127
+ "RSpec has already loaded the spec files."
2128
+ end
2129
+
2130
+ instance_variable_set(:"@#{name}", value)
2131
+ @files_to_run = nil
2132
+ end
2133
+
2134
+ def clear_values_derived_from_example_status_persistence_file_path
2135
+ @last_run_statuses = nil
2136
+ @spec_files_with_failures = nil
2137
+ end
2138
+
2139
+ def configure_group_with(group, module_list, application_method)
2140
+ module_list.items_for(group.metadata).each do |mod|
2141
+ __send__(application_method, mod, group)
2142
+ end
2143
+ end
2144
+
2145
+ def add_hook_to_existing_matching_groups(meta, scope, &block)
2146
+ # For example hooks, we have to apply it to each of the top level
2147
+ # groups, even if the groups do not match. When we apply it, we
2148
+ # apply it with the metadata, so it will only apply to examples
2149
+ # in the group that match the metadata.
2150
+ # #2280 for background and discussion.
2151
+ if scope == :example || scope == :each || scope.nil?
2152
+ world.example_groups.each(&block)
2153
+ else
2154
+ meta = Metadata.build_hash_from(meta.dup)
2155
+ on_existing_matching_groups(meta, &block)
2156
+ end
2157
+ end
2158
+
2159
+ def on_existing_matching_groups(meta)
2160
+ world.traverse_example_group_trees_until do |group|
2161
+ metadata_applies_to_group?(meta, group).tap do |applies|
2162
+ yield group if applies
2163
+ end
2164
+ end
2165
+ end
2166
+
2167
+ def metadata_applies_to_group?(meta, group)
2168
+ meta.empty? || MetadataFilter.apply?(:any?, meta, group.metadata)
2169
+ end
2170
+
2171
+ if RSpec::Support::RubyFeatures.module_prepends_supported?
2172
+ def safe_prepend(mod, host)
2173
+ host.__send__(:prepend, mod) unless host < mod
2174
+ end
2175
+ end
2176
+
2177
+ if RUBY_VERSION.to_f >= 1.9
2178
+ def safe_include(mod, host)
2179
+ host.__send__(:include, mod) unless host < mod
2180
+ end
2181
+
2182
+ def safe_extend(mod, host)
2183
+ host.extend(mod) unless host.singleton_class < mod
2184
+ end
2185
+ else # for 1.8.7
2186
+ # :nocov:
2187
+ def safe_include(mod, host)
2188
+ host.__send__(:include, mod) unless host.included_modules.include?(mod)
2189
+ end
2190
+
2191
+ def safe_extend(mod, host)
2192
+ host.extend(mod) unless (class << host; self; end).included_modules.include?(mod)
2193
+ end
2194
+ # :nocov:
2195
+ end
2196
+
2197
+ def define_mixed_in_module(mod, filters, mod_list, config_method, &block)
2198
+ unless Module === mod
2199
+ raise TypeError, "`RSpec.configuration.#{config_method}` expects a module but got: #{mod.inspect}"
2200
+ end
2201
+
2202
+ meta = Metadata.build_hash_from(filters, :warn_about_example_group_filtering)
2203
+ mod_list.append(mod, meta)
2204
+ on_existing_matching_groups(meta, &block)
2205
+ end
2206
+ end
2207
+ # rubocop:enable Metrics/ClassLength
2208
+ end
2209
+ end