doing 2.0.22 → 2.0.23

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: 36dd66af3e00464697ab6eb89101e501e0b50ee6b21bc8629a13e21b3906c18a
4
- data.tar.gz: 758903fc78fd9a812ab723a5af00cdec0c6cd13c1316dc638e9ca10f24bf939a
3
+ metadata.gz: 47e702ec6e32cc0f97b0d81ef0e6482fb78ea462916fd2f83a58474759c0b4af
4
+ data.tar.gz: b50848409e7a8b409bd9f82a77dbf0722ef97ac3a2a9491a5096ad60ca94f563
5
5
  SHA512:
6
- metadata.gz: e755266bcfedb72b69f966a2621af76b5014168cd44898c2ba24b0dfc711482aef6a3694afd8010abbeb3bdeb88749532b15f1699ab6926227679ffb7308758d
7
- data.tar.gz: f892efc03f34754866f436603e49c3e3f9b9ec52496ecdcddb1c5783abc485b7996bb5385d531a5814a4ee9b52d262f754545ee4a0a0559e49ccfff56de38bdb
6
+ metadata.gz: 25b1e4482ee5120b1b8fc6716c6f717235addf893917b8c21116da57ee25fef5d0bca3b29b3dbda39e0fb23c149e4284e17da755a9b1f6a92c89a7e30eda55f7
7
+ data.tar.gz: 28563fdc3eadec4d60faae9bdb2a38072caea19a98a5084670591851036702d2a46e7ee4f0798e6cd22e7b9eeec1a0c822872d9457b1eb8c890c45b4d5d54998
data/CHANGELOG.md CHANGED
@@ -1,8 +1,7 @@
1
- ### 2.0.22
2
-
3
- #### IMPROVED
1
+ ### 2.0.23
4
2
 
5
3
  - include fzf source directly, in case git isn't installed
4
+ - fall back to installing fzf with sudo on error
6
5
 
7
6
  ### 2.0.20
8
7
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.0.22)
4
+ doing (2.0.23)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
7
  gli (~> 2.19, >= 2.19.2)
data/README.md CHANGED
@@ -6,7 +6,7 @@ _If you're one of the rare people like me who find this useful, feel free to [bu
6
6
 
7
7
  <!--README-->
8
8
 
9
- The current version of `doing` is <!--VER-->2.0.21<!--END VER-->.
9
+ The current version of `doing` is <!--VER-->2.0.22<!--END VER-->.
10
10
 
11
11
  Find all of the documentation in the [doing wiki](https://github.com/ttscoff/doing/wiki).
12
12
 
data/doing.rdoc CHANGED
@@ -5,7 +5,7 @@ record of what you've been doing, complete with tag-based time tracking. The
5
5
  command line tool allows you to add entries, annotate with tags and notes, and
6
6
  view your entries with myriad options, with a focus on a "natural" language syntax.
7
7
 
8
- v2.0.22
8
+ v2.0.23
9
9
 
10
10
  === Global Options
11
11
  === --config_file arg
data/lib/doing/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '2.0.22'
2
+ VERSION = '2.0.23'
3
3
  end
data/lib/doing/wwid.rb CHANGED
@@ -614,17 +614,20 @@ module Doing
614
614
  def fzf
615
615
  fzf_dir = File.join(File.dirname(__FILE__), '../helpers/fzf')
616
616
  FileUtils.mkdir_p(fzf_dir) unless File.directory?(fzf_dir)
617
- fzf = File.join(fzf_dir, 'bin/fzf')
618
- return fzf if File.exist?(fzf)
617
+ fzf_bin = File.join(fzf_dir, 'bin/fzf')
618
+ return fzf_bin if File.exist?(fzf_bin)
619
619
 
620
- Doing.logger.log_now(:warn, 'Compiling and installing FZF. This will only happen once')
620
+ Doing.logger.log_now(:warn, 'Compiling and installing FZF -- this will only happen once')
621
621
  Doing.logger.log_now(:warn, 'fzf is copyright Junegunn Choi <https://github.com/junegunn/fzf/blob/master/LICENSE>')
622
622
 
623
- res = `#{fzf_dir}/install --bin --no-key-bindings --no-completion --no-update-rc --no-bash --no-zsh --no-fish`
624
-
625
- raise DoingRuntimeError unless File.exist?(fzf)
623
+ res = system("#{fzf_dir}/install --bin --no-key-bindings --no-completion --no-update-rc --no-bash --no-zsh --no-fish")
624
+ unless res
625
+ Doing.logger.log_now(:warn, 'Error installing, trying again as root')
626
+ system("sudo #{fzf_dir}/install --bin --no-key-bindings --no-completion --no-update-rc --no-bash --no-zsh --no-fish")
627
+ end
628
+ raise RuntimeError.new('Error installing fzf, please report at https://github.com/ttscoff/doing/issues') unless File.exist?(fzf_bin)
626
629
 
627
- fzf
630
+ fzf_bin
628
631
  end
629
632
 
630
633
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.22
4
+ version: 2.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra