dirwatch 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dirwatch/executors.rb +1 -1
- data/lib/dirwatch/options/parser.rb +1 -1
- data/lib/dirwatch/settings.rb +6 -1
- data/lib/dirwatch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f14d579346fda1ee2da50afb3ad9dcd9911f7c69
|
4
|
+
data.tar.gz: f4ae3791e9097b4bd78a6406b255f0d43b760b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb7c3585a99ae454502bbc4180a9191deebc7568e797d18cf2fcfe31a71ac00714f67dd4cd4fb821ead079d21a8cfe12a129a6b29d72ed5212a996835aeb825
|
7
|
+
data.tar.gz: 6ad86b0f9621389a248d2ea8aa2d4c57a4a34e42ced3da18319f47245baf7803bfe9bb81f6d2fb1d73dde7845feaa6a240b5c81eb62fc6799cd262d3d111d508
|
data/lib/dirwatch/executors.rb
CHANGED
@@ -72,7 +72,7 @@ module Dirwatch
|
|
72
72
|
end
|
73
73
|
|
74
74
|
class WatchParser < Parser
|
75
|
-
@command_name = "#{Parser::COMMAND_NAME} [options] [directory]"
|
75
|
+
@command_name = "#{Parser::COMMAND_NAME} [options] [directory|file]"
|
76
76
|
@action = :watch
|
77
77
|
class << self
|
78
78
|
attr_reader :command_name, :action
|
data/lib/dirwatch/settings.rb
CHANGED
@@ -4,7 +4,12 @@ require_relative 'symbolize_extensions'
|
|
4
4
|
module Dirwatch
|
5
5
|
class Settings
|
6
6
|
def self.from_options options
|
7
|
-
|
7
|
+
file = if File.file? options.directory
|
8
|
+
options.directory
|
9
|
+
else
|
10
|
+
File.join(options.directory, '.dirwatch.yml')
|
11
|
+
end
|
12
|
+
Settings.from_file(file, options)
|
8
13
|
end
|
9
14
|
|
10
15
|
def self.from_file filename, options
|
data/lib/dirwatch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dirwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Ganz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|