modular-grid 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/modular.rb +7 -0
- data/lib/modular/engine.rb +2 -4
- data/lib/modular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a702390b419fe8ad84dc67f09df3cbfd3ab42334
|
4
|
+
data.tar.gz: 4fd0ec699ac2441eb522da41831ef014b2cb94a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68db76732533a8edb856ac0c849ef0ddf8119a9c82450085e5ce96f22c5535b6e360ae9a1ca8cfae83336074d14dfe5c29571725a63882645a79c6dc6cdb2835
|
7
|
+
data.tar.gz: 9d70a1e1f8f7d49da9a3bd9f0887e5c7640e06627487502f9272fde4b998c72440666d5ba05b910bb3027a0c8de9c670f77686a45261e31fccb4ef0b52aba330
|
data/lib/modular.rb
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
require "modular/version"
|
2
2
|
|
3
|
+
unless defined?(Sass)
|
4
|
+
require 'sass'
|
5
|
+
end
|
6
|
+
|
3
7
|
module Modular
|
4
8
|
if defined?(Rails) && defined?(Rails::Engine)
|
5
9
|
class Engine < ::Rails::Engine
|
6
10
|
require 'modular/engine'
|
7
11
|
end
|
12
|
+
else
|
13
|
+
modular_path = File.expand_path("../../app/assets/stylesheets", __FILE__)
|
14
|
+
ENV["SASS_PATH"] = [ENV["SASS_PATH"], modular_path].compact.join(File::PATH_SEPARATOR)
|
8
15
|
end
|
9
16
|
end
|
data/lib/modular/engine.rb
CHANGED
data/lib/modular/version.rb
CHANGED