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,520 @@
1
+ module Json.Decode exposing
2
+ ( Decoder, string, bool, int, float
3
+ , nullable, list, array, dict, keyValuePairs
4
+ , field, at, index
5
+ , maybe, oneOf
6
+ , decodeString, decodeValue, Value
7
+ , map, map2, map3, map4, map5, map6, map7, map8
8
+ , lazy, value, null, succeed, fail, andThen
9
+ )
10
+
11
+ {-| Turn JSON values into Elm values. Definitely check out this [intro to
12
+ JSON decoders][guide] to get a feel for how this library works!
13
+
14
+ [guide]: https://guide.elm-lang.org/interop/json.html
15
+
16
+ # Primitives
17
+ @docs Decoder, string, bool, int, float
18
+
19
+ # Data Structures
20
+ @docs nullable, list, array, dict, keyValuePairs
21
+
22
+ # Object Primitives
23
+ @docs field, at, index
24
+
25
+ # Inconsistent Structure
26
+ @docs maybe, oneOf
27
+
28
+ # Run Decoders
29
+ @docs decodeString, decodeValue, Value
30
+
31
+ # Mapping
32
+
33
+ **Note:** If you run out of map functions, take a look at [elm-decode-pipeline][pipe]
34
+ which makes it easier to handle large objects, but produces lower quality type
35
+ errors.
36
+
37
+ [pipe]: http://package.elm-lang.org/packages/NoRedInk/elm-decode-pipeline/latest
38
+
39
+ @docs map, map2, map3, map4, map5, map6, map7, map8
40
+
41
+ # Fancy Decoding
42
+ @docs lazy, value, null, succeed, fail, andThen
43
+ -}
44
+
45
+
46
+ import Array exposing (Array)
47
+ import Dict exposing (Dict)
48
+ import Json.Encode as JsEncode
49
+ import List
50
+ import Maybe exposing (Maybe(..))
51
+ import Result exposing (Result(..))
52
+ import Native.Json
53
+
54
+
55
+
56
+ -- PRIMITIVES
57
+
58
+
59
+ {-| A value that knows how to decode JSON values.
60
+ -}
61
+ type Decoder a = Decoder
62
+
63
+
64
+ {-| Decode a JSON string into an Elm `String`.
65
+
66
+ decodeString string "true" == Err ...
67
+ decodeString string "42" == Err ...
68
+ decodeString string "3.14" == Err ...
69
+ decodeString string "\"hello\"" == Ok "hello"
70
+ decodeString string "{ \"hello\": 42 }" == Err ...
71
+ -}
72
+ string : Decoder String
73
+ string =
74
+ Native.Json.decodePrimitive "string"
75
+
76
+
77
+ {-| Decode a JSON boolean into an Elm `Bool`.
78
+
79
+ decodeString bool "true" == Ok True
80
+ decodeString bool "42" == Err ...
81
+ decodeString bool "3.14" == Err ...
82
+ decodeString bool "\"hello\"" == Err ...
83
+ decodeString bool "{ \"hello\": 42 }" == Err ...
84
+ -}
85
+ bool : Decoder Bool
86
+ bool =
87
+ Native.Json.decodePrimitive "bool"
88
+
89
+
90
+ {-| Decode a JSON number into an Elm `Int`.
91
+
92
+ decodeString int "true" == Err ...
93
+ decodeString int "42" == Ok 42
94
+ decodeString int "3.14" == Err ...
95
+ decodeString int "\"hello\"" == Err ...
96
+ decodeString int "{ \"hello\": 42 }" == Err ...
97
+ -}
98
+ int : Decoder Int
99
+ int =
100
+ Native.Json.decodePrimitive "int"
101
+
102
+
103
+ {-| Decode a JSON number into an Elm `Float`.
104
+
105
+ decodeString float "true" == Err ..
106
+ decodeString float "42" == Ok 42
107
+ decodeString float "3.14" == Ok 3.14
108
+ decodeString float "\"hello\"" == Err ...
109
+ decodeString float "{ \"hello\": 42 }" == Err ...
110
+ -}
111
+ float : Decoder Float
112
+ float =
113
+ Native.Json.decodePrimitive "float"
114
+
115
+
116
+
117
+ -- DATA STRUCTURES
118
+
119
+
120
+ {-| Decode a nullable JSON value into an Elm value.
121
+
122
+ decodeString (nullable int) "13" == Ok (Just 13)
123
+ decodeString (nullable int) "42" == Ok (Just 42)
124
+ decodeString (nullable int) "null" == Ok Nothing
125
+ decodeString (nullable int) "true" == Err ..
126
+ -}
127
+ nullable : Decoder a -> Decoder (Maybe a)
128
+ nullable decoder =
129
+ oneOf
130
+ [ null Nothing
131
+ , map Just decoder
132
+ ]
133
+
134
+
135
+ {-| Decode a JSON array into an Elm `List`.
136
+
137
+ decodeString (list int) "[1,2,3]" == Ok [1,2,3]
138
+ decodeString (list bool) "[true,false]" == Ok [True,False]
139
+ -}
140
+ list : Decoder a -> Decoder (List a)
141
+ list decoder =
142
+ Native.Json.decodeContainer "list" decoder
143
+
144
+
145
+ {-| Decode a JSON array into an Elm `Array`.
146
+
147
+ decodeString (array int) "[1,2,3]" == Ok (Array.fromList [1,2,3])
148
+ decodeString (array bool) "[true,false]" == Ok (Array.fromList [True,False])
149
+ -}
150
+ array : Decoder a -> Decoder (Array a)
151
+ array decoder =
152
+ Native.Json.decodeContainer "array" decoder
153
+
154
+
155
+ {-| Decode a JSON object into an Elm `Dict`.
156
+
157
+ decodeString (dict int) "{ \"alice\": 42, \"bob\": 99 }"
158
+ == Dict.fromList [("alice", 42), ("bob", 99)]
159
+ -}
160
+ dict : Decoder a -> Decoder (Dict String a)
161
+ dict decoder =
162
+ map Dict.fromList (keyValuePairs decoder)
163
+
164
+
165
+ {-| Decode a JSON object into an Elm `List` of pairs.
166
+
167
+ decodeString (keyValuePairs int) "{ \"alice\": 42, \"bob\": 99 }"
168
+ == [("alice", 42), ("bob", 99)]
169
+ -}
170
+ keyValuePairs : Decoder a -> Decoder (List (String, a))
171
+ keyValuePairs =
172
+ Native.Json.decodeKeyValuePairs
173
+
174
+
175
+
176
+ -- OBJECT PRIMITIVES
177
+
178
+
179
+ {-| Decode a JSON object, requiring a particular field.
180
+
181
+ decodeString (field "x" int) "{ \"x\": 3 }" == Ok 3
182
+ decodeString (field "x" int) "{ \"x\": 3, \"y\": 4 }" == Ok 3
183
+ decodeString (field "x" int) "{ \"x\": true }" == Err ...
184
+ decodeString (field "x" int) "{ \"y\": 4 }" == Err ...
185
+
186
+ decodeString (field "name" string) "{ \"name\": \"tom\" }" == Ok "tom"
187
+
188
+ The object *can* have other fields. Lots of them! The only thing this decoder
189
+ cares about is if `x` is present and that the value there is an `Int`.
190
+
191
+ Check out [`map2`](#map2) to see how to decode multiple fields!
192
+ -}
193
+ field : String -> Decoder a -> Decoder a
194
+ field =
195
+ Native.Json.decodeField
196
+
197
+
198
+ {-| Decode a nested JSON object, requiring certain fields.
199
+
200
+ json = """{ "person": { "name": "tom", "age": 42 } }"""
201
+
202
+ decodeString (at ["person", "name"] string) json == Ok "tom"
203
+ decodeString (at ["person", "age" ] int ) json == Ok "42
204
+
205
+ This is really just a shorthand for saying things like:
206
+
207
+ field "person" (field "name" string) == at ["person","name"] string
208
+ -}
209
+ at : List String -> Decoder a -> Decoder a
210
+ at fields decoder =
211
+ List.foldr field decoder fields
212
+
213
+
214
+ {-| Decode a JSON array, requiring a particular index.
215
+
216
+ json = """[ "alice", "bob", "chuck" ]"""
217
+
218
+ decodeString (index 0 string) json == Ok "alice"
219
+ decodeString (index 1 string) json == Ok "bob"
220
+ decodeString (index 2 string) json == Ok "chuck"
221
+ decodeString (index 3 string) json == Err ...
222
+ -}
223
+ index : Int -> Decoder a -> Decoder a
224
+ index =
225
+ Native.Json.decodeIndex
226
+
227
+
228
+
229
+ -- WEIRD STRUCTURE
230
+
231
+
232
+ {-| Helpful for dealing with optional fields. Here are a few slightly different
233
+ examples:
234
+
235
+ json = """{ "name": "tom", "age": 42 }"""
236
+
237
+ decodeString (maybe (field "age" int )) json == Ok (Just 42)
238
+ decodeString (maybe (field "name" int )) json == Ok Nothing
239
+ decodeString (maybe (field "height" float)) json == Ok Nothing
240
+
241
+ decodeString (field "age" (maybe int )) json == Ok (Just 42)
242
+ decodeString (field "name" (maybe int )) json == Ok Nothing
243
+ decodeString (field "height" (maybe float)) json == Err ...
244
+
245
+ Notice the last example! It is saying we *must* have a field named `height` and
246
+ the content *may* be a float. There is no `height` field, so the decoder fails.
247
+
248
+ Point is, `maybe` will make exactly what it contains conditional. For optional
249
+ fields, this means you probably want it *outside* a use of `field` or `at`.
250
+ -}
251
+ maybe : Decoder a -> Decoder (Maybe a)
252
+ maybe decoder =
253
+ Native.Json.decodeContainer "maybe" decoder
254
+
255
+
256
+ {-| Try a bunch of different decoders. This can be useful if the JSON may come
257
+ in a couple different formats. For example, say you want to read an array of
258
+ numbers, but some of them are `null`.
259
+
260
+ import String
261
+
262
+ badInt : Decoder Int
263
+ badInt =
264
+ oneOf [ int, null 0 ]
265
+
266
+ -- decodeString (list badInt) "[1,2,null,4]" == Ok [1,2,0,4]
267
+
268
+ Why would someone generate JSON like this? Questions like this are not good
269
+ for your health. The point is that you can use `oneOf` to handle situations
270
+ like this!
271
+
272
+ You could also use `oneOf` to help version your data. Try the latest format,
273
+ then a few older ones that you still support. You could use `andThen` to be
274
+ even more particular if you wanted.
275
+ -}
276
+ oneOf : List (Decoder a) -> Decoder a
277
+ oneOf =
278
+ Native.Json.oneOf
279
+
280
+
281
+
282
+ -- MAPPING
283
+
284
+
285
+ {-| Transform a decoder. Maybe you just want to know the length of a string:
286
+
287
+ import String
288
+
289
+ stringLength : Decoder Int
290
+ stringLength =
291
+ map String.length string
292
+
293
+ It is often helpful to use `map` with `oneOf`, like when defining `nullable`:
294
+
295
+ nullable : Decoder a -> Decoder (Maybe a)
296
+ nullable decoder =
297
+ oneOf
298
+ [ null Nothing
299
+ , map Just decoder
300
+ ]
301
+ -}
302
+ map : (a -> value) -> Decoder a -> Decoder value
303
+ map =
304
+ Native.Json.map1
305
+
306
+
307
+ {-| Try two decoders and then combine the result. We can use this to decode
308
+ objects with many fields:
309
+
310
+ type alias Point = { x : Float, y : Float }
311
+
312
+ point : Decoder Point
313
+ point =
314
+ map2 Point
315
+ (field "x" float)
316
+ (field "y" float)
317
+
318
+ -- decodeString point """{ "x": 3, "y": 4 }""" == Ok { x = 3, y = 4 }
319
+
320
+ It tries each individual decoder and puts the result together with the `Point`
321
+ constructor.
322
+ -}
323
+ map2 : (a -> b -> value) -> Decoder a -> Decoder b -> Decoder value
324
+ map2 =
325
+ Native.Json.map2
326
+
327
+
328
+ {-| Try three decoders and then combine the result. We can use this to decode
329
+ objects with many fields:
330
+
331
+ type alias Person = { name : String, age : Int, height : Float }
332
+
333
+ person : Decoder Person
334
+ person =
335
+ map3 Person
336
+ (at ["name"] string)
337
+ (at ["info","age"] int)
338
+ (at ["info","height"] float)
339
+
340
+ -- json = """{ "name": "tom", "info": { "age": 42, "height": 1.8 } }"""
341
+ -- decodeString point json == Ok { name = "tom", age = 42, height = 1.8 }
342
+
343
+ Like `map2` it tries each decoder in order and then give the results to the
344
+ `Person` constructor. That can be any function though!
345
+ -}
346
+ map3 : (a -> b -> c -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder value
347
+ map3 =
348
+ Native.Json.map3
349
+
350
+
351
+ {-|-}
352
+ map4 : (a -> b -> c -> d -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder d -> Decoder value
353
+ map4 =
354
+ Native.Json.map4
355
+
356
+
357
+ {-|-}
358
+ map5 : (a -> b -> c -> d -> e -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder d -> Decoder e -> Decoder value
359
+ map5 =
360
+ Native.Json.map5
361
+
362
+
363
+ {-|-}
364
+ map6 : (a -> b -> c -> d -> e -> f -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder d -> Decoder e -> Decoder f -> Decoder value
365
+ map6 =
366
+ Native.Json.map6
367
+
368
+
369
+ {-|-}
370
+ map7 : (a -> b -> c -> d -> e -> f -> g -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder d -> Decoder e -> Decoder f -> Decoder g -> Decoder value
371
+ map7 =
372
+ Native.Json.map7
373
+
374
+
375
+ {-|-}
376
+ map8 : (a -> b -> c -> d -> e -> f -> g -> h -> value) -> Decoder a -> Decoder b -> Decoder c -> Decoder d -> Decoder e -> Decoder f -> Decoder g -> Decoder h -> Decoder value
377
+ map8 =
378
+ Native.Json.map8
379
+
380
+
381
+
382
+ -- RUN DECODERS
383
+
384
+
385
+ {-| Parse the given string into a JSON value and then run the `Decoder` on it.
386
+ This will fail if the string is not well-formed JSON or if the `Decoder`
387
+ fails for some reason.
388
+
389
+ decodeString int "4" == Ok 4
390
+ decodeString int "1 + 2" == Err ...
391
+ -}
392
+ decodeString : Decoder a -> String -> Result String a
393
+ decodeString =
394
+ Native.Json.runOnString
395
+
396
+
397
+ {-| Run a `Decoder` on some JSON `Value`. You can send these JSON values
398
+ through ports, so that is probably the main time you would use this function.
399
+ -}
400
+ decodeValue : Decoder a -> Value -> Result String a
401
+ decodeValue =
402
+ Native.Json.run
403
+
404
+
405
+ {-| A JSON value.
406
+ -}
407
+ type alias Value = JsEncode.Value
408
+
409
+
410
+
411
+ -- FANCY PRIMITIVES
412
+
413
+
414
+ {-| Ignore the JSON and produce a certain Elm value.
415
+
416
+ decodeString (succeed 42) "true" == Ok 42
417
+ decodeString (succeed 42) "[1,2,3]" == Ok 42
418
+ decodeString (succeed 42) "hello" == Err ... -- this is not a valid JSON string
419
+
420
+ This is handy when used with `oneOf` or `andThen`.
421
+ -}
422
+ succeed : a -> Decoder a
423
+ succeed =
424
+ Native.Json.succeed
425
+
426
+
427
+ {-| Ignore the JSON and make the decoder fail. This is handy when used with
428
+ `oneOf` or `andThen` where you want to give a custom error message in some
429
+ case.
430
+
431
+ See the [`andThen`](#andThen) docs for an example.
432
+ -}
433
+ fail : String -> Decoder a
434
+ fail =
435
+ Native.Json.fail
436
+
437
+
438
+ {-| Create decoders that depend on previous results. If you are creating
439
+ versioned data, you might do something like this:
440
+
441
+ info : Decoder Info
442
+ info =
443
+ field "version" int
444
+ |> andThen infoHelp
445
+
446
+ infoHelp : Int -> Decoder Info
447
+ infoHelp version =
448
+ case version of
449
+ 4 ->
450
+ infoDecoder4
451
+
452
+ 3 ->
453
+ infoDecoder3
454
+
455
+ _ ->
456
+ fail <|
457
+ "Trying to decode info, but version "
458
+ ++ toString version ++ " is not supported."
459
+
460
+ -- infoDecoder4 : Decoder Info
461
+ -- infoDecoder3 : Decoder Info
462
+ -}
463
+ andThen : (a -> Decoder b) -> Decoder a -> Decoder b
464
+ andThen =
465
+ Native.Json.andThen
466
+
467
+
468
+ {-| Sometimes you have JSON with recursive structure, like nested comments.
469
+ You can use `lazy` to make sure your decoder unrolls lazily.
470
+
471
+ type alias Comment =
472
+ { message : String
473
+ , responses : Responses
474
+ }
475
+
476
+ type Responses = Responses (List Comment)
477
+
478
+ comment : Decoder Comment
479
+ comment =
480
+ object Comment
481
+ |> required "message" string
482
+ |> required "responses" (map Responses (list (lazy (\_ -> comment))))
483
+
484
+ If we had said `list comment` instead, we would start expanding the value
485
+ infinitely. What is a `comment`? It is a decoder for objects where the
486
+ `responses` field contains comments. What is a `comment` though? Etc.
487
+
488
+ By using `list (lazy (\_ -> comment))` we make sure the decoder only expands
489
+ to be as deep as the JSON we are given. You can read more about recursive data
490
+ structures [here][].
491
+
492
+ [here]: https://github.com/elm-lang/elm-compiler/blob/master/hints/recursive-alias.md
493
+ -}
494
+ lazy : (() -> Decoder a) -> Decoder a
495
+ lazy thunk =
496
+ andThen thunk (succeed ())
497
+
498
+
499
+ {-| Do not do anything with a JSON value, just bring it into Elm as a `Value`.
500
+ This can be useful if you have particularly crazy data that you would like to
501
+ deal with later. Or if you are going to send it out a port and do not care
502
+ about its structure.
503
+ -}
504
+ value : Decoder Value
505
+ value =
506
+ Native.Json.decodePrimitive "value"
507
+
508
+
509
+ {-| Decode a `null` value into some Elm value.
510
+
511
+ decodeString (null False) "null" == Ok False
512
+ decodeString (null 42) "null" == Ok 42
513
+ decodeString (null 42) "42" == Err ..
514
+ decodeString (null 42) "false" == Err ..
515
+
516
+ So if you ever see a `null`, this will return whatever value you specified.
517
+ -}
518
+ null : a -> Decoder a
519
+ null =
520
+ Native.Json.decodeNull
@@ -0,0 +1,102 @@
1
+ module Json.Encode exposing
2
+ ( Value
3
+ , encode
4
+ , string, int, float, bool, null
5
+ , list, array
6
+ , object
7
+ )
8
+
9
+ {-| Library for turning Elm values into Json values.
10
+
11
+ # Encoding
12
+ @docs encode, Value
13
+
14
+ # Primitives
15
+ @docs string, int, float, bool, null
16
+
17
+ # Arrays
18
+ @docs list, array
19
+
20
+ # Objects
21
+ @docs object
22
+ -}
23
+
24
+ import Array exposing (Array)
25
+ import Native.Json
26
+
27
+
28
+ {-| Represents a JavaScript value.
29
+ -}
30
+ type Value = Value
31
+
32
+
33
+ {-| Convert a `Value` into a prettified string. The first argument specifies
34
+ the amount of indentation in the resulting string.
35
+
36
+ person =
37
+ object
38
+ [ ("name", string "Tom")
39
+ , ("age", int 42)
40
+ ]
41
+
42
+ compact = encode 0 person
43
+ -- {"name":"Tom","age":42}
44
+
45
+ readable = encode 4 person
46
+ -- {
47
+ -- "name": "Tom",
48
+ -- "age": 42
49
+ -- }
50
+ -}
51
+ encode : Int -> Value -> String
52
+ encode =
53
+ Native.Json.encode
54
+
55
+
56
+ {-|-}
57
+ string : String -> Value
58
+ string =
59
+ Native.Json.identity
60
+
61
+
62
+ {-|-}
63
+ int : Int -> Value
64
+ int =
65
+ Native.Json.identity
66
+
67
+
68
+ {-| Encode a Float. `Infinity` and `NaN` are encoded as `null`.
69
+ -}
70
+ float : Float -> Value
71
+ float =
72
+ Native.Json.identity
73
+
74
+
75
+ {-|-}
76
+ bool : Bool -> Value
77
+ bool =
78
+ Native.Json.identity
79
+
80
+
81
+ {-|-}
82
+ null : Value
83
+ null =
84
+ Native.Json.encodeNull
85
+
86
+
87
+ {-|-}
88
+ object : List (String, Value) -> Value
89
+ object =
90
+ Native.Json.encodeObject
91
+
92
+
93
+ {-|-}
94
+ array : Array Value -> Value
95
+ array =
96
+ Native.Json.encodeArray
97
+
98
+
99
+ {-|-}
100
+ list : List Value -> Value
101
+ list =
102
+ Native.Json.encodeList