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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14c39cc6d0dfcd0237cfc922d2b5c6f1e5f680744265212014c2ead471963f3f
4
- data.tar.gz: 4c1c709b90ea2fd87279ab783fb563b2801cd7f47fe3f88a4a9322ea76cc907d
3
+ metadata.gz: 7a66e180f06a0bd4e006aac5df57caa2a7362174c0ea563de81f058585619bb5
4
+ data.tar.gz: 573daa445b2339ba68496cc483304939a8d87ba17dd83d9e5af48eb5171bb163
5
5
  SHA512:
6
- metadata.gz: 7ad2334f079c89a4dcc262084bd214689d07ef06c93b8daf834da72519d9249ab6abc11ab91228afef3d11d79363032be9a9b4e5c0e50184f2bc598e9320d52b
7
- data.tar.gz: 79bf49d55ad5fa5f1b742becad36e2ee1b4a8fd9855c977efe297b2d8e111d5e93947746d700980c4ed1ac019c26a359048f75b968c430fd5a4dd524d0f84254
6
+ metadata.gz: 2f99960e31e07b2524378d2cea50a8878d04c5440cc8bda95fa9d812929d31ac2c2b2cfd4838f83c40fb87f00bd80029939d6125e739531001b3cd30f78c3941
7
+ data.tar.gz: 8050e917a92ac280e8187514b0241a33878b45b80f6fb2a14e12bf93f597337bded4b8bbb2fe33ab62476b57281173a7350034f9c027ffd60e1953aed821e80b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- inertia (0.1.6)
4
+ inertia (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/History.md CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 0.1.7 / 2018-10-21
3
+ ==================
4
+
5
+ * Add haml, rabl and erb
6
+
2
7
  0.1.6 / 2018-10-21
3
8
  ==================
4
9
 
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 ||= File.extname(path) == '.scss'
15
+ @scss ||= extension == '.scss'
16
16
  end
17
17
 
18
18
  def js?
19
- @js ||= File.extname(path) == '.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
@@ -1,3 +1,3 @@
1
1
  module Inertia
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/inertia.rb CHANGED
@@ -15,6 +15,6 @@ module Inertia
15
15
  end
16
16
 
17
17
  class Configuration
18
- attr_accessor :ignore_scss, :ignore_js
18
+ attr_accessor :ignore_scss, :ignore_js, :ignore_haml, :ignore_rabl, :ignore_erb
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood