inertia 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/History.md +5 -0
- data/exe/in +3 -0
- data/lib/inertia/mass.rb +21 -2
- data/lib/inertia/version.rb +1 -1
- data/lib/inertia.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a66e180f06a0bd4e006aac5df57caa2a7362174c0ea563de81f058585619bb5
|
4
|
+
data.tar.gz: 573daa445b2339ba68496cc483304939a8d87ba17dd83d9e5af48eb5171bb163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f99960e31e07b2524378d2cea50a8878d04c5440cc8bda95fa9d812929d31ac2c2b2cfd4838f83c40fb87f00bd80029939d6125e739531001b3cd30f78c3941
|
7
|
+
data.tar.gz: 8050e917a92ac280e8187514b0241a33878b45b80f6fb2a14e12bf93f597337bded4b8bbb2fe33ab62476b57281173a7350034f9c027ffd60e1953aed821e80b
|
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
data/exe/in
CHANGED
@@ -5,6 +5,9 @@ require 'inertia'
|
|
5
5
|
Inertia.configure do |config|
|
6
6
|
config.ignore_scss = ARGV.include?('--ignore-scss')
|
7
7
|
config.ignore_js = ARGV.include?('--ignore-js')
|
8
|
+
config.ignore_haml = ARGV.include?('--ignore-haml')
|
9
|
+
config.ignore_rabl = ARGV.include?('--ignore-rabl')
|
10
|
+
config.ignore_erb = ARGV.include?('--ignore-erb')
|
8
11
|
end
|
9
12
|
|
10
13
|
Inertia::Resistance.display
|
data/lib/inertia/mass.rb
CHANGED
@@ -12,11 +12,27 @@ module Inertia
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def scss?
|
15
|
-
@scss ||=
|
15
|
+
@scss ||= extension == '.scss'
|
16
16
|
end
|
17
17
|
|
18
18
|
def js?
|
19
|
-
@js ||=
|
19
|
+
@js ||= extension == '.js'
|
20
|
+
end
|
21
|
+
|
22
|
+
def haml?
|
23
|
+
@haml ||= extension == '.haml'
|
24
|
+
end
|
25
|
+
|
26
|
+
def rabl?
|
27
|
+
@rabl ||= extension == '.rabl'
|
28
|
+
end
|
29
|
+
|
30
|
+
def erb?
|
31
|
+
@erb ||= extension == '.erb'
|
32
|
+
end
|
33
|
+
|
34
|
+
def extension
|
35
|
+
@extension ||= File.extname(path)
|
20
36
|
end
|
21
37
|
|
22
38
|
def lines
|
@@ -41,6 +57,9 @@ module Inertia
|
|
41
57
|
!text? ||
|
42
58
|
scss? && Inertia.config.ignore_scss ||
|
43
59
|
js? && Inertia.config.ignore_js
|
60
|
+
haml? && Inertia.config.ignore_haml
|
61
|
+
rabl? && Inertia.config.ignore_rabl
|
62
|
+
erb? && Inertia.config.ignore_erb
|
44
63
|
end
|
45
64
|
end
|
46
65
|
end
|
data/lib/inertia/version.rb
CHANGED
data/lib/inertia.rb
CHANGED