acfs 1.7.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +144 -116
  3. data/README.md +19 -24
  4. data/acfs.gemspec +7 -10
  5. data/lib/acfs/collections/paginatable.rb +11 -11
  6. data/lib/acfs/configuration.rb +1 -1
  7. data/lib/acfs/errors.rb +6 -6
  8. data/lib/acfs/global.rb +2 -2
  9. data/lib/acfs/location.rb +1 -1
  10. data/lib/acfs/resource/attributes/uuid.rb +1 -1
  11. data/lib/acfs/resource/attributes.rb +1 -1
  12. data/lib/acfs/resource/dirty.rb +1 -1
  13. data/lib/acfs/resource/operational.rb +4 -4
  14. data/lib/acfs/resource/query_methods.rb +3 -3
  15. data/lib/acfs/response/status.rb +1 -1
  16. data/lib/acfs/service/middleware.rb +2 -2
  17. data/lib/acfs/singleton_resource.rb +2 -2
  18. data/lib/acfs/stub.rb +1 -1
  19. data/lib/acfs/version.rb +2 -2
  20. data/lib/acfs/yard.rb +1 -0
  21. data/spec/acfs/adapter/typhoeus_spec.rb +3 -3
  22. data/spec/acfs/configuration_spec.rb +1 -1
  23. data/spec/acfs/global_spec.rb +5 -5
  24. data/spec/acfs/location_spec.rb +1 -1
  25. data/spec/acfs/middleware/json_spec.rb +1 -1
  26. data/spec/acfs/middleware/message_pack_spec.rb +1 -1
  27. data/spec/acfs/operation_spec.rb +1 -1
  28. data/spec/acfs/resource/attributes/boolean_spec.rb +31 -31
  29. data/spec/acfs/resource/attributes/date_time_spec.rb +9 -9
  30. data/spec/acfs/resource/attributes/dict_spec.rb +10 -10
  31. data/spec/acfs/resource/attributes/float_spec.rb +11 -11
  32. data/spec/acfs/resource/attributes/integer_spec.rb +6 -6
  33. data/spec/acfs/resource/attributes/list_spec.rb +1 -1
  34. data/spec/acfs/resource/attributes/uuid_spec.rb +8 -8
  35. data/spec/acfs/resource/attributes_spec.rb +8 -8
  36. data/spec/acfs/resource/dirty_spec.rb +1 -1
  37. data/spec/acfs/resource/persistence_spec.rb +7 -7
  38. data/spec/acfs/resource/query_methods_spec.rb +1 -1
  39. data/spec/acfs/runner_spec.rb +12 -12
  40. data/spec/acfs/stub_spec.rb +13 -18
  41. data/spec/acfs_spec.rb +4 -4
  42. data/spec/spec_helper.rb +9 -5
  43. data/spec/support/hash.rb +1 -1
  44. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/LICENSE +21 -0
  45. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/README.md +23 -0
  46. data/vendor/bundle/ruby/3.4.0/bundler/gems/rubocop-config-67802c9d1826/rubocop-config.gemspec +31 -0
  47. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/CHANGELOG.md +205 -0
  48. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/MIT-LICENSE +21 -0
  49. data/vendor/bundle/ruby/3.4.0/gems/actionpack-8.0.1/README.rdoc +57 -0
  50. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/CHANGELOG.md +67 -0
  51. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/MIT-LICENSE +21 -0
  52. data/vendor/bundle/ruby/3.4.0/gems/actionview-8.0.1/README.rdoc +40 -0
  53. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/CHANGELOG.md +110 -0
  54. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/MIT-LICENSE +21 -0
  55. data/vendor/bundle/ruby/3.4.0/gems/activemodel-8.0.1/README.rdoc +266 -0
  56. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/CHANGELOG.md +157 -0
  57. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/MIT-LICENSE +20 -0
  58. data/vendor/bundle/ruby/3.4.0/gems/activesupport-8.0.1/README.rdoc +40 -0
  59. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/CHANGELOG.md +301 -0
  60. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/LICENSE.txt +202 -0
  61. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/README.md +121 -0
  62. data/vendor/bundle/ruby/3.4.0/gems/addressable-2.8.7/addressable.gemspec +28 -0
  63. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/MIT-LICENSE +21 -0
  64. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/README.md +243 -0
  65. data/vendor/bundle/ruby/3.4.0/gems/appraisal-2.5.0/appraisal.gemspec +29 -0
  66. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/LICENSE.txt +22 -0
  67. data/vendor/bundle/ruby/3.4.0/gems/base64-0.2.0/README.md +48 -0
  68. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/README.md +138 -0
  69. data/vendor/bundle/ruby/3.4.0/gems/benchmark-0.4.0/benchmark.gemspec +32 -0
  70. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/LICENSE +56 -0
  71. data/vendor/bundle/ruby/3.4.0/gems/bigdecimal-3.1.9/bigdecimal.gemspec +57 -0
  72. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/MIT-LICENSE +20 -0
  73. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/README.md +258 -0
  74. data/vendor/bundle/ruby/3.4.0/gems/builder-3.3.0/builder.gemspec +49 -0
  75. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/CHANGELOG.md +603 -0
  76. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/LICENSE.txt +21 -0
  77. data/vendor/bundle/ruby/3.4.0/gems/concurrent-ruby-1.3.5/README.md +407 -0
  78. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/LICENSE +20 -0
  79. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/README.md +167 -0
  80. data/vendor/bundle/ruby/3.4.0/gems/connection_pool-2.5.0/connection_pool.gemspec +24 -0
  81. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/LICENSE +20 -0
  82. data/vendor/bundle/ruby/3.4.0/gems/crack-1.0.0/README.md +43 -0
  83. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/LICENSE +18 -0
  84. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/README.md +192 -0
  85. data/vendor/bundle/ruby/3.4.0/gems/crass-1.0.6/crass.gemspec +31 -0
  86. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/License.md +41 -0
  87. data/vendor/bundle/ruby/3.4.0/gems/diff-lcs-1.5.1/README.rdoc +84 -0
  88. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/LICENSE.txt +22 -0
  89. data/vendor/bundle/ruby/3.4.0/gems/drb-2.2.1/drb.gemspec +41 -0
  90. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/CHANGELOG +111 -0
  91. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/MIT-LICENSE +21 -0
  92. data/vendor/bundle/ruby/3.4.0/gems/erubi-1.13.1/README.rdoc +151 -0
  93. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/CHANGELOG.md +375 -0
  94. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/LICENSE +20 -0
  95. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/README.md +118 -0
  96. data/vendor/bundle/ruby/3.4.0/gems/ethon-0.16.0/ethon.gemspec +26 -0
  97. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/CHANGELOG.md +465 -0
  98. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE +24 -0
  99. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/LICENSE.SPECS +22 -0
  100. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/README.md +137 -0
  101. data/vendor/bundle/ruby/3.4.0/gems/ffi-1.17.1-x86_64-linux-gnu/ffi.gemspec +42 -0
  102. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/LICENSE +19 -0
  103. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/README.md +298 -0
  104. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/changelog.md +119 -0
  105. data/vendor/bundle/ruby/3.4.0/gems/hashdiff-1.1.2/hashdiff.gemspec +39 -0
  106. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/MIT-LICENSE +20 -0
  107. data/vendor/bundle/ruby/3.4.0/gems/i18n-1.14.6/README.md +127 -0
  108. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/README.md +195 -0
  109. data/vendor/bundle/ruby/3.4.0/gems/json-2.9.1/json.gemspec +64 -0
  110. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/README.md +104 -0
  111. data/vendor/bundle/ruby/3.4.0/gems/logger-1.6.5/logger.gemspec +28 -0
  112. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/CHANGELOG.md +591 -0
  113. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/MIT-LICENSE.txt +23 -0
  114. data/vendor/bundle/ruby/3.4.0/gems/loofah-2.24.0/README.md +410 -0
  115. data/vendor/bundle/ruby/3.4.0/gems/minitest-5.25.4/README.rdoc +835 -0
  116. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/CHANGELOG.md +275 -0
  117. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/LICENSE.md +20 -0
  118. data/vendor/bundle/ruby/3.4.0/gems/multi_json-1.15.0/README.md +121 -0
  119. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE-DEPENDENCIES.md +2224 -0
  120. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/LICENSE.md +9 -0
  121. data/vendor/bundle/ruby/3.4.0/gems/nokogiri-1.18.1-x86_64-linux-gnu/README.md +293 -0
  122. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/CHANGELOG.md +491 -0
  123. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/LICENSE.txt +22 -0
  124. data/vendor/bundle/ruby/3.4.0/gems/public_suffix-6.0.1/README.md +222 -0
  125. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
  126. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  127. data/vendor/bundle/ruby/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
  128. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/CHANGELOG.md +998 -0
  129. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/MIT-LICENSE +20 -0
  130. data/vendor/bundle/ruby/3.4.0/gems/rack-3.1.8/README.md +328 -0
  131. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/license.md +72 -0
  132. data/vendor/bundle/ruby/3.4.0/gems/rack-session-2.1.0/readme.md +47 -0
  133. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/MIT-LICENSE.txt +20 -0
  134. data/vendor/bundle/ruby/3.4.0/gems/rack-test-2.2.0/README.md +139 -0
  135. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/MIT-LICENSE +23 -0
  136. data/vendor/bundle/ruby/3.4.0/gems/rails-dom-testing-2.2.0/README.md +91 -0
  137. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/CHANGELOG.md +255 -0
  138. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/MIT-LICENSE +23 -0
  139. data/vendor/bundle/ruby/3.4.0/gems/rails-html-sanitizer-1.6.2/README.md +267 -0
  140. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
  141. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/README.rdoc +155 -0
  142. data/vendor/bundle/ruby/3.4.0/gems/rake-13.2.1/rake.gemspec +101 -0
  143. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/LICENSE +21 -0
  144. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/README.md +107 -0
  145. data/vendor/bundle/ruby/3.4.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
  146. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/LICENSE.txt +22 -0
  147. data/vendor/bundle/ruby/3.4.0/gems/rexml-3.4.0/README.md +57 -0
  148. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/LICENSE.md +27 -0
  149. data/vendor/bundle/ruby/3.4.0/gems/rspec-3.13.0/README.md +47 -0
  150. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/Changelog.md +68 -0
  151. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/LICENSE.txt +27 -0
  152. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/README.md +76 -0
  153. data/vendor/bundle/ruby/3.4.0/gems/rspec-collection_matchers-1.2.1/rspec-collection_matchers.gemspec +33 -0
  154. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/Changelog.md +2415 -0
  155. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/LICENSE.md +26 -0
  156. data/vendor/bundle/ruby/3.4.0/gems/rspec-core-3.13.2/README.md +389 -0
  157. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/Changelog.md +1352 -0
  158. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/LICENSE.md +25 -0
  159. data/vendor/bundle/ruby/3.4.0/gems/rspec-expectations-3.13.3/README.md +326 -0
  160. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/Changelog.md +73 -0
  161. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/LICENSE.txt +27 -0
  162. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/README.md +104 -0
  163. data/vendor/bundle/ruby/3.4.0/gems/rspec-its-2.0.0/rspec-its.gemspec +31 -0
  164. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/Changelog.md +1299 -0
  165. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/LICENSE.md +25 -0
  166. data/vendor/bundle/ruby/3.4.0/gems/rspec-mocks-3.13.2/README.md +465 -0
  167. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/Changelog.md +408 -0
  168. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/LICENSE.md +23 -0
  169. data/vendor/bundle/ruby/3.4.0/gems/rspec-support-3.13.2/README.md +40 -0
  170. data/vendor/bundle/ruby/3.4.0/gems/securerandom-0.4.1/README.md +72 -0
  171. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/LICENSE.md +20 -0
  172. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/README.md +45 -0
  173. data/vendor/bundle/ruby/3.4.0/gems/thor-1.3.2/thor.gemspec +33 -0
  174. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/CHANGELOG.md +410 -0
  175. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/LICENSE +22 -0
  176. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/README.md +588 -0
  177. data/vendor/bundle/ruby/3.4.0/gems/typhoeus-1.4.1/typhoeus.gemspec +25 -0
  178. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/LICENSE +19 -0
  179. data/vendor/bundle/ruby/3.4.0/gems/tzinfo-2.0.6/README.md +406 -0
  180. data/vendor/bundle/ruby/3.4.0/gems/uri-1.0.2/README.md +55 -0
  181. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/LICENSE +20 -0
  182. data/vendor/bundle/ruby/3.4.0/gems/useragent-0.16.11/README.md +42 -0
  183. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/CHANGELOG.md +2104 -0
  184. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/LICENSE +20 -0
  185. data/vendor/bundle/ruby/3.4.0/gems/webmock-3.24.0/README.md +1222 -0
  186. data/vendor/bundle/ruby/3.4.0/specifications/actionpack-8.0.1.gemspec +36 -0
  187. data/vendor/bundle/ruby/3.4.0/specifications/actionview-8.0.1.gemspec +33 -0
  188. data/vendor/bundle/ruby/3.4.0/specifications/activemodel-8.0.1.gemspec +26 -0
  189. data/vendor/bundle/ruby/3.4.0/specifications/activesupport-8.0.1.gemspec +38 -0
  190. data/vendor/bundle/ruby/3.4.0/specifications/addressable-2.8.7.gemspec +30 -0
  191. data/vendor/bundle/ruby/3.4.0/specifications/appraisal-2.5.0.gemspec +31 -0
  192. data/vendor/bundle/ruby/3.4.0/specifications/base64-0.2.0.gemspec +23 -0
  193. data/vendor/bundle/ruby/3.4.0/specifications/benchmark-0.4.0.gemspec +23 -0
  194. data/vendor/bundle/ruby/3.4.0/specifications/bigdecimal-3.1.9.gemspec +25 -0
  195. data/vendor/bundle/ruby/3.4.0/specifications/builder-3.3.0.gemspec +22 -0
  196. data/vendor/bundle/ruby/3.4.0/specifications/concurrent-ruby-1.3.5.gemspec +24 -0
  197. data/vendor/bundle/ruby/3.4.0/specifications/connection_pool-2.5.0.gemspec +28 -0
  198. data/vendor/bundle/ruby/3.4.0/specifications/crack-1.0.0.gemspec +27 -0
  199. data/vendor/bundle/ruby/3.4.0/specifications/crass-1.0.6.gemspec +27 -0
  200. data/vendor/bundle/ruby/3.4.0/specifications/diff-lcs-1.5.1.gemspec +37 -0
  201. data/vendor/bundle/ruby/3.4.0/specifications/drb-2.2.1.gemspec +22 -0
  202. data/vendor/bundle/ruby/3.4.0/specifications/erubi-1.13.1.gemspec +29 -0
  203. data/vendor/bundle/ruby/3.4.0/specifications/ethon-0.16.0.gemspec +24 -0
  204. data/vendor/bundle/ruby/3.4.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec +31 -0
  205. data/vendor/bundle/ruby/3.4.0/specifications/hashdiff-1.1.2.gemspec +30 -0
  206. data/vendor/bundle/ruby/3.4.0/specifications/i18n-1.14.6.gemspec +27 -0
  207. data/vendor/bundle/ruby/3.4.0/specifications/json-2.9.1.gemspec +0 -0
  208. data/vendor/bundle/ruby/3.4.0/specifications/logger-1.6.5.gemspec +22 -0
  209. data/vendor/bundle/ruby/3.4.0/specifications/loofah-2.24.0.gemspec +27 -0
  210. data/vendor/bundle/ruby/3.4.0/specifications/minitest-5.25.4.gemspec +31 -0
  211. data/vendor/bundle/ruby/3.4.0/specifications/multi_json-1.15.0.gemspec +26 -0
  212. data/vendor/bundle/ruby/3.4.0/specifications/nokogiri-1.18.1-x86_64-linux-gnu.gemspec +31 -0
  213. data/vendor/bundle/ruby/3.4.0/specifications/public_suffix-6.0.1.gemspec +24 -0
  214. data/vendor/bundle/ruby/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
  215. data/vendor/bundle/ruby/3.4.0/specifications/rack-3.1.8.gemspec +31 -0
  216. data/vendor/bundle/ruby/3.4.0/specifications/rack-session-2.1.0.gemspec +30 -0
  217. data/vendor/bundle/ruby/3.4.0/specifications/rack-test-2.2.0.gemspec +29 -0
  218. data/vendor/bundle/ruby/3.4.0/specifications/rails-dom-testing-2.2.0.gemspec +28 -0
  219. data/vendor/bundle/ruby/3.4.0/specifications/rails-html-sanitizer-1.6.2.gemspec +27 -0
  220. data/vendor/bundle/ruby/3.4.0/specifications/rake-13.2.1.gemspec +26 -0
  221. data/vendor/bundle/ruby/3.4.0/specifications/rake-release-1.3.0.gemspec +26 -0
  222. data/vendor/bundle/ruby/3.4.0/specifications/rexml-3.4.0.gemspec +25 -0
  223. data/vendor/bundle/ruby/3.4.0/specifications/rspec-3.13.0.gemspec +31 -0
  224. data/vendor/bundle/ruby/3.4.0/specifications/rspec-collection_matchers-1.2.1.gemspec +27 -0
  225. data/vendor/bundle/ruby/3.4.0/specifications/rspec-core-3.13.2.gemspec +39 -0
  226. data/vendor/bundle/ruby/3.4.0/specifications/rspec-expectations-3.13.3.gemspec +33 -0
  227. data/vendor/bundle/ruby/3.4.0/specifications/rspec-its-2.0.0.gemspec +27 -0
  228. data/vendor/bundle/ruby/3.4.0/specifications/rspec-mocks-3.13.2.gemspec +33 -0
  229. data/vendor/bundle/ruby/3.4.0/specifications/rspec-support-3.13.2.gemspec +29 -0
  230. data/vendor/bundle/ruby/3.4.0/specifications/securerandom-0.4.1.gemspec +23 -0
  231. data/vendor/bundle/ruby/3.4.0/specifications/thor-1.3.2.gemspec +28 -0
  232. data/vendor/bundle/ruby/3.4.0/specifications/typhoeus-1.4.1.gemspec +24 -0
  233. data/vendor/bundle/ruby/3.4.0/specifications/tzinfo-2.0.6.gemspec +30 -0
  234. data/vendor/bundle/ruby/3.4.0/specifications/uri-1.0.2.gemspec +23 -0
  235. data/vendor/bundle/ruby/3.4.0/specifications/useragent-0.16.11.gemspec +25 -0
  236. data/vendor/bundle/ruby/3.4.0/specifications/webmock-3.24.0.gemspec +45 -0
  237. metadata +204 -67
@@ -0,0 +1,408 @@
1
+ ### Development
2
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.2...3-13-maintenance)
3
+
4
+ ### 3.13.2 / 2024-12-02
5
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.1...v3.13.2)
6
+
7
+ Bug Fixes:
8
+
9
+ * Prevent recursive calls to stubbed methods during stub invocation.
10
+ (James Dabbs, rspec/rspec#116)
11
+
12
+ ### 3.13.1 / 2024-02-23
13
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.13.0...v3.13.1)
14
+
15
+ Bug Fixes:
16
+
17
+ * Exclude ruby internal require warnings from `RSpec::Support::CallerFilter#first_non_rspec_line`.
18
+ (Jon Rowe, #593)
19
+
20
+ ### 3.13.0 / 2024-02-04
21
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.2...v3.13.0)
22
+
23
+ Enchancements
24
+
25
+ * Add `RubyFeatures#supports_syntax_suggest?`. (Jon Rowe, #571)
26
+
27
+ Bug Fixes:
28
+
29
+ * Allow string keys for keyword arguments during verification of method
30
+ signatures, (but only on Ruby 3+). (@malcolmohare, #591)
31
+
32
+ ### 3.12.2 / 2024-02-04
33
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.1...v3.12.2)
34
+
35
+ Bug Fixes:
36
+
37
+ * Properly surface errors from `in_sub_process`. (Jon Rowe, #575)
38
+ * Add magic comment for freezing string literals. (Josh Nichols, #586)
39
+
40
+ ### 3.12.1 / 2023-06-26
41
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.12.0...v3.12.1)
42
+
43
+ Bug Fixes:
44
+
45
+ * Fix `RSpec::Support.thread_local_data` to be Thread local but not Fiber local.
46
+ (Jon Rowe, #581)
47
+
48
+ ### 3.12.0 / 2022-10-26
49
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.1...v3.12.0)
50
+ Enhancements:
51
+
52
+ * Add `RSpec::Support::RubyFeatures.distincts_kw_args_from_positional_hash?`
53
+ (Jean byroot Boussier, #535)
54
+
55
+ ### 3.11.1 / 2022-09-12
56
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.11.0...v3.11.1)
57
+
58
+ Bug Fixes:
59
+
60
+ * Fix ripper detection on TruffleRuby. (Brandon Fish, #541)
61
+
62
+ ### 3.11.0 / 2022-02-09
63
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.3...v3.11.0)
64
+
65
+ No changes. Released to support other RSpec releases.
66
+
67
+ ### 3.10.3 / 2021-11-03
68
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.2...v3.10.3)
69
+
70
+ Bug Fixes:
71
+
72
+ * Use `Mutex#owned?` to allow `RSpec::Support::ReentrantMutex` to work in
73
+ nested Fibers on Ruby 3.0 and later. (Benoit Daloze, #503, #504)
74
+ * Support `end`-less methods in `RSpec::Support::Source::Token`
75
+ so that RSpec won't hang when an `end`-less method raises an error. (Yuji Nakayama, #505)
76
+
77
+ ### 3.10.2 / 2021-01-28
78
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.1...v3.10.2)
79
+
80
+ Bug Fixes:
81
+
82
+ * Fix issue with `RSpec::Support.define_optimized_require_for_rspec` on JRuby
83
+ 9.1.17.0 (Jon Rowe, #492)
84
+
85
+ ### 3.10.1 / 2020-12-27
86
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.10.0...v3.10.1)
87
+
88
+ Bug Fixes:
89
+
90
+ * Fix deprecation expectations to fail correctly when
91
+ asserting on messages. (Phil Pirozhkov, #453)
92
+
93
+ ### 3.10.0 / 2020-10-30
94
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.4...v3.10.0)
95
+
96
+ No changes. Released to support other RSpec releases.
97
+
98
+ ### 3.9.4 / 2020-10-23
99
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.3...v3.9.4)
100
+
101
+ Bug Fixes:
102
+
103
+ * Flag ripper as supported on Truffle Ruby. (Brandon Fish, #427)
104
+ * Prevent stubbing `File.read` from breaking source extraction.
105
+ (Jon Rowe, #431)
106
+
107
+ ### 3.9.3 / 2020-05-02
108
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.2...v3.9.3)
109
+
110
+ Bug Fixes:
111
+
112
+ * Mark ripper as unsupported on Truffle Ruby. (Brandon Fish, #395)
113
+ * Mark ripper as unsupported on JRuby 9.2.0.0. (Brian Hawley, #400)
114
+ * Capture `Mutex.new` for our `RSpec::Support:Mutex` in order to
115
+ allow stubbing `Mutex.new`. (Jon Rowe, #411)
116
+
117
+ ### 3.9.2 / 2019-12-30
118
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.1...v3.9.2)
119
+
120
+ Bug Fixes:
121
+
122
+ * Remove unneeded eval. (Matijs van Zuijlen, #394)
123
+
124
+ ### 3.9.1 / 2019-12-28
125
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.9.0...v3.9.1)
126
+
127
+ Bug Fixes:
128
+
129
+ * Remove warning caused by keyword arguments on Ruby 2.7.0.
130
+ (Jon Rowe, #392)
131
+
132
+ ### 3.9.0 / 2019-10-07
133
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.3...v3.9.0)
134
+
135
+ *NO CHANGES*
136
+
137
+ Version 3.9.0 was released to allow other RSpec gems to release 3.9.0.
138
+
139
+ ### 3.8.3 / 2019-10-02
140
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.2...v3.8.3)
141
+
142
+ Bug Fixes:
143
+
144
+ * Escape \r when outputting strings inside arrays.
145
+ (Tomita Masahiro, Jon Rowe, #378)
146
+ * Ensure that optional hash arguments are recognised correctly vs keyword
147
+ arguments. (Evgeni Dzhelyov, #366)
148
+
149
+ ### 3.8.2 / 2019-06-10
150
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.1...v3.8.2)
151
+
152
+ Bug Fixes:
153
+
154
+ * Ensure that an empty hash is recognised as empty keyword arguments when
155
+ applicable. (Thomas Walpole, #375)
156
+ * Ensure that diffing truthy values produce diffs consistently.
157
+ (Lucas Nestor, #377)
158
+
159
+ ### 3.8.1 / 2019-03-03
160
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.8.0...v3.8.1)
161
+
162
+ Bug Fixes:
163
+
164
+ * Ensure that inspecting a `SimpleDelegator` based object works regardless of
165
+ visibility of the `__getobj__` method. (Jon Rowe, #369)
166
+
167
+ ### 3.8.0 / 2018-08-04
168
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.1...v3.8.0)
169
+
170
+ Bug Fixes:
171
+
172
+ * Order hash keys before diffing to improve diff accuracy when using mocked calls.
173
+ (James Crisp, #334)
174
+
175
+ ### 3.7.1 / 2018-01-29
176
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.7.0...v3.7.1)
177
+
178
+ Bug Fixes:
179
+
180
+ * Fix source extraction logic so that it does not trigger a `SystemStackError`
181
+ when processing deeply nested example groups. (Craig Bass, #343)
182
+
183
+ ### 3.7.0 / 2017-10-17
184
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0...v3.7.0)
185
+
186
+ Enhancements:
187
+
188
+ * Improve compatibility with `--enable-frozen-string-literal` option
189
+ on Ruby 2.3+. (Pat Allan, #320)
190
+ * Add `Support.class_of` for extracting class of any object.
191
+ (Yuji Nakayama, #325)
192
+
193
+ Bug Fixes:
194
+
195
+ * Fix recursive const support to not blow up when given buggy classes
196
+ that raise odd errors from `#to_str`. (Myron Marston, #317)
197
+
198
+ ### 3.6.0 / 2017-05-04
199
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta2...3.6.0)
200
+
201
+ Enhancements:
202
+
203
+ * Import `Source` classes from rspec-core. (Yuji Nakayama, #315)
204
+
205
+ ### 3.6.0.beta2 / 2016-12-12
206
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.6.0.beta1...v3.6.0.beta2)
207
+
208
+ No user-facing changes.
209
+
210
+ ### 3.6.0.beta1 / 2016-10-09
211
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0...v3.6.0.beta1)
212
+
213
+ Bug Fixes:
214
+
215
+ * Prevent truncated formatted object output from mangling console codes. (#294, Anson Kelly)
216
+
217
+ ### 3.5.0 / 2016-07-01
218
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta4...v3.5.0)
219
+
220
+ **No user facing changes since beta4**
221
+
222
+ ### 3.5.0.beta4 / 2016-06-05
223
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta3...v3.5.0.beta4)
224
+
225
+ Enhancements:
226
+ * Improve `MethodSignature` to better support keyword arguments. (#250, Rob Smith).
227
+
228
+ ### 3.5.0.beta3 / 2016-04-02
229
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta2...v3.5.0.beta3)
230
+
231
+ Bug Fixes:
232
+
233
+ * Fix `EncodedString` to properly handle the behavior of `String#split`
234
+ on JRuby when the string contains invalid bytes. (Jon Rowe, #268)
235
+ * Fix `ObjectFormatter` so that formatting objects that don't respond to
236
+ `#inspect` (such as `BasicObject`) does not cause `NoMethodError`.
237
+ (Yuji Nakayama, #269)
238
+ * Fix `ObjectFormatter` so that formatting recursive array or hash does not
239
+ cause `SystemStackError`. (Yuji Nakayama, #270, #272)
240
+
241
+ ### 3.5.0.beta2 / 2016-03-10
242
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.5.0.beta1...v3.5.0.beta2)
243
+
244
+ No user-facing changes.
245
+
246
+ ### 3.5.0.beta1 / 2016-02-06
247
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.1...v3.5.0.beta1)
248
+
249
+ Enhancements:
250
+
251
+ * Improve formatting of objects by allowing truncation to a pre-configured length.
252
+ (Liam M, #256)
253
+
254
+ ### 3.4.1 / 2015-11-20
255
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.4.0...v3.4.1)
256
+
257
+ Bug Fixes:
258
+
259
+ * Fix `RSpec::Support::RubyFeature.ripper_supported?` so it returns
260
+ `false` on Rubinius since the Rubinius team has no plans to support
261
+ it. This prevents rspec-core from trying to load and use ripper to
262
+ extract failure snippets. (Aaron Stone, #251)
263
+
264
+ Changes:
265
+
266
+ * Remove `VersionChecker` in favor of `ComparableVersion`. (Yuji Nakayama, #266)
267
+
268
+ ### 3.4.0 / 2015-11-11
269
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.3.0...v3.4.0)
270
+
271
+ Enhancements:
272
+
273
+ * Improve formatting of `Delegator` based objects (e.g. `SimpleDelegator`) in
274
+ failure messages and diffs. (Andrew Horner, #215)
275
+ * Add `ComparableVersion`. (Yuji Nakayama, #245)
276
+ * Add `Ripper` support detection. (Yuji Nakayama, #245)
277
+
278
+ Bug Fixes:
279
+
280
+ * Work around bug in JRuby that reports that `attr_writer` methods
281
+ have no parameters, causing RSpec's verifying doubles to wrongly
282
+ fail when mocking or stubbing a writer method on JRuby. (Myron Marston, #225)
283
+
284
+ ### 3.3.0 / 2015-06-12
285
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.2...v3.3.0)
286
+
287
+ Enhancements:
288
+
289
+ * Improve formatting of arrays and hashes in failure messages so they
290
+ use our custom formatting of matchers, time objects, etc.
291
+ (Myron Marston, Nicholas Chmielewski, #205)
292
+ * Use improved formatting for diffs as well. (Nicholas Chmielewski, #205)
293
+
294
+ Bug Fixes:
295
+
296
+ * Fix `FuzzyMatcher` so that it checks `expected == actual` rather than
297
+ `actual == expected`, which avoids errors in situations where the
298
+ `actual` object's `==` is improperly implemented to assume that only
299
+ objects of the same type will be given. This allows rspec-mocks'
300
+ `anything` to match against objects with buggy `==` definitions.
301
+ (Myron Marston, #193)
302
+
303
+ ### 3.2.2 / 2015-02-23
304
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.1...v3.2.2)
305
+
306
+ Bug Fixes:
307
+
308
+ * Fix an encoding issue with `EncodedString#split` when encountering an
309
+ invalid byte string. (Benjamin Fleischer, #1760)
310
+
311
+ ### 3.2.1 / 2015-02-04
312
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.2.0...v3.2.1)
313
+
314
+ Bug Fixes:
315
+
316
+ * Fix `RSpec::CallerFilter` to work on Rubinius 2.2.
317
+ (Myron Marston, #169)
318
+
319
+ ### 3.2.0 / 2015-02-03
320
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.2...v3.2.0)
321
+
322
+ Enhancements:
323
+
324
+ * Add extra Ruby type detection. (Jon Rowe, #133)
325
+ * Make differ instance re-usable. (Alexey Fedorov, #160)
326
+
327
+ Bug Fixes:
328
+
329
+ * Do not consider `[]` and `{}` to match when performing fuzzy matching.
330
+ (Myron Marston, #157)
331
+
332
+ ### 3.1.2 / 2014-10-08
333
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.1...v3.1.2)
334
+
335
+ Bug Fixes:
336
+
337
+ * Fix method signature to not blow up with a `NoMethodError` on 1.8.7 when
338
+ verifying against an RSpec matcher. (Myron Marston, #116)
339
+
340
+ ### 3.1.1 / 2014-09-26
341
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.1.0...v3.1.1)
342
+
343
+ Bug Fixes:
344
+
345
+ * Fix `RSpec::Support::DirectoryMaker` (used by `rspec --init` and
346
+ `rails generate rspec:install`) so that it detects absolute paths
347
+ on Windows properly. (Scott Archer, #107, #108, #109) (Jon Rowe, #110)
348
+
349
+ ### 3.1.0 / 2014-09-04
350
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.4...v3.1.0)
351
+
352
+ Bug Fixes:
353
+
354
+ * Fix `FuzzyMatcher` so that it does not wrongly match a struct against
355
+ an array. (Myron Marston, #97)
356
+ * Prevent infinitely recursing `#flatten` methods from causing the differ
357
+ to hang. (Jon Rowe, #101)
358
+
359
+ ### 3.0.4 / 2014-08-14
360
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.3...v3.0.4)
361
+
362
+ Bug Fixes:
363
+
364
+ * Fix `FuzzyMatcher` so that it does not silence `ArgumentError` raised
365
+ from broken implementations of `==`. (Myron Marston, #94)
366
+
367
+ ### 3.0.3 / 2014-07-21
368
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.2...v3.0.3)
369
+
370
+ Bug Fixes:
371
+
372
+ * Fix regression in `Support#method_handle_for` where proxy objects
373
+ with method delegated would wrongly not return a method handle.
374
+ (Jon Rowe, #90)
375
+ * Properly detect Module#prepend support in Ruby 2.1+ (Ben Langfeld, #91)
376
+ * Fix `rspec/support/warnings.rb` so it can be loaded and used in
377
+ isolation. (Myron Marston, #93)
378
+
379
+ ### 3.0.2 / 2014-06-20
380
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.1...v3.0.2)
381
+
382
+ * Revert `BlockSignature` change from 3.0.1 because of a ruby bug that
383
+ caused it to change the block's behavior (https://bugs.ruby-lang.org/issues/9967).
384
+ (Myron Marston, rspec-mocks#721)
385
+
386
+ ### 3.0.1 / 2014-06-19
387
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0...v3.0.1)
388
+
389
+ * Fix `BlockSignature` so that it correctly differentiates between
390
+ required and optional block args. (Myron Marston, rspec-mocks#714)
391
+
392
+ ### 3.0.0 / 2014-06-01
393
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.rc1...v3.0.0)
394
+
395
+ ### 3.0.0.rc1 / 2014-05-18
396
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.beta2...v3.0.0.rc1)
397
+
398
+ ### 3.0.0.beta2 / 2014-02-17
399
+ [Full Changelog](http://github.com/rspec/rspec-support/compare/v3.0.0.beta1...v3.0.0.beta2)
400
+
401
+ Bug Fixes:
402
+
403
+ * Issue message when :replacement is passed to `RSpec.warn_with`. (Jon Rowe)
404
+
405
+ ### 3.0.0.beta1 / 2013-11-07
406
+ [Full Changelog](https://github.com/rspec/rspec-support/compare/0dc12d1bdbbacc757a9989f8c09cd08ef3a4837e...v3.0.0.beta1)
407
+
408
+ Initial release.
@@ -0,0 +1,23 @@
1
+ The MIT License (MIT)
2
+ ====================
3
+
4
+ * Copyright © 2013 David Chelimsky, Myron Marston, Jon Rowe, Sam Phippen, Xavier Shay, Bradley Schaefer
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,40 @@
1
+ # RSpec::Support [![Build Status](https://github.com/rspec/rspec-support/workflows/RSpec%20CI/badge.svg)](https://github.com/rspec/rspec-support/actions)
2
+
3
+ `RSpec::Support` provides common functionality to `RSpec::Core`,
4
+ `RSpec::Expectations` and `RSpec::Mocks`. It is considered
5
+ suitable for internal use only at this time.
6
+
7
+ ## Installation / Usage
8
+
9
+ Install one or more of the `RSpec` gems.
10
+
11
+ Want to run against the `main` branch? You'll need to include the dependent
12
+ RSpec repos as well. Add the following to your `Gemfile`:
13
+
14
+ ```ruby
15
+ %w[rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
16
+ gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'main'
17
+ end
18
+ ```
19
+
20
+ ## Contributing
21
+
22
+ Once you've set up the environment, you'll need to cd into the working
23
+ directory of whichever repo you want to work in. From there you can run the
24
+ specs and cucumber features, and make patches.
25
+
26
+ NOTE: You do not need to use rspec-dev to work on a specific RSpec repo. You
27
+ can treat each RSpec repo as an independent project.
28
+
29
+ - [Build details](BUILD_DETAIL.md)
30
+ - [Code of Conduct](CODE_OF_CONDUCT.md)
31
+ - [Detailed contributing guide](CONTRIBUTING.md)
32
+ - [Development setup guide](DEVELOPMENT.md)
33
+
34
+ ## Patches
35
+
36
+ Please submit a pull request or a github issue. If you submit an issue, please
37
+ include a link to either of:
38
+
39
+ * a gist (or equivalent) of the patch
40
+ * a branch or commit in your github fork of the repo
@@ -0,0 +1,72 @@
1
+ # Securerandom
2
+
3
+ This library is an interface to secure random number generators which are
4
+ suitable for generating session keys in HTTP cookies, etc.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'securerandom'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle install
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install securerandom
21
+
22
+ ## Usage
23
+
24
+ Generate random hexadecimal strings:
25
+
26
+ ```ruby
27
+ require 'securerandom'
28
+
29
+ SecureRandom.hex(10) #=> "52750b30ffbc7de3b362"
30
+ SecureRandom.hex(10) #=> "92b15d6c8dc4beb5f559"
31
+ SecureRandom.hex(13) #=> "39b290146bea6ce975c37cfc23"
32
+ ```
33
+
34
+ Generate random base64 strings:
35
+
36
+ ```ruby
37
+ SecureRandom.base64(10) #=> "EcmTPZwWRAozdA=="
38
+ SecureRandom.base64(10) #=> "KO1nIU+p9DKxGg=="
39
+ SecureRandom.base64(12) #=> "7kJSM/MzBJI+75j8"
40
+ ```
41
+
42
+ Generate random binary strings:
43
+
44
+ ```ruby
45
+ SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
46
+ SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"
47
+ ```
48
+
49
+ Generate alphanumeric strings:
50
+
51
+ ```ruby
52
+ SecureRandom.alphanumeric(10) #=> "S8baxMJnPl"
53
+ SecureRandom.alphanumeric(10) #=> "aOxAg8BAJe"
54
+ ```
55
+
56
+ Generate UUIDs:
57
+
58
+ ```ruby
59
+ SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
60
+ SecureRandom.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
61
+ ```
62
+
63
+ ## Development
64
+
65
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
66
+
67
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
68
+
69
+ ## Contributing
70
+
71
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/securerandom.
72
+
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 Yehuda Katz, Eric Hodel, et al.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ Thor
2
+ ====
3
+
4
+ [![Gem Version](http://img.shields.io/gem/v/thor.svg)][gem]
5
+
6
+ [gem]: https://rubygems.org/gems/thor
7
+
8
+ Description
9
+ -----------
10
+ Thor is a simple and efficient tool for building self-documenting command line
11
+ utilities. It removes the pain of parsing command line options, writing
12
+ "USAGE:" banners, and can also be used as an alternative to the [Rake][rake]
13
+ build tool. The syntax is Rake-like, so it should be familiar to most Rake
14
+ users.
15
+
16
+ Please note: Thor, by design, is a system tool created to allow seamless file and url
17
+ access, which should not receive application user input. It relies on [open-uri][open-uri],
18
+ which, combined with application user input, would provide a command injection attack
19
+ vector.
20
+
21
+ [rake]: https://github.com/ruby/rake
22
+ [open-uri]: https://ruby-doc.org/stdlib-2.5.1/libdoc/open-uri/rdoc/index.html
23
+
24
+ Installation
25
+ ------------
26
+ gem install thor
27
+
28
+ Usage and documentation
29
+ -----------------------
30
+ Please see the [wiki][] for basic usage and other documentation on using Thor. You can also check out the [official homepage][homepage].
31
+
32
+ [wiki]: https://github.com/rails/thor/wiki
33
+ [homepage]: http://whatisthor.com/
34
+
35
+ Contributing
36
+ ------------
37
+ If you would like to help, please read the [CONTRIBUTING][] file for suggestions.
38
+
39
+ [contributing]: CONTRIBUTING.md
40
+
41
+ License
42
+ -------
43
+ Released under the MIT License. See the [LICENSE][] file for further details.
44
+
45
+ [license]: LICENSE.md
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib/", __FILE__)
3
+ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
4
+ require "thor/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "thor"
8
+ spec.version = Thor::VERSION
9
+ spec.licenses = %w(MIT)
10
+ spec.authors = ["Yehuda Katz", "José Valim"]
11
+ spec.email = "ruby-thor@googlegroups.com"
12
+ spec.homepage = "http://whatisthor.com/"
13
+ spec.description = "Thor is a toolkit for building powerful command-line interfaces."
14
+ spec.summary = spec.description
15
+
16
+ spec.metadata = {
17
+ "bug_tracker_uri" => "https://github.com/rails/thor/issues",
18
+ "changelog_uri" => "https://github.com/rails/thor/releases/tag/v#{Thor::VERSION}",
19
+ "documentation_uri" => "http://whatisthor.com/",
20
+ "source_code_uri" => "https://github.com/rails/thor/tree/v#{Thor::VERSION}",
21
+ "wiki_uri" => "https://github.com/rails/thor/wiki",
22
+ "rubygems_mfa_required" => "true",
23
+ }
24
+
25
+ spec.required_ruby_version = ">= 2.6.0"
26
+ spec.required_rubygems_version = ">= 1.3.5"
27
+
28
+ spec.files = %w(.document thor.gemspec) + Dir["*.md", "bin/*", "lib/**/*.rb"]
29
+ spec.executables = %w(thor)
30
+ spec.require_paths = %w(lib)
31
+
32
+ spec.add_development_dependency "bundler", ">= 1.0", "< 3"
33
+ end