batman-rails-flo 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +29 -0
  3. data/Rakefile +2 -0
  4. data/lib/batman-rails-flo.rb +5 -0
  5. data/lib/batman_rails_flo/railtie.rb +9 -0
  6. data/lib/batman_rails_flo/tasks.rake +14 -0
  7. data/lib/batman_rails_flo/version.rb +3 -0
  8. data/vendor/assets/javascripts/batman_rails_flo/flo_server.js +67 -0
  9. data/vendor/assets/javascripts/batman_rails_flo/live_reload.js.coffee +129 -0
  10. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/CNAME +1 -0
  11. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/CONTRIBUTING.md +9 -0
  12. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/LICENSE +22 -0
  13. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/README +50 -0
  14. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/bin/cake +7 -0
  15. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/bin/coffee +7 -0
  16. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/browser.js +134 -0
  17. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/cake.js +112 -0
  18. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/coffee-script.js +335 -0
  19. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/command.js +569 -0
  20. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/grammar.js +631 -0
  21. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/helpers.js +252 -0
  22. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/index.js +11 -0
  23. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/lexer.js +926 -0
  24. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/nodes.js +3158 -0
  25. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/optparse.js +139 -0
  26. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/parser.js +724 -0
  27. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/register.js +66 -0
  28. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/repl.js +163 -0
  29. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/rewriter.js +475 -0
  30. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/scope.js +146 -0
  31. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/lib/coffee-script/sourcemap.js +161 -0
  32. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/LICENSE +21 -0
  33. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/examples/pow.js +6 -0
  34. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/index.js +82 -0
  35. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/package.json +34 -0
  36. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/readme.markdown +63 -0
  37. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/chmod.js +38 -0
  38. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/clobber.js +37 -0
  39. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/mkdirp.js +28 -0
  40. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/perm.js +32 -0
  41. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/perm_sync.js +39 -0
  42. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/race.js +41 -0
  43. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/rel.js +32 -0
  44. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/return.js +25 -0
  45. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/return_sync.js +24 -0
  46. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/root.js +18 -0
  47. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/sync.js +32 -0
  48. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/umask.js +28 -0
  49. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/node_modules/mkdirp/test/umask_sync.js +32 -0
  50. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/package.json +50 -0
  51. data/vendor/assets/javascripts/batman_rails_flo/node_modules/coffee-script/register.js +1 -0
  52. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/LICENSE +30 -0
  53. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/PATENTS +23 -0
  54. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/README.md +124 -0
  55. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/bin/flo +26 -0
  56. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/configure/configure.html +57 -0
  57. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/configure/configure.js +205 -0
  58. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/configure/style.css +334 -0
  59. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/connection.js +235 -0
  60. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/devtools.html +12 -0
  61. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/index.js +323 -0
  62. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/logger.js +42 -0
  63. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/logo.png +0 -0
  64. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/manifest.json +13 -0
  65. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/client/session.js +305 -0
  66. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/index.js +10 -0
  67. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/lib/flo.js +226 -0
  68. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/lib/server.js +94 -0
  69. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/README.md +66 -0
  70. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/index.js +437 -0
  71. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/LICENSE +23 -0
  72. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/README.md +218 -0
  73. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/minimatch.js +1055 -0
  74. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/CONTRIBUTORS +14 -0
  75. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
  76. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
  77. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +252 -0
  78. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/package.json +33 -0
  79. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/test/basic.js +369 -0
  80. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
  81. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
  82. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
  83. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
  84. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
  85. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
  86. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
  87. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
  88. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/package.json +40 -0
  89. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/test/basic.js +399 -0
  90. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/test/brace-expand.js +33 -0
  91. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/test/caching.js +14 -0
  92. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/test/defaults.js +274 -0
  93. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/minimatch/test/extglob-ending-with-state-char.js +8 -0
  94. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/lib/walker.js +111 -0
  95. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/license +13 -0
  96. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/lib/makeerror.js +87 -0
  97. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/node_modules/tmpl/lib/tmpl.js +17 -0
  98. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/node_modules/tmpl/package.json +31 -0
  99. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/node_modules/tmpl/readme.md +10 -0
  100. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/package.json +34 -0
  101. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/node_modules/makeerror/readme.md +77 -0
  102. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/package.json +36 -0
  103. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/walker/readme.md +52 -0
  104. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/LICENSE +55 -0
  105. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/main.js +128 -0
  106. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/package.json +34 -0
  107. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/readme.mkd +72 -0
  108. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/d/d/t +0 -0
  109. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/d/t +0 -0
  110. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitor.js +31 -0
  111. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_monitorRootDirectory.js +28 -0
  112. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/node_modules/watch/test/test_watchTree.js +20 -0
  113. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/package.json +45 -0
  114. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/sane/test/test.js +243 -0
  115. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/CHANGELOG.md +81 -0
  116. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/LICENSE +177 -0
  117. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/Makefile +11 -0
  118. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/README.md +245 -0
  119. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/binding.gyp +14 -0
  120. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Makefile +355 -0
  121. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Release/linker.lock +0 -0
  122. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Release/obj.target/validation/src/validation.o +0 -0
  123. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Release/obj.target/xor/src/xor.o +0 -0
  124. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Release/validation.node +0 -0
  125. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/Release/xor.node +0 -0
  126. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/binding.Makefile +6 -0
  127. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/config.gypi +115 -0
  128. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/gyp-mac-tool +512 -0
  129. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/validation.target.mk +154 -0
  130. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/build/xor.target.mk +154 -0
  131. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/index.js +1 -0
  132. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/install.js +31 -0
  133. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/Constants.js +23 -0
  134. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/Deprecation.js +38 -0
  135. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/Validation.fallback.js +12 -0
  136. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/Validation.js +18 -0
  137. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketClient.js +359 -0
  138. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketConnection.js +717 -0
  139. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketFrame.js +282 -0
  140. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketRequest.js +478 -0
  141. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketRouter.js +154 -0
  142. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketRouterRequest.js +59 -0
  143. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/WebSocketServer.js +216 -0
  144. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/utils.js +7 -0
  145. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/websocket.js +11 -0
  146. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/xor.fallback.js +13 -0
  147. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/lib/xor.js +18 -0
  148. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/package.json +43 -0
  149. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/src/validation.cc +144 -0
  150. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/src/xor.cpp +86 -0
  151. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/vendor/FastBufferList.js +192 -0
  152. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/vendor/node-ctype/LICENSE +18 -0
  153. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/node_modules/websocket/vendor/node-ctype/ctio-faster.js +1126 -0
  154. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/package.json +25 -0
  155. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/test/client/browser_websocket.js +63 -0
  156. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/test/client/connection_test.js +57 -0
  157. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/test/client/logger_mock.js +15 -0
  158. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/test/client/session_test.js +194 -0
  159. data/vendor/assets/javascripts/batman_rails_flo/node_modules/fb-flo/test/server/flo_test.js +211 -0
  160. data/vendor/assets/javascripts/batman_rails_flo/package.json +15 -0
  161. data/vendor/assets/javascripts/batman_rails_flo/reload_event_handler.js.coffee +56 -0
  162. metadata +232 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a80dbb083d250de25b133e8977f407db24fb1797
4
+ data.tar.gz: 5889c813d18a6590a49d2fda403015e1ef068e48
5
+ SHA512:
6
+ metadata.gz: e828a073f8ee7272ae1d55debe1ad39e89626311786d82e9bc50a10c667358d936d48e160593656f4d1d573f7ea9f69f7bc830a99a7119205a41844c376d50ca
7
+ data.tar.gz: f3da4a8c02e8687175a6f5588bf530ee8c55c6841cd6a467783b7d1914d1cdabc7f13ef8fb0beb40fd28527ee55b1fa5e30de6eb32490896a7c65500f0008f63
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Batman::Rails::Flo
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'batman-rails-flo'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install batman-rails-flo
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/[my-github-username]/batman-rails-flo/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ require "lib/batman_rails_flo/tasks"
@@ -0,0 +1,5 @@
1
+ require "batman_rails_flo/version"
2
+
3
+ module BatmanRailsFlo
4
+ require "batman_rails_flo/railtie" if defined?(Rails)
5
+ end
@@ -0,0 +1,9 @@
1
+ require 'batman-rails-flo'
2
+ require 'rails'
3
+ module BatmanRailsFlo
4
+ class Railtie < Rails::Railtie
5
+ rake_tasks do
6
+ Dir[File.join(File.dirname(__FILE__),'*.rake')].each { |f| load f }
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ namespace :batman do
2
+ desc "Start the live-reload server (fb-flo)"
3
+ task :live_reload do
4
+ puts "Starting the live-reload server (node.js is required)"
5
+ gem_root = File.dirname(File.dirname(File.dirname(__FILE__)))
6
+ cmd = "node #{gem_root}/vendor/assets/javascripts/batman_rails_flo/flo_server.js"
7
+ puts cmd
8
+ IO.popen(cmd) do |data|
9
+ while line = data.gets
10
+ puts line
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module BatmanRailsFlo
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,67 @@
1
+ var flo = require('fb-flo'),
2
+ path = require('path'),
3
+ fs = require('fs'),
4
+ coffee = require('coffee-script');
5
+
6
+ var sourceDirToWatch = "./app/assets/";
7
+
8
+ var server = flo(
9
+ sourceDirToWatch,
10
+ {
11
+ port: 8888,
12
+ host: 'localhost',
13
+ verbose: false,
14
+ glob: [
15
+ '**/*.coffee',
16
+ '**/*.html*', // * to all .html.slim and friends
17
+ '**/*.css*'
18
+ ]
19
+ },
20
+ resolver
21
+ );
22
+
23
+ function resolver(filepath, callback) {
24
+ try {
25
+ var isHTML = filepath.indexOf(".html") > -1;
26
+ var isCSS = filepath.indexOf(".css") > -1;
27
+
28
+ var contents = fs.readFileSync(sourceDirToWatch + filepath).toString()
29
+ var folderName = filepath
30
+ .replace(/batman\//, '') // It's not in the asset path
31
+ .replace(/\.coffee/, '');
32
+ var fileURL = 'assets/' + folderName
33
+
34
+ if (filepath.indexOf(".coffee") > -1 ) {
35
+ // for a coffeescript file, compile it then send its contents
36
+ contents = coffee.compile(contents);
37
+ console.log("COFFEE", filepath)
38
+ if (fileURL.indexOf(".js") == -1) {
39
+ fileURL = fileURL + ".js" // In case it's just my_model.coffee
40
+ }
41
+ } else if (isHTML) {
42
+ // for HTML, just send the path. We'll reload it from the asset pipeline
43
+ // in case there are any preprocessors involved.
44
+ contents = "HTML>>" + fileURL
45
+ console.log("HTML", contents)
46
+ fileURL = "/assets/extras/live_reload.js"
47
+ } else if (isCSS) {
48
+ // for CSS, blank out the contents.
49
+ // Again, we'll reload it from the asset pipeline in case there
50
+ // are any preprocessors involved
51
+ fileURL = fileURL
52
+ .match(/(.*\.css)/, '$1')[0] // remove any preprocessors
53
+ .replace(/\/stylesheets/, "") // remove unneeded path
54
+ console.log("CSS", fileURL)
55
+ contents = "" // we'll force reload on the client
56
+ }
57
+
58
+ callback({
59
+ resourceURL: fileURL,
60
+ contents: contents,
61
+ match: "indexOf",
62
+ });
63
+ }
64
+ catch (err) {
65
+ console.log(err);
66
+ }
67
+ }
@@ -0,0 +1,129 @@
1
+
2
+ # Force batman.js to look up & calculate accessors again.
3
+ Batman.Object::liveReload = (newConstructor) ->
4
+ throw "You must pass a constructor to liveReload" unless newConstructor?
5
+ @_batman._allAncestors = false # force recalculation
6
+ @__proto__ = newConstructor.prototype
7
+ @constructor = newConstructor
8
+ Batman.initializeObject(@)
9
+ @refreshProperties()
10
+
11
+
12
+ Batman.Object::refreshProperties = ->
13
+ @_batman.properties.forEach (name, property) ->
14
+ if property instanceof Batman.Keypath
15
+ property.terminalProperty().refresh()
16
+ property.refresh()
17
+
18
+ ###
19
+ This will force reload of class accessors that are rendered in views.
20
+ ###
21
+
22
+ Batman.App.liveReloadClass = (className) ->
23
+ re = new RegExp(className)
24
+ @_batman.properties.forEach (name, property) ->
25
+ if name.match(re)
26
+ property.refresh()
27
+
28
+ ###
29
+ For app classes, `.liveReload` has to:
30
+
31
+ - Identify existing instances of the class
32
+ - Load the new class
33
+ - Live-reload existing instances with the new class
34
+ - Attach those existing instances to the new constructor (so they'll be found again next time)
35
+ ###
36
+
37
+ Batman.Model.liveReload = (className, newCode) ->
38
+ existing = @get('loaded')
39
+ eval(newCode)
40
+ newClass = Batman.currentApp[className]
41
+ existing.forEach (record) ->
42
+ record.liveReload(newClass)
43
+ newClass.set('loaded', existing)
44
+
45
+ Batman.Controller.liveReload = (className, newCode) ->
46
+ instance = @get('_sharedController')
47
+ eval(newCode)
48
+ return unless instance # it's possible it hasn't been instantiated yet
49
+ newClass = Batman.currentApp[className]
50
+ instance.liveReload(newClass)
51
+ newClass.set("_sharedController", instance)
52
+ instance.get('currentView')?.refreshProperties()
53
+ route = App.get('currentRoute')
54
+ params = App.get('currentParams').toObject()
55
+ route.dispatch(params)
56
+
57
+ Batman.View.refreshProperties = ->
58
+ Batman.Object::refreshProperties.call(@)
59
+ @subviews?.forEach (sv) ->
60
+ sv.refreshProperties(sv)
61
+
62
+ Batman.View.liveReload = (className, newCode) ->
63
+ currentViews = @_currentViews
64
+ eval(newCode)
65
+ newClass = Batman.currentApp[className]
66
+ currentViews?.forEach (view) ->
67
+ view.liveReload(newClass)
68
+ newClass._currentViews = currentViews
69
+
70
+ # Track view instances so that they can be reloaded
71
+ Batman.View::on 'viewDidAppear', ->
72
+ @constructor._currentViews ||= new Batman.SimpleSet
73
+ @constructor._currentViews.add(@)
74
+
75
+ Batman.View::on 'viewWillDisappearAppear', ->
76
+ @constructor._currentViews.remove(@)
77
+
78
+ # Out of the box, HTMLStore's default accessor is _final_,
79
+ # meaning it can't change after the first `set`.
80
+ # Let's undo that:
81
+ storeAccessor = Batman.HTMLStore::_batman.getFirst('defaultAccessor')
82
+ storeAccessor.final = false
83
+
84
+ # And define an unset operation:
85
+ storeAccessor.unset = (path) ->
86
+ if !path.charAt(0) is "/"
87
+ path = "/#{path}"
88
+ @_requestedPaths.remove(path)
89
+ @_htmlContents[path] = undefined
90
+
91
+ # Climbs the view tree, looking for one that has a source
92
+ Batman.View::superviewWithSource = ->
93
+ if @get('source')?
94
+ return @
95
+ else
96
+ return @?superview.superviewWithSource()
97
+
98
+ # Refresh HTML by finding the next view with a source
99
+ # and refreshing subviews
100
+ Batman.View::refreshHTML = (stack=[])->
101
+ @sourceView ?= @superviewWithSource()
102
+ if @sourceView?
103
+ @_refreshSourceView(stack)
104
+ if @subviews?.length
105
+ @_refreshSubviews()
106
+
107
+ Batman.View::_refreshSourceView = (stack) ->
108
+ @sourceView.html = undefined
109
+ path = @sourceView.get('source')
110
+ if path.charAt(0) isnt "/"
111
+ path = "/#{path}"
112
+ return if path in stack
113
+ stack.push(path)
114
+ Batman.View.store.unset(path)
115
+ Batman.View.store.observeOnce path, (nv, ov) =>
116
+ @sourceView.set('html', nv)
117
+ @sourceView.loadView()
118
+ @sourceView.initializeBindings()
119
+
120
+ Batman.View::_refreshSubviews = ->
121
+ @subviews?.forEach (sv) ->
122
+ if sv.get('source')?
123
+ sv.refreshHTML()
124
+ if sv.subviews?.length
125
+ sv._refreshSubviews()
126
+
127
+ Batman.View.liveReloadHTML = ->
128
+ # Refresh all HTML, going down from `layout`
129
+ Batman.currentApp.get('layout').refreshHTML([])
@@ -0,0 +1,9 @@
1
+ ## How to contribute to CoffeeScript
2
+
3
+ * Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/coffee-script/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one.
4
+
5
+ * Before sending a pull request for a feature, be sure to have [tests](https://github.com/jashkenas/coffee-script/tree/master/test).
6
+
7
+ * Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffee-script/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide).
8
+
9
+ * In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release.
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2009-2014 Jeremy Ashkenas
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ {
2
+ } } {
3
+ { { } }
4
+ } }{ {
5
+ { }{ } } _____ __ __
6
+ { }{ }{ { } / ____| / _|/ _|
7
+ .- { { } { }} -. | | ___ | |_| |_ ___ ___
8
+ ( { } { } { } } ) | | / _ \| _| _/ _ \/ _ \
9
+ |`-..________ ..-'| | |___| (_) | | | || __/ __/
10
+ | | \_____\___/|_| |_| \___|\___|
11
+ | ;--.
12
+ | (__ \ _____ _ _
13
+ | | ) ) / ____| (_) | |
14
+ | |/ / | (___ ___ _ __ _ _ __ | |_
15
+ | ( / \___ \ / __| '__| | '_ \| __|
16
+ | |/ ____) | (__| | | | |_) | |_
17
+ | | |_____/ \___|_| |_| .__/ \__|
18
+ `-.._________..-' | |
19
+ |_|
20
+
21
+
22
+ CoffeeScript is a little language that compiles into JavaScript.
23
+
24
+ If you have the Node Package Manager installed:
25
+ npm install -g coffee-script
26
+ (Leave off the -g if you don't wish to install globally.)
27
+
28
+ Or, if you don't wish to use npm:
29
+ sudo bin/cake install
30
+
31
+ Execute a script:
32
+ coffee /path/to/script.coffee
33
+
34
+ Compile a script:
35
+ coffee -c /path/to/script.coffee
36
+
37
+ For documentation, usage, and examples, see:
38
+ http://coffeescript.org/
39
+
40
+ To suggest a feature, report a bug, or general discussion:
41
+ http://github.com/jashkenas/coffee-script/issues/
42
+
43
+ If you'd like to chat, drop by #coffeescript on Freenode IRC,
44
+ or on webchat.freenode.net.
45
+
46
+ The source repository:
47
+ git://github.com/jashkenas/coffee-script.git
48
+
49
+ Top 100 contributors are listed here:
50
+ http://github.com/jashkenas/coffee-script/contributors
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ var path = require('path');
4
+ var fs = require('fs');
5
+ var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
6
+
7
+ require(lib + '/coffee-script/cake').run();
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ var path = require('path');
4
+ var fs = require('fs');
5
+ var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
6
+
7
+ require(lib + '/coffee-script/command').run();
@@ -0,0 +1,134 @@
1
+ // Generated by CoffeeScript 1.7.1
2
+ (function() {
3
+ var CoffeeScript, compile, runScripts,
4
+ __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
5
+
6
+ CoffeeScript = require('./coffee-script');
7
+
8
+ CoffeeScript.require = require;
9
+
10
+ compile = CoffeeScript.compile;
11
+
12
+ CoffeeScript["eval"] = function(code, options) {
13
+ if (options == null) {
14
+ options = {};
15
+ }
16
+ if (options.bare == null) {
17
+ options.bare = true;
18
+ }
19
+ return eval(compile(code, options));
20
+ };
21
+
22
+ CoffeeScript.run = function(code, options) {
23
+ if (options == null) {
24
+ options = {};
25
+ }
26
+ options.bare = true;
27
+ options.shiftLine = true;
28
+ return Function(compile(code, options))();
29
+ };
30
+
31
+ if (typeof window === "undefined" || window === null) {
32
+ return;
33
+ }
34
+
35
+ if ((typeof btoa !== "undefined" && btoa !== null) && (typeof JSON !== "undefined" && JSON !== null) && (typeof unescape !== "undefined" && unescape !== null) && (typeof encodeURIComponent !== "undefined" && encodeURIComponent !== null)) {
36
+ compile = function(code, options) {
37
+ var js, v3SourceMap, _ref;
38
+ if (options == null) {
39
+ options = {};
40
+ }
41
+ options.sourceMap = true;
42
+ options.inline = true;
43
+ _ref = CoffeeScript.compile(code, options), js = _ref.js, v3SourceMap = _ref.v3SourceMap;
44
+ return "" + js + "\n//# sourceMappingURL=data:application/json;base64," + (btoa(unescape(encodeURIComponent(v3SourceMap)))) + "\n//# sourceURL=coffeescript";
45
+ };
46
+ }
47
+
48
+ CoffeeScript.load = function(url, callback, options, hold) {
49
+ var xhr;
50
+ if (options == null) {
51
+ options = {};
52
+ }
53
+ if (hold == null) {
54
+ hold = false;
55
+ }
56
+ options.sourceFiles = [url];
57
+ xhr = window.ActiveXObject ? new window.ActiveXObject('Microsoft.XMLHTTP') : new window.XMLHttpRequest();
58
+ xhr.open('GET', url, true);
59
+ if ('overrideMimeType' in xhr) {
60
+ xhr.overrideMimeType('text/plain');
61
+ }
62
+ xhr.onreadystatechange = function() {
63
+ var param, _ref;
64
+ if (xhr.readyState === 4) {
65
+ if ((_ref = xhr.status) === 0 || _ref === 200) {
66
+ param = [xhr.responseText, options];
67
+ if (!hold) {
68
+ CoffeeScript.run.apply(CoffeeScript, param);
69
+ }
70
+ } else {
71
+ throw new Error("Could not load " + url);
72
+ }
73
+ if (callback) {
74
+ return callback(param);
75
+ }
76
+ }
77
+ };
78
+ return xhr.send(null);
79
+ };
80
+
81
+ runScripts = function() {
82
+ var coffees, coffeetypes, execute, i, index, s, script, scripts, _fn, _i, _len;
83
+ scripts = window.document.getElementsByTagName('script');
84
+ coffeetypes = ['text/coffeescript', 'text/literate-coffeescript'];
85
+ coffees = (function() {
86
+ var _i, _len, _ref, _results;
87
+ _results = [];
88
+ for (_i = 0, _len = scripts.length; _i < _len; _i++) {
89
+ s = scripts[_i];
90
+ if (_ref = s.type, __indexOf.call(coffeetypes, _ref) >= 0) {
91
+ _results.push(s);
92
+ }
93
+ }
94
+ return _results;
95
+ })();
96
+ index = 0;
97
+ execute = function() {
98
+ var param;
99
+ param = coffees[index];
100
+ if (param instanceof Array) {
101
+ CoffeeScript.run.apply(CoffeeScript, param);
102
+ index++;
103
+ return execute();
104
+ }
105
+ };
106
+ _fn = function(script, i) {
107
+ var options;
108
+ options = {
109
+ literate: script.type === coffeetypes[1]
110
+ };
111
+ if (script.src) {
112
+ return CoffeeScript.load(script.src, function(param) {
113
+ coffees[i] = param;
114
+ return execute();
115
+ }, options, true);
116
+ } else {
117
+ options.sourceFiles = ['embedded'];
118
+ return coffees[i] = [script.innerHTML, options];
119
+ }
120
+ };
121
+ for (i = _i = 0, _len = coffees.length; _i < _len; i = ++_i) {
122
+ script = coffees[i];
123
+ _fn(script, i);
124
+ }
125
+ return execute();
126
+ };
127
+
128
+ if (window.addEventListener) {
129
+ window.addEventListener('DOMContentLoaded', runScripts, false);
130
+ } else {
131
+ window.attachEvent('onload', runScripts);
132
+ }
133
+
134
+ }).call(this);