mountain_view 0.4.3 → 0.5.0
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 +12 -2
- data/app/assets/javascripts/mountain_view.js.erb +8 -1
- data/app/assets/stylesheets/mountain_view.css.erb +8 -1
- data/lib/mountain_view/version.rb +1 -1
- data/test/dummy/app/components/paragraph/_paragraph.html.erb +1 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1364 -3729
- data/test/dummy/log/test.log +2458 -1163
- data/test/mountain_view_test.rb +4 -2
- metadata +9 -67
- data/test/dummy/tmp/cache/assets/development/sprockets/0848104d612d68babe788b064bb6a773 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0a5bb8ddcf321e88738e02ffb0cd02ef +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1358febedd4ca96d2bffd10daf71a841 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13e30b9b47c795b0bf1c24f728ef72bb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a3befd27690385985935fbefadee114 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/24edf0f5a75b1eaf031a84d2eec7e54f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/37f90f006cee6a567571d9ef098f959c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/46844defcba01dc849d9b419893f98cc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6469b6494dfcb7811bd823eb37679edb +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6b18a41e40b87e9cf56140076eaf8ee7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6d1c1dbe626c83b900adee3270c25207 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7eb84ecf34a4f7e714d58448a8eb10bd +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/824c181bcb9f516c1654e68382637e0d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/895678836daa2e7d767a0b18998d3b32 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8c07e75d74ea0522402fbfac992809c9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/90a2a412cf77f0878e811db239c79cbc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9779666a1e99dffc397e70f9a09f2163 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9e3fff55e666e905677ea1ec03cbf90c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a668b6ff88911a6fc7ee3ed2bce99925 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b9bd83a3b44c1d3d3f3475bd4c0cba7f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c6c9787ab538d56f0bf078335b046968 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c7ee05b0bd8082e947e7f11a52d43d4d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cd456657bdefb4c3249301a5754fdbe2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d6c936f92dce001a74c5de9eff308ea2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d78f431479fa8ad43875544b8c50d206 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/fd60d93b12b3001c215f1c6581eca777 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cda7e43418faaad8fb91df1116e1a2dc913e01f5
|
|
4
|
+
data.tar.gz: 2c0606c3dbbedc257d29ddb1c6347012facbe517
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5483b8c24577eace9ef92fb789e10956cb61074ae6ca38f9e08236a94faa60b2bffeb75df0d9f0fa6c14b86fb1c8338ed5da565c257f90ef1f59ae73209cc25c
|
|
7
|
+
data.tar.gz: 73944e1592079b889702733deb0bd63358cc486f3bd5a019f3bea4747c7324b91265ef8b6377c7837d509f58fa2c0cc2916e8c08320de9fb605a47c2e6f4015f
|
data/README.md
CHANGED
|
@@ -8,6 +8,14 @@ With Mountain View you create reusable components for your Rails frontend, while
|
|
|
8
8
|
|
|
9
9
|
_FAQ_: Does it generate it automatically? You bet!
|
|
10
10
|
|
|
11
|
+
#### Example Style Guide
|
|
12
|
+
|
|
13
|
+
Visit the **<a href="https://mountain-view.herokuapp.com/mountain_view/styleguide" target="_blank">living style guide demo!</a>**
|
|
14
|
+
(<a href="https://github.com/jgnatch/mountain_view_demo" target="_blank">source repo</a>)
|
|
15
|
+
|
|
16
|
+
<a href="https://mountain-view.herokuapp.com" target="_blank">Usage of components demo here!</a>
|
|
17
|
+
|
|
18
|
+
|
|
11
19
|
## Installation
|
|
12
20
|
|
|
13
21
|
Add this line to your application's Gemfile:
|
|
@@ -104,8 +112,10 @@ E.g: `app/components/card/card.yml`
|
|
|
104
112
|
|
|
105
113
|
#### Example Style Guide
|
|
106
114
|
|
|
107
|
-
Visit the
|
|
108
|
-
(
|
|
115
|
+
Visit the **<a href="https://mountain-view.herokuapp.com/mountain_view/styleguide" target="_blank">living style guide demo!</a>**
|
|
116
|
+
(<a href="https://github.com/jgnatch/mountain_view_demo" target="_blank">source repo</a>)
|
|
117
|
+
|
|
118
|
+
<a href="https://mountain-view.herokuapp.com" target="_blank">Usage of components demo here!</a>
|
|
109
119
|
|
|
110
120
|

|
|
111
121
|
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
<% depend_on Rails.root.join('app', 'components').to_s %>
|
|
3
3
|
<% Dir.glob(Rails.root.join('app', 'components', '*')).each do |component_dir|
|
|
4
4
|
component = File.basename component_dir
|
|
5
|
-
|
|
5
|
+
begin
|
|
6
|
+
require_asset "#{component}/#{component}"
|
|
7
|
+
rescue Sprockets::FileNotFound
|
|
8
|
+
Rails.logger.debug("MountainView: javascript not found for component '#{component}'")
|
|
9
|
+
%>
|
|
10
|
+
/* MountainView: javascript not found for component '<%= component %>' */
|
|
11
|
+
<%
|
|
12
|
+
end
|
|
6
13
|
end %>
|
|
7
14
|
<% else %>
|
|
8
15
|
<% depend_on Rails.root.join('app').to_s %>
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
<% depend_on Rails.root.join('app', 'components').to_s %>
|
|
3
3
|
<% Dir.glob(Rails.root.join('app', 'components', '*')).each do |component_dir|
|
|
4
4
|
component = File.basename component_dir
|
|
5
|
-
|
|
5
|
+
begin
|
|
6
|
+
require_asset "#{component}/#{component}"
|
|
7
|
+
rescue Sprockets::FileNotFound
|
|
8
|
+
Rails.logger.debug("MountainView: stylesheet not found for component '#{component}'")
|
|
9
|
+
%>
|
|
10
|
+
/* MountainView: stylesheet not found for component '<%= component %>' */
|
|
11
|
+
<%
|
|
12
|
+
end
|
|
6
13
|
end %>
|
|
7
14
|
<% else %>
|
|
8
15
|
<% depend_on Rails.root.join('app').to_s %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= simple_format properties[:text] %>
|
|
File without changes
|
|
File without changes
|