cybrid_api_bank_ruby 0.113.109 → 0.113.114

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_bank_ruby.gemspec +1 -1
  5. data/docs/PostExternalBankAccountBankModel.md +1 -1
  6. data/lib/cybrid_api_bank_ruby/api/accounts_bank_api.rb +1 -1
  7. data/lib/cybrid_api_bank_ruby/api/assets_bank_api.rb +1 -1
  8. data/lib/cybrid_api_bank_ruby/api/banks_bank_api.rb +1 -1
  9. data/lib/cybrid_api_bank_ruby/api/customers_bank_api.rb +1 -1
  10. data/lib/cybrid_api_bank_ruby/api/deposit_addresses_bank_api.rb +1 -1
  11. data/lib/cybrid_api_bank_ruby/api/deposit_bank_accounts_bank_api.rb +1 -1
  12. data/lib/cybrid_api_bank_ruby/api/external_bank_accounts_bank_api.rb +1 -1
  13. data/lib/cybrid_api_bank_ruby/api/external_wallets_bank_api.rb +1 -1
  14. data/lib/cybrid_api_bank_ruby/api/identity_verifications_bank_api.rb +1 -1
  15. data/lib/cybrid_api_bank_ruby/api/prices_bank_api.rb +1 -1
  16. data/lib/cybrid_api_bank_ruby/api/quotes_bank_api.rb +1 -1
  17. data/lib/cybrid_api_bank_ruby/api/symbols_bank_api.rb +1 -1
  18. data/lib/cybrid_api_bank_ruby/api/trades_bank_api.rb +1 -1
  19. data/lib/cybrid_api_bank_ruby/api/transfers_bank_api.rb +1 -1
  20. data/lib/cybrid_api_bank_ruby/api/workflows_bank_api.rb +1 -1
  21. data/lib/cybrid_api_bank_ruby/api_client.rb +1 -1
  22. data/lib/cybrid_api_bank_ruby/api_error.rb +1 -1
  23. data/lib/cybrid_api_bank_ruby/configuration.rb +1 -1
  24. data/lib/cybrid_api_bank_ruby/models/account_bank_model.rb +1 -1
  25. data/lib/cybrid_api_bank_ruby/models/account_list_bank_model.rb +1 -1
  26. data/lib/cybrid_api_bank_ruby/models/account_state_bank_model.rb +1 -1
  27. data/lib/cybrid_api_bank_ruby/models/account_type_bank_model.rb +1 -1
  28. data/lib/cybrid_api_bank_ruby/models/asset_bank_model.rb +1 -1
  29. data/lib/cybrid_api_bank_ruby/models/asset_list_bank_model.rb +1 -1
  30. data/lib/cybrid_api_bank_ruby/models/asset_types_bank_model.rb +1 -1
  31. data/lib/cybrid_api_bank_ruby/models/bank_bank_model.rb +1 -1
  32. data/lib/cybrid_api_bank_ruby/models/bank_feature_bank_model.rb +1 -1
  33. data/lib/cybrid_api_bank_ruby/models/bank_list_bank_model.rb +1 -1
  34. data/lib/cybrid_api_bank_ruby/models/bank_type_bank_model.rb +1 -1
  35. data/lib/cybrid_api_bank_ruby/models/customer_address_bank_model.rb +1 -1
  36. data/lib/cybrid_api_bank_ruby/models/customer_bank_model.rb +1 -1
  37. data/lib/cybrid_api_bank_ruby/models/customer_list_bank_model.rb +1 -1
  38. data/lib/cybrid_api_bank_ruby/models/customer_name_bank_model.rb +1 -1
  39. data/lib/cybrid_api_bank_ruby/models/customer_state_bank_model.rb +1 -1
  40. data/lib/cybrid_api_bank_ruby/models/customer_type_bank_model.rb +1 -1
  41. data/lib/cybrid_api_bank_ruby/models/deposit_address_bank_model.rb +1 -1
  42. data/lib/cybrid_api_bank_ruby/models/deposit_address_format_bank_model.rb +1 -1
  43. data/lib/cybrid_api_bank_ruby/models/deposit_address_list_bank_model.rb +1 -1
  44. data/lib/cybrid_api_bank_ruby/models/deposit_address_state_bank_model.rb +1 -1
  45. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_account_details_inner_bank_model.rb +1 -1
  46. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_bank_model.rb +1 -1
  47. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_counterparty_address_bank_model.rb +1 -1
  48. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_list_bank_model.rb +1 -1
  49. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_details_inner_bank_model.rb +1 -1
  50. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_routing_number_type_bank_model.rb +1 -1
  51. data/lib/cybrid_api_bank_ruby/models/deposit_bank_account_state_bank_model.rb +1 -1
  52. data/lib/cybrid_api_bank_ruby/models/error_response_bank_model.rb +1 -1
  53. data/lib/cybrid_api_bank_ruby/models/external_bank_account_balances_bank_model.rb +1 -1
  54. data/lib/cybrid_api_bank_ruby/models/external_bank_account_bank_model.rb +1 -1
  55. data/lib/cybrid_api_bank_ruby/models/external_bank_account_kind_bank_model.rb +1 -1
  56. data/lib/cybrid_api_bank_ruby/models/external_bank_account_list_bank_model.rb +1 -1
  57. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_addresses_inner_bank_model.rb +1 -1
  58. data/lib/cybrid_api_bank_ruby/models/external_bank_account_pii_inner_bank_model.rb +1 -1
  59. data/lib/cybrid_api_bank_ruby/models/external_bank_account_state_bank_model.rb +1 -1
  60. data/lib/cybrid_api_bank_ruby/models/external_wallet_bank_model.rb +1 -1
  61. data/lib/cybrid_api_bank_ruby/models/external_wallet_environment_bank_model.rb +1 -1
  62. data/lib/cybrid_api_bank_ruby/models/external_wallet_list_bank_model.rb +1 -1
  63. data/lib/cybrid_api_bank_ruby/models/external_wallet_state_bank_model.rb +1 -1
  64. data/lib/cybrid_api_bank_ruby/models/identity_verification_bank_model.rb +1 -1
  65. data/lib/cybrid_api_bank_ruby/models/identity_verification_list_bank_model.rb +1 -1
  66. data/lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb +1 -1
  67. data/lib/cybrid_api_bank_ruby/models/identity_verification_outcome_bank_model.rb +1 -1
  68. data/lib/cybrid_api_bank_ruby/models/identity_verification_persona_state_bank_model.rb +1 -1
  69. data/lib/cybrid_api_bank_ruby/models/identity_verification_state_bank_model.rb +1 -1
  70. data/lib/cybrid_api_bank_ruby/models/identity_verification_type_bank_model.rb +1 -1
  71. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_all_of_bank_model.rb +1 -1
  72. data/lib/cybrid_api_bank_ruby/models/identity_verification_with_details_bank_model.rb +1 -1
  73. data/lib/cybrid_api_bank_ruby/models/patch_bank_bank_model.rb +1 -1
  74. data/lib/cybrid_api_bank_ruby/models/patch_customer_bank_model.rb +1 -1
  75. data/lib/cybrid_api_bank_ruby/models/patch_external_bank_account_bank_model.rb +1 -1
  76. data/lib/cybrid_api_bank_ruby/models/post_account_bank_model.rb +1 -1
  77. data/lib/cybrid_api_bank_ruby/models/post_bank_bank_model.rb +1 -1
  78. data/lib/cybrid_api_bank_ruby/models/post_customer_address_bank_model.rb +1 -1
  79. data/lib/cybrid_api_bank_ruby/models/post_customer_bank_model.rb +1 -1
  80. data/lib/cybrid_api_bank_ruby/models/post_customer_name_bank_model.rb +1 -1
  81. data/lib/cybrid_api_bank_ruby/models/post_deposit_address_bank_model.rb +1 -1
  82. data/lib/cybrid_api_bank_ruby/models/post_deposit_bank_account_bank_model.rb +1 -1
  83. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_bank_model.rb +2 -2
  84. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_address_bank_model.rb +2 -2
  85. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_bank_account_bank_model.rb +2 -2
  86. data/lib/cybrid_api_bank_ruby/models/post_external_bank_account_counterparty_name_bank_model.rb +2 -2
  87. data/lib/cybrid_api_bank_ruby/models/post_external_wallet_bank_model.rb +1 -1
  88. data/lib/cybrid_api_bank_ruby/models/post_identification_number_bank_model.rb +1 -1
  89. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_address_bank_model.rb +1 -1
  90. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_bank_model.rb +1 -1
  91. data/lib/cybrid_api_bank_ruby/models/post_identity_verification_name_bank_model.rb +1 -1
  92. data/lib/cybrid_api_bank_ruby/models/post_quote_bank_model.rb +1 -1
  93. data/lib/cybrid_api_bank_ruby/models/post_trade_bank_model.rb +1 -1
  94. data/lib/cybrid_api_bank_ruby/models/post_transfer_bank_model.rb +1 -1
  95. data/lib/cybrid_api_bank_ruby/models/post_workflow_bank_model.rb +1 -1
  96. data/lib/cybrid_api_bank_ruby/models/quote_bank_model.rb +1 -1
  97. data/lib/cybrid_api_bank_ruby/models/quote_list_bank_model.rb +1 -1
  98. data/lib/cybrid_api_bank_ruby/models/quote_side_bank_model.rb +1 -1
  99. data/lib/cybrid_api_bank_ruby/models/quote_type_bank_model.rb +1 -1
  100. data/lib/cybrid_api_bank_ruby/models/symbol_price_bank_model.rb +1 -1
  101. data/lib/cybrid_api_bank_ruby/models/trade_bank_model.rb +1 -1
  102. data/lib/cybrid_api_bank_ruby/models/trade_list_bank_model.rb +1 -1
  103. data/lib/cybrid_api_bank_ruby/models/trade_side_bank_model.rb +1 -1
  104. data/lib/cybrid_api_bank_ruby/models/trade_state_bank_model.rb +1 -1
  105. data/lib/cybrid_api_bank_ruby/models/trade_type_bank_model.rb +1 -1
  106. data/lib/cybrid_api_bank_ruby/models/transfer_account_type_bank_model.rb +1 -1
  107. data/lib/cybrid_api_bank_ruby/models/transfer_bank_model.rb +1 -1
  108. data/lib/cybrid_api_bank_ruby/models/transfer_destination_account_bank_model.rb +1 -1
  109. data/lib/cybrid_api_bank_ruby/models/transfer_list_bank_model.rb +1 -1
  110. data/lib/cybrid_api_bank_ruby/models/transfer_side_bank_model.rb +1 -1
  111. data/lib/cybrid_api_bank_ruby/models/transfer_source_account_bank_model.rb +1 -1
  112. data/lib/cybrid_api_bank_ruby/models/transfer_state_bank_model.rb +1 -1
  113. data/lib/cybrid_api_bank_ruby/models/transfer_type_bank_model.rb +1 -1
  114. data/lib/cybrid_api_bank_ruby/models/verification_check_bank_model.rb +1 -1
  115. data/lib/cybrid_api_bank_ruby/models/verification_check_state_bank_model.rb +1 -1
  116. data/lib/cybrid_api_bank_ruby/models/verification_check_type_bank_model.rb +1 -1
  117. data/lib/cybrid_api_bank_ruby/models/workflow_bank_model.rb +1 -1
  118. data/lib/cybrid_api_bank_ruby/models/workflow_state_bank_model.rb +1 -1
  119. data/lib/cybrid_api_bank_ruby/models/workflow_type_bank_model.rb +1 -1
  120. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_all_of_bank_model.rb +1 -1
  121. data/lib/cybrid_api_bank_ruby/models/workflow_with_details_bank_model.rb +1 -1
  122. data/lib/cybrid_api_bank_ruby/models/workflows_list_bank_model.rb +1 -1
  123. data/lib/cybrid_api_bank_ruby/version.rb +2 -2
  124. data/lib/cybrid_api_bank_ruby.rb +1 -1
  125. data/spec/api/accounts_bank_api_spec.rb +1 -1
  126. data/spec/api/assets_bank_api_spec.rb +1 -1
  127. data/spec/api/banks_bank_api_spec.rb +1 -1
  128. data/spec/api/customers_bank_api_spec.rb +1 -1
  129. data/spec/api/deposit_addresses_bank_api_spec.rb +1 -1
  130. data/spec/api/deposit_bank_accounts_bank_api_spec.rb +1 -1
  131. data/spec/api/external_bank_accounts_bank_api_spec.rb +1 -1
  132. data/spec/api/external_wallets_bank_api_spec.rb +1 -1
  133. data/spec/api/identity_verifications_bank_api_spec.rb +1 -1
  134. data/spec/api/prices_bank_api_spec.rb +1 -1
  135. data/spec/api/quotes_bank_api_spec.rb +1 -1
  136. data/spec/api/symbols_bank_api_spec.rb +1 -1
  137. data/spec/api/trades_bank_api_spec.rb +1 -1
  138. data/spec/api/transfers_bank_api_spec.rb +1 -1
  139. data/spec/api/workflows_bank_api_spec.rb +1 -1
  140. data/spec/api_client_spec.rb +1 -1
  141. data/spec/configuration_spec.rb +1 -1
  142. data/spec/models/account_bank_model_spec.rb +1 -1
  143. data/spec/models/account_list_bank_model_spec.rb +1 -1
  144. data/spec/models/account_state_bank_model_spec.rb +1 -1
  145. data/spec/models/account_type_bank_model_spec.rb +1 -1
  146. data/spec/models/asset_bank_model_spec.rb +1 -1
  147. data/spec/models/asset_list_bank_model_spec.rb +1 -1
  148. data/spec/models/asset_types_bank_model_spec.rb +1 -1
  149. data/spec/models/bank_bank_model_spec.rb +1 -1
  150. data/spec/models/bank_feature_bank_model_spec.rb +1 -1
  151. data/spec/models/bank_list_bank_model_spec.rb +1 -1
  152. data/spec/models/bank_type_bank_model_spec.rb +1 -1
  153. data/spec/models/customer_address_bank_model_spec.rb +1 -1
  154. data/spec/models/customer_bank_model_spec.rb +1 -1
  155. data/spec/models/customer_list_bank_model_spec.rb +1 -1
  156. data/spec/models/customer_name_bank_model_spec.rb +1 -1
  157. data/spec/models/customer_state_bank_model_spec.rb +1 -1
  158. data/spec/models/customer_type_bank_model_spec.rb +1 -1
  159. data/spec/models/deposit_address_bank_model_spec.rb +1 -1
  160. data/spec/models/deposit_address_format_bank_model_spec.rb +1 -1
  161. data/spec/models/deposit_address_list_bank_model_spec.rb +1 -1
  162. data/spec/models/deposit_address_state_bank_model_spec.rb +1 -1
  163. data/spec/models/deposit_bank_account_account_details_inner_bank_model_spec.rb +1 -1
  164. data/spec/models/deposit_bank_account_bank_model_spec.rb +1 -1
  165. data/spec/models/deposit_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  166. data/spec/models/deposit_bank_account_list_bank_model_spec.rb +1 -1
  167. data/spec/models/deposit_bank_account_routing_details_inner_bank_model_spec.rb +1 -1
  168. data/spec/models/deposit_bank_account_routing_number_type_bank_model_spec.rb +1 -1
  169. data/spec/models/deposit_bank_account_state_bank_model_spec.rb +1 -1
  170. data/spec/models/error_response_bank_model_spec.rb +1 -1
  171. data/spec/models/external_bank_account_balances_bank_model_spec.rb +1 -1
  172. data/spec/models/external_bank_account_bank_model_spec.rb +1 -1
  173. data/spec/models/external_bank_account_kind_bank_model_spec.rb +1 -1
  174. data/spec/models/external_bank_account_list_bank_model_spec.rb +1 -1
  175. data/spec/models/external_bank_account_pii_inner_addresses_inner_bank_model_spec.rb +1 -1
  176. data/spec/models/external_bank_account_pii_inner_bank_model_spec.rb +1 -1
  177. data/spec/models/external_bank_account_state_bank_model_spec.rb +1 -1
  178. data/spec/models/external_wallet_bank_model_spec.rb +1 -1
  179. data/spec/models/external_wallet_environment_bank_model_spec.rb +1 -1
  180. data/spec/models/external_wallet_list_bank_model_spec.rb +1 -1
  181. data/spec/models/external_wallet_state_bank_model_spec.rb +1 -1
  182. data/spec/models/identity_verification_bank_model_spec.rb +1 -1
  183. data/spec/models/identity_verification_list_bank_model_spec.rb +1 -1
  184. data/spec/models/identity_verification_method_bank_model_spec.rb +1 -1
  185. data/spec/models/identity_verification_outcome_bank_model_spec.rb +1 -1
  186. data/spec/models/identity_verification_persona_state_bank_model_spec.rb +1 -1
  187. data/spec/models/identity_verification_state_bank_model_spec.rb +1 -1
  188. data/spec/models/identity_verification_type_bank_model_spec.rb +1 -1
  189. data/spec/models/identity_verification_with_details_all_of_bank_model_spec.rb +1 -1
  190. data/spec/models/identity_verification_with_details_bank_model_spec.rb +1 -1
  191. data/spec/models/patch_bank_bank_model_spec.rb +1 -1
  192. data/spec/models/patch_customer_bank_model_spec.rb +1 -1
  193. data/spec/models/patch_external_bank_account_bank_model_spec.rb +1 -1
  194. data/spec/models/post_account_bank_model_spec.rb +1 -1
  195. data/spec/models/post_bank_bank_model_spec.rb +1 -1
  196. data/spec/models/post_customer_address_bank_model_spec.rb +1 -1
  197. data/spec/models/post_customer_bank_model_spec.rb +1 -1
  198. data/spec/models/post_customer_name_bank_model_spec.rb +1 -1
  199. data/spec/models/post_deposit_address_bank_model_spec.rb +1 -1
  200. data/spec/models/post_deposit_bank_account_bank_model_spec.rb +1 -1
  201. data/spec/models/post_external_bank_account_bank_model_spec.rb +1 -1
  202. data/spec/models/post_external_bank_account_counterparty_address_bank_model_spec.rb +1 -1
  203. data/spec/models/post_external_bank_account_counterparty_bank_account_bank_model_spec.rb +1 -1
  204. data/spec/models/post_external_bank_account_counterparty_name_bank_model_spec.rb +1 -1
  205. data/spec/models/post_external_wallet_bank_model_spec.rb +1 -1
  206. data/spec/models/post_identification_number_bank_model_spec.rb +1 -1
  207. data/spec/models/post_identity_verification_address_bank_model_spec.rb +1 -1
  208. data/spec/models/post_identity_verification_bank_model_spec.rb +1 -1
  209. data/spec/models/post_identity_verification_name_bank_model_spec.rb +1 -1
  210. data/spec/models/post_quote_bank_model_spec.rb +1 -1
  211. data/spec/models/post_trade_bank_model_spec.rb +1 -1
  212. data/spec/models/post_transfer_bank_model_spec.rb +1 -1
  213. data/spec/models/post_workflow_bank_model_spec.rb +1 -1
  214. data/spec/models/quote_bank_model_spec.rb +1 -1
  215. data/spec/models/quote_list_bank_model_spec.rb +1 -1
  216. data/spec/models/quote_side_bank_model_spec.rb +1 -1
  217. data/spec/models/quote_type_bank_model_spec.rb +1 -1
  218. data/spec/models/symbol_price_bank_model_spec.rb +1 -1
  219. data/spec/models/trade_bank_model_spec.rb +1 -1
  220. data/spec/models/trade_list_bank_model_spec.rb +1 -1
  221. data/spec/models/trade_side_bank_model_spec.rb +1 -1
  222. data/spec/models/trade_state_bank_model_spec.rb +1 -1
  223. data/spec/models/trade_type_bank_model_spec.rb +1 -1
  224. data/spec/models/transfer_account_type_bank_model_spec.rb +1 -1
  225. data/spec/models/transfer_bank_model_spec.rb +1 -1
  226. data/spec/models/transfer_destination_account_bank_model_spec.rb +1 -1
  227. data/spec/models/transfer_list_bank_model_spec.rb +1 -1
  228. data/spec/models/transfer_side_bank_model_spec.rb +1 -1
  229. data/spec/models/transfer_source_account_bank_model_spec.rb +1 -1
  230. data/spec/models/transfer_state_bank_model_spec.rb +1 -1
  231. data/spec/models/transfer_type_bank_model_spec.rb +1 -1
  232. data/spec/models/verification_check_bank_model_spec.rb +1 -1
  233. data/spec/models/verification_check_state_bank_model_spec.rb +1 -1
  234. data/spec/models/verification_check_type_bank_model_spec.rb +1 -1
  235. data/spec/models/workflow_bank_model_spec.rb +1 -1
  236. data/spec/models/workflow_state_bank_model_spec.rb +1 -1
  237. data/spec/models/workflow_type_bank_model_spec.rb +1 -1
  238. data/spec/models/workflow_with_details_all_of_bank_model_spec.rb +1 -1
  239. data/spec/models/workflow_with_details_bank_model_spec.rb +1 -1
  240. data/spec/models/workflows_list_bank_model_spec.rb +1 -1
  241. data/spec/spec_helper.rb +1 -1
  242. data/vendor/bundle/ruby/3.2.0/cache/diff-lcs-1.5.1.gem +0 -0
  243. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  244. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
  245. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  246. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.2/gem_make.out +5 -5
  247. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.7.3/gem_make.out +5 -5
  248. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.1.0/gem_make.out +5 -5
  249. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Contributing.md +2 -0
  250. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/History.md +86 -55
  251. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/License.md +6 -4
  252. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Rakefile +36 -27
  253. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/bin/htmldiff +4 -4
  254. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/array.rb +1 -1
  255. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/lib/diff/lcs/backports.rb +9 -0
  256. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/block.rb +4 -4
  257. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/callbacks.rb +9 -7
  258. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/change.rb +19 -19
  259. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/htmldiff.rb +24 -16
  260. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/hunk.rb +35 -30
  261. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/internals.rb +17 -17
  262. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/ldiff.rb +37 -35
  263. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs.rb +57 -55
  264. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff-lcs.rb +1 -1
  265. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/change_spec.rb +89 -0
  266. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/diff_spec.rb +14 -14
  267. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/hunk_spec.rb +19 -19
  268. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/issues_spec.rb +160 -0
  269. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/lcs_spec.rb +11 -11
  270. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/ldiff_spec.rb +13 -11
  271. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/patch_spec.rb +84 -84
  272. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/sdiff_spec.rb +216 -0
  273. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/spec_helper.rb +76 -74
  274. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.1/spec/traverse_balanced_spec.rb +312 -0
  275. data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/traverse_sequences_spec.rb +31 -31
  276. data/vendor/bundle/ruby/3.2.0/specifications/{diff-lcs-1.5.0.gemspec → diff-lcs-1.5.1.gemspec} +7 -7
  277. metadata +63 -63
  278. data/vendor/bundle/ruby/3.2.0/cache/diff-lcs-1.5.0.gem +0 -0
  279. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/lib/diff/lcs/backports.rb +0 -9
  280. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/change_spec.rb +0 -89
  281. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/issues_spec.rb +0 -154
  282. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/sdiff_spec.rb +0 -214
  283. data/vendor/bundle/ruby/3.2.0/gems/diff-lcs-1.5.0/spec/traverse_balanced_spec.rb +0 -310
  284. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/.rspec +0 -0
  285. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Code-of-Conduct.md +0 -0
  286. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/Manifest.txt +0 -0
  287. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/README.rdoc +0 -0
  288. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/bin/ldiff +0 -0
  289. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/docs/COPYING.txt +0 -0
  290. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/docs/artistic.txt +0 -0
  291. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/lib/diff/lcs/string.rb +0 -0
  292. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/aX +0 -0
  293. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/bXaX +0 -0
  294. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ds1.csv +0 -0
  295. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ds2.csv +0 -0
  296. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff +0 -0
  297. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-c +0 -0
  298. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-e +0 -0
  299. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-f +0 -0
  300. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff-u +0 -0
  301. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef +0 -0
  302. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-c +0 -0
  303. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-e +0 -0
  304. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-f +0 -0
  305. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef-u +0 -0
  306. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2 +0 -0
  307. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-c +0 -0
  308. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-d +0 -0
  309. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-e +0 -0
  310. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-f +0 -0
  311. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/ldiff/output.diff.chef2-u +0 -0
  312. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/new-chef +0 -0
  313. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/new-chef2 +0 -0
  314. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/old-chef +0 -0
  315. /data/vendor/bundle/ruby/3.2.0/gems/{diff-lcs-1.5.0 → diff-lcs-1.5.1}/spec/fixtures/old-chef2 +0 -0
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems'
4
- require 'rspec'
5
- require 'rspec/core/rake_task'
6
- require 'hoe'
3
+ require "rubygems"
4
+ require "rspec"
5
+ require "rspec/core/rake_task"
6
+ require "hoe"
7
7
 
8
8
  # This is required until https://github.com/seattlerb/hoe/issues/112 is fixed
9
9
  class Hoe
@@ -45,66 +45,74 @@ Hoe.plugin :doofus
45
45
  Hoe.plugin :gemspec2
46
46
  Hoe.plugin :git
47
47
 
48
- if RUBY_VERSION < '1.9'
49
- class Array #:nodoc:
48
+ if RUBY_VERSION < "1.9"
49
+ class Array # :nodoc:
50
50
  def to_h
51
51
  Hash[*flatten(1)]
52
52
  end
53
53
  end
54
54
 
55
- class Gem::Specification #:nodoc:
56
- def metadata=(*); end
55
+ class Gem::Specification # :nodoc:
56
+ def metadata=(*)
57
+ end
57
58
 
58
- def default_value(*); end
59
+ def default_value(*)
60
+ end
59
61
  end
60
62
 
61
- class Object #:nodoc:
63
+ class Object # :nodoc:
62
64
  def caller_locations(*)
63
65
  []
64
66
  end
65
67
  end
66
68
  end
67
69
 
68
- _spec = Hoe.spec 'diff-lcs' do
69
- developer('Austin Ziegler', 'halostatue@gmail.com')
70
+ _spec = Hoe.spec "diff-lcs" do
71
+ developer("Austin Ziegler", "halostatue@gmail.com")
72
+
73
+ require_ruby_version ">= 1.8"
70
74
 
71
- require_ruby_version '>= 1.8'
75
+ self.history_file = "History.md"
76
+ self.readme_file = "README.rdoc"
77
+ self.licenses = ["MIT", "Artistic-2.0", "GPL-2.0-or-later"]
72
78
 
73
- self.history_file = 'History.md'
74
- self.readme_file = 'README.rdoc'
75
- self.licenses = ['MIT', 'Artistic-2.0', 'GPL-2.0+']
79
+ spec_extras[:metadata] = ->(val) { val["rubygems_mfa_required"] = "true" }
76
80
 
77
- extra_dev_deps << ['hoe-doofus', '~> 1.0']
78
- extra_dev_deps << ['hoe-gemspec2', '~> 1.1']
79
- extra_dev_deps << ['hoe-git', '~> 1.6']
80
- extra_dev_deps << ['hoe-rubygems', '~> 1.0']
81
- extra_dev_deps << ['rspec', '>= 2.0', '< 4']
82
- extra_dev_deps << ['rake', '>= 10.0', '< 14']
83
- extra_dev_deps << ['rdoc', '>= 6.3.1', '< 7']
81
+ extra_dev_deps << ["hoe", ">= 3.0", "< 5"]
82
+ extra_dev_deps << ["hoe-doofus", "~> 1.0"]
83
+ extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
84
+ extra_dev_deps << ["hoe-git2", "~> 1.7"]
85
+ extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
86
+ extra_dev_deps << ["rspec", ">= 2.0", "< 4"]
87
+ extra_dev_deps << ["rake", ">= 10.0", "< 14"]
88
+ extra_dev_deps << ["rdoc", ">= 6.3.1", "< 7"]
84
89
  end
85
90
 
86
91
  desc "Run all specifications"
87
92
  RSpec::Core::RakeTask.new(:spec) do |t|
88
- rspec_dirs = %w(spec lib).join(":")
93
+ rspec_dirs = %w[spec lib].join(":")
89
94
  t.rspec_opts = ["-I#{rspec_dirs}"]
90
95
  end
91
96
 
92
97
  Rake::Task["spec"].actions.uniq! { |a| a.source_location }
93
98
 
99
+ # standard:disable Style/HashSyntax
94
100
  task :default => :spec unless Rake::Task["default"].prereqs.include?("spec")
95
101
  task :test => :spec unless Rake::Task["test"].prereqs.include?("spec")
102
+ # standard:enable Style/HashSyntax
96
103
 
97
- if RUBY_VERSION >= '2.0' && RUBY_ENGINE == 'ruby'
104
+ if RUBY_VERSION >= "2.0" && RUBY_ENGINE == "ruby"
98
105
  namespace :spec do
99
106
  desc "Runs test coverage. Only works Ruby 2.0+ and assumes 'simplecov' is installed."
100
107
  task :coverage do
101
- ENV['COVERAGE'] = 'yes'
102
- Rake::Task['spec'].execute
108
+ ENV["COVERAGE"] = "yes"
109
+ Rake::Task["spec"].execute
103
110
  end
104
111
  end
105
112
  end
106
113
 
107
114
  task :ruby18 do
115
+ # standard:disable Layout/HeredocIndentation
108
116
  puts <<-MESSAGE
109
117
  You are starting a barebones Ruby 1.8 docker environment. You will need to
110
118
  do the following:
@@ -117,5 +125,6 @@ do the following:
117
125
  Don't forget to restore your Gemfile.lock after testing.
118
126
 
119
127
  MESSAGE
128
+ # standard:enable Layout/HeredocIndentation
120
129
  sh "docker run -it --rm -v #{Dir.pwd}:/root/diff-lcs bellbind/docker-ruby18-rails2 bash -l"
121
130
  end
@@ -1,11 +1,11 @@
1
1
  #! /usr/bin/env ruby -w
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'diff/lcs'
5
- require 'diff/lcs/htmldiff'
4
+ require "diff/lcs"
5
+ require "diff/lcs/htmldiff"
6
6
 
7
7
  begin
8
- require 'text/format'
8
+ require "text/format"
9
9
  rescue LoadError
10
10
  Diff::LCS::HTMLDiff.can_expand_tabs = false
11
11
  end
@@ -24,7 +24,7 @@ options = { :title => "diff #{ARGV[0]} #{ARGV[1]}" }
24
24
  htmldiff = Diff::LCS::HTMLDiff.new(left, right, options)
25
25
 
26
26
  if ARGV[2]
27
- File.open(ARGV[2], 'w') do |f|
27
+ File.open(ARGV[2], "w") do |f|
28
28
  htmldiff.options[:output] = f
29
29
  htmldiff.run
30
30
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'diff/lcs'
3
+ require "diff/lcs"
4
4
 
5
5
  class Array
6
6
  include Diff::LCS
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ unless 0.respond_to?(:positive?)
4
+ class Fixnum # standard:disable Lint/UnifiedInteger
5
+ def positive?
6
+ self > 0
7
+ end
8
+ end
9
+ end
@@ -25,13 +25,13 @@ class Diff::LCS::Block
25
25
  def op
26
26
  case [@remove.empty?, @insert.empty?]
27
27
  when [false, false]
28
- '!'
28
+ "!"
29
29
  when [false, true]
30
- '-'
30
+ "-"
31
31
  when [true, false]
32
- '+'
32
+ "+"
33
33
  else # [true, true]
34
- '^'
34
+ "^"
35
35
  end
36
36
  end
37
37
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'diff/lcs/change'
3
+ require "diff/lcs/change"
4
4
 
5
- module Diff::LCS # rubocop:disable Style/Documentation
5
+ module Diff::LCS
6
6
  # This callback object implements the default set of callback events,
7
7
  # which only returns the event itself. Note that #finished_a and
8
8
  # #finished_b are not implemented -- I haven't yet figured out where they
@@ -50,7 +50,9 @@ module Diff::LCS # rubocop:disable Style/Documentation
50
50
  BalancedCallbacks = DefaultCallbacks
51
51
 
52
52
  def self.callbacks_for(callbacks)
53
- callbacks.new rescue callbacks
53
+ callbacks.new
54
+ rescue
55
+ callbacks
54
56
  end
55
57
  end
56
58
 
@@ -107,7 +109,7 @@ class Diff::LCS::DiffCallbacks
107
109
  # Returns the difference set collected during the diff process.
108
110
  attr_reader :diffs
109
111
 
110
- def initialize # :yields self:
112
+ def initialize # :yields: self
111
113
  @hunk = []
112
114
  @diffs = []
113
115
 
@@ -131,11 +133,11 @@ class Diff::LCS::DiffCallbacks
131
133
  end
132
134
 
133
135
  def discard_a(event)
134
- @hunk << Diff::LCS::Change.new('-', event.old_position, event.old_element)
136
+ @hunk << Diff::LCS::Change.new("-", event.old_position, event.old_element)
135
137
  end
136
138
 
137
139
  def discard_b(event)
138
- @hunk << Diff::LCS::Change.new('+', event.new_position, event.new_element)
140
+ @hunk << Diff::LCS::Change.new("+", event.new_position, event.new_element)
139
141
  end
140
142
 
141
143
  def finish_hunk
@@ -302,7 +304,7 @@ class Diff::LCS::SDiffCallbacks
302
304
  # Returns the difference set collected during the diff process.
303
305
  attr_reader :diffs
304
306
 
305
- def initialize #:yields self:
307
+ def initialize # :yields: self
306
308
  @diffs = []
307
309
  yield self if block_given?
308
310
  end
@@ -10,7 +10,7 @@ class Diff::LCS::Change
10
10
  # (no change), '!' (changed), '<' (tail changes from first sequence), or
11
11
  # '>' (tail changes from second sequence). The last two ('<>') are only
12
12
  # found with Diff::LCS::diff and Diff::LCS::sdiff.
13
- VALID_ACTIONS = %w(+ - = ! > <).freeze
13
+ VALID_ACTIONS = %w[+ - = ! > <].freeze
14
14
 
15
15
  def self.valid_action?(action)
16
16
  VALID_ACTIONS.include? action
@@ -28,7 +28,7 @@ class Diff::LCS::Change
28
28
  @action, @position, @element = *args
29
29
 
30
30
  fail "Invalid Change Action '#{@action}'" unless Diff::LCS::Change.valid_action?(@action)
31
- fail 'Invalid Position Type' unless @position.kind_of? IntClass
31
+ fail "Invalid Position Type" unless @position.is_a? IntClass
32
32
  end
33
33
 
34
34
  def inspect(*_args)
@@ -39,7 +39,7 @@ class Diff::LCS::Change
39
39
  [@action, @position, @element]
40
40
  end
41
41
 
42
- alias to_ary to_a
42
+ alias_method :to_ary, :to_a
43
43
 
44
44
  def self.from_a(arr)
45
45
  arr = arr.flatten(1)
@@ -49,7 +49,7 @@ class Diff::LCS::Change
49
49
  when 3
50
50
  Diff::LCS::Change.new(*(arr[0...3]))
51
51
  else
52
- fail 'Invalid change array format provided.'
52
+ fail "Invalid change array format provided."
53
53
  end
54
54
  end
55
55
 
@@ -70,27 +70,27 @@ class Diff::LCS::Change
70
70
  end
71
71
 
72
72
  def adding?
73
- @action == '+'
73
+ @action == "+"
74
74
  end
75
75
 
76
76
  def deleting?
77
- @action == '-'
77
+ @action == "-"
78
78
  end
79
79
 
80
80
  def unchanged?
81
- @action == '='
81
+ @action == "="
82
82
  end
83
83
 
84
84
  def changed?
85
- @action == '!'
85
+ @action == "!"
86
86
  end
87
87
 
88
88
  def finished_a?
89
- @action == '>'
89
+ @action == ">"
90
90
  end
91
91
 
92
92
  def finished_b?
93
- @action == '<'
93
+ @action == "<"
94
94
  end
95
95
  end
96
96
 
@@ -115,8 +115,8 @@ class Diff::LCS::ContextChange < Diff::LCS::Change
115
115
  @action, @old_position, @old_element, @new_position, @new_element = *args
116
116
 
117
117
  fail "Invalid Change Action '#{@action}'" unless Diff::LCS::Change.valid_action?(@action)
118
- fail 'Invalid (Old) Position Type' unless @old_position.nil? or @old_position.kind_of? IntClass
119
- fail 'Invalid (New) Position Type' unless @new_position.nil? or @new_position.kind_of? IntClass
118
+ fail "Invalid (Old) Position Type" unless @old_position.nil? || @old_position.is_a?(IntClass)
119
+ fail "Invalid (New) Position Type" unless @new_position.nil? || @new_position.is_a?(IntClass)
120
120
  end
121
121
 
122
122
  def to_a
@@ -127,7 +127,7 @@ class Diff::LCS::ContextChange < Diff::LCS::Change
127
127
  ]
128
128
  end
129
129
 
130
- alias to_ary to_a
130
+ alias_method :to_ary, :to_a
131
131
 
132
132
  def self.from_a(arr)
133
133
  Diff::LCS::Change.from_a(arr)
@@ -139,15 +139,15 @@ class Diff::LCS::ContextChange < Diff::LCS::Change
139
139
  ea = event.to_a
140
140
 
141
141
  case ea[0]
142
- when '-'
142
+ when "-"
143
143
  ea[2][1] = nil
144
- when '<'
145
- ea[0] = '-'
144
+ when "<"
145
+ ea[0] = "-"
146
146
  ea[2][1] = nil
147
- when '+'
147
+ when "+"
148
148
  ea[1][1] = nil
149
- when '>'
150
- ea[0] = '+'
149
+ when ">"
150
+ ea[0] = "+"
151
151
  ea[1][1] = nil
152
152
  end
153
153
 
@@ -1,15 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'cgi'
3
+ require "cgi"
4
4
 
5
5
  # Produce a simple HTML diff view.
6
6
  class Diff::LCS::HTMLDiff
7
7
  class << self
8
- attr_accessor :can_expand_tabs #:nodoc:
8
+ attr_accessor :can_expand_tabs # :nodoc:
9
9
  end
10
10
  self.can_expand_tabs = true
11
11
 
12
- class Callbacks #:nodoc:
12
+ class Callbacks # :nodoc:
13
13
  attr_accessor :output
14
14
  attr_accessor :match_class
15
15
  attr_accessor :only_a_class
@@ -19,14 +19,14 @@ class Diff::LCS::HTMLDiff
19
19
  @output = output
20
20
  options ||= {}
21
21
 
22
- @match_class = options[:match_class] || 'match'
23
- @only_a_class = options[:only_a_class] || 'only_a'
24
- @only_b_class = options[:only_b_class] || 'only_b'
22
+ @match_class = options[:match_class] || "match"
23
+ @only_a_class = options[:only_a_class] || "only_a"
24
+ @only_b_class = options[:only_b_class] || "only_b"
25
25
  end
26
26
 
27
27
  def htmlize(element, css_class)
28
- element = '&nbsp;' if element.empty?
29
- %Q(<pre class="#{__send__(css_class)}">#{element}</pre>\n)
28
+ element = "&nbsp;" if element.empty?
29
+ %(<pre class="#{__send__(css_class)}">#{element}</pre>\n)
30
30
  end
31
31
  private :htmlize
32
32
 
@@ -46,13 +46,16 @@ class Diff::LCS::HTMLDiff
46
46
  end
47
47
  end
48
48
 
49
+ # standard:disable Style/HashSyntax
49
50
  DEFAULT_OPTIONS = {
50
51
  :expand_tabs => nil,
51
52
  :output => nil,
52
53
  :css => nil,
53
54
  :title => nil
54
55
  }.freeze
56
+ # standard:enable Style/HashSyntax
55
57
 
58
+ # standard:disable Layout/HeredocIndentation
56
59
  DEFAULT_CSS = <<-CSS
57
60
  body { margin: 0; }
58
61
  .diff
@@ -86,11 +89,12 @@ pre
86
89
  }
87
90
  h1 { margin-left: 2em; }
88
91
  CSS
92
+ # standard:enable Layout/HeredocIndentation
89
93
 
90
94
  def initialize(left, right, options = nil)
91
- @left = left
92
- @right = right
93
- @options = options
95
+ @left = left
96
+ @right = right
97
+ @options = options
94
98
 
95
99
  @options = DEFAULT_OPTIONS.dup if @options.nil?
96
100
  end
@@ -103,7 +107,7 @@ h1 { margin-left: 2em; }
103
107
 
104
108
  @options[:css] ||= DEFAULT_CSS.dup
105
109
 
106
- @options[:title] ||= 'diff'
110
+ @options[:title] ||= "diff"
107
111
  end
108
112
  private :verify_options
109
113
 
@@ -116,13 +120,14 @@ h1 { margin-left: 2em; }
116
120
  formatter = Text::Format.new
117
121
  formatter.tabstop = @options[:expand_tabs]
118
122
 
119
- @left.map! do |line| formatter.expand(line.chomp) end
120
- @right.map! do |line| formatter.expand(line.chomp) end
123
+ @left.map! { |line| formatter.expand(line.chomp) }
124
+ @right.map! { |line| formatter.expand(line.chomp) }
121
125
  end
122
126
 
123
- @left.map! do |line| CGI.escapeHTML(line.chomp) end
124
- @right.map! do |line| CGI.escapeHTML(line.chomp) end
127
+ @left.map! { |line| CGI.escapeHTML(line.chomp) }
128
+ @right.map! { |line| CGI.escapeHTML(line.chomp) }
125
129
 
130
+ # standard:disable Layout/HeredocIndentation
126
131
  @options[:output] << <<-OUTPUT
127
132
  <html>
128
133
  <head>
@@ -137,14 +142,17 @@ h1 { margin-left: 2em; }
137
142
  <span class="only_b">Only in New</span></p>
138
143
  <div class="diff">
139
144
  OUTPUT
145
+ # standard:enable Layout/HeredocIndentation
140
146
 
141
147
  callbacks = Callbacks.new(@options[:output])
142
148
  Diff::LCS.traverse_sequences(@left, @right, callbacks)
143
149
 
150
+ # standard:disable Layout/HeredocIndentation
144
151
  @options[:output] << <<-OUTPUT
145
152
  </div>
146
153
  </body>
147
154
  </html>
148
155
  OUTPUT
156
+ # standard:enable Layout/HeredocIndentation
149
157
  end
150
158
  end
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'diff/lcs/block'
3
+ require "diff/lcs/block"
4
4
 
5
5
  # A Hunk is a group of Blocks which overlap because of the context surrounding
6
6
  # each block. (So if we're not using context, every hunk will contain one
7
7
  # block.) Used in the diff program (bin/ldiff).
8
8
  class Diff::LCS::Hunk
9
- OLD_DIFF_OP_ACTION = { '+' => 'a', '-' => 'd', '!' => 'c' }.freeze #:nodoc:
10
- ED_DIFF_OP_ACTION = { '+' => 'a', '-' => 'd', '!' => 'c' }.freeze #:nodoc:
9
+ OLD_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc:
10
+ ED_DIFF_OP_ACTION = {"+" => "a", "-" => "d", "!" => "c"}.freeze # :nodoc:
11
11
 
12
12
  private_constant :OLD_DIFF_OP_ACTION, :ED_DIFF_OP_ACTION if respond_to?(:private_constant)
13
13
 
@@ -22,7 +22,7 @@ class Diff::LCS::Hunk
22
22
  end
23
23
 
24
24
  if String.method_defined?(:encoding)
25
- @preferred_data_encoding = data_old.fetch(0, data_new.fetch(0, '')).encoding
25
+ @preferred_data_encoding = data_old.fetch(0) { data_new.fetch(0, "") }.encoding
26
26
  end
27
27
 
28
28
  @data_old = data_old
@@ -33,7 +33,6 @@ class Diff::LCS::Hunk
33
33
  @file_length_difference = after # The caller must get this manually
34
34
  @max_diff_size = @blocks.map { |e| e.diff_size.abs }.max
35
35
 
36
-
37
36
  # Save the start & end of each array. If the array doesn't exist (e.g.,
38
37
  # we're only adding items in this block), then figure out the line number
39
38
  # based on the line number of the other file and the current difference in
@@ -54,8 +53,8 @@ class Diff::LCS::Hunk
54
53
 
55
54
  @start_old = a1 || (b1 - before)
56
55
  @start_new = b1 || (a1 + before)
57
- @end_old = a2 || (b2 - after)
58
- @end_new = b2 || (a2 + after)
56
+ @end_old = a2 || (b2 - after)
57
+ @end_new = b2 || (a2 + after)
59
58
 
60
59
  self.flag_context = flag_context
61
60
  end
@@ -67,12 +66,12 @@ class Diff::LCS::Hunk
67
66
 
68
67
  # Change the "start" and "end" fields to note that context should be added
69
68
  # to this hunk.
70
- attr_accessor :flag_context # rubocop:disable Layout/EmptyLinesAroundAttributeAccessor
69
+ attr_accessor :flag_context
71
70
  undef :flag_context=
72
- def flag_context=(context) #:nodoc: # rubocop:disable Lint/DuplicateMethods
73
- return if context.nil? or context.zero?
71
+ def flag_context=(context) # :nodoc: # standard:disable Lint/DuplicateMethods
72
+ return if context.nil? || context.zero?
74
73
 
75
- add_start = context > @start_old ? @start_old : context
74
+ add_start = (context > @start_old) ? @start_old : context
76
75
 
77
76
  @start_old -= add_start
78
77
  @start_new -= add_start
@@ -102,7 +101,7 @@ class Diff::LCS::Hunk
102
101
  @start_new = hunk.start_new
103
102
  blocks.unshift(*hunk.blocks)
104
103
  end
105
- alias unshift merge
104
+ alias_method :unshift, :merge
106
105
 
107
106
  # Determines whether there is an overlap between this hunk and the
108
107
  # provided hunk. This will be true if the difference between the two hunks
@@ -133,24 +132,24 @@ class Diff::LCS::Hunk
133
132
  # Note that an old diff can't have any context. Therefore, we know that
134
133
  # there's only one block in the hunk.
135
134
  def old_diff(_last = false)
136
- warn 'Expecting only one block in an old diff hunk!' if @blocks.size > 1
135
+ warn "Expecting only one block in an old diff hunk!" if @blocks.size > 1
137
136
 
138
137
  block = @blocks[0]
139
138
 
140
139
  # Calculate item number range. Old diff range is just like a context
141
140
  # diff range, except the ranges are on one line with the action between
142
141
  # them.
143
- s = encode("#{context_range(:old, ',')}#{OLD_DIFF_OP_ACTION[block.op]}#{context_range(:new, ',')}\n")
142
+ s = encode("#{context_range(:old, ",")}#{OLD_DIFF_OP_ACTION[block.op]}#{context_range(:new, ",")}\n")
144
143
  # If removing anything, just print out all the remove lines in the hunk
145
144
  # which is just all the remove lines in the block.
146
145
  unless block.remove.empty?
147
- @data_old[@start_old..@end_old].each { |e| s << encode('< ') + e.chomp + encode("\n") }
146
+ @data_old[@start_old..@end_old].each { |e| s << encode("< ") + e.chomp + encode("\n") }
148
147
  end
149
148
 
150
- s << encode("---\n") if block.op == '!'
149
+ s << encode("---\n") if block.op == "!"
151
150
 
152
151
  unless block.insert.empty?
153
- @data_new[@start_new..@end_new].each { |e| s << encode('> ') + e.chomp + encode("\n") }
152
+ @data_new[@start_new..@end_new].each { |e| s << encode("> ") + e.chomp + encode("\n") }
154
153
  end
155
154
 
156
155
  s
@@ -172,7 +171,9 @@ class Diff::LCS::Hunk
172
171
  # file -- don't take removed items into account.
173
172
  lo, hi, num_added, num_removed = @start_old, @end_old, 0, 0
174
173
 
175
- outlist = @data_old[lo..hi].map { |e| String.new("#{encode(' ')}#{e.chomp}") }
174
+ # standard:disable Performance/UnfreezeString
175
+ outlist = @data_old[lo..hi].map { |e| String.new("#{encode(" ")}#{e.chomp}") }
176
+ # standard:enable Performance/UnfreezeString
176
177
 
177
178
  last_block = blocks[-1]
178
179
 
@@ -183,7 +184,7 @@ class Diff::LCS::Hunk
183
184
 
184
185
  @blocks.each do |block|
185
186
  block.remove.each do |item|
186
- op = item.action.to_s # -
187
+ op = item.action.to_s # -
187
188
  offset = item.position - lo + num_added
188
189
  outlist[offset][0, 1] = encode(op)
189
190
  num_removed += 1
@@ -195,7 +196,7 @@ class Diff::LCS::Hunk
195
196
  end
196
197
 
197
198
  block.insert.each do |item|
198
- op = item.action.to_s # +
199
+ op = item.action.to_s # +
199
200
  offset = item.position - @start_new + num_removed
200
201
  outlist[offset, 0] = encode(op) + @data_new[item.position].chomp
201
202
  num_added += 1
@@ -212,8 +213,8 @@ class Diff::LCS::Hunk
212
213
 
213
214
  def context_diff(last = false)
214
215
  s = encode("***************\n")
215
- s << encode("*** #{context_range(:old, ',', last)} ****\n")
216
- r = context_range(:new, ',', last)
216
+ s << encode("*** #{context_range(:old, ",", last)} ****\n")
217
+ r = context_range(:new, ",", last)
217
218
 
218
219
  if last
219
220
  old_missing_newline = missing_last_newline?(@data_old)
@@ -226,7 +227,9 @@ class Diff::LCS::Hunk
226
227
  removes = @blocks.reject { |e| e.remove.empty? }
227
228
 
228
229
  unless removes.empty?
229
- outlist = @data_old[lo..hi].map { |e| String.new("#{encode(' ')}#{e.chomp}") }
230
+ # standard:disable Performance/UnfreezeString
231
+ outlist = @data_old[lo..hi].map { |e| String.new("#{encode(" ")}#{e.chomp}") }
232
+ # standard:enable Performance/UnfreezeString
230
233
 
231
234
  last_block = removes[-1]
232
235
 
@@ -248,7 +251,9 @@ class Diff::LCS::Hunk
248
251
  inserts = @blocks.reject { |e| e.insert.empty? }
249
252
 
250
253
  unless inserts.empty?
251
- outlist = @data_new[lo..hi].map { |e| String.new("#{encode(' ')}#{e.chomp}") }
254
+ # standard:disable Performance/UnfreezeString
255
+ outlist = @data_new[lo..hi].map { |e| String.new("#{encode(" ")}#{e.chomp}") }
256
+ # standard:enable Performance/UnfreezeString
252
257
 
253
258
  last_block = inserts[-1]
254
259
 
@@ -269,13 +274,13 @@ class Diff::LCS::Hunk
269
274
  private :context_diff
270
275
 
271
276
  def ed_diff(format, _last = false)
272
- warn 'Expecting only one block in an old diff hunk!' if @blocks.size > 1
277
+ warn "Expecting only one block in an old diff hunk!" if @blocks.size > 1
273
278
 
274
279
  s =
275
280
  if format == :reverse_ed
276
- encode("#{ED_DIFF_OP_ACTION[@blocks[0].op]}#{context_range(:old, ',')}\n")
281
+ encode("#{ED_DIFF_OP_ACTION[@blocks[0].op]}#{context_range(:old, ",")}\n")
277
282
  else
278
- encode("#{context_range(:old, ' ')}#{ED_DIFF_OP_ACTION[@blocks[0].op]}\n")
283
+ encode("#{context_range(:old, " ")}#{ED_DIFF_OP_ACTION[@blocks[0].op]}\n")
279
284
  end
280
285
 
281
286
  unless @blocks[0].insert.empty?
@@ -301,7 +306,7 @@ class Diff::LCS::Hunk
301
306
  e -= 1 if last
302
307
  e = 1 if e.zero?
303
308
 
304
- s < e ? "#{s}#{op}#{e}" : e.to_s
309
+ (s < e) ? "#{s}#{op}#{e}" : e.to_s
305
310
  end
306
311
  private :context_range
307
312
 
@@ -318,8 +323,8 @@ class Diff::LCS::Hunk
318
323
 
319
324
  length = e - s + (last ? 0 : 1)
320
325
 
321
- first = length < 2 ? e : s # "strange, but correct"
322
- length <= 1 ? first.to_s : "#{first},#{length}"
326
+ first = (length < 2) ? e : s # "strange, but correct"
327
+ (length <= 1) ? first.to_s : "#{first},#{length}"
323
328
  end
324
329
  private :unified_range
325
330