elm-rails 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (591) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +7 -0
  3. data/lib/elm/rails/helper.rb +53 -0
  4. data/lib/elm/rails/railtie.rb +29 -0
  5. data/lib/elm/rails/sprockets.rb +62 -0
  6. data/lib/elm/rails/version.rb +1 -1
  7. data/lib/elm/rails.rb +2 -0
  8. data/lib/elm-rails.rb +1 -3
  9. data/test/pipeline_test.rb +19 -0
  10. data/test/rails4.2/Gemfile +50 -0
  11. data/test/rails4.2/Gemfile.lock +170 -0
  12. data/test/rails4.2/README.rdoc +28 -0
  13. data/test/rails4.2/Rakefile +6 -0
  14. data/test/rails4.2/app/assets/elm/App.elm +7 -0
  15. data/test/rails4.2/app/assets/javascripts/application.js +1 -0
  16. data/test/rails4.2/app/assets/stylesheets/application.css +15 -0
  17. data/test/rails4.2/app/controllers/application_controller.rb +5 -0
  18. data/test/rails4.2/app/helpers/application_helper.rb +2 -0
  19. data/test/rails4.2/app/views/layouts/application.html.erb +14 -0
  20. data/test/rails4.2/bin/bundle +3 -0
  21. data/test/rails4.2/bin/rails +9 -0
  22. data/test/rails4.2/bin/rake +9 -0
  23. data/test/rails4.2/bin/setup +29 -0
  24. data/test/rails4.2/bin/spring +16 -0
  25. data/test/rails4.2/config/application.rb +26 -0
  26. data/test/rails4.2/config/boot.rb +3 -0
  27. data/test/rails4.2/config/database.yml +25 -0
  28. data/test/rails4.2/config/environment.rb +5 -0
  29. data/test/rails4.2/config/environments/development.rb +41 -0
  30. data/test/rails4.2/config/environments/production.rb +79 -0
  31. data/test/rails4.2/config/environments/test.rb +42 -0
  32. data/test/rails4.2/config/initializers/assets.rb +11 -0
  33. data/test/rails4.2/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/rails4.2/config/initializers/cookies_serializer.rb +3 -0
  35. data/test/rails4.2/config/initializers/filter_parameter_logging.rb +4 -0
  36. data/test/rails4.2/config/initializers/inflections.rb +16 -0
  37. data/test/rails4.2/config/initializers/mime_types.rb +4 -0
  38. data/test/rails4.2/config/initializers/session_store.rb +3 -0
  39. data/test/rails4.2/config/initializers/wrap_parameters.rb +14 -0
  40. data/test/rails4.2/config/locales/en.yml +23 -0
  41. data/test/rails4.2/config/routes.rb +56 -0
  42. data/test/rails4.2/config/secrets.yml +22 -0
  43. data/test/rails4.2/config.ru +4 -0
  44. data/test/rails4.2/db/seeds.rb +7 -0
  45. data/test/rails4.2/elm-package.json +15 -0
  46. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Array.elmi +0 -0
  47. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Array.elmo +54 -0
  48. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Basics.elmi +0 -0
  49. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Basics.elmo +125 -0
  50. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Bitwise.elmi +0 -0
  51. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Bitwise.elmo +7 -0
  52. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Char.elmi +0 -0
  53. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Char.elmo +42 -0
  54. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Color.elmi +0 -0
  55. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Color.elmo +165 -0
  56. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Date.elmi +0 -0
  57. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Date.elmo +32 -0
  58. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Debug.elmi +0 -0
  59. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Debug.elmo +2 -0
  60. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Dict.elmi +0 -0
  61. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Dict.elmo +916 -0
  62. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Decode.elmi +0 -0
  63. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Decode.elmo +62 -0
  64. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Encode.elmi +0 -0
  65. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Encode.elmo +10 -0
  66. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/List.elmi +0 -0
  67. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/List.elmo +545 -0
  68. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Maybe.elmi +0 -0
  69. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Maybe.elmo +72 -0
  70. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Cmd.elmi +0 -0
  71. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Cmd.elmo +14 -0
  72. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Sub.elmi +0 -0
  73. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Sub.elmo +5 -0
  74. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform.elmi +0 -0
  75. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform.elmo +9 -0
  76. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Process.elmi +0 -0
  77. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Process.elmo +3 -0
  78. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Random.elmi +0 -0
  79. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Random.elmo +378 -0
  80. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Regex.elmi +0 -0
  81. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Regex.elmo +16 -0
  82. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Result.elmi +0 -0
  83. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Result.elmo +141 -0
  84. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Set.elmi +0 -0
  85. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Set.elmo +130 -0
  86. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/String.elmi +0 -0
  87. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/String.elmo +43 -0
  88. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Task.elmi +0 -0
  89. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Task.elmo +196 -0
  90. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Time.elmi +0 -0
  91. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Time.elmo +187 -0
  92. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Tuple.elmi +0 -0
  93. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Tuple.elmo +26 -0
  94. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/graph.dat +0 -0
  95. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Attributes.elmi +0 -0
  96. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Attributes.elmo +349 -0
  97. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Events.elmi +0 -0
  98. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Events.elmo +114 -0
  99. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Keyed.elmi +0 -0
  100. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Keyed.elmo +3 -0
  101. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Lazy.elmi +0 -0
  102. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Lazy.elmo +3 -0
  103. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html.elmi +0 -0
  104. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html.elmo +124 -0
  105. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/graph.dat +0 -0
  106. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Debug.elmi +0 -0
  107. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Debug.elmo +622 -0
  108. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Expando.elmi +0 -0
  109. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Expando.elmo +1353 -0
  110. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Helpers.elmi +0 -0
  111. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Helpers.elmo +45 -0
  112. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-History.elmi +0 -0
  113. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-History.elmo +367 -0
  114. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Metadata.elmi +0 -0
  115. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Metadata.elmo +393 -0
  116. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Overlay.elmi +0 -0
  117. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Overlay.elmo +793 -0
  118. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Report.elmi +0 -0
  119. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Report.elmo +98 -0
  120. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom.elmi +0 -0
  121. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom.elmo +30 -0
  122. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/graph.dat +0 -0
  123. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/user/project/1.0.0/Main.elmi +0 -0
  124. data/test/rails4.2/elm-stuff/build-artifacts/0.18.0/user/project/1.0.0/Main.elmo +2 -0
  125. data/test/rails4.2/elm-stuff/exact-dependencies.json +5 -0
  126. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/CONTRIBUTING.md +41 -0
  127. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/LICENSE +30 -0
  128. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/README.md +34 -0
  129. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/changelog.md +143 -0
  130. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/elm-package.json +38 -0
  131. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Array.elm +240 -0
  132. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Basics.elm +655 -0
  133. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Bitwise.elm +90 -0
  134. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Char.elm +103 -0
  135. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Color.elm +456 -0
  136. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Date.elm +150 -0
  137. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Debug.elm +62 -0
  138. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Dict.elm +661 -0
  139. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Json/Decode.elm +520 -0
  140. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Json/Encode.elm +102 -0
  141. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/List.elm +603 -0
  142. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Maybe.elm +157 -0
  143. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Array.js +967 -0
  144. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Basics.js +141 -0
  145. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Bitwise.js +13 -0
  146. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Char.js +14 -0
  147. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Date.js +33 -0
  148. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Debug.js +30 -0
  149. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Json.js +580 -0
  150. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/List.js +137 -0
  151. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Platform.js +560 -0
  152. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Regex.js +119 -0
  153. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Scheduler.js +281 -0
  154. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/String.js +335 -0
  155. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Time.js +27 -0
  156. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Utils.js +489 -0
  157. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform/Cmd.elm +67 -0
  158. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform/Sub.elm +52 -0
  159. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform.elm +145 -0
  160. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Process.elm +106 -0
  161. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Random.elm +532 -0
  162. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Regex.elm +148 -0
  163. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Result.elm +210 -0
  164. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Set.elm +168 -0
  165. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/String.elm +464 -0
  166. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Task.elm +278 -0
  167. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Time.elm +243 -0
  168. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/src/Tuple.elm +61 -0
  169. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Array.elm +90 -0
  170. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Basics.elm +158 -0
  171. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Bitwise.elm +50 -0
  172. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Char.elm +93 -0
  173. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/CodeGen.elm +59 -0
  174. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Dict.elm +79 -0
  175. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Equality.elm +28 -0
  176. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Json.elm +83 -0
  177. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/List.elm +165 -0
  178. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Regex.elm +46 -0
  179. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Result.elm +60 -0
  180. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Set.elm +29 -0
  181. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/String.elm +41 -0
  182. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test.elm +40 -0
  183. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/elm-package.json +16 -0
  184. data/test/rails4.2/elm-stuff/packages/elm-lang/core/5.0.0/tests/run-tests.sh +18 -0
  185. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/LICENSE +30 -0
  186. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/README.md +5 -0
  187. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/elm-package.json +21 -0
  188. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/properties-vs-attributes.md +15 -0
  189. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Attributes.elm +1009 -0
  190. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Events.elm +269 -0
  191. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Keyed.elm +48 -0
  192. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Lazy.elm +48 -0
  193. data/test/rails4.2/elm-stuff/packages/elm-lang/html/2.0.0/src/Html.elm +923 -0
  194. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/LICENSE +30 -0
  195. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/README.md +5 -0
  196. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/elm-package.json +17 -0
  197. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/Native/Debug.js +280 -0
  198. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/Native/VirtualDom.js +1881 -0
  199. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Debug.elm +567 -0
  200. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Expando.elm +659 -0
  201. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Helpers.elm +137 -0
  202. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/History.elm +290 -0
  203. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Metadata.elm +326 -0
  204. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Overlay.elm +541 -0
  205. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Report.elm +99 -0
  206. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom.elm +331 -0
  207. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/Native/TestHelpers.js +35 -0
  208. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestCases/Lazy.elm +72 -0
  209. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestHelpers.elm +34 -0
  210. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestMain.elm +18 -0
  211. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/elm-package.json +18 -0
  212. data/test/rails4.2/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/run-tests.sh +24 -0
  213. data/test/rails4.2/log/development.log +0 -0
  214. data/test/rails4.2/public/404.html +67 -0
  215. data/test/rails4.2/public/422.html +67 -0
  216. data/test/rails4.2/public/500.html +66 -0
  217. data/test/rails4.2/public/assets/App-7d929e251b1b5953bc83f870e24e45eb1fa7b0a02381f6f35c22e4f2217c741f.elm +7 -0
  218. data/test/rails4.2/public/assets/App-7d929e251b1b5953bc83f870e24e45eb1fa7b0a02381f6f35c22e4f2217c741f.elm.gz +0 -0
  219. data/test/rails4.2/public/assets/application-469de1fc2cc36f411d3b3eadfedae733601a2e46e2b263ae5f43edfd07b90f9a.js +7832 -0
  220. data/test/rails4.2/public/assets/application-469de1fc2cc36f411d3b3eadfedae733601a2e46e2b263ae5f43edfd07b90f9a.js.gz +0 -0
  221. data/test/rails4.2/public/assets/application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css +16 -0
  222. data/test/rails4.2/public/assets/application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css.gz +0 -0
  223. data/test/rails4.2/public/favicon.ico +0 -0
  224. data/test/rails4.2/public/robots.txt +5 -0
  225. data/test/rails4.2/test/test_helper.rb +10 -0
  226. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/3Z/3ZUHn6AXhav97w7CxzPk35QWKSdt2_NCypMlfBdbups.cache +12 -0
  227. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  228. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/71/71BGoYgC3JqePcE6mkmZGNm3Hfsplh6GflNISb1nXDY.cache +0 -0
  229. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/7S/7SQg7etrus-CzMQvT50aoqaBFr3g7-XySHgIIYYi120.cache +1 -0
  230. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/8C/8CWOHQ8XpWWEQhSbnexku4svsDm4D6D4khMM1U-hefo.cache +1 -0
  231. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/IL/ILmLNBWq6NCoxa6wQBxL0QZQ1tl0B5EIHe7XNBBzD1c.cache +0 -0
  232. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/Jw/Jw2wqmTaqaVoWeJUIJTeAya_hLYhvjMluyuIExcy7RQ.cache +1 -0
  233. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/KO/KOowMnhBFbIfSnPnJZMvcBO-Ty7jfGMZhfCPyToJ0A0.cache +0 -0
  234. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/LY/LYDHbQunWPAx1lUtqHvYce69OCXyJ_ddebDFMKNuqlI.cache +2 -0
  235. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  236. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/SD/SDBBYwPJLyEQ0kGeBlzlcA-ZfyOrEXYYMADcJmj99CY.cache +1 -0
  237. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/SQ/SQimA5KzAj_p9zMNAsX60SUcMn2uuF16TZC9Klnra0I.cache +0 -0
  238. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/TB/TB5cZ_yulrrkXOX5VPV-Hy5BzCg9Qmp1Cd76AK0H1bw.cache +1 -0
  239. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/Xr/Xrv18wc_alopx84_TfluuduEqUFCvzvieMl9h0IONy8.cache +1 -0
  240. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/_0/_0WRX8uYUBKibrKHGMOPi9ffV0Inaw32I7fxq3XqXZE.cache +1 -0
  241. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/cQ/cQqYRTAhh55ixFFFweV5kSlUV8uTd-quLQSppYOw_HY.cache +0 -0
  242. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/f7/f7vLTrT3HIZzA85tAlEpmeTxMz_oRIycHo8pJytouk4.cache +1 -0
  243. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/gz/gztd2iOfuGm_FtspKA2TGTb05WC_ma2r-cStMmahKA4.cache +1 -0
  244. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/hU/hUc40B5Z1hDZyLf6j_tnQZtdiKDG5hlWrztJBska0PE.cache +3 -0
  245. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/pu/puuyFOZIeE21lmTrCNiNXukuNcijKwpMdOYC1egNvNg.cache +3 -0
  246. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/tR/tRv7-RPbJTn8ti-ONHftBMGXAAV4zzK02vrO2kOYsMA.cache +1 -0
  247. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/vP/vPP5AGlfEDDH5hIun-dIdpO1CYuIZo_fknD6Gkm2hKE.cache +2 -0
  248. data/test/rails4.2/tmp/cache/assets/sprockets/v3.0/yv/yvroNANofqgnk7FsbrrvJ5jFI9iXwLYf9WP7_ZKa82k.cache +1 -0
  249. data/test/rails5.0/Gemfile +51 -0
  250. data/test/rails5.0/Gemfile.lock +183 -0
  251. data/test/rails5.0/README.md +24 -0
  252. data/test/rails5.0/Rakefile +6 -0
  253. data/test/rails5.0/app/assets/config/manifest.js +3 -0
  254. data/test/rails5.0/app/assets/elm/App.elm +7 -0
  255. data/test/rails5.0/app/assets/javascripts/application.js +1 -0
  256. data/test/rails5.0/app/assets/javascripts/cable.js +13 -0
  257. data/test/rails5.0/app/assets/stylesheets/application.css +15 -0
  258. data/test/rails5.0/app/channels/application_cable/channel.rb +4 -0
  259. data/test/rails5.0/app/channels/application_cable/connection.rb +4 -0
  260. data/test/rails5.0/app/controllers/application_controller.rb +3 -0
  261. data/test/rails5.0/app/helpers/application_helper.rb +2 -0
  262. data/test/rails5.0/app/jobs/application_job.rb +2 -0
  263. data/test/rails5.0/app/mailers/application_mailer.rb +4 -0
  264. data/test/rails5.0/app/models/application_record.rb +3 -0
  265. data/test/rails5.0/app/views/layouts/application.html.erb +14 -0
  266. data/test/rails5.0/app/views/layouts/mailer.html.erb +13 -0
  267. data/test/rails5.0/app/views/layouts/mailer.text.erb +1 -0
  268. data/test/rails5.0/bin/bundle +3 -0
  269. data/test/rails5.0/bin/rails +9 -0
  270. data/test/rails5.0/bin/rake +9 -0
  271. data/test/rails5.0/bin/setup +34 -0
  272. data/test/rails5.0/bin/spring +16 -0
  273. data/test/rails5.0/bin/update +29 -0
  274. data/test/rails5.0/config/application.rb +15 -0
  275. data/test/rails5.0/config/boot.rb +3 -0
  276. data/test/rails5.0/config/cable.yml +9 -0
  277. data/test/rails5.0/config/database.yml +25 -0
  278. data/test/rails5.0/config/environment.rb +5 -0
  279. data/test/rails5.0/config/environments/development.rb +54 -0
  280. data/test/rails5.0/config/environments/production.rb +86 -0
  281. data/test/rails5.0/config/environments/test.rb +42 -0
  282. data/test/rails5.0/config/initializers/application_controller_renderer.rb +6 -0
  283. data/test/rails5.0/config/initializers/assets.rb +11 -0
  284. data/test/rails5.0/config/initializers/backtrace_silencers.rb +7 -0
  285. data/test/rails5.0/config/initializers/cookies_serializer.rb +5 -0
  286. data/test/rails5.0/config/initializers/filter_parameter_logging.rb +4 -0
  287. data/test/rails5.0/config/initializers/inflections.rb +16 -0
  288. data/test/rails5.0/config/initializers/mime_types.rb +4 -0
  289. data/test/rails5.0/config/initializers/new_framework_defaults.rb +24 -0
  290. data/test/rails5.0/config/initializers/session_store.rb +3 -0
  291. data/test/rails5.0/config/initializers/wrap_parameters.rb +14 -0
  292. data/test/rails5.0/config/locales/en.yml +23 -0
  293. data/test/rails5.0/config/puma.rb +47 -0
  294. data/test/rails5.0/config/routes.rb +3 -0
  295. data/test/rails5.0/config/secrets.yml +22 -0
  296. data/test/rails5.0/config/spring.rb +6 -0
  297. data/test/rails5.0/config.ru +5 -0
  298. data/test/rails5.0/db/seeds.rb +7 -0
  299. data/test/rails5.0/elm-package.json +15 -0
  300. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Array.elmi +0 -0
  301. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Array.elmo +54 -0
  302. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Basics.elmi +0 -0
  303. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Basics.elmo +125 -0
  304. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Bitwise.elmi +0 -0
  305. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Bitwise.elmo +7 -0
  306. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Char.elmi +0 -0
  307. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Char.elmo +42 -0
  308. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Color.elmi +0 -0
  309. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Color.elmo +165 -0
  310. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Date.elmi +0 -0
  311. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Date.elmo +32 -0
  312. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Debug.elmi +0 -0
  313. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Debug.elmo +2 -0
  314. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Dict.elmi +0 -0
  315. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Dict.elmo +916 -0
  316. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Decode.elmi +0 -0
  317. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Decode.elmo +62 -0
  318. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Encode.elmi +0 -0
  319. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Json-Encode.elmo +10 -0
  320. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/List.elmi +0 -0
  321. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/List.elmo +545 -0
  322. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Maybe.elmi +0 -0
  323. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Maybe.elmo +72 -0
  324. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Cmd.elmi +0 -0
  325. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Cmd.elmo +14 -0
  326. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Sub.elmi +0 -0
  327. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform-Sub.elmo +5 -0
  328. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform.elmi +0 -0
  329. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Platform.elmo +9 -0
  330. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Process.elmi +0 -0
  331. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Process.elmo +3 -0
  332. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Random.elmi +0 -0
  333. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Random.elmo +378 -0
  334. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Regex.elmi +0 -0
  335. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Regex.elmo +16 -0
  336. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Result.elmi +0 -0
  337. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Result.elmo +141 -0
  338. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Set.elmi +0 -0
  339. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Set.elmo +130 -0
  340. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/String.elmi +0 -0
  341. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/String.elmo +43 -0
  342. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Task.elmi +0 -0
  343. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Task.elmo +196 -0
  344. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Time.elmi +0 -0
  345. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Time.elmo +187 -0
  346. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Tuple.elmi +0 -0
  347. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/Tuple.elmo +26 -0
  348. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/core/5.0.0/graph.dat +0 -0
  349. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Attributes.elmi +0 -0
  350. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Attributes.elmo +349 -0
  351. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Events.elmi +0 -0
  352. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Events.elmo +114 -0
  353. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Keyed.elmi +0 -0
  354. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Keyed.elmo +3 -0
  355. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Lazy.elmi +0 -0
  356. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html-Lazy.elmo +3 -0
  357. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html.elmi +0 -0
  358. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/Html.elmo +124 -0
  359. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/html/2.0.0/graph.dat +0 -0
  360. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Debug.elmi +0 -0
  361. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Debug.elmo +622 -0
  362. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Expando.elmi +0 -0
  363. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Expando.elmo +1353 -0
  364. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Helpers.elmi +0 -0
  365. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Helpers.elmo +45 -0
  366. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-History.elmi +0 -0
  367. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-History.elmo +367 -0
  368. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Metadata.elmi +0 -0
  369. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Metadata.elmo +393 -0
  370. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Overlay.elmi +0 -0
  371. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Overlay.elmo +793 -0
  372. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Report.elmi +0 -0
  373. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom-Report.elmo +98 -0
  374. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom.elmi +0 -0
  375. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/VirtualDom.elmo +30 -0
  376. data/test/rails5.0/elm-stuff/build-artifacts/0.18.0/elm-lang/virtual-dom/2.0.3/graph.dat +0 -0
  377. data/test/rails5.0/elm-stuff/exact-dependencies.json +5 -0
  378. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/CONTRIBUTING.md +41 -0
  379. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/LICENSE +30 -0
  380. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/README.md +34 -0
  381. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/changelog.md +143 -0
  382. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/elm-package.json +38 -0
  383. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Array.elm +240 -0
  384. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Basics.elm +655 -0
  385. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Bitwise.elm +90 -0
  386. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Char.elm +103 -0
  387. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Color.elm +456 -0
  388. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Date.elm +150 -0
  389. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Debug.elm +62 -0
  390. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Dict.elm +661 -0
  391. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Json/Decode.elm +520 -0
  392. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Json/Encode.elm +102 -0
  393. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/List.elm +603 -0
  394. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Maybe.elm +157 -0
  395. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Array.js +967 -0
  396. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Basics.js +141 -0
  397. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Bitwise.js +13 -0
  398. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Char.js +14 -0
  399. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Date.js +33 -0
  400. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Debug.js +30 -0
  401. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Json.js +580 -0
  402. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/List.js +137 -0
  403. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Platform.js +560 -0
  404. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Regex.js +119 -0
  405. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Scheduler.js +281 -0
  406. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/String.js +335 -0
  407. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Time.js +27 -0
  408. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Native/Utils.js +489 -0
  409. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform/Cmd.elm +67 -0
  410. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform/Sub.elm +52 -0
  411. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Platform.elm +145 -0
  412. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Process.elm +106 -0
  413. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Random.elm +532 -0
  414. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Regex.elm +148 -0
  415. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Result.elm +210 -0
  416. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Set.elm +168 -0
  417. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/String.elm +464 -0
  418. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Task.elm +278 -0
  419. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Time.elm +243 -0
  420. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/src/Tuple.elm +61 -0
  421. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Array.elm +90 -0
  422. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Basics.elm +158 -0
  423. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Bitwise.elm +50 -0
  424. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Char.elm +93 -0
  425. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/CodeGen.elm +59 -0
  426. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Dict.elm +79 -0
  427. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Equality.elm +28 -0
  428. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Json.elm +83 -0
  429. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/List.elm +165 -0
  430. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Regex.elm +46 -0
  431. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Result.elm +60 -0
  432. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/Set.elm +29 -0
  433. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test/String.elm +41 -0
  434. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/Test.elm +40 -0
  435. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/elm-package.json +16 -0
  436. data/test/rails5.0/elm-stuff/packages/elm-lang/core/5.0.0/tests/run-tests.sh +18 -0
  437. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/LICENSE +30 -0
  438. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/README.md +5 -0
  439. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/elm-package.json +21 -0
  440. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/properties-vs-attributes.md +15 -0
  441. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Attributes.elm +1009 -0
  442. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Events.elm +269 -0
  443. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Keyed.elm +48 -0
  444. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/src/Html/Lazy.elm +48 -0
  445. data/test/rails5.0/elm-stuff/packages/elm-lang/html/2.0.0/src/Html.elm +923 -0
  446. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/LICENSE +30 -0
  447. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/README.md +5 -0
  448. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/elm-package.json +17 -0
  449. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/Native/Debug.js +280 -0
  450. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/Native/VirtualDom.js +1881 -0
  451. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Debug.elm +567 -0
  452. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Expando.elm +659 -0
  453. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Helpers.elm +137 -0
  454. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/History.elm +290 -0
  455. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Metadata.elm +326 -0
  456. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Overlay.elm +541 -0
  457. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom/Report.elm +99 -0
  458. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/src/VirtualDom.elm +331 -0
  459. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/Native/TestHelpers.js +35 -0
  460. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestCases/Lazy.elm +72 -0
  461. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestHelpers.elm +34 -0
  462. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/TestMain.elm +18 -0
  463. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/elm-package.json +18 -0
  464. data/test/rails5.0/elm-stuff/packages/elm-lang/virtual-dom/2.0.3/tests/run-tests.sh +24 -0
  465. data/test/rails5.0/log/development.log +0 -0
  466. data/test/rails5.0/log/test.log +0 -0
  467. data/test/rails5.0/public/404.html +67 -0
  468. data/test/rails5.0/public/422.html +67 -0
  469. data/test/rails5.0/public/500.html +66 -0
  470. data/test/rails5.0/public/apple-touch-icon-precomposed.png +0 -0
  471. data/test/rails5.0/public/apple-touch-icon.png +0 -0
  472. data/test/rails5.0/public/assets/App-1602b94f98947092c88dc265ff74f09a5e843f8da65d389ffbc3e33780fffede.elm +9 -0
  473. data/test/rails5.0/public/assets/App-1602b94f98947092c88dc265ff74f09a5e843f8da65d389ffbc3e33780fffede.elm.gz +0 -0
  474. data/test/rails5.0/public/assets/App-5e519e981b0f90300c651aefaa6caae0d86b07d230d233a1bfb0d39a5d880e3c.elm +1 -0
  475. data/test/rails5.0/public/assets/App-5e519e981b0f90300c651aefaa6caae0d86b07d230d233a1bfb0d39a5d880e3c.elm.gz +0 -0
  476. data/test/rails5.0/public/assets/App-7d929e251b1b5953bc83f870e24e45eb1fa7b0a02381f6f35c22e4f2217c741f.elm +7 -0
  477. data/test/rails5.0/public/assets/App-7d929e251b1b5953bc83f870e24e45eb1fa7b0a02381f6f35c22e4f2217c741f.elm.gz +0 -0
  478. data/test/rails5.0/public/assets/App-8a8d0e9bfb375345038db521f127df9481ab51071ed163f15245377ceb88eaca.elm +8 -0
  479. data/test/rails5.0/public/assets/App-8a8d0e9bfb375345038db521f127df9481ab51071ed163f15245377ceb88eaca.elm.gz +0 -0
  480. data/test/rails5.0/public/assets/App-eca9cb629bea66373157a8cc52c5b0f93a31aaf50ecff27c10d7239be48b248f.elm +9 -0
  481. data/test/rails5.0/public/assets/App-eca9cb629bea66373157a8cc52c5b0f93a31aaf50ecff27c10d7239be48b248f.elm.gz +0 -0
  482. data/test/rails5.0/public/assets/application-4586df2c9172aec6cc707426ba5f83f7a590a4aeac2fe816fa5023c32963f2f9.js +12198 -0
  483. data/test/rails5.0/public/assets/application-4586df2c9172aec6cc707426ba5f83f7a590a4aeac2fe816fa5023c32963f2f9.js.gz +0 -0
  484. data/test/rails5.0/public/assets/application-469de1fc2cc36f411d3b3eadfedae733601a2e46e2b263ae5f43edfd07b90f9a.js +7832 -0
  485. data/test/rails5.0/public/assets/application-469de1fc2cc36f411d3b3eadfedae733601a2e46e2b263ae5f43edfd07b90f9a.js.gz +0 -0
  486. data/test/rails5.0/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css +16 -0
  487. data/test/rails5.0/public/assets/application-af04b226fd7202dfc532ce7aedb95a0128277937e90d3b3a3d35e1cce9e16886.css.gz +0 -0
  488. data/test/rails5.0/public/favicon.ico +0 -0
  489. data/test/rails5.0/public/robots.txt +5 -0
  490. data/test/rails5.0/test/test_helper.rb +10 -0
  491. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/0Y/0YB7dUAeS_crvTkoNmYLCXhHXzZyo1iBdHiGDB66haY.cache +0 -0
  492. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/1N/1NhL0zKSPgA05Uc-SJFX3grlL83t06cgOrX3bVN59rY.cache +3 -0
  493. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/1a/1aCAw9tIoeRlkEQrkNffBdK1iX2sVmGKo0ZSDujjzzQ.cache +1 -0
  494. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/35/35k3BKm9w8BazTN5Y5LaRFfxzV1IXXkXfhyMO-0bbqE.cache +1 -0
  495. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/3H/3HMMKH-mmYBvbL_QMZIVF9hFTjtLPFytSfllY3Quc40.cache +1 -0
  496. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/4L/4LstvGmpBCrhBQdjwm9XUSk8KT0o7CTK79wVCZD0rYA.cache +0 -0
  497. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/5n/5nYbBZ2v-Olkh8gU3Gj8q75NJNzG188X8wVFaRMSO4Y.cache +0 -0
  498. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/6k/6kGz9Pbsl1lurmvNTUwodRApjpjcg44MDFmGicCYtkM.cache +1 -0
  499. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/6x/6xh5M9_QsilQ8b2CIjSm980iyp5htgQNGpe2smD8EFY.cache +1 -0
  500. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/7E/7EmKgeIbIEosUjuD7RwrwSOU6qG-YNCXISqzKAIj6XY.cache +1 -0
  501. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/7r/7rKBKpKdQ-dlqhkkPc_YTTDH8Hcb-aA25EWqyF_SCnM.cache +0 -0
  502. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/8E/8EqfkaQzxFfiMRJxFhO6QMYvUsGoreG0wuo0Z9ZIQMI.cache +1 -0
  503. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/9S/9SjxHQK7xOt2WfMDQSUnTh7cRFOD9pYnDnhz-fYcGIM.cache +1 -0
  504. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/9Y/9YPGrz99c2jdTmAXI-gcar5ZuLy_DICUkenwTffZpXM.cache +3 -0
  505. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/9n/9nNrLIfeQBbmhfdE-wyq6IofxTnrSh_qjbhxpIV8e8k.cache +0 -0
  506. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/AD/ADdMEFmbNhFvLXTmHzEKQ6aeGjlW3xFS-SNaOS9G5E0.cache +1 -0
  507. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Aq/AqD6i7Uh0R4iSD3LnqgXtyhDzZulN4Ll4BYugwcVMd8.cache +14 -0
  508. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/B1/B12JeqH5j_oNIiH4FIhK4IIogEXMhp7HkXRDG5_W9TE.cache +1 -0
  509. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/B9/B9QjSHDYRcZ6vHYyAL-9LVloVXrAxRNuLBhBQlszyYY.cache +0 -0
  510. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Br/BrAzyoqGDsBq0SuTmtVy_UPxIRQ6GT9GZ4rtUWXur50.cache +1 -0
  511. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Bx/BxzoG0KxeNLac4xTNeJv3qfeytbNBw58xj2zD-xdbrE.cache +2 -0
  512. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/H1/H1jTfx5eWFTr9nS4BAYci_jWFKDFikgWTQfytyXbxE8.cache +1 -0
  513. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/He/HeCPR0vx95YOit3sQBrJqvU-qt5UlrVo6oR3gmLsVRE.cache +1 -0
  514. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Ik/IkfUJk7rZOFkONwuH61NE0Qm02VNU_Kzs2BXpLxU_jA.cache +0 -0
  515. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Il/Il5IfApBiO1hgPEjL4xSAmMFSLuMGqPKdqHxVKl4xto.cache +0 -0
  516. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/J0/J0jmom5PJvcEBroo5EmWZWwS-qIS_vrXeDWc7eno-Bo.cache +1 -0
  517. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Ja/JacseGFSNScIY88_jg9qPVjxr8noy1N-SqVqj639jqM.cache +2 -0
  518. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/KK/KKsRXpOYUoX-CUIJkA1HOY5KZSS95aEclXJ2W435720.cache +3 -0
  519. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Kg/Kgkr5ONb7guGJNJQ1Kk_cYcJ8P9SyW6pQ9rcBL1NRU4.cache +1 -0
  520. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Ko/Ko3lwpLJwK6NWfB58rcpen0NlXa3kpCsc4RAKKT6Kpk.cache +0 -0
  521. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/LY/LYDHbQunWPAx1lUtqHvYce69OCXyJ_ddebDFMKNuqlI.cache +0 -0
  522. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/NB/NBzfgqIkjfw28ZiYRd57NZjfR58xLNoos_RalMVjNbg.cache +1 -0
  523. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Nf/NfYfMVLdt_Ou9w7rLSKpXrPDpgDbZrBnQ4z-Hum-6vI.cache +3 -0
  524. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/O9/O9TrSGgLM3Z_MRoHypJwNImwwSQ4RrvgHT8jvNgJEw8.cache +1 -0
  525. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/OD/ODpH56RUMtxnzhaH5U_u4tOMq8TBgYFxa_uOtVDIYYY.cache +0 -0
  526. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Og/Ogbuh2wE0u29GxE1agxdqtbvGm1gNQDgbAsON6mmqEs.cache +1 -0
  527. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/PD/PDGhNPQf4tpr04KnK-MVoL7vfP1-IkOZ82t96aM9rzU.cache +0 -0
  528. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/S0/S0YVAAdEQsPWUvEL2HO_0mkuTBPd1YN5qnFMZdbl__s.cache +1 -0
  529. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/SH/SHzDzeCYjrPInxH5PdvvnaSwG6saboDBExYeizii9l8.cache +12 -0
  530. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/V3/V3n8zFh7QU2BX4zbGf-6u3v3UV6gk-Kd4ukzWRKzygE.cache +0 -0
  531. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/VJ/VJhOylb5YLNno0g3xGtELVfa6ADi2hjAKipWJHNwmaw.cache +3 -0
  532. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/VU/VUgLLHwZhPSRCNTktsMDxGoe9FM10f1KyYCYHtM9i6s.cache +1 -0
  533. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/VX/VXJe3zEbcTeaXjBIUHOqnlo0wzUJFGr4qbX1a07mhCU.cache +1 -0
  534. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Vl/VlNigKvkrAT-d0xZ-dPrWFc5-ftFTPWjgV-pNXINZNI.cache +1 -0
  535. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/W9/W9hQOrzOprntvhFuuLQMjVuIqkA4glCKEU85O97ePPg.cache +1 -0
  536. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Wl/WlA2b2ztRT1INWN_KF2AQYcgo6xtPD5MN4Xbn6Y0P4c.cache +1 -0
  537. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/XO/XOQxQt2ChZX9nP-bS-4LeZpDoXqgy8b0ZeDrBv7Fm7E.cache +0 -0
  538. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Ya/YA2cPxMXBtg-8-rve8W_M3jPY9XWs7m0Shsiqp8gQws.cache +1 -0
  539. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Ya/YayMISAqD-Y3vBFywwKrXbUovGf5o77HUF5s8mnQgO0.cache +0 -0
  540. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Yh/YhLPDOqEMwfXgbP2sDA4lj6jrbOvB7bC_uxlXzV_TQE.cache +1 -0
  541. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/Yi/YiYRhSq0opHKMpfxdgTluU5wxBb3DiqZwjHmFTpvFHw.cache +1 -0
  542. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/_g/_gcA7ve5b9gRqyMtexel8zqzGx251FMb6tjSg2RWOW8.cache +1 -0
  543. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/aO/aOnqAc44IjU1sN_EMsXGnQ0JKh9IcG460FYR5bIrFms.cache +1 -0
  544. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/bP/bPPhf5cxBG77CDeKdBShe42BgQoDTLDoTLD3zruq1W0.cache +1 -0
  545. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/ba/baB1035_Crz8wasVlcXhl_FU16sjjVvXpxIe38OPvXQ.cache +1 -0
  546. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/df/dfWZd4DzOiImVd7W0kkLrInPO1OOqVzpfz5sSvjF-Uo.cache +1 -0
  547. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/eA/eAld1SKvn6CmGs606xnR5u_RD-9jztgHGg80umZcU1E.cache +1 -0
  548. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/gh/ghVAcaqdDpGTOqJjPARKgCiR8CiHW6QlnKTOF9e9ORI.cache +1 -0
  549. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/hR/hRvM5YCxMAgeLQZUX1xYPkVAuja6B4tOqBQAkydPLJU.cache +1 -0
  550. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/hU/hUc40B5Z1hDZyLf6j_tnQZtdiKDG5hlWrztJBska0PE.cache +3 -0
  551. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/hp/hppUy6OHEQcsWCk8s_i6M5mO9LNdD9yRZb5kX4ptVrc.cache +1 -0
  552. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/iU/iUAm_moTHIafsRJIY5-RfSh2OKUIz_yhNnQqpUVBNYQ.cache +3 -0
  553. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/jZ/JZxXAA7PYxyTc8rmt8jxfR8grbq2jBfZbseUMSuH8zk.cache +1 -0
  554. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/jZ/jZMUnpPr_EmTmI8mHPj7EQicOUHDug2aEoohjId_0Yk.cache +0 -0
  555. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/je/je5iFjCcUlxNbZPRHgNBSB6qWaC9kCNxQ6q1yj_qOOY.cache +1 -0
  556. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/kV/kVOpHbvQlTwqjBkr02sqtQqzLzxINYcecM_naAzjdC0.cache +1 -0
  557. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/lt/ltXAG0-rNlM_PLKTy1WHlI7D1O_CMbd84zaRydmU-Rg.cache +3 -0
  558. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/n3/n3lkVpUjkcCDAQhxykQ6y8IP6y1JdTtH06FRqfkq9LI.cache +0 -0
  559. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/nJ/nJdrXYYtjc5zT8HUWi7je-yfrVicfQZvwRqPzaCa6wk.cache +0 -0
  560. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/n_/n_xYqQYhwEMQknb3jFQnjlxxBE9TzMNHCdJ-bEyZFIw.cache +2 -0
  561. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/nd/nd-cz3iq2NvZgc2KOeAgQoVy3JMKsXNeLqWxG6FteZI.cache +0 -0
  562. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/nx/nxTv3sKVUQZADJyM3dPaVmUA78MIsMLD_K279yN_GsI.cache +2 -0
  563. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/oW/oWyRdiks7gwGe0iIy_7eP4tuLKREDJpw5zmcvzTcz6A.cache +1 -0
  564. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/pg/pg9UjX5tF6eU8BVS5bMsq1C-zoY8SryXO2KGgRQlTss.cache +1 -0
  565. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/pu/puuyFOZIeE21lmTrCNiNXukuNcijKwpMdOYC1egNvNg.cache +3 -0
  566. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/qA/qAs4p5gy36IKHVRTncIU2bEoe5U7AfqZbEfHn53X_8o.cache +1 -0
  567. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/r5/r50Jp6i83eTDHlxTfnNc3wsRhTkVGnBnoPm8Qu6ygk4.cache +1 -0
  568. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/rw/rwpefxNnYvOKp9N-3v7kg_-CK3lbIjgExClJ5C2qDlc.cache +1 -0
  569. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/sD/sDyffi23VNNBUqPAOf8uo7Jc_-JJBh_XGi-sG-OwCi4.cache +1 -0
  570. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/sJ/sJ_lXp0OZ-d7xXSO7IYvbYXNnRfmoF4y_wtVeHyro0M.cache +0 -0
  571. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/sV/sVvb4rIxllY1RcnneFQOouJRcNLkQOPJsXMXfyrpWl4.cache +1 -0
  572. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/st/stJIDRPJd8LU1crSDOT6xb63bnHMwWO4uZ61z36ULO4.cache +1 -0
  573. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/tE/tEY3hs40EEJehLXOpxKqICNDETqbP3DVCUnrgXfyQxw.cache +1 -0
  574. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/uG/uGZh7ticrbdLry2ydkTxxa9RaZYIsvbcJ057EcQueW8.cache +0 -0
  575. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/v9/v9cyeu6pHsQwNBnaL4mINPaINTR7_dNGEQ00mceS32c.cache +1 -0
  576. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/vK/vKJHMH5Wqw3Wo2DhWgK89qPpgICbKVGlbi7Epi81gWU.cache +1 -0
  577. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/vP/vPP5AGlfEDDH5hIun-dIdpO1CYuIZo_fknD6Gkm2hKE.cache +2 -0
  578. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/vV/vV1yyk2vB13JUn09187gZiT8X8m5KEuoXpzNXurlOac.cache +1 -0
  579. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/vm/vmwJEykJEbQgCiW25SHHCVsIr-mYCWzhbBqXfnXbeag.cache +1 -0
  580. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/w4/w4A4RKVM0xMsKjHNht7XVaSOGkromySr10SKObjndhE.cache +7 -0
  581. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/wA/wADgvgw7vRo-sR-CZWwBHg9f7eRGZxNv8hM5eYH4JDU.cache +1 -0
  582. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/x7/x7PYh8DJvPykcEqpVab2vcY9-GFz-3cqtoMlRAu94Uc.cache +2 -0
  583. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/zB/zBYhnUcTDDOZYknO_mReeJDV-GDjp4GG2arMnzKck4c.cache +3 -0
  584. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/zC/zCss2J7QY-MVljeBbkecU985YlJ18YOkRRGy4BnJtkQ.cache +1 -0
  585. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/zm/zm9elFKfdhwhhSo15dXPFF3VYW_YQj-vbTgLhM-twP0.cache +1 -0
  586. data/test/rails5.0/tmp/cache/assets/sprockets/v3.0/zv/zvZfghSs_sLIZlmb5anW4qZc40WkO23Afn41Xy2RljQ.cache +1 -0
  587. metadata +1166 -10
  588. data/app/assets/javascripts/elm_modules.js.erb +0 -1
  589. data/app/helpers/elm_view_helper.rb +0 -21
  590. data/app/views/elm/mount_script.js.erb +0 -29
  591. data/lib/elm/rails/engine.rb +0 -6
@@ -0,0 +1,278 @@
1
+ effect module Task where { command = MyCmd } exposing
2
+ ( Task
3
+ , succeed, fail
4
+ , map, map2, map3, map4, map5
5
+ , sequence
6
+ , andThen
7
+ , onError, mapError
8
+ , perform, attempt
9
+ )
10
+
11
+ {-| Tasks make it easy to describe asynchronous operations that may fail, like
12
+ HTTP requests or writing to a database. For more information, see the [Elm
13
+ documentation on Tasks](http://guide.elm-lang.org/error_handling/task.html).
14
+
15
+ # Basics
16
+ @docs Task, succeed, fail
17
+
18
+ # Mapping
19
+ @docs map, map2, map3, map4, map5
20
+
21
+ # Chaining
22
+ @docs andThen, sequence
23
+
24
+ # Errors
25
+ @docs onError, mapError
26
+
27
+ # Commands
28
+ @docs perform, attempt
29
+
30
+ -}
31
+
32
+ import Basics exposing (Never, (|>), (<<))
33
+ import List exposing ((::))
34
+ import Maybe exposing (Maybe(Just,Nothing))
35
+ import Native.Scheduler
36
+ import Platform
37
+ import Platform.Cmd exposing (Cmd)
38
+ import Result exposing (Result(Ok,Err))
39
+
40
+
41
+
42
+ {-| Represents asynchronous effects that may fail. It is useful for stuff like
43
+ HTTP.
44
+
45
+ For example, maybe we have a task with the type (`Task String User`). This means
46
+ that when we perform the task, it will either fail with a `String` message or
47
+ succeed with a `User`. So this could represent a task that is asking a server
48
+ for a certain user.
49
+ -}
50
+ type alias Task err ok =
51
+ Platform.Task err ok
52
+
53
+
54
+
55
+ -- BASICS
56
+
57
+
58
+ {-| A task that succeeds immediately when run.
59
+
60
+ succeed 42 -- results in 42
61
+ -}
62
+ succeed : a -> Task x a
63
+ succeed =
64
+ Native.Scheduler.succeed
65
+
66
+
67
+ {-| A task that fails immediately when run.
68
+
69
+ fail "file not found" : Task String a
70
+ -}
71
+ fail : x -> Task x a
72
+ fail =
73
+ Native.Scheduler.fail
74
+
75
+
76
+
77
+ -- MAPPING
78
+
79
+
80
+ {-| Transform a task.
81
+
82
+ map sqrt (succeed 9) -- succeed 3
83
+ -}
84
+ map : (a -> b) -> Task x a -> Task x b
85
+ map func taskA =
86
+ taskA
87
+ |> andThen (\a -> succeed (func a))
88
+
89
+
90
+ {-| Put the results of two tasks together. If either task fails, the whole
91
+ thing fails. It also runs in order so the first task will be completely
92
+ finished before the second task starts.
93
+
94
+ map2 (+) (succeed 9) (succeed 3) -- succeed 12
95
+ -}
96
+ map2 : (a -> b -> result) -> Task x a -> Task x b -> Task x result
97
+ map2 func taskA taskB =
98
+ taskA
99
+ |> andThen (\a -> taskB
100
+ |> andThen (\b -> succeed (func a b)))
101
+
102
+
103
+ {-|-}
104
+ map3 : (a -> b -> c -> result) -> Task x a -> Task x b -> Task x c -> Task x result
105
+ map3 func taskA taskB taskC =
106
+ taskA
107
+ |> andThen (\a -> taskB
108
+ |> andThen (\b -> taskC
109
+ |> andThen (\c -> succeed (func a b c))))
110
+
111
+
112
+ {-|-}
113
+ map4 : (a -> b -> c -> d -> result) -> Task x a -> Task x b -> Task x c -> Task x d -> Task x result
114
+ map4 func taskA taskB taskC taskD =
115
+ taskA
116
+ |> andThen (\a -> taskB
117
+ |> andThen (\b -> taskC
118
+ |> andThen (\c -> taskD
119
+ |> andThen (\d -> succeed (func a b c d)))))
120
+
121
+
122
+ {-|-}
123
+ map5 : (a -> b -> c -> d -> e -> result) -> Task x a -> Task x b -> Task x c -> Task x d -> Task x e -> Task x result
124
+ map5 func taskA taskB taskC taskD taskE =
125
+ taskA
126
+ |> andThen (\a -> taskB
127
+ |> andThen (\b -> taskC
128
+ |> andThen (\c -> taskD
129
+ |> andThen (\d -> taskE
130
+ |> andThen (\e -> succeed (func a b c d e))))))
131
+
132
+
133
+ {-| Start with a list of tasks, and turn them into a single task that returns a
134
+ list. The tasks will be run in order one-by-one and if any task fails the whole
135
+ sequence fails.
136
+
137
+ sequence [ succeed 1, succeed 2 ] -- succeed [ 1, 2 ]
138
+
139
+ This can be useful if you need to make a bunch of HTTP requests one-by-one.
140
+ -}
141
+ sequence : List (Task x a) -> Task x (List a)
142
+ sequence tasks =
143
+ case tasks of
144
+ [] ->
145
+ succeed []
146
+
147
+ task :: remainingTasks ->
148
+ map2 (::) task (sequence remainingTasks)
149
+
150
+
151
+
152
+ -- CHAINING
153
+
154
+
155
+ {-| Chain together a task and a callback. The first task will run, and if it is
156
+ successful, you give the result to the callback resulting in another task. This
157
+ task then gets run.
158
+
159
+ succeed 2
160
+ |> andThen (\n -> succeed (n + 2))
161
+ -- succeed 4
162
+
163
+ This is useful for chaining tasks together. Maybe you need to get a user from
164
+ your servers *and then* lookup their picture once you know their name.
165
+ -}
166
+ andThen : (a -> Task x b) -> Task x a -> Task x b
167
+ andThen =
168
+ Native.Scheduler.andThen
169
+
170
+
171
+ -- ERRORS
172
+
173
+ {-| Recover from a failure in a task. If the given task fails, we use the
174
+ callback to recover.
175
+
176
+ fail "file not found"
177
+ |> onError (\msg -> succeed 42)
178
+ -- succeed 42
179
+
180
+ succeed 9
181
+ |> onError (\msg -> succeed 42)
182
+ -- succeed 9
183
+ -}
184
+ onError : (x -> Task y a) -> Task x a -> Task y a
185
+ onError =
186
+ Native.Scheduler.onError
187
+
188
+
189
+ {-| Transform the error value. This can be useful if you need a bunch of error
190
+ types to match up.
191
+
192
+ type Error = Http Http.Error | WebGL WebGL.Error
193
+
194
+ getResources : Task Error Resource
195
+ getResources =
196
+ sequence [ mapError Http serverTask, mapError WebGL textureTask ]
197
+ -}
198
+ mapError : (x -> y) -> Task x a -> Task y a
199
+ mapError convert task =
200
+ task
201
+ |> onError (fail << convert)
202
+
203
+
204
+
205
+ -- COMMANDS
206
+
207
+
208
+ type MyCmd msg =
209
+ Perform (Task Never msg)
210
+
211
+
212
+ {-| The only way to *do* things in Elm is to give commands to the Elm runtime.
213
+ So we describe some complex behavior with a `Task` and then command the runtime
214
+ to `perform` that task. For example, getting the current time looks like this:
215
+
216
+ import Task
217
+ import Time exposing (Time)
218
+
219
+ type Msg = Click | NewTime Time
220
+
221
+ update : Msg -> Model -> Model
222
+ update msg model =
223
+ case msg of
224
+ Click ->
225
+ ( model, Task.perform NewTime Time.now )
226
+
227
+ NewTime time ->
228
+ ...
229
+ -}
230
+ perform : (a -> msg) -> Task Never a -> Cmd msg
231
+ perform toMessage task =
232
+ command (Perform (map toMessage task))
233
+
234
+
235
+ {-| Command the Elm runtime to attempt a task that might fail!
236
+ -}
237
+ attempt : (Result x a -> msg) -> Task x a -> Cmd msg
238
+ attempt resultToMessage task =
239
+ command (Perform (
240
+ task
241
+ |> andThen (succeed << resultToMessage << Ok)
242
+ |> onError (succeed << resultToMessage << Err)
243
+ ))
244
+
245
+
246
+ cmdMap : (a -> b) -> MyCmd a -> MyCmd b
247
+ cmdMap tagger (Perform task) =
248
+ Perform (map tagger task)
249
+
250
+
251
+
252
+ -- MANAGER
253
+
254
+
255
+ init : Task Never ()
256
+ init =
257
+ succeed ()
258
+
259
+
260
+ onEffects : Platform.Router msg Never -> List (MyCmd msg) -> () -> Task Never ()
261
+ onEffects router commands state =
262
+ map
263
+ (\_ -> ())
264
+ (sequence (List.map (spawnCmd router) commands))
265
+
266
+
267
+ onSelfMsg : Platform.Router msg Never -> Never -> () -> Task Never ()
268
+ onSelfMsg _ _ _ =
269
+ succeed ()
270
+
271
+
272
+ spawnCmd : Platform.Router msg Never -> MyCmd msg -> Task x ()
273
+ spawnCmd router (Perform task) =
274
+ Native.Scheduler.spawn (
275
+ task
276
+ |> andThen (Platform.sendToApp router)
277
+ )
278
+
@@ -0,0 +1,243 @@
1
+ effect module Time where { subscription = MySub } exposing
2
+ ( Time
3
+ , now, every
4
+ , millisecond, second, minute, hour
5
+ , inMilliseconds, inSeconds, inMinutes, inHours
6
+ )
7
+
8
+ {-| Library for working with time.
9
+
10
+ # Time
11
+ @docs Time, now, every
12
+
13
+ # Units
14
+ @docs millisecond, second, minute, hour,
15
+ inMilliseconds, inSeconds, inMinutes, inHours
16
+
17
+ -}
18
+
19
+
20
+ import Basics exposing (..)
21
+ import Dict
22
+ import List exposing ((::))
23
+ import Maybe exposing (Maybe(..))
24
+ import Native.Scheduler
25
+ import Native.Time
26
+ import Platform
27
+ import Platform.Sub exposing (Sub)
28
+ import Task exposing (Task)
29
+
30
+
31
+
32
+ -- TIMES
33
+
34
+
35
+ {-| Type alias to make it clearer when you are working with time values.
36
+ Using the `Time` helpers like `second` and `inSeconds` instead of raw numbers
37
+ is very highly recommended.
38
+ -}
39
+ type alias Time = Float
40
+
41
+
42
+ {-| Get the `Time` at the moment when this task is run.
43
+ -}
44
+ now : Task x Time
45
+ now =
46
+ Native.Time.now
47
+
48
+
49
+ {-| Subscribe to the current time. First you provide an interval describing how
50
+ frequently you want updates. Second, you give a tagger that turns a time into a
51
+ message for your `update` function. So if you want to hear about the current
52
+ time every second, you would say something like this:
53
+
54
+ type Msg = Tick Time | ...
55
+
56
+ subscriptions model =
57
+ every second Tick
58
+
59
+ Check out the [Elm Architecture Tutorial][arch] for more info on how
60
+ subscriptions work.
61
+
62
+ [arch]: https://github.com/evancz/elm-architecture-tutorial/
63
+
64
+ **Note:** this function is not for animation! You need to use something based
65
+ on `requestAnimationFrame` to get smooth animations. This is based on
66
+ `setInterval` which is better for recurring tasks like “check on something
67
+ every 30 seconds”.
68
+ -}
69
+ every : Time -> (Time -> msg) -> Sub msg
70
+ every interval tagger =
71
+ subscription (Every interval tagger)
72
+
73
+
74
+
75
+ -- UNITS
76
+
77
+
78
+ {-| Units of time, making it easier to specify things like a half-second
79
+ `(500 * millisecond)` without remembering Elm&rsquo;s underlying units of time.
80
+ -}
81
+ millisecond : Time
82
+ millisecond =
83
+ 1
84
+
85
+
86
+ {-|-}
87
+ second : Time
88
+ second =
89
+ 1000 * millisecond
90
+
91
+
92
+ {-|-}
93
+ minute : Time
94
+ minute =
95
+ 60 * second
96
+
97
+
98
+ {-|-}
99
+ hour : Time
100
+ hour =
101
+ 60 * minute
102
+
103
+
104
+ {-|-}
105
+ inMilliseconds : Time -> Float
106
+ inMilliseconds t =
107
+ t
108
+
109
+
110
+ {-|-}
111
+ inSeconds : Time -> Float
112
+ inSeconds t =
113
+ t / second
114
+
115
+
116
+ {-|-}
117
+ inMinutes : Time -> Float
118
+ inMinutes t =
119
+ t / minute
120
+
121
+
122
+ {-|-}
123
+ inHours : Time -> Float
124
+ inHours t =
125
+ t / hour
126
+
127
+
128
+
129
+ -- SUBSCRIPTIONS
130
+
131
+
132
+ type MySub msg =
133
+ Every Time (Time -> msg)
134
+
135
+
136
+ subMap : (a -> b) -> MySub a -> MySub b
137
+ subMap f (Every interval tagger) =
138
+ Every interval (f << tagger)
139
+
140
+
141
+
142
+ -- EFFECT MANAGER
143
+
144
+
145
+ type alias State msg =
146
+ { taggers : Taggers msg
147
+ , processes : Processes
148
+ }
149
+
150
+
151
+ type alias Processes =
152
+ Dict.Dict Time Platform.ProcessId
153
+
154
+
155
+ type alias Taggers msg =
156
+ Dict.Dict Time (List (Time -> msg))
157
+
158
+
159
+ init : Task Never (State msg)
160
+ init =
161
+ Task.succeed (State Dict.empty Dict.empty)
162
+
163
+
164
+ onEffects : Platform.Router msg Time -> List (MySub msg) -> State msg -> Task Never (State msg)
165
+ onEffects router subs {processes} =
166
+ let
167
+ newTaggers =
168
+ List.foldl addMySub Dict.empty subs
169
+
170
+ leftStep interval taggers (spawnList, existingDict, killTask) =
171
+ (interval :: spawnList, existingDict, killTask)
172
+
173
+ bothStep interval taggers id (spawnList, existingDict, killTask) =
174
+ (spawnList, Dict.insert interval id existingDict, killTask)
175
+
176
+ rightStep _ id (spawnList, existingDict, killTask) =
177
+ ( spawnList
178
+ , existingDict
179
+ , Native.Scheduler.kill id
180
+ |> Task.andThen (\_ -> killTask)
181
+ )
182
+
183
+ (spawnList, existingDict, killTask) =
184
+ Dict.merge
185
+ leftStep
186
+ bothStep
187
+ rightStep
188
+ newTaggers
189
+ processes
190
+ ([], Dict.empty, Task.succeed ())
191
+ in
192
+ killTask
193
+ |> Task.andThen (\_ -> spawnHelp router spawnList existingDict)
194
+ |> Task.andThen (\newProcesses -> Task.succeed (State newTaggers newProcesses))
195
+
196
+
197
+ addMySub : MySub msg -> Taggers msg -> Taggers msg
198
+ addMySub (Every interval tagger) state =
199
+ case Dict.get interval state of
200
+ Nothing ->
201
+ Dict.insert interval [tagger] state
202
+
203
+ Just taggers ->
204
+ Dict.insert interval (tagger :: taggers) state
205
+
206
+
207
+ spawnHelp : Platform.Router msg Time -> List Time -> Processes -> Task.Task x Processes
208
+ spawnHelp router intervals processes =
209
+ case intervals of
210
+ [] ->
211
+ Task.succeed processes
212
+
213
+ interval :: rest ->
214
+ let
215
+ spawnTimer =
216
+ Native.Scheduler.spawn (setInterval interval (Platform.sendToSelf router interval))
217
+
218
+ spawnRest id =
219
+ spawnHelp router rest (Dict.insert interval id processes)
220
+ in
221
+ spawnTimer
222
+ |> Task.andThen spawnRest
223
+
224
+
225
+ onSelfMsg : Platform.Router msg Time -> Time -> State msg -> Task Never (State msg)
226
+ onSelfMsg router interval state =
227
+ case Dict.get interval state.taggers of
228
+ Nothing ->
229
+ Task.succeed state
230
+
231
+ Just taggers ->
232
+ let
233
+ tellTaggers time =
234
+ Task.sequence (List.map (\tagger -> Platform.sendToApp router (tagger time)) taggers)
235
+ in
236
+ now
237
+ |> Task.andThen tellTaggers
238
+ |> Task.andThen (\_ -> Task.succeed state)
239
+
240
+
241
+ setInterval : Time -> Task Never () -> Task x Never
242
+ setInterval =
243
+ Native.Time.setInterval_
@@ -0,0 +1,61 @@
1
+ module Tuple exposing
2
+ ( first, second
3
+ , mapFirst, mapSecond
4
+ )
5
+
6
+ {-| Some helpers for working with 2-tuples.
7
+
8
+ **Note:** For larger chunks of data, it is best to switch to using records. So
9
+ instead of representing a 3D point as `(3,4,5)` and wondering why there are no
10
+ helper functions, represent it as `{ x = 3, y = 4, z = 5 }` and use all the
11
+ built-in syntax for records.
12
+
13
+ @docs first, second, mapFirst, mapSecond
14
+
15
+ -}
16
+
17
+
18
+
19
+ {-| Extract the first value from a tuple.
20
+
21
+ first (3, 4) == 3
22
+ first ("john", "doe") == "john"
23
+ -}
24
+ first : (a1, a2) -> a1
25
+ first (x,_) =
26
+ x
27
+
28
+
29
+ {-| Extract the second value from a tuple.
30
+
31
+ second (3, 4) == 4
32
+ second ("john", "doe") == "doe"
33
+ -}
34
+ second : (a1, a2) -> a2
35
+ second (_,y) =
36
+ y
37
+
38
+
39
+ {-| Transform the first value in a tuple.
40
+
41
+ import String
42
+
43
+ mapFirst String.reverse ("stressed", 16) == ("desserts", 16)
44
+ mapFirst String.length ("stressed", 16) == (8, 16)
45
+ -}
46
+ mapFirst : (a -> b) -> (a, a2) -> (b, a2)
47
+ mapFirst func (x,y) =
48
+ (func x, y)
49
+
50
+
51
+ {-| Transform the second value in a tuple.
52
+
53
+ import String
54
+
55
+ mapSecond sqrt ("stressed", 16) == ("stressed", 4)
56
+ mapSecond (\x -> x + 1) ("stressed", 16) == ("stressed", 17)
57
+ -}
58
+ mapSecond : (a -> b) -> (a1, a) -> (a1, b)
59
+ mapSecond func (x,y) =
60
+ (x, func y)
61
+
@@ -0,0 +1,90 @@
1
+ module Test.Array exposing (tests)
2
+
3
+ import Array
4
+ import Basics exposing (..)
5
+ import List
6
+ import List exposing ((::))
7
+ import Maybe exposing (..)
8
+ import Native.Array
9
+
10
+ import ElmTest exposing (..)
11
+
12
+ mergeSplit : Int -> Array.Array a -> Array.Array a
13
+ mergeSplit n arr =
14
+ let left = Array.slice 0 n arr
15
+ right = Array.slice n (Array.length arr) arr
16
+ in Array.append left right
17
+
18
+ holeArray : Array.Array Int
19
+ holeArray = List.foldl mergeSplit (Array.fromList [0..100]) [0..100]
20
+
21
+ mapArray: Array.Array a -> Array.Array a
22
+ mapArray array =
23
+ Array.indexedMap (\i el ->
24
+ case (Array.get i array) of
25
+ Just x -> x
26
+ Nothing -> el
27
+ ) array
28
+
29
+ tests : Test
30
+ tests =
31
+ let creationTests = suite "Creation"
32
+ [ test "empty" <| assertEqual Array.empty (Array.fromList [])
33
+ , test "initialize" <| assertEqual (Array.initialize 4 identity) (Array.fromList [0,1,2,3])
34
+ , test "initialize 2" <| assertEqual (Array.initialize 4 (\n -> n*n)) (Array.fromList [0,1,4,9])
35
+ , test "initialize 3" <| assertEqual (Array.initialize 4 (always 0)) (Array.fromList [0,0,0,0])
36
+ , test "initialize Empty" <| assertEqual (Array.initialize 0 identity) Array.empty
37
+ , test "initialize 4" <| assertEqual (Array.initialize 2 (always 0)) (Array.fromList [0,0])
38
+ , test "initialize negative" <| assertEqual (Array.initialize -1 identity) Array.empty
39
+ , test "repeat" <| assertEqual (Array.repeat 5 40) (Array.fromList [40,40,40,40,40])
40
+ , test "repeat 2" <| assertEqual (Array.repeat 5 0) (Array.fromList [0,0,0,0,0])
41
+ , test "repeat 3" <| assertEqual (Array.repeat 3 "cat") (Array.fromList ["cat","cat","cat"])
42
+ , test "fromList" <| assertEqual (Array.fromList []) Array.empty
43
+ ]
44
+ basicsTests = suite "Basics"
45
+ [ test "length" <| assertEqual 3 (Array.length (Array.fromList [1,2,3]))
46
+ , test "length - Long" <| assertEqual 10000 (Array.length (Array.repeat 10000 0))
47
+ , test "push" <| assertEqual (Array.fromList [1,2,3]) (Array.push 3 (Array.fromList [1,2]))
48
+ , test "append" <| assertEqual [42,42,81,81,81] (Array.toList (Array.append (Array.repeat 2 42) (Array.repeat 3 81)))
49
+ , test "appendEmpty 1" <| assertEqual [1..33] (Array.toList (Array.append Array.empty (Array.fromList [1..33])))
50
+ , test "appendEmpty 2" <| assertEqual [1..33] (Array.toList (Array.append (Array.fromList [1..33]) Array.empty))
51
+ , test "appendSmall 1" <| assertEqual [1..33] (Array.toList (Array.append (Array.fromList [1..30]) (Array.fromList [31..33])))
52
+ , test "appendSmall 2" <| assertEqual [1..33] (Array.toList (Array.append (Array.fromList [1..3]) (Array.fromList [4..33])))
53
+ , test "appendAndSlice" <| assertEqual [0..100] (Array.toList holeArray)
54
+ ]
55
+ getAndSetTests = suite "Get and Set"
56
+ [ test "get" <| assertEqual (Just 2) (Array.get 1 (Array.fromList [3,2,1]))
57
+ , test "get 2" <| assertEqual Nothing (Array.get 5 (Array.fromList [3,2,1]))
58
+ , test "get 3" <| assertEqual Nothing (Array.get -1 (Array.fromList [3,2,1]))
59
+ , test "set" <| assertEqual (Array.fromList [1,7,3]) (Array.set 1 7 (Array.fromList [1,2,3]))
60
+ ]
61
+ takingArraysApartTests = suite "Taking Arrays Apart"
62
+ [ test "toList" <| assertEqual [3,5,8] (Array.toList (Array.fromList [3,5,8]))
63
+ , test "toIndexedList" <| assertEqual [(0,"cat"), (1,"dog")] (Array.toIndexedList (Array.fromList ["cat","dog"]))
64
+ , test "slice 1" <| assertEqual (Array.fromList [0,1,2]) (Array.slice 0 3 (Array.fromList [0,1,2,3,4]))
65
+ , test "slice 2" <| assertEqual (Array.fromList [1,2,3]) (Array.slice 1 4 (Array.fromList [0,1,2,3,4]))
66
+ , test "slice 3" <| assertEqual (Array.fromList [1,2,3]) (Array.slice 1 -1 (Array.fromList [0,1,2,3,4]))
67
+ , test "slice 4" <| assertEqual (Array.fromList [2]) (Array.slice -3 -2 (Array.fromList [0,1,2,3,4]))
68
+ , test "slice 5" <| assertEqual 63 (Array.length <| Array.slice 65 (65 + 63) <| Array.fromList [1..200])
69
+ ]
70
+ mappingAndFoldingTests = suite "Mapping and Folding"
71
+ [ test "map" <| assertEqual (Array.fromList [1,2,3]) (Array.map sqrt (Array.fromList [1,4,9]))
72
+ , test "indexedMap 1" <| assertEqual (Array.fromList [0,5,10]) (Array.indexedMap (*) (Array.fromList [5,5,5]))
73
+ , test "indexedMap 2" <| assertEqual [0..99] (Array.toList (Array.indexedMap always (Array.repeat 100 0)))
74
+ , test "large indexed map" <| assertEqual [0..32768 - 1] (Array.toList <| mapArray <| Array.initialize 32768 identity)
75
+ , test "foldl 1" <| assertEqual [3,2,1] (Array.foldl (::) [] (Array.fromList [1,2,3]))
76
+ , test "foldl 2" <| assertEqual 33 (Array.foldl (+) 0 (Array.repeat 33 1))
77
+ , test "foldr 1" <| assertEqual 15 (Array.foldr (+) 0 (Array.repeat 3 5))
78
+ , test "foldr 2" <| assertEqual [1,2,3] (Array.foldr (::) [] (Array.fromList [1,2,3]))
79
+ , test "foldr 3" <| assertEqual 53 (Array.foldr (-) 54 (Array.fromList [10,11]))
80
+ , test "filter" <| assertEqual (Array.fromList [2,4,6]) (Array.filter (\x -> x % 2 == 0) (Array.fromList [1..6]))
81
+ ]
82
+
83
+ nativeTests = suite "Conversion to JS Arrays"
84
+ [ test "jsArrays" <| assertEqual (Array.fromList [1..1100]) (Native.Array.fromJSArray (Native.Array.toJSArray (Array.fromList [1..1100])))
85
+ ]
86
+ in
87
+ suite "Array"
88
+ [ creationTests, basicsTests, getAndSetTests
89
+ , takingArraysApartTests, mappingAndFoldingTests, nativeTests
90
+ ]