acfs 1.7.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -5,7 +5,7 @@ module Acfs::Collections
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- def self.operation(_action, **opts, &_block)
8
+ def self.operation(_action, **opts, &)
9
9
  opts[:url]
10
10
  end
11
11
 
@@ -17,26 +17,26 @@ module Acfs::Collections
17
17
  setup_headers response.headers
18
18
  end
19
19
 
20
- def next_page(&block)
21
- page 'next', &block
20
+ def next_page(&)
21
+ page('next', &)
22
22
  end
23
23
 
24
- def prev_page(&block)
25
- page 'prev', &block
24
+ def prev_page(&)
25
+ page('prev', &)
26
26
  end
27
27
 
28
- def first_page(&block)
29
- page 'first', &block
28
+ def first_page(&)
29
+ page('first', &)
30
30
  end
31
31
 
32
- def last_page(&block)
33
- page 'last', &block
32
+ def last_page(&)
33
+ page('last', &)
34
34
  end
35
35
 
36
- def page(rel, &block)
36
+ def page(rel, &)
37
37
  return unless relations[rel]
38
38
 
39
- @resource_class.all nil, url: relations[rel], &block
39
+ @resource_class.all(nil, url: relations[rel], &)
40
40
  end
41
41
 
42
42
  private
@@ -123,7 +123,7 @@ module Acfs
123
123
  if YAML.respond_to?(:safe_load_file)
124
124
  YAML.safe_load_file(path, aliases: true)
125
125
  else
126
- YAML.safe_load(File.read(path), [], [], true)
126
+ YAML.safe_load_file(path, [], [], true)
127
127
  end
128
128
  end
129
129
  end
data/lib/acfs/errors.rb CHANGED
@@ -6,7 +6,7 @@ module Acfs
6
6
  class Error < StandardError
7
7
  def initialize(opts = {}, message = nil)
8
8
  opts[:message] = message if message
9
- super opts[:message]
9
+ super(opts[:message])
10
10
  end
11
11
  end
12
12
 
@@ -20,7 +20,7 @@ module Acfs
20
20
 
21
21
  message = "#{message}: #{request.method.upcase} #{request.url}"
22
22
 
23
- super message: message
23
+ super(message: message)
24
24
  end
25
25
  end
26
26
 
@@ -40,13 +40,13 @@ module Acfs
40
40
 
41
41
  message = if response
42
42
  (opts[:message] ? "#{opts[:message]}:" : 'Received') +
43
- " #{response.code} for #{response.request.method.upcase}" \
44
- " #{response.request.url} #{response.request.format}"
43
+ " #{response.code} for #{response.request.method.upcase} " \
44
+ "#{response.request.url} #{response.request.format}"
45
45
  else
46
46
  opts[:message] || 'Received erroneous response'
47
47
  end
48
48
 
49
- super opts, message
49
+ super(opts, message)
50
50
  end
51
51
  end
52
52
 
@@ -63,7 +63,7 @@ module Acfs
63
63
  "on #{operation.resource}.\n" +
64
64
  stubs.map {|s| " #{s.opts.pretty_inspect}" }.join
65
65
 
66
- super opts, message
66
+ super(opts, message)
67
67
  end
68
68
  end
69
69
 
data/lib/acfs/global.rb CHANGED
@@ -41,8 +41,8 @@ module Acfs
41
41
  # @return [undefined]
42
42
  # @see Configuration#configure
43
43
  #
44
- def configure(&block)
45
- Configuration.current.configure(&block)
44
+ def configure(&)
45
+ Configuration.current.configure(&)
46
46
  end
47
47
 
48
48
  # @api public
data/lib/acfs/location.rb CHANGED
@@ -8,7 +8,7 @@ module Acfs
8
8
  class Location
9
9
  attr_reader :arguments, :raw, :struct, :vars
10
10
 
11
- REGEXP = /^:([A-z][A-z0-9_]*)$/.freeze
11
+ REGEXP = /^:([A-z][A-z0-9_]*)$/
12
12
 
13
13
  def initialize(uri, vars = {})
14
14
  @raw = URI.parse uri
@@ -11,7 +11,7 @@ module Acfs::Resource::Attributes
11
11
  # end
12
12
  #
13
13
  class UUID < Base
14
- UUID_REGEXP = /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/i.freeze
14
+ UUID_REGEXP = /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/i
15
15
 
16
16
  # @api public
17
17
  #
@@ -264,7 +264,7 @@ end
264
264
 
265
265
  # Load attribute type classes.
266
266
  #
267
- Dir[File.join(__dir__, 'attributes/*.rb')].sort.each do |path|
267
+ Dir[File.join(__dir__, 'attributes/*.rb')].each do |path|
268
268
  filename = File.basename(path)
269
269
  require "acfs/resource/attributes/#{filename}"
270
270
  end
@@ -17,7 +17,7 @@ class Acfs::Resource
17
17
  # @api private
18
18
  #
19
19
  def save!(**kwargs)
20
- super(**kwargs).tap {|_| changes_applied }
20
+ super.tap {|_| changes_applied }
21
21
  end
22
22
 
23
23
  # @api private
@@ -12,14 +12,14 @@ class Acfs::Resource
12
12
  module Operational
13
13
  extend ActiveSupport::Concern
14
14
 
15
- def operation(*args, **kwargs, &block)
16
- self.class.operation(*args, **kwargs, &block)
15
+ def operation(...)
16
+ self.class.operation(...)
17
17
  end
18
18
 
19
19
  module ClassMethods
20
20
  # Invoke CRUD operation.
21
- def operation(action, **opts, &block)
22
- Acfs.runner.process ::Acfs::Operation.new(self, action, **opts, &block)
21
+ def operation(...)
22
+ Acfs.runner.process ::Acfs::Operation.new(self, ...)
23
23
  end
24
24
  end
25
25
  end
@@ -56,11 +56,11 @@ class Acfs::Resource
56
56
  #
57
57
  # @return [Collection] Collection of requested resources.
58
58
  #
59
- def find(id_or_ids, **opts, &block)
59
+ def find(id_or_ids, **opts, &)
60
60
  if id_or_ids.respond_to? :each
61
- find_multiple id_or_ids, opts, &block
61
+ find_multiple(id_or_ids, opts, &)
62
62
  else
63
- find_single id_or_ids, opts, &block
63
+ find_single(id_or_ids, opts, &)
64
64
  end
65
65
  end
66
66
 
@@ -9,7 +9,7 @@ module Acfs
9
9
  # request was not executed or failed on client side.
10
10
  #
11
11
  def status_code
12
- return @status.to_i if defined? :@status
12
+ @status.to_i if defined?(@status)
13
13
  # return response.response_code unless response.nil?
14
14
  # 0
15
15
  end
@@ -35,9 +35,9 @@ module Acfs
35
35
  # @param [Proc] block Block passed to klass initialize
36
36
  # @return [undefined]
37
37
  #
38
- def use(klass, *args, &block)
38
+ def use(klass, ...)
39
39
  # Backward compatible behavior
40
- middleware.insert(0, klass, *args, &block)
40
+ middleware.insert(0, klass, ...)
41
41
  end
42
42
 
43
43
  # @api private
@@ -59,8 +59,8 @@ module Acfs
59
59
  #
60
60
  # @return [ self ] Resource object.
61
61
  #
62
- def find(*attrs, &block)
63
- find_single nil, params: attrs.extract_options!, &block
62
+ def find(*attrs, &)
63
+ find_single(nil, params: attrs.extract_options!, &)
64
64
  end
65
65
 
66
66
  # @api public
data/lib/acfs/stub.rb CHANGED
@@ -102,7 +102,7 @@ module Acfs
102
102
  # Stub a resource with given handler block. An already created handler
103
103
  # for same resource class will be overridden.
104
104
  #
105
- def resource(klass, action, opts = {}, &_block)
105
+ def resource(klass, action, opts = {}, &)
106
106
  action = action.to_sym
107
107
  unless ACTIONS.include? action
108
108
  raise ArgumentError.new "Unknown action `#{action}`."
data/lib/acfs/version.rb CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Acfs
4
4
  module VERSION
5
- MAJOR = 1
6
- MINOR = 7
5
+ MAJOR = 2
6
+ MINOR = 0
7
7
  PATCH = 0
8
8
  STAGE = nil
9
9
 
data/lib/acfs/yard.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # YARD macros
3
4
 
4
5
  # @!macro [new] experimental
@@ -29,7 +29,7 @@ describe Acfs::Adapter::Typhoeus do
29
29
  request = Acfs::Request.new 'http://example.org'
30
30
  adapter.queue request
31
31
 
32
- expect { adapter.run(request) }.to raise_error(::Acfs::TimeoutError) do |err|
32
+ expect { adapter.run(request) }.to raise_error(Acfs::TimeoutError) do |err|
33
33
  expect(err.message).to eq 'Timeout reached: GET http://example.org'
34
34
  end
35
35
  end
@@ -40,7 +40,7 @@ describe Acfs::Adapter::Typhoeus do
40
40
  request = Acfs::Request.new 'http://should-never-exists.example.org'
41
41
  adapter.queue request
42
42
 
43
- expect { adapter.run(request) }.to raise_error(::Acfs::RequestError) do |err|
43
+ expect { adapter.run(request) }.to raise_error(Acfs::RequestError) do |err|
44
44
  expect(err.message).to eq 'Couldn\'t resolve host name: GET http://should-never-exists.example.org'
45
45
  end
46
46
  end
@@ -48,7 +48,7 @@ describe Acfs::Adapter::Typhoeus do
48
48
  it 'passes arguments to typhoeus hydra' do
49
49
  value = {key: 1, key2: 2}
50
50
 
51
- expect(::Typhoeus::Hydra).to receive(:new).with(value)
51
+ expect(Typhoeus::Hydra).to receive(:new).with(value)
52
52
 
53
53
  described_class.new(**value).send :hydra
54
54
  end
@@ -34,7 +34,7 @@ describe Acfs::Configuration do
34
34
 
35
35
  context 'with RACK_ENV' do
36
36
  around do |example|
37
- env = ENV['RACK_ENV']
37
+ env = ENV.fetch('RACK_ENV', nil)
38
38
  ENV['RACK_ENV'] = 'production'
39
39
  example.run
40
40
  ensure
@@ -12,11 +12,11 @@ class NotificationCollector
12
12
  end
13
13
  end
14
14
 
15
- describe ::Acfs::Global do
16
- let(:adapter) { ::NullAdapter.new }
15
+ describe Acfs::Global do
16
+ let(:adapter) { NullAdapter.new }
17
17
  let(:runner) { double 'runner' }
18
18
  let(:collector) { NotificationCollector.new }
19
- let(:acfs) { Object.new.tap {|o| o.extend ::Acfs::Global } }
19
+ let(:acfs) { Object.new.tap {|o| o.extend Acfs::Global } }
20
20
 
21
21
  describe 'instrumentation' do
22
22
  before do
@@ -26,7 +26,7 @@ describe ::Acfs::Global do
26
26
 
27
27
  describe '#run' do
28
28
  before do
29
- ::ActiveSupport::Notifications.subscribe 'acfs.run', collector
29
+ ActiveSupport::Notifications.subscribe 'acfs.run', collector
30
30
  end
31
31
 
32
32
  it 'triggers event' do
@@ -37,7 +37,7 @@ describe ::Acfs::Global do
37
37
 
38
38
  describe '#reset' do
39
39
  before do
40
- ::ActiveSupport::Notifications.subscribe 'acfs.reset', collector
40
+ ActiveSupport::Notifications.subscribe 'acfs.reset', collector
41
41
  end
42
42
 
43
43
  it 'triggers event' do
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe ::Acfs::Location do
5
+ describe Acfs::Location do
6
6
  let(:location) { described_class.new(uri, args) }
7
7
  let(:uri) { 'http://localhost/users/:id' }
8
8
  let(:args) { {'id' => 4} }
@@ -61,7 +61,7 @@ describe Acfs::Middleware::JSON do
61
61
  let(:body) { data.to_json[4..-4] }
62
62
 
63
63
  it 'raises an error' do
64
- expect { request.complete! response }.to raise_error(::JSON::ParserError)
64
+ expect { request.complete! response }.to raise_error(JSON::ParserError)
65
65
  end
66
66
  end
67
67
 
@@ -45,7 +45,7 @@ describe Acfs::Middleware::MessagePack do
45
45
  it 'decodes body data' do
46
46
  request.complete! response
47
47
 
48
- expect(response.data).to be == data.map(&:stringify_keys)
48
+ expect(response.data).to eq data.map(&:stringify_keys)
49
49
  end
50
50
  end
51
51
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe ::Acfs::Operation do
5
+ describe Acfs::Operation do
6
6
  let(:operation) { described_class.new MyUser, :read, params: {id: 0} }
7
7
 
8
8
  describe '#request' do
@@ -7,52 +7,52 @@ describe Acfs::Resource::Attributes::Boolean do
7
7
 
8
8
  describe '#cast' do
9
9
  it 'casts nil' do
10
- expect(type.cast(nil)).to eq nil
10
+ expect(type.cast(nil)).to be_nil
11
11
  end
12
12
 
13
13
  it 'casts empty string to false' do
14
- expect(type.cast('')).to eq nil
14
+ expect(type.cast('')).to be_nil
15
15
  end
16
16
 
17
17
  it 'casts blank string to false' do
18
- expect(type.cast(" \t")).to eq nil
18
+ expect(type.cast(" \t")).to be_nil
19
19
  end
20
20
 
21
21
  it 'preserves boolean values' do
22
- expect(type.cast(false)).to eq false
23
- expect(type.cast(true)).to eq true
22
+ expect(type.cast(false)).to be false
23
+ expect(type.cast(true)).to be true
24
24
  end
25
25
 
26
26
  it 'casts falsy values to false' do
27
- expect(type.cast(false)).to eq false
28
- expect(type.cast(0)).to eq false
29
- expect(type.cast('0')).to eq false
30
- expect(type.cast('no')).to eq false
31
- expect(type.cast('NO')).to eq false
32
- expect(type.cast('off')).to eq false
33
- expect(type.cast('OFF')).to eq false
34
- expect(type.cast('false')).to eq false
35
- expect(type.cast('FALSE')).to eq false
36
- expect(type.cast('f')).to eq false
37
- expect(type.cast('F')).to eq false
27
+ expect(type.cast(false)).to be false
28
+ expect(type.cast(0)).to be false
29
+ expect(type.cast('0')).to be false
30
+ expect(type.cast('no')).to be false
31
+ expect(type.cast('NO')).to be false
32
+ expect(type.cast('off')).to be false
33
+ expect(type.cast('OFF')).to be false
34
+ expect(type.cast('false')).to be false
35
+ expect(type.cast('FALSE')).to be false
36
+ expect(type.cast('f')).to be false
37
+ expect(type.cast('F')).to be false
38
38
  end
39
39
 
40
40
  it 'casts any other value to true' do
41
- expect(type.cast(true)).to eq true
42
- expect(type.cast(1)).to eq true
43
- expect(type.cast('1')).to eq true
44
- expect(type.cast('yes')).to eq true
45
- expect(type.cast('YES')).to eq true
46
- expect(type.cast('on')).to eq true
47
- expect(type.cast('ON')).to eq true
48
- expect(type.cast('true')).to eq true
49
- expect(type.cast('TRUE')).to eq true
50
- expect(type.cast('t')).to eq true
51
- expect(type.cast('T')).to eq true
52
-
53
- expect(type.cast(2)).to eq true
54
- expect(type.cast('wrong')).to eq true
55
- expect(type.cast('random')).to eq true
41
+ expect(type.cast(true)).to be true
42
+ expect(type.cast(1)).to be true
43
+ expect(type.cast('1')).to be true
44
+ expect(type.cast('yes')).to be true
45
+ expect(type.cast('YES')).to be true
46
+ expect(type.cast('on')).to be true
47
+ expect(type.cast('ON')).to be true
48
+ expect(type.cast('true')).to be true
49
+ expect(type.cast('TRUE')).to be true
50
+ expect(type.cast('t')).to be true
51
+ expect(type.cast('T')).to be true
52
+
53
+ expect(type.cast(2)).to be true
54
+ expect(type.cast('wrong')).to be true
55
+ expect(type.cast('random')).to be true
56
56
  end
57
57
  end
58
58
  end
@@ -6,54 +6,54 @@ describe Acfs::Resource::Attributes::DateTime do
6
6
  let(:type) { Acfs::Resource::Attributes::DateTime.new }
7
7
 
8
8
  describe '#cast' do
9
- subject(:cast) { -> { type.cast value } }
9
+ subject(:cast) { type.cast value }
10
10
 
11
11
  context 'with nil' do
12
12
  let(:value) { nil }
13
13
 
14
- it { expect(cast.call).to eq nil }
14
+ it { expect(cast).to be_nil }
15
15
  end
16
16
 
17
17
  context 'with empty string' do
18
18
  let(:value) { '' }
19
19
 
20
- it { expect(cast.call).to eq nil }
20
+ it { expect(cast).to be_nil }
21
21
  end
22
22
 
23
23
  context 'with blank string' do
24
24
  let(:value) { " \t" }
25
25
 
26
- it { expect(cast.call).to eq nil }
26
+ it { expect(cast).to be_nil }
27
27
  end
28
28
 
29
29
  context 'with DateTime' do
30
30
  let(:value) { DateTime.now }
31
31
 
32
- it { expect(cast.call).to eq value }
32
+ it { expect(cast).to eq value }
33
33
  end
34
34
 
35
35
  context 'with Time' do
36
36
  let(:value) { Time.now }
37
37
 
38
- it { expect(cast.call).to eq value.to_datetime }
38
+ it { expect(cast).to eq value.to_datetime }
39
39
  end
40
40
 
41
41
  context 'with Date' do
42
42
  let(:value) { Date.today }
43
43
 
44
- it { expect(cast.call).to eq value.to_datetime }
44
+ it { expect(cast).to eq value.to_datetime }
45
45
  end
46
46
 
47
47
  context 'with ISO8601' do
48
48
  let(:value) { DateTime.now.iso8601 }
49
49
 
50
- it { expect(cast.call.iso8601).to eq value }
50
+ it { expect(cast.iso8601).to eq value }
51
51
  end
52
52
 
53
53
  context 'with invalid string' do
54
54
  let(:value) { 'qwe123' }
55
55
 
56
- it { is_expected.to raise_error ArgumentError }
56
+ it { expect { cast }.to raise_error ArgumentError }
57
57
  end
58
58
  end
59
59
  end
@@ -6,36 +6,36 @@ describe Acfs::Resource::Attributes::Dict do
6
6
  let(:type) { Acfs::Resource::Attributes::Dict.new }
7
7
 
8
8
  describe '#cast' do
9
- subject(:cast) { -> { type.cast value } }
9
+ subject(:cast) { type.cast value }
10
10
 
11
11
  context 'with nil' do
12
12
  let(:value) { nil }
13
13
 
14
- it { expect(cast.call).to eq nil }
14
+ it { expect(cast).to be_nil }
15
15
  end
16
16
 
17
17
  context 'with blank string (I)' do
18
18
  let(:value) { '' }
19
19
 
20
- it { expect(cast.call).to eq({}) }
20
+ it { expect(cast).to eq({}) }
21
21
  end
22
22
 
23
23
  context 'with blank string (II)' do
24
24
  let(:value) { " \t" }
25
25
 
26
- it { expect(cast.call).to eq({}) }
26
+ it { expect(cast).to eq({}) }
27
27
  end
28
28
 
29
29
  context 'with hash' do
30
30
  let(:value) { {3 => true, abc: 4} }
31
31
 
32
- it { expect(cast.call).to eq value }
32
+ it { expect(cast).to eq value }
33
33
  end
34
34
 
35
35
  context 'with non hashable object' do
36
36
  let(:value) { Object.new }
37
37
 
38
- it { is_expected.to raise_error TypeError }
38
+ it { expect { cast }.to raise_error TypeError }
39
39
  end
40
40
 
41
41
  context 'with hashable object (I)' do
@@ -47,7 +47,7 @@ describe Acfs::Resource::Attributes::Dict do
47
47
  end.new
48
48
  end
49
49
 
50
- it { expect(cast.call).to eq id: value.object_id }
50
+ it { expect(cast).to eq id: value.object_id }
51
51
  end
52
52
 
53
53
  context 'with hashable object (II)' do
@@ -59,7 +59,7 @@ describe Acfs::Resource::Attributes::Dict do
59
59
  end.new
60
60
  end
61
61
 
62
- it { expect(cast.call).to eq id: value.object_id }
62
+ it { expect(cast).to eq id: value.object_id }
63
63
  end
64
64
 
65
65
  context 'with serializable object' do
@@ -71,13 +71,13 @@ describe Acfs::Resource::Attributes::Dict do
71
71
  end.new
72
72
  end
73
73
 
74
- it { expect(cast.call).to eq id: value.object_id }
74
+ it { expect(cast).to eq id: value.object_id }
75
75
  end
76
76
 
77
77
  context 'with hash subclass object' do
78
78
  let(:value) { HashWithIndifferentAccess.new test: :foo }
79
79
 
80
- it { expect(cast.call).to be value }
80
+ it { expect(cast).to be value }
81
81
  end
82
82
  end
83
83
  end
@@ -6,66 +6,66 @@ describe Acfs::Resource::Attributes::Float do
6
6
  let(:type) { Acfs::Resource::Attributes::Float.new }
7
7
 
8
8
  describe '#cast' do
9
- subject(:cast) { -> { type.cast value } }
9
+ subject(:cast) { type.cast value }
10
10
 
11
11
  context 'with nil' do
12
12
  let(:value) { nil }
13
13
 
14
- it { expect(cast.call).to eq nil }
14
+ it { expect(cast).to be_nil }
15
15
  end
16
16
 
17
17
  context 'with blank string (I)' do
18
18
  let(:value) { '' }
19
19
 
20
- it { expect(cast.call).to eq 0.0 }
20
+ it { expect(cast).to eq 0.0 }
21
21
  end
22
22
 
23
23
  context 'with blank string (II)' do
24
24
  let(:value) { " \t" }
25
25
 
26
- it { expect(cast.call).to eq 0.0 }
26
+ it { expect(cast).to eq 0.0 }
27
27
  end
28
28
 
29
29
  context 'with float' do
30
30
  let(:value) { 1.7 }
31
31
 
32
- it { expect(cast.call).to eq 1.7 }
32
+ it { expect(cast).to eq 1.7 }
33
33
  end
34
34
 
35
35
  context 'with Infinity' do
36
36
  let(:value) { 'Infinity' }
37
37
 
38
- it { expect(cast.call).to eq ::Float::INFINITY }
38
+ it { expect(cast).to eq Float::INFINITY }
39
39
  end
40
40
 
41
41
  context 'with -Infinity' do
42
42
  let(:value) { '-Infinity' }
43
43
 
44
- it { expect(cast.call).to eq(-::Float::INFINITY) }
44
+ it { expect(cast).to eq(-Float::INFINITY) }
45
45
  end
46
46
 
47
47
  context 'with NaN' do
48
48
  let(:value) { 'NaN' }
49
49
 
50
- it { expect(cast.call).to be_nan }
50
+ it { expect(cast).to be_nan }
51
51
  end
52
52
 
53
53
  context 'with fixnum' do
54
54
  let(:value) { 1 }
55
55
 
56
- it { expect(cast.call).to eq 1.0 }
56
+ it { expect(cast).to eq 1.0 }
57
57
  end
58
58
 
59
59
  context 'with valid string' do
60
60
  let(:value) { '1.7' }
61
61
 
62
- it { expect(cast.call).to eq 1.7 }
62
+ it { expect(cast).to eq 1.7 }
63
63
  end
64
64
 
65
65
  context 'with invalid string (I)' do
66
66
  let(:value) { '1.7a' }
67
67
 
68
- it { is_expected.to raise_error ArgumentError }
68
+ it { expect { cast }.to raise_error ArgumentError }
69
69
  end
70
70
  end
71
71
  end