mountain_view 0.0.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generators/mountain_view/component_generator.rb +28 -0
  3. data/lib/mountain_view/version.rb +1 -1
  4. data/test/dummy/db/development.sqlite3 +0 -0
  5. data/test/dummy/db/test.sqlite3 +0 -0
  6. data/test/dummy/log/development.log +1392 -610
  7. data/test/dummy/log/test.log +1439 -0
  8. data/test/generators/component_generator_test.rb +17 -0
  9. data/test/test_helper.rb +3 -0
  10. data/test/tmp/app/components/widget/_widget.html.erb +0 -0
  11. data/test/tmp/app/components/widget/widget.css +0 -0
  12. data/test/tmp/app/components/widget/widget.js +0 -0
  13. data/test/tmp/app/components/widget/widget.yml +0 -0
  14. metadata +34 -93
  15. data/test/dummy/tmp/cache/assets/development/sprockets/05047392adf909e89a37882b1df46aa8 +0 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/056a4da9bcd21e1bc54fc870c1bd1c93 +0 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/0848104d612d68babe788b064bb6a773 +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/0a5bb8ddcf321e88738e02ffb0cd02ef +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/0c5cdad092202271d7dcd4a4e9434459 +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/0ee705b1349b8360286fea9ed4e5e40e +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/1025fb0f151fc866114ecf98044f10ee +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/1358febedd4ca96d2bffd10daf71a841 +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/13e30b9b47c795b0bf1c24f728ef72bb +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/19cd783e0750e55a88466eaf34cf8ee3 +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/1a3befd27690385985935fbefadee114 +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/37f90f006cee6a567571d9ef098f959c +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/46844defcba01dc849d9b419893f98cc +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/4b8ca8528217ffd457d34f6d3c10390e +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/5288a3be9b42eac33a8c5107b2c1a3e7 +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/6469b6494dfcb7811bd823eb37679edb +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/646c70596539b146a28d3463b52e331d +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/676413c50ebcc02f3683f0b74d03cd10 +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/6b18a41e40b87e9cf56140076eaf8ee7 +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/6d1c1dbe626c83b900adee3270c25207 +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/7eb84ecf34a4f7e714d58448a8eb10bd +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/895678836daa2e7d767a0b18998d3b32 +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/90a2a412cf77f0878e811db239c79cbc +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/9e3fff55e666e905677ea1ec03cbf90c +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/a18133f41da2aa5e6c4ceeb0912758e4 +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/a668b6ff88911a6fc7ee3ed2bce99925 +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/adf63b8c230bec424832f299d6783649 +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/b9bd83a3b44c1d3d3f3475bd4c0cba7f +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/c6c9787ab538d56f0bf078335b046968 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/c7ee05b0bd8082e947e7f11a52d43d4d +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/c8918b8c937b226f93f33acabc876a06 +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/cd2a0221f05ca5fd45fa56d923f36195 +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/cd456657bdefb4c3249301a5754fdbe2 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/d6c936f92dce001a74c5de9eff308ea2 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/d78f431479fa8ad43875544b8c50d206 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/fd60d93b12b3001c215f1c6581eca777 +0 -0
  57. data/test/dummy/tmp/pids/server.pid +0 -1
  58. data/test/tmp/app/components/mountain_view.css +0 -3
  59. data/test/tmp/app/components/mountain_view.js +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dca4fc8566e7c7e8b7b91837b7a7d8964f06e3e4
4
- data.tar.gz: 331ca8d3d5ce0eb17e749a3260d403660ff426bc
3
+ metadata.gz: 45b762aac2d5affd3bae69be05fdb88af5e965d5
4
+ data.tar.gz: 71b97e34a4de2e2368baaaa9fecfbb4f67a95202
5
5
  SHA512:
6
- metadata.gz: 03154f5aa0096d4050a88fd912ba1f71ce4d5826ed828739104e090605bda7e1f66d1940a008719ea58ee095d4eebbd3ec56b3994ccfa8e9dd49162246c38a4f
7
- data.tar.gz: b21584d536ab745a423adafafdba71be7cea7c70345725490f424d5ff128eceb84f079fd582f3eac5c3969303d8751c4d163bb4cc173d589bd938333a1010e17
6
+ metadata.gz: 5f39d9bb9ee2290e48ce3b435f922c171859bc9470ff6174a30683f896e2c0e57847da71b3a7405cfdc76167aedd9b97e61f339300e51d13e4897c014ba2315b
7
+ data.tar.gz: 39833cb46ef222899bd2f31c7bad055cdc7d1432acbcdecd5e287a90cb6601c564ed76df4fa316f9cb9017f575247a3d308d167cd687641e2669a683742473e6
@@ -0,0 +1,28 @@
1
+ require "rails/generators/base"
2
+
3
+ module MountainView
4
+ module Generators
5
+ class ComponentGenerator < Rails::Generators::Base
6
+ desc "Generates all files needed for a component"
7
+
8
+ argument :component, required: true,
9
+ desc: "Component name, e.g: header, widget"
10
+
11
+ def create_view_file
12
+ create_file "app/components/#{component}/_#{component}.html.erb"
13
+ end
14
+
15
+ def create_css_file
16
+ create_file "app/components/#{component}/#{component}.css"
17
+ end
18
+
19
+ def create_js_file
20
+ create_file "app/components/#{component}/#{component}.js"
21
+ end
22
+
23
+ def create_stubs_file
24
+ create_file "app/components/#{component}/#{component}.yml"
25
+ end
26
+ end
27
+ end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module MountainView
2
- VERSION = "0.0.2"
2
+ VERSION = "0.3.0"
3
3
  end
File without changes
File without changes