mountain_view 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/mountain_view.css.erb +3 -1
- data/lib/mountain_view/configuration.rb +9 -0
- data/lib/mountain_view/version.rb +1 -1
- data/lib/mountain_view.rb +8 -0
- data/test/dummy/app/assets/stylesheets/global.css +11 -0
- data/test/dummy/app/components/card/card.css +0 -2
- data/test/dummy/app/components/header/header.css +0 -2
- data/test/dummy/config/initializers/mountain_view.rb +3 -0
- data/test/dummy/log/development.log +4503 -1350
- data/test/dummy/log/test.log +1563 -2338
- data/test/mountain_view/configuration_test.rb +14 -0
- data/test/mountain_view_test.rb +7 -0
- metadata +10 -7
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86259cf6072bfd97f590766a3f18ea0038ed7c59
|
4
|
+
data.tar.gz: f2917121808e91e6b54f72942394f594d2900d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3fb4d1905196c92cac2dd8cb84688397f161ad2db0d2e97a62e013aa519b1c4bd10a56ae7573a393b5029b0ab6cbe868bd2dcdb39dea889c77d3ab1600b1058
|
7
|
+
data.tar.gz: 4472db77cda3efbe8aa51145e9391296cb2659892e7db7ae56ae783fb835e030742a420cf943cf0f72f1580a2c7ce47e3a9bf9ee8a73f0913c8a56c08fe028f9
|
@@ -1,3 +1,6 @@
|
|
1
|
+
<% MountainView.configuration.included_stylesheets.each do |included_stylesheet| %>
|
2
|
+
<%= require_asset included_stylesheet %>
|
3
|
+
<% end %>
|
1
4
|
<% if Dir.exists?(Rails.root.join("app", "components") ) %>
|
2
5
|
<% depend_on Rails.root.join('app', 'components').to_s %>
|
3
6
|
<% Dir.glob(Rails.root.join('app', 'components', '*')).each do |component_dir|
|
@@ -14,4 +17,3 @@
|
|
14
17
|
<% else %>
|
15
18
|
<% depend_on Rails.root.join('app').to_s %>
|
16
19
|
<% end %>
|
17
|
-
|
data/lib/mountain_view.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
require "mountain_view/version"
|
2
|
+
require "mountain_view/configuration"
|
2
3
|
require 'mountain_view/engine' if defined?(Rails)
|
3
4
|
|
4
5
|
module MountainView
|
6
|
+
def self.configuration
|
7
|
+
@configuration ||= Configuration.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.configure
|
11
|
+
yield(configuration)
|
12
|
+
end
|
5
13
|
end
|