bard 1.4.9 → 1.4.10
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/bard/cli/setup.rb +1 -1
- data/lib/bard/cli/vim.rb +1 -1
- data/lib/bard/version.rb +1 -1
- data/spec/bard/cli/vim_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 318e587da8f359d8637e0bc1ad4c2c8cdb40fae0a8abd450e7d294a6d0428c82
|
|
4
|
+
data.tar.gz: b35fb1f00685c2549c5be7795be76c6036ac233f93ed0e2db0ea1e358167143f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77dd9f076659596e8472012758b2fe8c14ed2345ecfdc66b1d6ce726bc698c427c8c76adac35204f09e31d357755579c2a3d7644fdd79ece28175bbcf7e52e07
|
|
7
|
+
data.tar.gz: a1d4e0abd8bb223b7987d8961ea3b3de3a68e4113f42c56cd48024c8ecc57dc37104f8340b78168608e53dfa44589fc17305b46f7668db4af7b1058a678e2a16
|
data/lib/bard/cli/setup.rb
CHANGED
data/lib/bard/cli/vim.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Bard::CLI::Vim
|
|
|
4
4
|
|
|
5
5
|
desc "vim [branch=master]", "open all files that have changed since master"
|
|
6
6
|
def vim branch="master"
|
|
7
|
-
exec "vim -p `git diff #{branch} --name-only | grep -v
|
|
7
|
+
exec "vim -p `(git diff #{branch} --name-only; git ls-files --others --exclude-standard) | grep -v '^app/assets/images/' | grep -v '^app/assets/stylesheets/' | while read f; do [ -f \"$f\" ] && ! file -b \"$f\" | grep -q \"binary\" && echo \"$f\"; done | tac`"
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
end
|
data/lib/bard/version.rb
CHANGED
data/spec/bard/cli/vim_spec.rb
CHANGED
|
@@ -20,13 +20,13 @@ describe Bard::CLI::Vim do
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
it "should exec vim with git diff files by default" do
|
|
23
|
-
expect(cli).to receive(:exec).with("vim -p `git diff master --name-only | grep -v
|
|
23
|
+
expect(cli).to receive(:exec).with("vim -p `(git diff master --name-only; git ls-files --others --exclude-standard) | grep -v '^app/assets/images/' | grep -v '^app/assets/stylesheets/' | while read f; do [ -f \"$f\" ] && ! file -b \"$f\" | grep -q \"binary\" && echo \"$f\"; done | tac`")
|
|
24
24
|
|
|
25
25
|
cli.vim
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it "should exec vim with specified branch" do
|
|
29
|
-
expect(cli).to receive(:exec).with("vim -p `git diff develop --name-only | grep -v
|
|
29
|
+
expect(cli).to receive(:exec).with("vim -p `(git diff develop --name-only; git ls-files --others --exclude-standard) | grep -v '^app/assets/images/' | grep -v '^app/assets/stylesheets/' | while read f; do [ -f \"$f\" ] && ! file -b \"$f\" | grep -q \"binary\" && echo \"$f\"; done | tac`")
|
|
30
30
|
|
|
31
31
|
cli.vim("develop")
|
|
32
32
|
end
|