mountain_view 0.4.0 → 0.4.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.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/app/controllers/mountain_view/styleguide_controller.rb +1 -1
- data/app/helpers/mountain_view/styleguide_helper.rb +1 -6
- data/app/views/layouts/mountain_view.html.erb +1 -1
- data/app/views/mountain_view/styleguide/show.html.erb +5 -5
- data/lib/mountain_view/component.rb +23 -0
- data/lib/mountain_view/engine.rb +3 -2
- data/lib/mountain_view/version.rb +1 -1
- data/test/dummy/log/test.log +295 -0
- data/test/mountain_view/component_test.rb +27 -0
- metadata +5 -174
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-GpALYHbSw1Q45UnudsOStKm7rtOrFoSUVIe-8Iuoz0.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1f7wu3-HRLu9Rw5iFGZLzz0T5hMRgOGFRMfjso0KVNA.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/21jsU7fubYMGj8ebxenh1dqSE1Ga19ZibN3q6xUGBVs.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/27eaJ6_a7Wc0uq_lfJgDzO8_gUNzTxHCZBrLiVio5ts.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/29gu-Z_16PfDGn_pSK9TyT3blEshUxQgsrMS15wVorI.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2DuexqGTTiePLLWoFcwWKsKmIA4-GuNpQwdPYXBJzIk.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2JTotiRFCF1eL1TJmuXM4ZyBqPky53LGOX1lSpdi5gE.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5Bmzl9iaUr7L-VT8icUpAzR9BQQI6qBX6JEv5Vths3k.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6LApH9esjjQpvlqDcDyDle_4H8CYu8CIq_vo2GW9o_k.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6Zu-L3vl11LpysCu8_3s5Ljm9pJZpKegEObwbT8AUJE.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8-ehuqX7Ga-9m33LzqPqQW-F3PAnlBJOXJSQiXxlPjQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8Y55CbwZWwOBbwpP-EmYhUguQmvses-jROVrFmPML14.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8_BV4rIBo1KEOm5q78JeiTJVhbhS62POAYo-Pu75hro.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/8y1riQ2t6idtT_mzkiTF9H6m3AQwzQK0PedX4ZVoHBc.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/90OMI3oEKBnXHnoWd6Fu0EYTDEoFBcV-jYDcBBixzfU.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/CW2mnSx_LLgIDOek3NYRfX4yh-QS4PUPhCg_l7jdmPs.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/CiEZcv9maBLDpB8KyK7UUbhEjL1roM7MgsYFYRKrAJI.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/D2tT0R1qJbVzDlquoGeR4sdzEh8uGRd1EnB-Oot_H5Q.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DRbuGPZH_1ouhDNmYhYX0JlIsUUSsgxpDJXxJaYqdFA.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Dad4uQa2nSAhHFWCbstCUMorPthwgoWaUAcSmJqgaJ8.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/E7IRfKzk_3CW0gNCR_JcxbGbbSeud8O1Tclo4XE51N0.cache +0 -3
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EO43w8fIfyB0qPKAFpA_lfUPlTOgD7dsZMpE8A8AFOw.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/EY0cb0W8xKN-n7MdUo2h--13uoCdrbMtxA9mn1sCK2Y.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FRrRfLGh__Iatk6ux7qvheGjHRJ2_KNOErW5g8uCAwo.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/G6DEClxQMGFISEs9tHuRxQ978kVOVwcX5y49LpGF34I.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GUNiNnxBuCtqSTUiP0Ea8F2svb6T_qrIosz6HRv_KUQ.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Gd0dgHjO1nG58woqHPHWc9FFziGmbQXPJ-H4s-7c8FA.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GmEn1l6YnB0T6Juqszb-uQrz_EEXay1wE9_3n_Je4vw.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/HfI-GD315XSRwx2qDpt9myhRbuIQyif_wJGL_LWS9Zw.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/J6jxk5nHAT5dOm-_fdDlbNBTxw1A0guB_M4uCXK81qI.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/KM-Cf-mrjSsSXRC4CeDIx9iU9LBj7oD2KI5ZNf5GVZU.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/LeqTPJtbBvIEv9omeZRhqDDx3CUM4vWW3EhAycrtAJQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MWHS_uic1r47FdOYxRX3RLNbJvaDmwlxLUZcds8zHXE.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OVcc36X8NCidcxiVr5UG0MMQEc-yQ-_34oBkku5kDcM.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/P9IYoqQ7d8hyM9jCIox7f_9pXHZ-Kl3hvSQ3UjCDd0M.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/QG4C1CEyFlzLcBePcAJ8DFmrc-o_JJNlpC3fO3VhFko.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/R8b75U-4A1-GYvlgdyiYScwR-AdlvyeZu9yCC-dq1Pk.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RTVj27EUs5_mw2Yy-TnolUcSSZQsK8oIw3yNs_bXZSE.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/TqW53AG-TN4de8Snmv8eDWl6QMxRs2T2L1sjA8Mcbq8.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Vv63gXlv6fZqFgsbMzvSphcqLwdeewIgbCEHxS8SPIo.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Vz4-ZEibOumEsMs1bLzUxpe7XmyX9AryqXYFmZ4-eo0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YPi3xw1pgOB3iaY7Ig9DY66iD_mjLsOkpa0UY-EKxpM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YyNY5EUoRAgPR8SpcdVrsSkJ3jsZ_VgLHJcgHoWP8pU.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZJH4R6OjwYOr3xCHXLjUr02Q-VBC7M_DLkW46YmV6do.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZdZmOPZOqP_Rosli_sBOTiLaDYL4ScewK1LeMcg0jI0.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZkA8OltonbUI_t4yR6_8VP9_CC_QNxLMIkAV--R960s.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_u4ZxOyWPAO6GeAYUd69NQiMrhFA8tychmbybKxGCTA.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aCulLiZKJ_2QIWBwUh09arY5mlEaBg6PzWA6HKLYaSY.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aLyWwRFXDQs06IqMM3YjKAh6JHxTU_ZtBmLIBRglJ98.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bgap1FW1aFNZxugIaKaopMhmNpFJL4-YW4n9HyJmufI.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dlRWGXx7LHzBb3h3ls4hOPB4E1a2Fq7jla35tqTyLzo.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ej1VyymSmAZd05wCFy70keaWoXgTv36m8JHKcgabhyI.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fJJcuNXHZzr2s5_TO_uO-_nqqp1yBle2aOdJY_QEWrk.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fUqz7FY1eYGhhpfUnHqMyEUM_dCpzlUAKXKEOXFSZhA.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fx87itNFISiJM7-XeWpcG_J35MGKNu3t74mMJApw8nY.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/g1i3ztenjDy8UOWi9991WHFAHHT-wp3wRsTcs1pvN1Q.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gAEiN-kK8R5hT8X4fUeQLvzPqf0btf2mIymyrpFPfEI.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gdEBJE009Wn0IuodQ8n3xePT7EsyAKlriQX_FlEgIpE.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gxNE25Yl2JCWeZr74lxHDRydzr7UmVS2c9P65WCHWt0.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hjbrvsQHMj8j560vyTB8eTe-7Tmmoh7CfvBbbQGYCnQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i0gI7DH9-v3EgvD_DvmuNBvlsDqoKonhG0s3cYh38o0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i6dy8UnNLKCPpjAifs2qp0_N5Uj5UGBQYY-4O3rLQhk.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/j8QAydW5OiGuvPqVnCU99YEHS_5sr7q1zpiuSXuJl5A.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/jo-G8o-Js5JYTgx40LQpWKrPqoimZXmasXcEcM65iwg.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kAeRSSdU2X8FlDbR-Co-RnBBk6Yh3bGAwOXxhECA2Ug.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/kzFIP3q2HHoxgZvCYEELYkkCIt7Ia-cjbLK46oHkn4w.cache +0 -2
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/lDjpI6nkzsGJcR13t1qAxXqNkHr5M3CN8JInZPO3WLo.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/lfyLhAlWONDOpeTnnpG26Xmqfr4vVjZvSfZb-EJjR-M.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mzCuN7XNXqNVOPR7fauivVI3UJPTmGWiSB0iOxc75f0.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/nI-PEFp6hFaWiYyke6RYUACxhWyUtM0guTb1ryFPiWg.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/nOZj8tFM8JDzGWR2CwIL9TgisXcpfYGfH-4Aq5FdyXQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/oInJh5x51e2sUOZEdOYs8ijhGYnLxInuI-EGj0n8BOM.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ogyQIsCd56cggSQpVoQbgtBF7BUbSEyCok-Rw4saFm0.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qaUq28NwAZhYH0E0_CPKyMwtolu-g_t6MMCC6clZyQk.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qjwCD08n0s96JjOdMwhbErM03Br93uWGRHan1nddafI.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qpA7TmUkRC7cei1FMQynwIAdPUjMzZ6CoTfUPA5-fnc.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/qqNW-Jbrc7Emh-sVDjuE9pr6VWbOBTbEx_6pDq0Ep78.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/rvRmFD8J5k6QAMJSTiWgBnSapLXMEeR_1rDkY04V8Bo.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tKEiVwB1qyUh7hx1_tJpV2pKHW7-qOw7rOnEczNbDXk.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/tTnBq-vLY-ReqQdSqqtfnN_qk1WaMRunUkf9mt2RuY8.cache +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/txXraSeaY5s8giT4eYPeVwKDIyV2SkyiRGvBwgXDxxQ.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xFDIMtzkF6FkreTenoi_sRzDgIr6rsvbGaAjZFvFomo.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xXIB2ylr8kQ52pPG6l9VtXzg-cD3waJgS4N9Pe9Rheg.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/yMFGZQStTOFJqCmboYlML6NLUfF8maoLLTOj1mX4snw.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/yg6oDbF3oSJSkNR6eaQubhOIgBei7OXpZecNGjNdUSs.cache +0 -1
- data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/zQ4C1cBJDIJu6RRK-diUv-eguEblADHx6DALRfQtim0.cache +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1e5372e43b1558e8d4bb5311670139d5e64314ae
|
|
4
|
+
data.tar.gz: 54e9f3117a3621881bb0cbabf9b4676a4857e2cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66ae520bd6291a77ea1092a3fb1b88122d16b6d73736be3229fb9e574c73000ea2b7f8419b4aff2b83d4a48c7430faac24f1b2c6a91ead371144ce7c52ae1285
|
|
7
|
+
data.tar.gz: 46f45ab23a85b023023f8d630a2bc5fffe17985eb0e7e6a7bd38d6743d90633e31fb75a277dc61bc6c2246b94ef8f8896045e2bf8838ebe3d91da8b622fe2592
|
data/README.md
CHANGED
|
@@ -19,8 +19,13 @@ Then execute:
|
|
|
19
19
|
|
|
20
20
|
## Usage
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
Use the built-in generator to create a new component:
|
|
23
|
+
|
|
24
|
+
```
|
|
25
|
+
rails generate mountain_view:component header
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This will create the following directory structure:
|
|
24
29
|
|
|
25
30
|
```
|
|
26
31
|
app/
|
|
@@ -32,12 +37,6 @@ app/
|
|
|
32
37
|
header.yml
|
|
33
38
|
```
|
|
34
39
|
|
|
35
|
-
You can use the built-in generator, to automate the behavior:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
rails generate mountain_view:component header
|
|
39
|
-
```
|
|
40
|
-
|
|
41
40
|
Keep in mind that you can also use `scss`, `coffeescript`, `haml`, or any other
|
|
42
41
|
preprocessors that your app is currently using.
|
|
43
42
|
|
|
@@ -103,8 +102,11 @@ E.g: `app/components/card/card.yml`
|
|
|
103
102
|
3) Vist `http://localhost:3000/mountain_view/styleguide`
|
|
104
103
|
|
|
105
104
|
#### Example Style Guide
|
|
106
|
-

|
|
107
105
|
|
|
106
|
+
Visit the **[live demo!](https://mountain-view.herokuapp.com/mountain_view/styleguide)**
|
|
107
|
+
([source repo](https://github.com/jgnatch/mountain_view_demo))
|
|
108
|
+
|
|
109
|
+

|
|
108
110
|
|
|
109
111
|
## Contributing
|
|
110
112
|
|
|
@@ -2,13 +2,8 @@ module MountainView
|
|
|
2
2
|
module StyleguideHelper
|
|
3
3
|
def mv_components
|
|
4
4
|
Dir.glob(Rails.root.join("app", "components", "*")).map do |component_dir|
|
|
5
|
-
File.basename
|
|
5
|
+
MountainView::Component.new File.basename(component_dir)
|
|
6
6
|
end
|
|
7
7
|
end
|
|
8
|
-
|
|
9
|
-
def styleguide_stubs(component_name)
|
|
10
|
-
stubs_file = Rails.root.join("app/components/#{component_name}/#{component_name}.yml")
|
|
11
|
-
YAML.load_file stubs_file
|
|
12
|
-
end
|
|
13
8
|
end
|
|
14
9
|
end
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<div class="mv-main__header">
|
|
2
|
-
<h1><%= @component.
|
|
2
|
+
<h1><%= @component.title %></h1>
|
|
3
3
|
</div>
|
|
4
4
|
|
|
5
|
-
<%
|
|
5
|
+
<% @component.styleguide_stubs.each_with_index do |component_properties, index| %>
|
|
6
6
|
<div class="mv-component">
|
|
7
7
|
<div class="mv-component__item">
|
|
8
|
-
<%= render_component @component, component_properties %>
|
|
8
|
+
<%= render_component @component.name, component_properties %>
|
|
9
9
|
</div>
|
|
10
10
|
<div class="mv-component__description">
|
|
11
|
-
<h2><%= @component.
|
|
11
|
+
<h2><%= @component.title %> <%= index + 1 %></h2>
|
|
12
12
|
<div class="mv-component__description__definition">
|
|
13
|
-
<code class="language-ruby"><%= render_component("<%= @component %>", {properties as below}) %></code>
|
|
13
|
+
<code class="language-ruby"><%= render_component("<%= @component.name %>", {properties as below}) %></code>
|
|
14
14
|
</div>
|
|
15
15
|
<%- formatted = JSON.pretty_generate component_properties %>
|
|
16
16
|
<div class="mv-component__description__properties">
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module MountainView
|
|
2
|
+
class Component
|
|
3
|
+
attr_reader :name
|
|
4
|
+
|
|
5
|
+
def initialize(name)
|
|
6
|
+
@name = name
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def title
|
|
10
|
+
@name.humanize
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def styleguide_stubs
|
|
14
|
+
YAML.load_file stubs_file
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
private
|
|
18
|
+
|
|
19
|
+
def stubs_file
|
|
20
|
+
Rails.root.join("app/components/#{name}/#{name}.yml")
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
data/lib/mountain_view/engine.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -2532,3 +2532,298 @@ Processing by MountainView::StyleguideController#show as HTML
|
|
|
2532
2532
|
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2533
2533
|
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (2.7ms)
|
|
2534
2534
|
Completed 200 OK in 5ms (Views: 4.9ms)
|
|
2535
|
+
------------------------------------------------------------------
|
|
2536
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2537
|
+
------------------------------------------------------------------
|
|
2538
|
+
--------------------------------------------------------
|
|
2539
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2540
|
+
--------------------------------------------------------
|
|
2541
|
+
--------------------------------------------------------------------
|
|
2542
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2543
|
+
--------------------------------------------------------------------
|
|
2544
|
+
Rendered app/components/header/_header.html.erb (2.3ms)
|
|
2545
|
+
---------------------------------------
|
|
2546
|
+
MountainViewTest: test_engine_is_loaded
|
|
2547
|
+
---------------------------------------
|
|
2548
|
+
---------------------------------------
|
|
2549
|
+
MountainViewTest: test_shows_styleguide
|
|
2550
|
+
---------------------------------------
|
|
2551
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:21:19 -0400
|
|
2552
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2553
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (0.4ms)
|
|
2554
|
+
Completed 200 OK in 202ms (Views: 201.8ms)
|
|
2555
|
+
-----------------------------------------------
|
|
2556
|
+
MountainViewTest: test_shows_specific_component
|
|
2557
|
+
-----------------------------------------------
|
|
2558
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:21:19 -0400
|
|
2559
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2560
|
+
Parameters: {"id"=>"header"}
|
|
2561
|
+
Rendered app/components/header/_header.html.erb (0.4ms)
|
|
2562
|
+
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2563
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (3.1ms)
|
|
2564
|
+
Completed 200 OK in 6ms (Views: 6.2ms)
|
|
2565
|
+
------------------------------------------------------
|
|
2566
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2567
|
+
------------------------------------------------------
|
|
2568
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:21:19 -0400
|
|
2569
|
+
------------------------------------------------------
|
|
2570
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2571
|
+
------------------------------------------------------
|
|
2572
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:21:19 -0400
|
|
2573
|
+
--------------------------------------------------------------------
|
|
2574
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2575
|
+
--------------------------------------------------------------------
|
|
2576
|
+
Rendered app/components/header/_header.html.erb (1.1ms)
|
|
2577
|
+
------------------------------------------------------------------
|
|
2578
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2579
|
+
------------------------------------------------------------------
|
|
2580
|
+
--------------------------------------------------------
|
|
2581
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2582
|
+
--------------------------------------------------------
|
|
2583
|
+
-----------------------------------------------
|
|
2584
|
+
MountainViewTest: test_shows_specific_component
|
|
2585
|
+
-----------------------------------------------
|
|
2586
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:21:35 -0400
|
|
2587
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2588
|
+
Parameters: {"id"=>"header"}
|
|
2589
|
+
Rendered app/components/header/_header.html.erb (0.5ms)
|
|
2590
|
+
Rendered app/components/header/_header.html.erb (0.1ms)
|
|
2591
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (2.9ms)
|
|
2592
|
+
Completed 200 OK in 208ms (Views: 207.8ms)
|
|
2593
|
+
------------------------------------------------------
|
|
2594
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2595
|
+
------------------------------------------------------
|
|
2596
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:21:35 -0400
|
|
2597
|
+
---------------------------------------
|
|
2598
|
+
MountainViewTest: test_shows_styleguide
|
|
2599
|
+
---------------------------------------
|
|
2600
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:21:35 -0400
|
|
2601
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2602
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (0.3ms)
|
|
2603
|
+
Completed 200 OK in 2ms (Views: 2.4ms)
|
|
2604
|
+
---------------------------------------
|
|
2605
|
+
MountainViewTest: test_engine_is_loaded
|
|
2606
|
+
---------------------------------------
|
|
2607
|
+
------------------------------------------------------
|
|
2608
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2609
|
+
------------------------------------------------------
|
|
2610
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:21:35 -0400
|
|
2611
|
+
------------------------------------------------------
|
|
2612
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2613
|
+
------------------------------------------------------
|
|
2614
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:27:33 -0400
|
|
2615
|
+
---------------------------------------
|
|
2616
|
+
MountainViewTest: test_shows_styleguide
|
|
2617
|
+
---------------------------------------
|
|
2618
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:27:33 -0400
|
|
2619
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2620
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (1.5ms)
|
|
2621
|
+
Completed 200 OK in 55ms (Views: 54.6ms)
|
|
2622
|
+
-----------------------------------------------
|
|
2623
|
+
MountainViewTest: test_shows_specific_component
|
|
2624
|
+
-----------------------------------------------
|
|
2625
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:27:34 -0400
|
|
2626
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2627
|
+
Parameters: {"id"=>"header"}
|
|
2628
|
+
Rendered app/components/header/_header.html.erb (0.5ms)
|
|
2629
|
+
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2630
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (5.9ms)
|
|
2631
|
+
Completed 200 OK in 9ms (Views: 8.6ms)
|
|
2632
|
+
---------------------------------------
|
|
2633
|
+
MountainViewTest: test_engine_is_loaded
|
|
2634
|
+
---------------------------------------
|
|
2635
|
+
------------------------------------------------------
|
|
2636
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2637
|
+
------------------------------------------------------
|
|
2638
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:27:34 -0400
|
|
2639
|
+
------------------------------------------------------------------
|
|
2640
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2641
|
+
------------------------------------------------------------------
|
|
2642
|
+
--------------------------------------------------------
|
|
2643
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2644
|
+
--------------------------------------------------------
|
|
2645
|
+
--------------------------------------------------------------------
|
|
2646
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2647
|
+
--------------------------------------------------------------------
|
|
2648
|
+
Rendered app/components/header/_header.html.erb (14.4ms)
|
|
2649
|
+
---------------------------------------
|
|
2650
|
+
MountainViewTest: test_engine_is_loaded
|
|
2651
|
+
---------------------------------------
|
|
2652
|
+
---------------------------------------
|
|
2653
|
+
MountainViewTest: test_shows_styleguide
|
|
2654
|
+
---------------------------------------
|
|
2655
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:28:01 -0400
|
|
2656
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2657
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (0.9ms)
|
|
2658
|
+
Completed 200 OK in 202ms (Views: 202.3ms)
|
|
2659
|
+
-----------------------------------------------
|
|
2660
|
+
MountainViewTest: test_shows_specific_component
|
|
2661
|
+
-----------------------------------------------
|
|
2662
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:28:01 -0400
|
|
2663
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2664
|
+
Parameters: {"id"=>"header"}
|
|
2665
|
+
Rendered app/components/header/_header.html.erb (0.5ms)
|
|
2666
|
+
Rendered app/components/header/_header.html.erb (0.1ms)
|
|
2667
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (6.4ms)
|
|
2668
|
+
Completed 200 OK in 9ms (Views: 9.3ms)
|
|
2669
|
+
------------------------------------------------------
|
|
2670
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2671
|
+
------------------------------------------------------
|
|
2672
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:28:01 -0400
|
|
2673
|
+
------------------------------------------------------
|
|
2674
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2675
|
+
------------------------------------------------------
|
|
2676
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:28:01 -0400
|
|
2677
|
+
--------------------------------------------------------------------
|
|
2678
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2679
|
+
--------------------------------------------------------------------
|
|
2680
|
+
Rendered app/components/header/_header.html.erb (0.6ms)
|
|
2681
|
+
------------------------------------------------------------------
|
|
2682
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2683
|
+
------------------------------------------------------------------
|
|
2684
|
+
--------------------------------------------------------
|
|
2685
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2686
|
+
--------------------------------------------------------
|
|
2687
|
+
------------------------------------------------------
|
|
2688
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2689
|
+
------------------------------------------------------
|
|
2690
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:37:20 -0400
|
|
2691
|
+
---------------------------------------
|
|
2692
|
+
MountainViewTest: test_engine_is_loaded
|
|
2693
|
+
---------------------------------------
|
|
2694
|
+
---------------------------------------
|
|
2695
|
+
MountainViewTest: test_shows_styleguide
|
|
2696
|
+
---------------------------------------
|
|
2697
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:37:20 -0400
|
|
2698
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2699
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (1.4ms)
|
|
2700
|
+
Completed 200 OK in 59ms (Views: 58.6ms)
|
|
2701
|
+
-----------------------------------------------
|
|
2702
|
+
MountainViewTest: test_shows_specific_component
|
|
2703
|
+
-----------------------------------------------
|
|
2704
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:37:21 -0400
|
|
2705
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2706
|
+
Parameters: {"id"=>"header"}
|
|
2707
|
+
Rendered app/components/header/_header.html.erb (0.7ms)
|
|
2708
|
+
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2709
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (5.5ms)
|
|
2710
|
+
Completed 200 OK in 9ms (Views: 8.7ms)
|
|
2711
|
+
------------------------------------------------------
|
|
2712
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2713
|
+
------------------------------------------------------
|
|
2714
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:37:21 -0400
|
|
2715
|
+
--------------------------------------------------------------------
|
|
2716
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2717
|
+
--------------------------------------------------------------------
|
|
2718
|
+
Rendered app/components/header/_header.html.erb (0.4ms)
|
|
2719
|
+
------------------------------------------------------------------
|
|
2720
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2721
|
+
------------------------------------------------------------------
|
|
2722
|
+
--------------------------------------------------------
|
|
2723
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2724
|
+
--------------------------------------------------------
|
|
2725
|
+
------------------------------------------------------------------
|
|
2726
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2727
|
+
------------------------------------------------------------------
|
|
2728
|
+
--------------------------------------------------------
|
|
2729
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2730
|
+
--------------------------------------------------------
|
|
2731
|
+
-----------------------------------------------
|
|
2732
|
+
MountainViewTest: test_shows_specific_component
|
|
2733
|
+
-----------------------------------------------
|
|
2734
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 11:54:07 -0400
|
|
2735
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2736
|
+
Parameters: {"id"=>"header"}
|
|
2737
|
+
Rendered app/components/header/_header.html.erb (0.5ms)
|
|
2738
|
+
Rendered app/components/header/_header.html.erb (0.1ms)
|
|
2739
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (6.5ms)
|
|
2740
|
+
Completed 200 OK in 273ms (Views: 272.4ms)
|
|
2741
|
+
------------------------------------------------------
|
|
2742
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2743
|
+
------------------------------------------------------
|
|
2744
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 11:54:07 -0400
|
|
2745
|
+
---------------------------------------
|
|
2746
|
+
MountainViewTest: test_engine_is_loaded
|
|
2747
|
+
---------------------------------------
|
|
2748
|
+
---------------------------------------
|
|
2749
|
+
MountainViewTest: test_shows_styleguide
|
|
2750
|
+
---------------------------------------
|
|
2751
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 11:54:07 -0400
|
|
2752
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2753
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (0.5ms)
|
|
2754
|
+
Completed 200 OK in 6ms (Views: 5.6ms)
|
|
2755
|
+
------------------------------------------------------
|
|
2756
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2757
|
+
------------------------------------------------------
|
|
2758
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 11:54:07 -0400
|
|
2759
|
+
--------------------------------------------------------------------
|
|
2760
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2761
|
+
--------------------------------------------------------------------
|
|
2762
|
+
Rendered app/components/header/_header.html.erb (0.7ms)
|
|
2763
|
+
--------------------------------------------------------------------
|
|
2764
|
+
MountainView::ComponentHelperTest: test_renders_the_proper_component
|
|
2765
|
+
--------------------------------------------------------------------
|
|
2766
|
+
Rendered app/components/header/_header.html.erb (1.8ms)
|
|
2767
|
+
-----------------------------------------------
|
|
2768
|
+
MountainViewTest: test_shows_specific_component
|
|
2769
|
+
-----------------------------------------------
|
|
2770
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 12:01:41 -0400
|
|
2771
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2772
|
+
Parameters: {"id"=>"header"}
|
|
2773
|
+
Rendered app/components/header/_header.html.erb (0.5ms)
|
|
2774
|
+
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2775
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/show.html.erb within layouts/mountain_view (3.6ms)
|
|
2776
|
+
Completed 200 OK in 231ms (Views: 230.3ms)
|
|
2777
|
+
---------------------------------------
|
|
2778
|
+
MountainViewTest: test_shows_styleguide
|
|
2779
|
+
---------------------------------------
|
|
2780
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 12:01:41 -0400
|
|
2781
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2782
|
+
Rendered /Users/kito/dev/mountain_view/app/views/mountain_view/styleguide/index.html.erb within layouts/mountain_view (0.4ms)
|
|
2783
|
+
Completed 200 OK in 3ms (Views: 3.1ms)
|
|
2784
|
+
------------------------------------------------------
|
|
2785
|
+
MountainViewTest: test_stylesheets_are_properly_served
|
|
2786
|
+
------------------------------------------------------
|
|
2787
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 12:01:41 -0400
|
|
2788
|
+
---------------------------------------
|
|
2789
|
+
MountainViewTest: test_engine_is_loaded
|
|
2790
|
+
---------------------------------------
|
|
2791
|
+
------------------------------------------------------
|
|
2792
|
+
MountainViewTest: test_javascripts_are_properly_served
|
|
2793
|
+
------------------------------------------------------
|
|
2794
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 12:01:41 -0400
|
|
2795
|
+
------------------------------------------------------------------
|
|
2796
|
+
ComponentGeneratorTest: test_Assert_all_files_are_properly_created
|
|
2797
|
+
------------------------------------------------------------------
|
|
2798
|
+
--------------------------------------------------------
|
|
2799
|
+
ComponentGeneratorTest: test_Generates_different_engines
|
|
2800
|
+
--------------------------------------------------------
|
|
2801
|
+
------------------------------------------------
|
|
2802
|
+
MountainViewComponentTest: test_styleguide_stubs
|
|
2803
|
+
------------------------------------------------
|
|
2804
|
+
------------------------------------
|
|
2805
|
+
MountainViewComponentTest: test_name
|
|
2806
|
+
------------------------------------
|
|
2807
|
+
-----------------------------------------------
|
|
2808
|
+
MountainViewComponentTest: test_humanized_title
|
|
2809
|
+
-----------------------------------------------
|
|
2810
|
+
Rendered app/components/header/_header.html.erb (2.3ms)
|
|
2811
|
+
Started GET "/assets/mountain_view.js" for 127.0.0.1 at 2015-04-23 12:01:57 -0400
|
|
2812
|
+
Compiled card/card.js (0ms) (pid 24975)
|
|
2813
|
+
Compiled header/header.js (0ms) (pid 24975)
|
|
2814
|
+
Compiled mountain_view.js (8ms) (pid 24975)
|
|
2815
|
+
Served asset /mountain_view.js - 200 OK (15ms)
|
|
2816
|
+
Started GET "/mountain_view/styleguide/header" for 127.0.0.1 at 2015-04-23 12:01:57 -0400
|
|
2817
|
+
Processing by MountainView::StyleguideController#show as HTML
|
|
2818
|
+
Parameters: {"id"=>"header"}
|
|
2819
|
+
Rendered app/components/header/_header.html.erb (0.3ms)
|
|
2820
|
+
Rendered app/components/header/_header.html.erb (0.0ms)
|
|
2821
|
+
Completed 200 OK in 7.0ms (Views: 6.7ms)
|
|
2822
|
+
Started GET "/mountain_view" for 127.0.0.1 at 2015-04-23 12:01:57 -0400
|
|
2823
|
+
Processing by MountainView::StyleguideController#index as HTML
|
|
2824
|
+
Completed 200 OK in 2.2ms (Views: 2.0ms)
|
|
2825
|
+
Started GET "/assets/mountain_view.css" for 127.0.0.1 at 2015-04-23 12:01:57 -0400
|
|
2826
|
+
Compiled card/card.css (0ms) (pid 24975)
|
|
2827
|
+
Compiled header/header.css (0ms) (pid 24975)
|
|
2828
|
+
Compiled mountain_view.css (7ms) (pid 24975)
|
|
2829
|
+
Served asset /mountain_view.css - 200 OK (12ms)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
require "test_helper"
|
|
2
|
+
|
|
3
|
+
class MountainViewComponentTest < ActiveSupport::TestCase
|
|
4
|
+
def test_name
|
|
5
|
+
component = MountainView::Component.new("header")
|
|
6
|
+
|
|
7
|
+
assert_equal "header", component.name
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def test_humanized_title
|
|
11
|
+
component = MountainView::Component.new("social_media_icons")
|
|
12
|
+
|
|
13
|
+
assert_equal "Social media icons", component.title
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def test_styleguide_stubs
|
|
17
|
+
component = MountainView::Component.new("header")
|
|
18
|
+
|
|
19
|
+
expected_stub = {
|
|
20
|
+
title: "20 Mountains you didn't know they even existed",
|
|
21
|
+
subtitle: "Buzzfeed title"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
assert_instance_of Array, component.styleguide_stubs
|
|
25
|
+
assert_equal expected_stub, component.styleguide_stubs.first
|
|
26
|
+
end
|
|
27
|
+
end
|