appmap 0.83.4 → 0.83.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +16 -0
  3. data/CHANGELOG.md +7 -0
  4. data/appmap.gemspec +1 -1
  5. data/lib/appmap/version.rb +1 -1
  6. metadata +3 -353
  7. data/spec/class_map_spec.rb +0 -28
  8. data/spec/config_spec.rb +0 -155
  9. data/spec/depends/api_spec.rb +0 -196
  10. data/spec/depends/spec_helper.rb +0 -18
  11. data/spec/display_string_spec.rb +0 -40
  12. data/spec/fixtures/config/incomplete_config.yml +0 -1
  13. data/spec/fixtures/config/invalid_config.yml +0 -2
  14. data/spec/fixtures/config/invalid_yaml_config.yml +0 -3
  15. data/spec/fixtures/config/maximal_config.yml +0 -14
  16. data/spec/fixtures/config/missing_path_or_gem.yml +0 -3
  17. data/spec/fixtures/config/valid_config.yml +0 -3
  18. data/spec/fixtures/database.yml +0 -11
  19. data/spec/fixtures/depends/.gitignore +0 -2
  20. data/spec/fixtures/depends/app/controllers/api/api_keys_controller.rb +0 -2
  21. data/spec/fixtures/depends/app/controllers/organizations_controller.rb +0 -2
  22. data/spec/fixtures/depends/app/models/api_key.rb +0 -2
  23. data/spec/fixtures/depends/app/models/configuration.rb +0 -2
  24. data/spec/fixtures/depends/app/models/show.rb +0 -2
  25. data/spec/fixtures/depends/app/models/user.rb +0 -2
  26. data/spec/fixtures/depends/spec/actual_rspec_test.rb +0 -7
  27. data/spec/fixtures/depends/spec/api_spec.rb +0 -2
  28. data/spec/fixtures/depends/spec/user_spec.rb +0 -2
  29. data/spec/fixtures/depends/test/actual_minitest_test.rb +0 -5
  30. data/spec/fixtures/hook/.gitignore +0 -2
  31. data/spec/fixtures/hook/app/controllers/api/api_keys_controller.rb +0 -1
  32. data/spec/fixtures/hook/app/controllers/organizations_controller.rb +0 -1
  33. data/spec/fixtures/hook/app/models/api_key.rb +0 -1
  34. data/spec/fixtures/hook/app/models/configuration.rb +0 -1
  35. data/spec/fixtures/hook/app/models/show.rb +0 -1
  36. data/spec/fixtures/hook/app/models/user.rb +0 -1
  37. data/spec/fixtures/hook/attr_accessor.rb +0 -5
  38. data/spec/fixtures/hook/compare.rb +0 -7
  39. data/spec/fixtures/hook/constructor.rb +0 -7
  40. data/spec/fixtures/hook/custom_instance_method.rb +0 -11
  41. data/spec/fixtures/hook/exception_method.rb +0 -61
  42. data/spec/fixtures/hook/exclude.rb +0 -15
  43. data/spec/fixtures/hook/instance_method.rb +0 -31
  44. data/spec/fixtures/hook/kwargs.rb +0 -11
  45. data/spec/fixtures/hook/labels.rb +0 -6
  46. data/spec/fixtures/hook/method_named_call.rb +0 -11
  47. data/spec/fixtures/hook/pkg_a/a.rb +0 -7
  48. data/spec/fixtures/hook/prepended_override.rb +0 -14
  49. data/spec/fixtures/hook/protected_method.rb +0 -29
  50. data/spec/fixtures/hook/report_parameters.rb +0 -8
  51. data/spec/fixtures/hook/singleton_method.rb +0 -63
  52. data/spec/fixtures/hook/spec/api_spec.rb +0 -1
  53. data/spec/fixtures/hook/spec/user_spec.rb +0 -1
  54. data/spec/fixtures/hook/sub_packages.rb +0 -7
  55. data/spec/fixtures/rack_users_app/.dockerignore +0 -2
  56. data/spec/fixtures/rack_users_app/.gitignore +0 -2
  57. data/spec/fixtures/rack_users_app/Gemfile +0 -10
  58. data/spec/fixtures/rack_users_app/appmap.yml +0 -3
  59. data/spec/fixtures/rack_users_app/config.ru +0 -2
  60. data/spec/fixtures/rack_users_app/lib/app.rb +0 -36
  61. data/spec/fixtures/rails5_users_app/.dockerignore +0 -1
  62. data/spec/fixtures/rails5_users_app/.gitignore +0 -39
  63. data/spec/fixtures/rails5_users_app/.rspec +0 -1
  64. data/spec/fixtures/rails5_users_app/.ruby-version +0 -1
  65. data/spec/fixtures/rails5_users_app/Gemfile +0 -54
  66. data/spec/fixtures/rails5_users_app/Rakefile +0 -6
  67. data/spec/fixtures/rails5_users_app/app/controllers/api/users_controller.rb +0 -29
  68. data/spec/fixtures/rails5_users_app/app/controllers/application_controller.rb +0 -2
  69. data/spec/fixtures/rails5_users_app/app/controllers/concerns/.keep +0 -0
  70. data/spec/fixtures/rails5_users_app/app/controllers/health_controller.rb +0 -5
  71. data/spec/fixtures/rails5_users_app/app/controllers/users_controller.rb +0 -21
  72. data/spec/fixtures/rails5_users_app/app/models/activerecord/user.rb +0 -18
  73. data/spec/fixtures/rails5_users_app/app/models/concerns/.keep +0 -0
  74. data/spec/fixtures/rails5_users_app/app/models/sequel/user.rb +0 -25
  75. data/spec/fixtures/rails5_users_app/app/views/layouts/application.html.haml +0 -7
  76. data/spec/fixtures/rails5_users_app/app/views/users/index.html.haml +0 -7
  77. data/spec/fixtures/rails5_users_app/appmap.yml +0 -11
  78. data/spec/fixtures/rails5_users_app/bin/appmap +0 -29
  79. data/spec/fixtures/rails5_users_app/bin/byebug +0 -29
  80. data/spec/fixtures/rails5_users_app/bin/gli +0 -29
  81. data/spec/fixtures/rails5_users_app/bin/htmldiff +0 -29
  82. data/spec/fixtures/rails5_users_app/bin/ldiff +0 -29
  83. data/spec/fixtures/rails5_users_app/bin/nokogiri +0 -29
  84. data/spec/fixtures/rails5_users_app/bin/rackup +0 -29
  85. data/spec/fixtures/rails5_users_app/bin/rails +0 -4
  86. data/spec/fixtures/rails5_users_app/bin/rake +0 -29
  87. data/spec/fixtures/rails5_users_app/bin/rspec +0 -29
  88. data/spec/fixtures/rails5_users_app/bin/ruby-parse +0 -29
  89. data/spec/fixtures/rails5_users_app/bin/ruby-rewrite +0 -29
  90. data/spec/fixtures/rails5_users_app/bin/sequel +0 -29
  91. data/spec/fixtures/rails5_users_app/bin/setup +0 -25
  92. data/spec/fixtures/rails5_users_app/bin/sprockets +0 -29
  93. data/spec/fixtures/rails5_users_app/bin/thor +0 -29
  94. data/spec/fixtures/rails5_users_app/bin/update +0 -25
  95. data/spec/fixtures/rails5_users_app/config/application.rb +0 -45
  96. data/spec/fixtures/rails5_users_app/config/boot.rb +0 -3
  97. data/spec/fixtures/rails5_users_app/config/credentials.yml.enc +0 -1
  98. data/spec/fixtures/rails5_users_app/config/database.yml +0 -1
  99. data/spec/fixtures/rails5_users_app/config/environment.rb +0 -5
  100. data/spec/fixtures/rails5_users_app/config/environments/development.rb +0 -40
  101. data/spec/fixtures/rails5_users_app/config/environments/production.rb +0 -68
  102. data/spec/fixtures/rails5_users_app/config/environments/test.rb +0 -39
  103. data/spec/fixtures/rails5_users_app/config/initializers/application_controller_renderer.rb +0 -8
  104. data/spec/fixtures/rails5_users_app/config/initializers/backtrace_silencers.rb +0 -7
  105. data/spec/fixtures/rails5_users_app/config/initializers/cors.rb +0 -16
  106. data/spec/fixtures/rails5_users_app/config/initializers/filter_parameter_logging.rb +0 -4
  107. data/spec/fixtures/rails5_users_app/config/initializers/inflections.rb +0 -16
  108. data/spec/fixtures/rails5_users_app/config/initializers/mime_types.rb +0 -4
  109. data/spec/fixtures/rails5_users_app/config/initializers/wrap_parameters.rb +0 -9
  110. data/spec/fixtures/rails5_users_app/config/locales/en.yml +0 -33
  111. data/spec/fixtures/rails5_users_app/config/routes.rb +0 -11
  112. data/spec/fixtures/rails5_users_app/config.ru +0 -5
  113. data/spec/fixtures/rails5_users_app/db/migrate/20190728211408_create_users.rb +0 -9
  114. data/spec/fixtures/rails5_users_app/db/schema.rb +0 -23
  115. data/spec/fixtures/rails5_users_app/features/api_users.feature +0 -13
  116. data/spec/fixtures/rails5_users_app/features/support/env.rb +0 -4
  117. data/spec/fixtures/rails5_users_app/features/support/hooks.rb +0 -11
  118. data/spec/fixtures/rails5_users_app/features/support/steps.rb +0 -18
  119. data/spec/fixtures/rails5_users_app/lib/tasks/.keep +0 -0
  120. data/spec/fixtures/rails5_users_app/log/.keep +0 -0
  121. data/spec/fixtures/rails5_users_app/public/robots.txt +0 -1
  122. data/spec/fixtures/rails5_users_app/spec/controllers/users_controller_api_spec.rb +0 -42
  123. data/spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb +0 -27
  124. data/spec/fixtures/rails5_users_app/spec/models/user_spec.rb +0 -29
  125. data/spec/fixtures/rails5_users_app/spec/rails_helper.rb +0 -57
  126. data/spec/fixtures/rails5_users_app/spec/spec_helper.rb +0 -96
  127. data/spec/fixtures/rails5_users_app/users_app/.gitignore +0 -20
  128. data/spec/fixtures/rails6_users_app/.dockerignore +0 -1
  129. data/spec/fixtures/rails6_users_app/.gitignore +0 -39
  130. data/spec/fixtures/rails6_users_app/.rspec +0 -1
  131. data/spec/fixtures/rails6_users_app/Gemfile +0 -28
  132. data/spec/fixtures/rails6_users_app/Rakefile +0 -6
  133. data/spec/fixtures/rails6_users_app/app/controllers/api/users_controller.rb +0 -28
  134. data/spec/fixtures/rails6_users_app/app/controllers/application_controller.rb +0 -2
  135. data/spec/fixtures/rails6_users_app/app/controllers/concerns/.keep +0 -0
  136. data/spec/fixtures/rails6_users_app/app/controllers/health_controller.rb +0 -5
  137. data/spec/fixtures/rails6_users_app/app/controllers/users_controller.rb +0 -21
  138. data/spec/fixtures/rails6_users_app/app/models/activerecord/user.rb +0 -18
  139. data/spec/fixtures/rails6_users_app/app/models/concerns/.keep +0 -0
  140. data/spec/fixtures/rails6_users_app/app/models/sequel/user.rb +0 -25
  141. data/spec/fixtures/rails6_users_app/app/views/layouts/application.html.haml +0 -7
  142. data/spec/fixtures/rails6_users_app/app/views/users/index.html.haml +0 -7
  143. data/spec/fixtures/rails6_users_app/appmap.yml +0 -14
  144. data/spec/fixtures/rails6_users_app/bin/appmap +0 -29
  145. data/spec/fixtures/rails6_users_app/bin/byebug +0 -29
  146. data/spec/fixtures/rails6_users_app/bin/gli +0 -29
  147. data/spec/fixtures/rails6_users_app/bin/htmldiff +0 -29
  148. data/spec/fixtures/rails6_users_app/bin/ldiff +0 -29
  149. data/spec/fixtures/rails6_users_app/bin/nokogiri +0 -29
  150. data/spec/fixtures/rails6_users_app/bin/rackup +0 -29
  151. data/spec/fixtures/rails6_users_app/bin/rails +0 -4
  152. data/spec/fixtures/rails6_users_app/bin/rake +0 -29
  153. data/spec/fixtures/rails6_users_app/bin/rspec +0 -29
  154. data/spec/fixtures/rails6_users_app/bin/ruby-parse +0 -29
  155. data/spec/fixtures/rails6_users_app/bin/ruby-rewrite +0 -29
  156. data/spec/fixtures/rails6_users_app/bin/sequel +0 -29
  157. data/spec/fixtures/rails6_users_app/bin/setup +0 -25
  158. data/spec/fixtures/rails6_users_app/bin/sprockets +0 -29
  159. data/spec/fixtures/rails6_users_app/bin/thor +0 -29
  160. data/spec/fixtures/rails6_users_app/bin/update +0 -25
  161. data/spec/fixtures/rails6_users_app/config/application.rb +0 -45
  162. data/spec/fixtures/rails6_users_app/config/boot.rb +0 -3
  163. data/spec/fixtures/rails6_users_app/config/credentials.yml.enc +0 -1
  164. data/spec/fixtures/rails6_users_app/config/database.yml +0 -1
  165. data/spec/fixtures/rails6_users_app/config/environment.rb +0 -5
  166. data/spec/fixtures/rails6_users_app/config/environments/development.rb +0 -40
  167. data/spec/fixtures/rails6_users_app/config/environments/production.rb +0 -68
  168. data/spec/fixtures/rails6_users_app/config/environments/test.rb +0 -39
  169. data/spec/fixtures/rails6_users_app/config/initializers/application_controller_renderer.rb +0 -8
  170. data/spec/fixtures/rails6_users_app/config/initializers/backtrace_silencers.rb +0 -7
  171. data/spec/fixtures/rails6_users_app/config/initializers/cors.rb +0 -16
  172. data/spec/fixtures/rails6_users_app/config/initializers/filter_parameter_logging.rb +0 -4
  173. data/spec/fixtures/rails6_users_app/config/initializers/inflections.rb +0 -16
  174. data/spec/fixtures/rails6_users_app/config/initializers/mime_types.rb +0 -4
  175. data/spec/fixtures/rails6_users_app/config/initializers/wrap_parameters.rb +0 -9
  176. data/spec/fixtures/rails6_users_app/config/locales/en.yml +0 -33
  177. data/spec/fixtures/rails6_users_app/config/routes.rb +0 -11
  178. data/spec/fixtures/rails6_users_app/config.ru +0 -5
  179. data/spec/fixtures/rails6_users_app/db/migrate/20190728211408_create_users.rb +0 -9
  180. data/spec/fixtures/rails6_users_app/db/schema.rb +0 -23
  181. data/spec/fixtures/rails6_users_app/features/api_users.feature +0 -13
  182. data/spec/fixtures/rails6_users_app/features/support/env.rb +0 -4
  183. data/spec/fixtures/rails6_users_app/features/support/hooks.rb +0 -11
  184. data/spec/fixtures/rails6_users_app/features/support/steps.rb +0 -18
  185. data/spec/fixtures/rails6_users_app/lib/tasks/.keep +0 -0
  186. data/spec/fixtures/rails6_users_app/lib/tasks/appmap.rake +0 -23
  187. data/spec/fixtures/rails6_users_app/log/.keep +0 -0
  188. data/spec/fixtures/rails6_users_app/package.json +0 -8
  189. data/spec/fixtures/rails6_users_app/public/robots.txt +0 -1
  190. data/spec/fixtures/rails6_users_app/spec/controllers/users_controller_api_spec.rb +0 -42
  191. data/spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb +0 -27
  192. data/spec/fixtures/rails6_users_app/spec/models/user_spec.rb +0 -29
  193. data/spec/fixtures/rails6_users_app/spec/rails_helper.rb +0 -57
  194. data/spec/fixtures/rails6_users_app/spec/spec_helper.rb +0 -96
  195. data/spec/fixtures/rails6_users_app/test/controllers/functional_calc_test.rb +0 -10
  196. data/spec/fixtures/rails6_users_app/test/integration/integration_calc_test.rb +0 -12
  197. data/spec/fixtures/rails6_users_app/users_app/.gitignore +0 -20
  198. data/spec/fixtures/rails6_users_app/yarn.lock +0 -2020
  199. data/spec/fixtures/rails7_users_app/.dockerignore +0 -1
  200. data/spec/fixtures/rails7_users_app/.gitattributes +0 -7
  201. data/spec/fixtures/rails7_users_app/.gitignore +0 -31
  202. data/spec/fixtures/rails7_users_app/.rspec +0 -1
  203. data/spec/fixtures/rails7_users_app/Gemfile +0 -75
  204. data/spec/fixtures/rails7_users_app/README.md +0 -24
  205. data/spec/fixtures/rails7_users_app/Rakefile +0 -6
  206. data/spec/fixtures/rails7_users_app/app/assets/config/manifest.js +0 -4
  207. data/spec/fixtures/rails7_users_app/app/assets/images/.keep +0 -0
  208. data/spec/fixtures/rails7_users_app/app/assets/stylesheets/application.css +0 -15
  209. data/spec/fixtures/rails7_users_app/app/channels/application_cable/channel.rb +0 -4
  210. data/spec/fixtures/rails7_users_app/app/channels/application_cable/connection.rb +0 -4
  211. data/spec/fixtures/rails7_users_app/app/controllers/application_controller.rb +0 -2
  212. data/spec/fixtures/rails7_users_app/app/controllers/concerns/.keep +0 -0
  213. data/spec/fixtures/rails7_users_app/app/helpers/application_helper.rb +0 -2
  214. data/spec/fixtures/rails7_users_app/app/javascript/application.js +0 -3
  215. data/spec/fixtures/rails7_users_app/app/javascript/controllers/application.js +0 -9
  216. data/spec/fixtures/rails7_users_app/app/javascript/controllers/hello_controller.js +0 -7
  217. data/spec/fixtures/rails7_users_app/app/javascript/controllers/index.js +0 -11
  218. data/spec/fixtures/rails7_users_app/app/jobs/application_job.rb +0 -7
  219. data/spec/fixtures/rails7_users_app/app/mailers/application_mailer.rb +0 -4
  220. data/spec/fixtures/rails7_users_app/app/models/application_record.rb +0 -3
  221. data/spec/fixtures/rails7_users_app/app/models/concerns/.keep +0 -0
  222. data/spec/fixtures/rails7_users_app/app/models/instance.rb +0 -7
  223. data/spec/fixtures/rails7_users_app/app/models/instructor.rb +0 -7
  224. data/spec/fixtures/rails7_users_app/app/views/layouts/application.html.erb +0 -16
  225. data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.html.erb +0 -13
  226. data/spec/fixtures/rails7_users_app/app/views/layouts/mailer.text.erb +0 -1
  227. data/spec/fixtures/rails7_users_app/appmap.yml +0 -3
  228. data/spec/fixtures/rails7_users_app/bin/bundle +0 -114
  229. data/spec/fixtures/rails7_users_app/bin/importmap +0 -4
  230. data/spec/fixtures/rails7_users_app/bin/rails +0 -4
  231. data/spec/fixtures/rails7_users_app/bin/rake +0 -4
  232. data/spec/fixtures/rails7_users_app/bin/setup +0 -33
  233. data/spec/fixtures/rails7_users_app/config/application.rb +0 -22
  234. data/spec/fixtures/rails7_users_app/config/boot.rb +0 -4
  235. data/spec/fixtures/rails7_users_app/config/cable.yml +0 -10
  236. data/spec/fixtures/rails7_users_app/config/credentials.yml.enc +0 -1
  237. data/spec/fixtures/rails7_users_app/config/database.yml +0 -1
  238. data/spec/fixtures/rails7_users_app/config/environment.rb +0 -5
  239. data/spec/fixtures/rails7_users_app/config/environments/development.rb +0 -70
  240. data/spec/fixtures/rails7_users_app/config/environments/production.rb +0 -93
  241. data/spec/fixtures/rails7_users_app/config/environments/test.rb +0 -60
  242. data/spec/fixtures/rails7_users_app/config/importmap.rb +0 -7
  243. data/spec/fixtures/rails7_users_app/config/initializers/assets.rb +0 -12
  244. data/spec/fixtures/rails7_users_app/config/initializers/content_security_policy.rb +0 -26
  245. data/spec/fixtures/rails7_users_app/config/initializers/filter_parameter_logging.rb +0 -8
  246. data/spec/fixtures/rails7_users_app/config/initializers/inflections.rb +0 -16
  247. data/spec/fixtures/rails7_users_app/config/initializers/permissions_policy.rb +0 -11
  248. data/spec/fixtures/rails7_users_app/config/locales/en.yml +0 -33
  249. data/spec/fixtures/rails7_users_app/config/puma.rb +0 -43
  250. data/spec/fixtures/rails7_users_app/config/routes.rb +0 -6
  251. data/spec/fixtures/rails7_users_app/config/storage.yml +0 -34
  252. data/spec/fixtures/rails7_users_app/config.ru +0 -6
  253. data/spec/fixtures/rails7_users_app/db/migrate/20220328093141_create_instances.rb +0 -8
  254. data/spec/fixtures/rails7_users_app/db/migrate/20220328093154_create_instructors.rb +0 -8
  255. data/spec/fixtures/rails7_users_app/db/schema.rb +0 -27
  256. data/spec/fixtures/rails7_users_app/db/seeds.rb +0 -7
  257. data/spec/fixtures/rails7_users_app/lib/assets/.keep +0 -0
  258. data/spec/fixtures/rails7_users_app/lib/tasks/.keep +0 -0
  259. data/spec/fixtures/rails7_users_app/log/.keep +0 -0
  260. data/spec/fixtures/rails7_users_app/public/404.html +0 -67
  261. data/spec/fixtures/rails7_users_app/public/422.html +0 -67
  262. data/spec/fixtures/rails7_users_app/public/500.html +0 -66
  263. data/spec/fixtures/rails7_users_app/public/apple-touch-icon-precomposed.png +0 -0
  264. data/spec/fixtures/rails7_users_app/public/apple-touch-icon.png +0 -0
  265. data/spec/fixtures/rails7_users_app/public/favicon.ico +0 -0
  266. data/spec/fixtures/rails7_users_app/public/robots.txt +0 -1
  267. data/spec/fixtures/rails7_users_app/storage/.keep +0 -0
  268. data/spec/fixtures/rails7_users_app/test/application_system_test_case.rb +0 -5
  269. data/spec/fixtures/rails7_users_app/test/channels/application_cable/connection_test.rb +0 -11
  270. data/spec/fixtures/rails7_users_app/test/controllers/.keep +0 -0
  271. data/spec/fixtures/rails7_users_app/test/fixtures/files/.keep +0 -0
  272. data/spec/fixtures/rails7_users_app/test/fixtures/instances.yml +0 -11
  273. data/spec/fixtures/rails7_users_app/test/fixtures/instructors.yml +0 -11
  274. data/spec/fixtures/rails7_users_app/test/helpers/.keep +0 -0
  275. data/spec/fixtures/rails7_users_app/test/integration/.keep +0 -0
  276. data/spec/fixtures/rails7_users_app/test/mailers/.keep +0 -0
  277. data/spec/fixtures/rails7_users_app/test/models/.keep +0 -0
  278. data/spec/fixtures/rails7_users_app/test/models/instance_test.rb +0 -6
  279. data/spec/fixtures/rails7_users_app/test/models/instructor_test.rb +0 -7
  280. data/spec/fixtures/rails7_users_app/test/system/.keep +0 -0
  281. data/spec/fixtures/rails7_users_app/test/test_helper.rb +0 -13
  282. data/spec/handler/class_with_eval.rb +0 -13
  283. data/spec/handler/eval_spec.rb +0 -73
  284. data/spec/hook_spec.rb +0 -1216
  285. data/spec/open_spec.rb +0 -19
  286. data/spec/rails_recording_spec.rb +0 -281
  287. data/spec/rails_spec_helper.rb +0 -107
  288. data/spec/rails_test_spec.rb +0 -35
  289. data/spec/railtie_spec.rb +0 -25
  290. data/spec/record_net_http_spec.rb +0 -161
  291. data/spec/record_sql_rails_pg_spec.rb +0 -59
  292. data/spec/remote_recording_spec.rb +0 -108
  293. data/spec/service/config_analyzer_spec.rb +0 -102
  294. data/spec/service/integration_test_path_finder_spec.rb +0 -24
  295. data/spec/service/validator/violation_spec.rb +0 -68
  296. data/spec/spec_helper.rb +0 -37
  297. data/spec/swagger/swagger_spec.rb +0 -85
  298. data/spec/util_spec.rb +0 -38
  299. data/test/agent_setup_init_test.rb +0 -39
  300. data/test/agent_setup_status_test.rb +0 -84
  301. data/test/agent_setup_validate_test.rb +0 -102
  302. data/test/bundle_vendor_test.rb +0 -35
  303. data/test/cucumber_test.rb +0 -72
  304. data/test/expectations/openssl_test_key_sign1.json +0 -53
  305. data/test/expectations/openssl_test_key_sign2-3.1.json +0 -53
  306. data/test/expectations/openssl_test_key_sign2.json +0 -58
  307. data/test/fixtures/bundle_vendor_app/Gemfile +0 -8
  308. data/test/fixtures/bundle_vendor_app/appmap.yml +0 -4
  309. data/test/fixtures/bundle_vendor_app/cli.rb +0 -54
  310. data/test/fixtures/cli_record_test/appmap.yml +0 -3
  311. data/test/fixtures/cli_record_test/lib/cli_record_test/main.rb +0 -9
  312. data/test/fixtures/cucumber4_recorder/Gemfile +0 -5
  313. data/test/fixtures/cucumber4_recorder/appmap.yml +0 -3
  314. data/test/fixtures/cucumber4_recorder/features/say_hello.feature +0 -5
  315. data/test/fixtures/cucumber4_recorder/features/support/env.rb +0 -5
  316. data/test/fixtures/cucumber4_recorder/features/support/hooks.rb +0 -11
  317. data/test/fixtures/cucumber4_recorder/features/support/steps.rb +0 -9
  318. data/test/fixtures/cucumber4_recorder/lib/hello.rb +0 -7
  319. data/test/fixtures/cucumber_recorder/Gemfile +0 -5
  320. data/test/fixtures/cucumber_recorder/appmap.yml +0 -3
  321. data/test/fixtures/cucumber_recorder/features/say_hello.feature +0 -5
  322. data/test/fixtures/cucumber_recorder/features/support/env.rb +0 -5
  323. data/test/fixtures/cucumber_recorder/features/support/hooks.rb +0 -11
  324. data/test/fixtures/cucumber_recorder/features/support/steps.rb +0 -9
  325. data/test/fixtures/cucumber_recorder/lib/hello.rb +0 -7
  326. data/test/fixtures/gem_test/Gemfile +0 -7
  327. data/test/fixtures/gem_test/appmap.yml +0 -3
  328. data/test/fixtures/gem_test/test/parser_test.rb +0 -12
  329. data/test/fixtures/minitest_recorder/Gemfile +0 -5
  330. data/test/fixtures/minitest_recorder/appmap.yml +0 -3
  331. data/test/fixtures/minitest_recorder/lib/hello.rb +0 -5
  332. data/test/fixtures/minitest_recorder/test/hello_test.rb +0 -12
  333. data/test/fixtures/mocha_mock_app/Gemfile +0 -5
  334. data/test/fixtures/mocha_mock_app/appmap.yml +0 -5
  335. data/test/fixtures/mocha_mock_app/lib/sheep.rb +0 -5
  336. data/test/fixtures/mocha_mock_app/test/sheep_test.rb +0 -18
  337. data/test/fixtures/openssl_recorder/Gemfile +0 -3
  338. data/test/fixtures/openssl_recorder/appmap.yml +0 -3
  339. data/test/fixtures/openssl_recorder/lib/openssl_cert_sign.rb +0 -94
  340. data/test/fixtures/openssl_recorder/lib/openssl_encrypt.rb +0 -34
  341. data/test/fixtures/openssl_recorder/lib/openssl_key_sign.rb +0 -28
  342. data/test/fixtures/process_recorder/appmap.yml +0 -3
  343. data/test/fixtures/process_recorder/hello.rb +0 -9
  344. data/test/fixtures/rspec_recorder/Gemfile +0 -5
  345. data/test/fixtures/rspec_recorder/appmap.yml +0 -3
  346. data/test/fixtures/rspec_recorder/lib/hello.rb +0 -5
  347. data/test/fixtures/rspec_recorder/spec/decorated_hello_spec.rb +0 -21
  348. data/test/fixtures/rspec_recorder/spec/labeled_hello_spec.rb +0 -9
  349. data/test/fixtures/rspec_recorder/spec/plain_hello_spec.rb +0 -9
  350. data/test/gem_test.rb +0 -35
  351. data/test/inspect_cli_test.rb +0 -12
  352. data/test/minitest_test.rb +0 -37
  353. data/test/mock_compatibility_test.rb +0 -45
  354. data/test/openssl_test.rb +0 -54
  355. data/test/record_process_test.rb +0 -35
  356. data/test/rspec_test.rb +0 -63
  357. data/test/test_helper.rb +0 -8
File without changes
File without changes
@@ -1 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -1,42 +0,0 @@
1
- require 'rails_helper'
2
- require 'rack/test'
3
-
4
- RSpec.describe Api::UsersController, type: :controller do
5
- describe 'POST /api/users' do
6
- describe 'with required parameters' do
7
- it 'creates a user' do
8
- post :create, params: { login: 'alice', password: 'foobar' }
9
- expect(response.status).to eq(201)
10
- end
11
- describe 'with object-style parameters' do
12
- it 'creates a user' do
13
- post :create, params: { user: { login: 'alice', password: 'foobar' } }
14
- expect(response.status).to eq(201)
15
- end
16
- end
17
- end
18
- describe 'with a missing parameter' do
19
- it 'reports error 422' do
20
- post :create, params: {}
21
- expect(response.status).to eq(422)
22
- end
23
- end
24
- end
25
- describe 'GET /api/users' do
26
- before do
27
- post :create, params: { login: 'alice' }
28
- end
29
- it 'lists the users' do
30
- get :index, params: {}
31
- users = JSON.parse(response.body)
32
- expect(users.map { |r| r['login'] }).to include('alice')
33
- end
34
- describe 'with a custom header' do
35
- it 'lists the users' do
36
- request.headers['X-Sandwich'] = 'turkey'
37
- get :index, params: {}
38
- expect(response.status).to eq(200)
39
- end
40
- end
41
- end
42
- end
@@ -1,27 +0,0 @@
1
- require 'rails_helper'
2
- require 'rack/test'
3
-
4
- RSpec.describe UsersController, type: :controller do
5
- render_views
6
-
7
- describe 'GET /users' do
8
- before do
9
- User.create login: 'alice'
10
- end
11
- it 'lists the users' do
12
- get :index
13
- expect(response).to be_ok
14
- end
15
- end
16
-
17
- describe 'GET /users/:login' do
18
- before do
19
- User.create login: 'alice'
20
- end
21
-
22
- it 'shows the user' do
23
- get :show, params: { id: 'alice' }
24
- expect(response).to be_ok
25
- end
26
- end
27
- end
@@ -1,29 +0,0 @@
1
- require 'rails_helper'
2
-
3
- describe User do
4
- # TODO: appmap/rspec doesn't handle shared_examples_for 100% correctly yet.
5
- # In my tests, only one of these two tests will be emitted as an appmap.
6
- shared_examples_for 'creates the user' do |username|
7
- let(:login) { username }
8
- let(:user) { User.new(login: login) }
9
- it "creates #{username.inspect}" do
10
- expect(user.save(raise_on_failure: true)).to be_truthy
11
- end
12
- end
13
-
14
- describe 'creation' do
15
- # So, instead of shared_examples_for, let's go with a simple method
16
- # containing the assertions. The method can be called from within an example.
17
- def save_and_verify
18
- expect(user.save(raise_on_failure: true)).to be_truthy
19
- end
20
-
21
- context do
22
- let(:login) { 'charles' }
23
- let(:user) { User.new(login: login) }
24
- it "creates 'charles'" do
25
- save_and_verify
26
- end
27
- end
28
- end
29
- end
@@ -1,57 +0,0 @@
1
- # This file is copied to spec/ when you run 'rails generate rspec:install'
2
- require 'spec_helper'
3
- ENV['RAILS_ENV'] ||= 'test'
4
- require File.expand_path('../../config/environment', __FILE__)
5
- # Prevent database truncation if the environment is production
6
- abort("The Rails environment is running in production mode!") if Rails.env.production?
7
- require 'rspec/rails'
8
- # Add additional requires below this line. Rails is not loaded until this point!
9
-
10
- # Requires supporting ruby files with custom matchers and macros, etc, in
11
- # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
12
- # run as spec files by default. This means that files in spec/support that end
13
- # in _spec.rb will both be required and run as specs, causing the specs to be
14
- # run twice. It is recommended that you do not name files matching this glob to
15
- # end with _spec.rb. You can configure this pattern with the --pattern
16
- # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
17
- #
18
- # The following line is provided for convenience purposes. It has the downside
19
- # of increasing the boot-up time by auto-requiring all files in the support
20
- # directory. Alternatively, in the individual `*_spec.rb` files, manually
21
- # require only the support files necessary.
22
- #
23
- # Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
24
-
25
- RSpec.configure do |config|
26
- # RSpec Rails can automatically mix in different behaviours to your tests
27
- # based on their file location, for example enabling you to call `get` and
28
- # `post` in specs under `spec/controllers`.
29
- #
30
- # You can disable this behaviour by removing the line below, and instead
31
- # explicitly tag your specs with their type, e.g.:
32
- #
33
- # RSpec.describe UsersController, :type => :controller do
34
- # # ...
35
- # end
36
- #
37
- # The different available types are documented in the features, such as in
38
- # https://relishapp.com/rspec/rspec-rails/docs
39
- config.infer_spec_type_from_file_location!
40
-
41
- # Filter lines from Rails gems in backtraces.
42
- config.filter_rails_from_backtrace!
43
- # arbitrary gems may also be filtered via:
44
- # config.filter_gems_from_backtrace("gem name")
45
-
46
- DatabaseCleaner.allow_remote_database_url = true
47
-
48
- config.before(:suite) do
49
- DatabaseCleaner.strategy = :transaction
50
- end
51
-
52
- config.around :each do |example|
53
- DatabaseCleaner.cleaning do
54
- example.run
55
- end
56
- end
57
- end
@@ -1,96 +0,0 @@
1
- # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # The generated `.rspec` file contains `--require spec_helper` which will cause
4
- # this file to always be loaded, without a need to explicitly require it in any
5
- # files.
6
- #
7
- # Given that it is always loaded, you are encouraged to keep this file as
8
- # light-weight as possible. Requiring heavyweight dependencies from this file
9
- # will add to the boot time of your test suite on EVERY test run, even for an
10
- # individual file that may not need all of that loaded. Instead, consider making
11
- # a separate helper file that requires the additional dependencies and performs
12
- # the additional setup, and require it from the spec files that actually need
13
- # it.
14
- #
15
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
- RSpec.configure do |config|
17
- # rspec-expectations config goes here. You can use an alternate
18
- # assertion/expectation library such as wrong or the stdlib/minitest
19
- # assertions if you prefer.
20
- config.expect_with :rspec do |expectations|
21
- # This option will default to `true` in RSpec 4. It makes the `description`
22
- # and `failure_message` of custom matchers include text for helper methods
23
- # defined using `chain`, e.g.:
24
- # be_bigger_than(2).and_smaller_than(4).description
25
- # # => "be bigger than 2 and smaller than 4"
26
- # ...rather than:
27
- # # => "be bigger than 2"
28
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
29
- end
30
-
31
- # rspec-mocks config goes here. You can use an alternate test double
32
- # library (such as bogus or mocha) by changing the `mock_with` option here.
33
- config.mock_with :rspec do |mocks|
34
- # Prevents you from mocking or stubbing a method that does not exist on
35
- # a real object. This is generally recommended, and will default to
36
- # `true` in RSpec 4.
37
- mocks.verify_partial_doubles = true
38
- end
39
-
40
- # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
41
- # have no way to turn it off -- the option exists only for backwards
42
- # compatibility in RSpec 3). It causes shared context metadata to be
43
- # inherited by the metadata hash of host groups and examples, rather than
44
- # triggering implicit auto-inclusion in groups with matching metadata.
45
- config.shared_context_metadata_behavior = :apply_to_host_groups
46
-
47
- # The settings below are suggested to provide a good initial experience
48
- # with RSpec, but feel free to customize to your heart's content.
49
- =begin
50
- # This allows you to limit a spec run to individual examples or groups
51
- # you care about by tagging them with `:focus` metadata. When nothing
52
- # is tagged with `:focus`, all examples get run. RSpec also provides
53
- # aliases for `it`, `describe`, and `context` that include `:focus`
54
- # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
55
- config.filter_run_when_matching :focus
56
-
57
- # Allows RSpec to persist some state between runs in order to support
58
- # the `--only-failures` and `--next-failure` CLI options. We recommend
59
- # you configure your source control system to ignore this file.
60
- config.example_status_persistence_file_path = "spec/examples.txt"
61
-
62
- # Limits the available syntax to the non-monkey patched syntax that is
63
- # recommended. For more details, see:
64
- # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
65
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
66
- # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
67
- config.disable_monkey_patching!
68
-
69
- # Many RSpec users commonly either run the entire suite or an individual
70
- # file, and it's useful to allow more verbose output when running an
71
- # individual spec file.
72
- if config.files_to_run.one?
73
- # Use the documentation formatter for detailed output,
74
- # unless a formatter has already been configured
75
- # (e.g. via a command-line flag).
76
- config.default_formatter = "doc"
77
- end
78
-
79
- # Print the 10 slowest examples and example groups at the
80
- # end of the spec run, to help surface which specs are running
81
- # particularly slow.
82
- config.profile_examples = 10
83
-
84
- # Run specs in random order to surface order dependencies. If you find an
85
- # order dependency and want to debug it, you can fix the order by providing
86
- # the seed, which is printed after each run.
87
- # --seed 1234
88
- config.order = :random
89
-
90
- # Seed global randomization in this process using the `--seed` CLI option.
91
- # Setting this allows you to use `--seed` to deterministically reproduce
92
- # test failures related to randomization by passing the same `--seed` value
93
- # as the one that triggered the failure.
94
- Kernel.srand config.seed
95
- =end
96
- end
@@ -1,20 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore all logfiles and tempfiles.
11
- /log/*
12
- /tmp/*
13
- !/log/.keep
14
- !/tmp/.keep
15
-
16
-
17
- .byebug_history
18
-
19
- # Ignore master key for decrypting credentials and more.
20
- /config/master.key
@@ -1 +0,0 @@
1
- Gemfile.lock
@@ -1,39 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
- vendor
10
-
11
- # Ignore all logfiles and tempfiles.
12
- /log/*
13
- /tmp/*
14
- !/log/.keep
15
- !/tmp/.keep
16
-
17
- # Ignore uploaded files in development
18
- /storage/*
19
- !/storage/.keep
20
-
21
- /node_modules
22
- /yarn-error.log
23
-
24
- /public/assets
25
- .byebug_history
26
-
27
- # Ignore master key for decrypting credentials and more.
28
- /config/master.key
29
-
30
- # Other
31
- .DS_Store
32
- .appmap
33
- appmap.json
34
- appmap-recording-*.json
35
- capybara-*.html
36
-
37
- # appmap gem is pre-installed, don't lock to a version
38
- Gemfile.lock
39
-
@@ -1 +0,0 @@
1
- --require spec_helper
@@ -1,28 +0,0 @@
1
- source 'https://rubygems.org'
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- gem 'rails', '~> 6'
5
-
6
- gem 'haml-rails'
7
-
8
- gem 'activerecord', require: false
9
- gem 'pg'
10
- gem 'sequel', '>= 5.43.0', require: false
11
- gem 'sequel-rails', require: false
12
- gem 'sequel_secure_password', require: false
13
-
14
- group :development, :test do
15
- gem 'appmap', path: '../../..'
16
- gem 'cucumber-rails', require: false
17
- gem 'rspec-rails'
18
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
19
- gem 'pry-byebug'
20
- end
21
-
22
- group :test do
23
- gem 'database_cleaner-active_record', require: false
24
- gem 'database_cleaner-sequel', require: false
25
- end
26
-
27
- group :development do
28
- end
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,28 +0,0 @@
1
- module Api
2
- class UsersController < ActionController::API
3
- def index
4
- @users = User.all
5
- render json: @users
6
- end
7
-
8
- def create
9
- params = self.params.key?(:user) ? self.params[:user] : self.params
10
- @user = build_user(params.slice(:login).to_unsafe_h)
11
- unless @user.valid?
12
- error = {
13
- code: 'invalid',
14
- target: 'User',
15
- message: @user.errors.full_messages.join(', '),
16
- details: @user.errors.map { |k, v| { code: 'invalid', target: k, message: Array(v).join(', ') } }
17
- }
18
- return render json: error, status: :unprocessable_entity
19
- end
20
- @user.save
21
- render json: @user, status: :created
22
- end
23
-
24
- def build_user(params)
25
- User.new(params)
26
- end
27
- end
28
- end
@@ -1,2 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- end
@@ -1,5 +0,0 @@
1
- class HealthController < ActionController::API
2
- def show
3
- render nothing: true, status: 204
4
- end
5
- end
@@ -1,21 +0,0 @@
1
- class UsersController < ApplicationController
2
- def index
3
- @users = User.all
4
- end
5
-
6
- def show
7
- find_user = lambda do |id|
8
- if User.respond_to?(:[])
9
- User[login: id]
10
- else
11
- User.find_by_login!(id)
12
- end
13
- end
14
-
15
- if (@user = find_user.(params[:id]))
16
- render plain: @user
17
- else
18
- render plain: 'Not found', status: 404
19
- end
20
- end
21
- end
@@ -1,18 +0,0 @@
1
- class User < ActiveRecord::Base
2
- has_secure_password validations: false
3
- validates_presence_of :login
4
- validates_confirmation_of :password, if: -> { password_provided? }
5
-
6
- def authenticate(unencrypted)
7
- # Just be extra sure that empty passwords aren't accepted
8
- return false if unencrypted.blank? || password.blank?
9
-
10
- super
11
- end
12
-
13
- protected
14
-
15
- def password_provided?
16
- !(password.blank? && password_confirmation.blank?)
17
- end
18
- end
@@ -1,25 +0,0 @@
1
- class User < Sequel::Model(:users)
2
- plugin :secure_password, cost: 12, include_validations: false
3
- plugin :validation_helpers
4
-
5
- def authenticate(unencrypted)
6
- # Just be extra sure that empty passwords aren't accepted
7
- return false if unencrypted.blank? || password.blank?
8
-
9
- super
10
- end
11
-
12
- def validate
13
- super
14
-
15
- errors.add :password, 'doesn\'t match confirmation' if password_provided? && password != password_confirmation
16
-
17
- validates_presence %i[login]
18
- end
19
-
20
- protected
21
-
22
- def password_provided?
23
- !(password.blank? && password_confirmation.blank?)
24
- end
25
- end
@@ -1,7 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %meta{:content => "text/html; charset=UTF-8", "http-equiv" => "Content-Type"}/
5
- %title Rails Users App
6
- %body
7
- = yield
@@ -1,7 +0,0 @@
1
- %h1{style: 'margin-top: 2em'}
2
- = pluralize @users.size, 'user'
3
-
4
- %ul
5
- - for user in @users
6
- %li
7
- = user.login
@@ -1,14 +0,0 @@
1
- name: rails6_users_app
2
- packages:
3
- - path: app/models
4
- labels: [ mvc.model ]
5
- - path: app/controllers
6
- labels: [ mvc.controller ]
7
- - gem: sequel
8
- functions:
9
- - name: logger/Logger::LogDevice#write
10
- builtin: true
11
- label: log
12
- swagger:
13
- project_version: 1.1.0
14
- output_dir: tmp/swagger
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'appmap' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("appmap", "appmap")
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'byebug' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("byebug", "byebug")
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'gli' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("gli", "gli")
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'htmldiff' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("diff-lcs", "htmldiff")
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- #
5
- # This file was generated by Bundler.
6
- #
7
- # The application 'ldiff' is installed as part of a gem, and
8
- # this file is here to facilitate running it.
9
- #
10
-
11
- require "pathname"
12
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
- Pathname.new(__FILE__).realpath)
14
-
15
- bundle_binstub = File.expand_path("../bundle", __FILE__)
16
-
17
- if File.file?(bundle_binstub)
18
- if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
- load(bundle_binstub)
20
- else
21
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
- end
24
- end
25
-
26
- require "rubygems"
27
- require "bundler/setup"
28
-
29
- load Gem.bin_path("diff-lcs", "ldiff")