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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cd75f8af59217142ec5c2c1f98dd7139f6aa588bd68739adc5cf824bd9bd06b
4
- data.tar.gz: 62011c6a18c7f01b616b0dc0d4fa680d9cce79e6067d320f6e6a10533746f565
3
+ metadata.gz: d0330dea52ee5133759ea8a5a8aa92c196cad0c291094ae68f3b7e27cfcb7923
4
+ data.tar.gz: aedaa5dad38ae36d5494b531c7a9da337663a9ec41cfcf218cf04b031b8a7b47
5
5
  SHA512:
6
- metadata.gz: 763cc4ed264a546e4aa4d532352af09cea0953efaf051cfa32febf1857dce4f20dd93bb318d0ff9daa75f8dee53fdcf5b670d67cce0c6814f2a91560f189784b
7
- data.tar.gz: 7459d48f70bf341c9f2c72810a4f5411e3a5254d55cd9af6bd89cebbd7e802df236833245602b36c7518b5ec418570da1de8a25bd7823c47091c700f67f16be9
6
+ metadata.gz: 56e3d830d818143eff36eeb55f715cadfd93b9d7f2b31203f2514fc2bb2921c3c928689e79da005c8b42eeed280fb8e14234b49095f18e6e3408e28a10177dd3
7
+ data.tar.gz: bf5b54a07f49b67e2fedfe4ddf2c27112b45d2fbf47670d552006bce8acb8e731b44290b31d7f035cb8487828269676ce4e305b2c9f84de5cc71df8140cd4c5e
@@ -18,7 +18,7 @@ module Fimon
18
18
 
19
19
  config[:triggers] = Array(config[:triggers]).map do |trigger|
20
20
  trigger.merge(
21
- matcher: Matcher.new(trigger[:pattern]),
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[:matcher].match?(path)
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[:matcher].match?(change)
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: "config/*.rb"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fimon
4
- VERSION = "0.0.0"
4
+ VERSION = "0.0.1"
5
5
  end
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.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: 2023-09-30 00:00:00.000000000 Z
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.0
85
- changelog_uri: https://github.com/fnando/fimon/tree/v0.0.0/CHANGELOG.md
86
- documentation_uri: https://github.com/fnando/fimon/tree/v0.0.0/README.md
87
- license_uri: https://github.com/fnando/fimon/tree/v0.0.0/LICENSE.md
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.4.6
103
+ rubygems_version: 3.5.5
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Thin `listen` cli wrapper.