tldr 0.9.0 → 0.9.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: c9ae325a1d7b5c16b255bce28975b4e9c08bc23291932a02d91d02d46c247655
4
- data.tar.gz: 0e92807c78187999ea26dba8f3ff48aa8ec6442b8884def3b7fc6b58db4127f0
3
+ metadata.gz: f6d49bfa66698f5e33451a20655ab442e6a6e50e76ec3b048b49d93baf7d8c66
4
+ data.tar.gz: f64c38ecd633686bc7616d4cf377fd49d2d91387dadaad09d81bf960ae2c39b6
5
5
  SHA512:
6
- metadata.gz: 79a8a3c45bc03731c80e5d7b00103d69efe4a1185c758fdecde1451864677af433126634a717dd912d7032556562cbe3894b1e7db75ab811412c1cc9097a457e
7
- data.tar.gz: f27b99c4502b3a803d9c0507a1a9888715e8d203e1fc97bcd3284baa34afed4d9f55f2c5c06424c49645526c92534a54b52946867606a89b738dcb9c481a4c5d
6
+ metadata.gz: 524382d1fe9004b821bc7c7ea9b33779221ed60b35f51cf78924412c15a2c3cf07bb2ad46f8d5815f0890f3bd2ccfec868310521b00def3196ab93069e9153b0
7
+ data.tar.gz: 11313f640b6f2443063dbd79083f6810dca5778411c8093a36ebd5284b306c3db6be9dbc9e7bf53c4f63500734075371051243e75a665fb7e0e952ce28fdbe23
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.9.1]
2
+
3
+ * Correctly clear the screen between runs
4
+
1
5
  ## [0.9.0]
2
6
 
3
7
  * Add a `--watch` option that will spawn fswatch | xargs and clear the screen
data/README.md CHANGED
@@ -170,6 +170,9 @@ of the configured load paths (`["test", "lib"]` by default) and then execute
170
170
  your tests each time a file is changed. To keep the output up-to-date and easy
171
171
  to scan, it will also clear your console before each run.
172
172
 
173
+ Note that this feature requires you have
174
+ [fswatch](https://github.com/emcrisostomo/fswatch) installed and on your `PATH`
175
+
173
176
  Here's what that might look like:
174
177
 
175
178
  ![tldr-watch](https://github.com/tendersearls/tldr/assets/79303/364f0e52-5596-49ce-a470-5eaeddd11f03)
data/lib/tldr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class TLDR
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
data/lib/tldr/watcher.rb CHANGED
@@ -2,10 +2,17 @@ class TLDR
2
2
  class Watcher
3
3
  def watch config
4
4
  require_fs_watch!
5
- command = "fswatch -o #{config.load_paths.reverse.join(" ")} | xargs -n1 -I{} #{tldr_command} #{config.to_full_args}"
5
+ tldr_command = "#{"bundle exec " if defined?(Bundler)}tldr #{config.to_full_args(ensure_args: ["--i-am-being-watched"])}"
6
+ command = "fswatch -o #{config.load_paths.reverse.join(" ")} | xargs -n1 -I{} #{tldr_command}"
6
7
 
7
8
  puts <<~MSG
8
- Watching #{config.load_paths.map(&:inspect).join(", ")} for changes...
9
+
10
+ Watching for changes in #{config.load_paths.map(&:inspect).join(", ")}...
11
+
12
+ When a file changes, TLDR will run this command:
13
+
14
+ $ #{tldr_command}
15
+
9
16
  MSG
10
17
 
11
18
  exec command
@@ -24,9 +31,5 @@ class TLDR
24
31
  MSG
25
32
  exit 1
26
33
  end
27
-
28
- def tldr_command
29
- "#{"bundle exec " if defined?(Bundler)}tldr"
30
- end
31
34
  end
32
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls