inertia 0.1.5 → 0.1.6

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: 9d11084d0cf69efbb978d231f9635222f52c2663789482da7e0e07fd461b76a8
4
- data.tar.gz: 75a061ab877f8276266438de7f7eb1f5933534bd3d8827cdbb9956402c9a8fb9
3
+ metadata.gz: 14c39cc6d0dfcd0237cfc922d2b5c6f1e5f680744265212014c2ead471963f3f
4
+ data.tar.gz: 4c1c709b90ea2fd87279ab783fb563b2801cd7f47fe3f88a4a9322ea76cc907d
5
5
  SHA512:
6
- metadata.gz: 1b2cffe4232da693d00d16159ced964d952cc4ac3b1f13fbbef586ac460795b8756f954e4f35edbc9df1d93cf9897f4bdf28cae22fc442b0e68ebbcdd8ea0bcb
7
- data.tar.gz: 9165326ee8434cabfde7107c155994615530470b0e714a3dc65b3c243b16182f996fc93fe1198e5ab63b28fbd211dbfdb186b3d0a909ef0df3b1b8da5ad48981
6
+ metadata.gz: 7ad2334f079c89a4dcc262084bd214689d07ef06c93b8daf834da72519d9249ab6abc11ab91228afef3d11d79363032be9a9b4e5c0e50184f2bc598e9320d52b
7
+ data.tar.gz: 79bf49d55ad5fa5f1b742becad36e2ee1b4a8fd9855c977efe297b2d8e111d5e93947746d700980c4ed1ac019c26a359048f75b968c430fd5a4dd524d0f84254
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- inertia (0.1.5)
4
+ inertia (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/History.md CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ 0.1.6 / 2018-10-21
3
+ ==================
4
+
5
+ * Add ability to ignore js
6
+ * Fix proper extension for scss
7
+
2
8
  0.1.5 / 2018-10-21
3
9
  ==================
4
10
 
data/exe/in CHANGED
@@ -4,6 +4,7 @@ require 'inertia'
4
4
 
5
5
  Inertia.configure do |config|
6
6
  config.ignore_scss = ARGV.include?('--ignore-scss')
7
+ config.ignore_js = ARGV.include?('--ignore-js')
7
8
  end
8
9
 
9
10
  Inertia::Resistance.display
data/lib/inertia/mass.rb CHANGED
@@ -12,7 +12,11 @@ module Inertia
12
12
  end
13
13
 
14
14
  def scss?
15
- @scss ||= File.extname(path) == 'scss'
15
+ @scss ||= File.extname(path) == '.scss'
16
+ end
17
+
18
+ def js?
19
+ @js ||= File.extname(path) == '.js'
16
20
  end
17
21
 
18
22
  def lines
@@ -35,7 +39,8 @@ module Inertia
35
39
 
36
40
  def ignored?
37
41
  !text? ||
38
- scss? && Inertia.config.ignore_scss
42
+ scss? && Inertia.config.ignore_scss ||
43
+ js? && Inertia.config.ignore_js
39
44
  end
40
45
  end
41
46
  end
@@ -1,3 +1,3 @@
1
1
  module Inertia
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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
18
+ attr_accessor :ignore_scss, :ignore_js
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hood