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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7758630b558e557b178b1d598cec7ef6c5bd3d56769673372f4133ffc488451
4
- data.tar.gz: 86df74f01dab9bdb30690340571d10b2bd51bbff3d70f1aeca4385d399542d76
3
+ metadata.gz: 318e587da8f359d8637e0bc1ad4c2c8cdb40fae0a8abd450e7d294a6d0428c82
4
+ data.tar.gz: b35fb1f00685c2549c5be7795be76c6036ac233f93ed0e2db0ea1e358167143f
5
5
  SHA512:
6
- metadata.gz: bd955ce3572ec9c071f775ea15c78ce004ef0db2125105e0d72678057b65475d534cc21e408ca0900ef57735c13f30a7d1755714bc4dd0019469f73f66ed04c2
7
- data.tar.gz: e6b64d2cef83b325161b5f7b5f990b400a245f7b5103f7539d3a500150f7c2ab863557350954213fec8f382aa7908142f19fb98df0304a921f486be77470187d
6
+ metadata.gz: 77dd9f076659596e8472012758b2fe8c14ed2345ecfdc66b1d6ce726bc698c427c8c76adac35204f09e31d357755579c2a3d7644fdd79ece28175bbcf7e52e07
7
+ data.tar.gz: a1d4e0abd8bb223b7987d8961ea3b3de3a68e4113f42c56cd48024c8ecc57dc37104f8340b78168608e53dfa44589fc17305b46f7668db4af7b1058a678e2a16
@@ -13,7 +13,7 @@ passenger_enabled on;
13
13
 
14
14
  location ~* \\.(ico|css|js|gif|jp?g|png|webp) {
15
15
  access_log off;
16
- if (\\$request_filename ~ \"-[0-9a-f]{32}\\.\") {
16
+ if (\\$request_filename ~ \"-[0-9a-f]{32,}\\.\") {
17
17
  expires max;
18
18
  add_header Cache-Control public;
19
19
  }
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 sass$ | tac`"
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
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "1.4.9"
2
+ VERSION = "1.4.10"
3
3
  end
4
4
 
@@ -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 sass$ | tac`")
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 sass$ | tac`")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.9
4
+ version: 1.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel