inertia 0.1.9 → 0.1.10
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 +8 -0
- data/exe/in +5 -0
- data/lib/inertia/mass.rb +26 -1
- data/lib/inertia/resistance.rb +1 -1
- data/lib/inertia/version.rb +1 -1
- data/lib/inertia.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d192b575d488950c5603f29a006840292c9e899becaf0257f811eb2c2e71ea7f
|
4
|
+
data.tar.gz: 13bd2c0329700b2f29650be8e1e3fdc6ee49d8e2f038f6aac265fe6cfaae80e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c4fe89bca678aaa6922a8771afa797300c10bb5b5eaf5092884d0ac92339d141e2b539f06526e2f4699210ec92893d46c2a3a8f8b72dff4dd359f3f1bd5b7d
|
7
|
+
data.tar.gz: 48647379664d95aeed41f96ed4cd83e50db4ff927c612d216f2723b95891c4a9d0d61322df10b3923abe05023b188add3cf772cb34b317c777d085199591dfa7
|
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
data/exe/in
CHANGED
@@ -5,9 +5,14 @@ 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_jsx = ARGV.include?('--ignore-jsx')
|
9
|
+
config.ignore_ts = ARGV.include?('--ignore-ts')
|
10
|
+
config.ignore_tsx = ARGV.include?('--ignore-tsx')
|
8
11
|
config.ignore_haml = ARGV.include?('--ignore-haml')
|
9
12
|
config.ignore_rabl = ARGV.include?('--ignore-rabl')
|
10
13
|
config.ignore_erb = ARGV.include?('--ignore-erb')
|
14
|
+
config.ignore_ruby_spec = ARGV.include?('--ignore-ruby-spec')
|
15
|
+
config.ignore_yml = ARGV.include?('--ignore-yml')
|
11
16
|
end
|
12
17
|
|
13
18
|
Inertia::Resistance.display
|
data/lib/inertia/mass.rb
CHANGED
@@ -19,6 +19,18 @@ module Inertia
|
|
19
19
|
@js ||= extension == '.js'
|
20
20
|
end
|
21
21
|
|
22
|
+
def jsx?
|
23
|
+
@jsx ||= extension == '.jsx'
|
24
|
+
end
|
25
|
+
|
26
|
+
def ts?
|
27
|
+
@ts ||= extension == '.ts'
|
28
|
+
end
|
29
|
+
|
30
|
+
def tsx?
|
31
|
+
@tsx ||= extension == '.tsx'
|
32
|
+
end
|
33
|
+
|
22
34
|
def haml?
|
23
35
|
@haml ||= extension == '.haml'
|
24
36
|
end
|
@@ -31,6 +43,14 @@ module Inertia
|
|
31
43
|
@erb ||= extension == '.erb'
|
32
44
|
end
|
33
45
|
|
46
|
+
def ruby_spec?
|
47
|
+
@ruby_spec ||= path.include?('_spec.rb')
|
48
|
+
end
|
49
|
+
|
50
|
+
def yml?
|
51
|
+
@yml ||= extension == '.yml'
|
52
|
+
end
|
53
|
+
|
34
54
|
def extension
|
35
55
|
@extension ||= File.extname(path)
|
36
56
|
end
|
@@ -57,9 +77,14 @@ module Inertia
|
|
57
77
|
!text? ||
|
58
78
|
scss? && Inertia.config.ignore_scss ||
|
59
79
|
js? && Inertia.config.ignore_js ||
|
80
|
+
jsx? && Inertia.config.ignore_jsx ||
|
81
|
+
ts? && Inertia.config.ignore_ts ||
|
82
|
+
tsx? && Inertia.config.ignore_tsx ||
|
60
83
|
haml? && Inertia.config.ignore_haml ||
|
61
84
|
rabl? && Inertia.config.ignore_rabl ||
|
62
|
-
erb? && Inertia.config.ignore_erb
|
85
|
+
erb? && Inertia.config.ignore_erb ||
|
86
|
+
ruby_spec? && Inertia.config.ignore_ruby_spec ||
|
87
|
+
yml? && Inertia.config.ignore_yml
|
63
88
|
end
|
64
89
|
end
|
65
90
|
end
|
data/lib/inertia/resistance.rb
CHANGED
data/lib/inertia/version.rb
CHANGED
data/lib/inertia.rb
CHANGED
@@ -4,6 +4,7 @@ require 'inertia/mass'
|
|
4
4
|
require 'inertia/grouped_mass'
|
5
5
|
require 'inertia/resistance'
|
6
6
|
|
7
|
+
# Be nimble, be organized.
|
7
8
|
module Inertia
|
8
9
|
class << self
|
9
10
|
attr_accessor :config
|
@@ -14,7 +15,17 @@ module Inertia
|
|
14
15
|
yield(config)
|
15
16
|
end
|
16
17
|
|
18
|
+
# Hold the configuration for the command
|
17
19
|
class Configuration
|
18
|
-
attr_accessor :ignore_scss,
|
20
|
+
attr_accessor :ignore_scss,
|
21
|
+
:ignore_js,
|
22
|
+
:ignore_jsx,
|
23
|
+
:ignore_ts,
|
24
|
+
:ignore_tsx,
|
25
|
+
:ignore_haml,
|
26
|
+
:ignore_rabl,
|
27
|
+
:ignore_erb,
|
28
|
+
:ignore_ruby_spec,
|
29
|
+
:ignore_yml
|
19
30
|
end
|
20
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inertia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hood
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|