codependency 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/.pryrc +2 -0
  2. data/README.md +5 -2
  3. data/lib/codependency/graph.rb +12 -13
  4. data/lib/codependency/version.rb +1 -1
  5. data/spec/codependency/graph_spec.rb +51 -72
  6. data/spec/codependency/graph_spec/codependency_graph/files/assets/application_js.txt +6 -0
  7. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_account_js.txt +3 -0
  8. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_history_js.txt +3 -0
  9. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_user_js.txt +5 -0
  10. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/butter_js.txt +3 -0
  11. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/egg_js.txt +4 -0
  12. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/sandwich_js.txt +6 -0
  13. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/toast_js.txt +4 -0
  14. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/body_rb.txt +3 -0
  15. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/earth_rb.txt +5 -0
  16. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/mars_rb.txt +5 -0
  17. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/phobos_rb.txt +6 -0
  18. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/planet_rb.txt +4 -0
  19. data/spec/codependency/graph_spec/codependency_graph/require/assets/application_js.txt +11 -0
  20. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_account_js.txt +3 -0
  21. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_history_js.txt +3 -0
  22. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_user_js.txt +8 -0
  23. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/butter_js.txt +3 -0
  24. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/egg_js.txt +6 -0
  25. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/sandwich_js.txt +13 -0
  26. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/toast_js.txt +6 -0
  27. data/spec/codependency/graph_spec/codependency_graph/require/lox/money_rb.txt +11 -0
  28. data/spec/codependency/graph_spec/codependency_graph/require/lox/power_rb.txt +11 -0
  29. data/spec/codependency/graph_spec/codependency_graph/require/lox/respect_rb.txt +11 -0
  30. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/body_rb.txt +3 -0
  31. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/earth_rb.txt +9 -0
  32. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/mars_rb.txt +9 -0
  33. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/phobos_rb.txt +13 -0
  34. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/planet_rb.txt +6 -0
  35. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/application_js.txt +6 -0
  36. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_account_js.txt +3 -0
  37. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_history_js.txt +3 -0
  38. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_user_js.txt +5 -0
  39. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/butter_js.txt +3 -0
  40. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/egg_js.txt +4 -0
  41. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/sandwich_js.txt +6 -0
  42. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/toast_js.txt +4 -0
  43. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/body_rb.txt +3 -0
  44. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/earth_rb.txt +5 -0
  45. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/mars_rb.txt +5 -0
  46. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/phobos_rb.txt +6 -0
  47. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/planet_rb.txt +4 -0
  48. data/spec/support/approvals.rb +13 -0
  49. metadata +87 -86
  50. data/spec/codependency/graph_spec/codependency_graph/files/assets/application.txt +0 -6
  51. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_account.txt +0 -3
  52. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_history.txt +0 -3
  53. data/spec/codependency/graph_spec/codependency_graph/files/assets/templates_user.txt +0 -5
  54. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/butter.txt +0 -3
  55. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/egg.txt +0 -4
  56. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/sandwich.txt +0 -6
  57. data/spec/codependency/graph_spec/codependency_graph/files/breakfast/toast.txt +0 -4
  58. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/body.txt +0 -3
  59. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/earth.txt +0 -5
  60. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/mars.txt +0 -5
  61. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/phobos.txt +0 -6
  62. data/spec/codependency/graph_spec/codependency_graph/files/solar_system/planet.txt +0 -4
  63. data/spec/codependency/graph_spec/codependency_graph/require/assets/application.txt +0 -11
  64. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_account.txt +0 -3
  65. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_history.txt +0 -3
  66. data/spec/codependency/graph_spec/codependency_graph/require/assets/templates_user.txt +0 -8
  67. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/butter.txt +0 -3
  68. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/egg.txt +0 -6
  69. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/sandwich.txt +0 -13
  70. data/spec/codependency/graph_spec/codependency_graph/require/breakfast/toast.txt +0 -6
  71. data/spec/codependency/graph_spec/codependency_graph/require/lox/money.txt +0 -11
  72. data/spec/codependency/graph_spec/codependency_graph/require/lox/power.txt +0 -11
  73. data/spec/codependency/graph_spec/codependency_graph/require/lox/respect.txt +0 -11
  74. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/body.txt +0 -3
  75. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/earth.txt +0 -9
  76. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/mars.txt +0 -9
  77. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/phobos.txt +0 -13
  78. data/spec/codependency/graph_spec/codependency_graph/require/solar_system/planet.txt +0 -6
  79. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/application.txt +0 -6
  80. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_account.txt +0 -3
  81. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_history.txt +0 -3
  82. data/spec/codependency/graph_spec/codependency_graph/tsort/assets/templates_user.txt +0 -5
  83. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/butter.txt +0 -3
  84. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/egg.txt +0 -4
  85. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/sandwich.txt +0 -6
  86. data/spec/codependency/graph_spec/codependency_graph/tsort/breakfast/toast.txt +0 -4
  87. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/body.txt +0 -3
  88. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/earth.txt +0 -5
  89. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/mars.txt +0 -5
  90. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/phobos.txt +0 -6
  91. data/spec/codependency/graph_spec/codependency_graph/tsort/solar_system/planet.txt +0 -4
@@ -1,6 +0,0 @@
1
- {
2
- "breakfast/toast" => [
3
- [0] "breakfast/butter"
4
- ],
5
- "breakfast/butter" => []
6
- }
@@ -1,11 +0,0 @@
1
- {
2
- "lox/money" => [
3
- [0] "lox/power"
4
- ],
5
- "lox/power" => [
6
- [0] "lox/respect"
7
- ],
8
- "lox/respect" => [
9
- [0] "lox/money"
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "lox/power" => [
3
- [0] "lox/respect"
4
- ],
5
- "lox/respect" => [
6
- [0] "lox/money"
7
- ],
8
- "lox/money" => [
9
- [0] "lox/power"
10
- ]
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "lox/respect" => [
3
- [0] "lox/money"
4
- ],
5
- "lox/money" => [
6
- [0] "lox/power"
7
- ],
8
- "lox/power" => [
9
- [0] "lox/respect"
10
- ]
11
- }
@@ -1,9 +0,0 @@
1
- {
2
- "solar_system/earth" => [
3
- [0] "solar_system/planet"
4
- ],
5
- "solar_system/planet" => [
6
- [0] "solar_system/body"
7
- ],
8
- "solar_system/body" => []
9
- }
@@ -1,9 +0,0 @@
1
- {
2
- "solar_system/mars" => [
3
- [0] "solar_system/planet"
4
- ],
5
- "solar_system/planet" => [
6
- [0] "solar_system/body"
7
- ],
8
- "solar_system/body" => []
9
- }
@@ -1,13 +0,0 @@
1
- {
2
- "solar_system/phobos" => [
3
- [0] "solar_system/body",
4
- [1] "solar_system/mars"
5
- ],
6
- "solar_system/body" => [],
7
- "solar_system/mars" => [
8
- [0] "solar_system/planet"
9
- ],
10
- "solar_system/planet" => [
11
- [0] "solar_system/body"
12
- ]
13
- }
@@ -1,6 +0,0 @@
1
- {
2
- "solar_system/planet" => [
3
- [0] "solar_system/body"
4
- ],
5
- "solar_system/body" => []
6
- }
@@ -1,6 +0,0 @@
1
- [
2
- [0] "assets/templates/history",
3
- [1] "assets/templates/account",
4
- [2] "assets/templates/user",
5
- [3] "assets/application"
6
- ]
@@ -1,3 +0,0 @@
1
- [
2
- [0] "assets/templates/account"
3
- ]
@@ -1,3 +0,0 @@
1
- [
2
- [0] "assets/templates/history"
3
- ]
@@ -1,5 +0,0 @@
1
- [
2
- [0] "assets/templates/history",
3
- [1] "assets/templates/account",
4
- [2] "assets/templates/user"
5
- ]
@@ -1,4 +0,0 @@
1
- [
2
- [0] "breakfast/butter",
3
- [1] "breakfast/egg"
4
- ]
@@ -1,6 +0,0 @@
1
- [
2
- [0] "breakfast/butter",
3
- [1] "breakfast/egg",
4
- [2] "breakfast/toast",
5
- [3] "breakfast/sandwich"
6
- ]
@@ -1,4 +0,0 @@
1
- [
2
- [0] "breakfast/butter",
3
- [1] "breakfast/toast"
4
- ]
@@ -1,5 +0,0 @@
1
- [
2
- [0] "solar_system/body",
3
- [1] "solar_system/planet",
4
- [2] "solar_system/earth"
5
- ]
@@ -1,5 +0,0 @@
1
- [
2
- [0] "solar_system/body",
3
- [1] "solar_system/planet",
4
- [2] "solar_system/mars"
5
- ]
@@ -1,6 +0,0 @@
1
- [
2
- [0] "solar_system/body",
3
- [1] "solar_system/planet",
4
- [2] "solar_system/mars",
5
- [3] "solar_system/phobos"
6
- ]
@@ -1,4 +0,0 @@
1
- [
2
- [0] "solar_system/body",
3
- [1] "solar_system/planet"
4
- ]