fimon 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fimon/listener.rb +3 -3
- data/lib/fimon/templates/fimon.yml +3 -6
- data/lib/fimon/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0330dea52ee5133759ea8a5a8aa92c196cad0c291094ae68f3b7e27cfcb7923
|
4
|
+
data.tar.gz: aedaa5dad38ae36d5494b531c7a9da337663a9ec41cfcf218cf04b031b8a7b47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e3d830d818143eff36eeb55f715cadfd93b9d7f2b31203f2514fc2bb2921c3c928689e79da005c8b42eeed280fb8e14234b49095f18e6e3408e28a10177dd3
|
7
|
+
data.tar.gz: bf5b54a07f49b67e2fedfe4ddf2c27112b45d2fbf47670d552006bce8acb8e731b44290b31d7f035cb8487828269676ce4e305b2c9f84de5cc71df8140cd4c5e
|
data/lib/fimon/listener.rb
CHANGED
@@ -18,7 +18,7 @@ module Fimon
|
|
18
18
|
|
19
19
|
config[:triggers] = Array(config[:triggers]).map do |trigger|
|
20
20
|
trigger.merge(
|
21
|
-
|
21
|
+
matchers: Array(trigger[:pattern]).map { Matcher.new(_1) },
|
22
22
|
ignore:
|
23
23
|
Array(trigger[:ignore]).map {|pattern| Matcher.new(pattern) }
|
24
24
|
)
|
@@ -137,7 +137,7 @@ module Fimon
|
|
137
137
|
|
138
138
|
config[:triggers].each do |trigger|
|
139
139
|
changes.values.flatten.each do |path|
|
140
|
-
next unless trigger[:
|
140
|
+
next unless trigger[:matchers].any? { _1.match?(path) }
|
141
141
|
next if trigger[:ignore].any? {|pattern| pattern.match?(path) }
|
142
142
|
|
143
143
|
cmd = Array(trigger[:command]).map do |arg|
|
@@ -195,7 +195,7 @@ module Fimon
|
|
195
195
|
def included_on_watched_paths(changes)
|
196
196
|
changes.select do |change|
|
197
197
|
config[:triggers].any? do |trigger|
|
198
|
-
trigger[:
|
198
|
+
trigger[:matchers].any? { _1.match?(change) }
|
199
199
|
end
|
200
200
|
end
|
201
201
|
end
|
@@ -6,13 +6,10 @@ ignore:
|
|
6
6
|
- /some/file.txt
|
7
7
|
|
8
8
|
triggers:
|
9
|
-
- name: Rails initializers
|
10
|
-
pattern: "config/initializers/*.rb"
|
11
|
-
command: [touch, tmp/restart.txt]
|
12
|
-
run_on_start: false
|
13
|
-
|
14
9
|
- name: Rails config files
|
15
|
-
pattern:
|
10
|
+
pattern:
|
11
|
+
- "config/*.rb"
|
12
|
+
- "config/initializers/*.rb"
|
16
13
|
command: [touch, tmp/restart.txt]
|
17
14
|
ignore:
|
18
15
|
- "config/routes.rb"
|
data/lib/fimon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fimon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|
@@ -81,10 +81,10 @@ metadata:
|
|
81
81
|
rubygems_mfa_required: 'true'
|
82
82
|
homepage_uri: https://github.com/fnando/fimon
|
83
83
|
bug_tracker_uri: https://github.com/fnando/fimon/issues
|
84
|
-
source_code_uri: https://github.com/fnando/fimon/tree/v0.0.
|
85
|
-
changelog_uri: https://github.com/fnando/fimon/tree/v0.0.
|
86
|
-
documentation_uri: https://github.com/fnando/fimon/tree/v0.0.
|
87
|
-
license_uri: https://github.com/fnando/fimon/tree/v0.0.
|
84
|
+
source_code_uri: https://github.com/fnando/fimon/tree/v0.0.1
|
85
|
+
changelog_uri: https://github.com/fnando/fimon/tree/v0.0.1/CHANGELOG.md
|
86
|
+
documentation_uri: https://github.com/fnando/fimon/tree/v0.0.1/README.md
|
87
|
+
license_uri: https://github.com/fnando/fimon/tree/v0.0.1/LICENSE.md
|
88
88
|
post_install_message:
|
89
89
|
rdoc_options: []
|
90
90
|
require_paths:
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
|
-
rubygems_version: 3.
|
103
|
+
rubygems_version: 3.5.5
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Thin `listen` cli wrapper.
|