monkey-reloader 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 69478d7f3571aac4cc17a941339d77e4df81e4d3
4
- data.tar.gz: b78e13ca9d6707e2ec4bd4fa2b180f37590fe579
3
+ metadata.gz: 5d25e0b9f70291efc7168e9805a27649601179a8
4
+ data.tar.gz: 48be308d2c0ddd895cc191afbcbf24d7c088f89b
5
5
  SHA512:
6
- metadata.gz: c5a00cf25711e19ff714893e7fd5e5baba0680ada1f1978c820e81f072af6b7040d4c10b8bbcb304bf7d60daea9e408f9dc6212effa85f7d643a02b42dd6f02a
7
- data.tar.gz: 41bf48c835532532cfe53cc47d7ee59100f2c8662a71b56a8c3f69272a5dbf813433d347c5fed598cba6f27f80252dc4933af36223055423ff8cd9b0f84f484c
6
+ metadata.gz: 3377205d4a441bef2ca5ae620b3a84b1a73add3234a8f9fa5f5b51c1c16d3974347b104c9d66e250af4873bfc963748715a44b62ae27f3a27fc01ddddfa55d45
7
+ data.tar.gz: 73c14e00fec99c12789e46924f1c0c20bfe7401e439a91aa1ee0ef2a05c59f7fe5ca24aefb1248e4e2d342c60f6bb50d288fa460a23a93e15fd7a3db4795663a
@@ -113,13 +113,16 @@ module MonkeyReloader
113
113
  # return a list of changed files
114
114
 
115
115
  files = Set.new
116
- awk = "awk '{ print $2 }'"
116
+ # grab last arg, space delemited
117
+ cut = "rev | cut -d' ' -f 1 | rev"
117
118
 
118
- # find recent changes
119
- files.merge `git status -s | #{awk}`.split
119
+ # find recent changes via git, eg.
120
+ # ' M path/to/file'
121
+ # 'RM path/to/file -> path/to/renamed/file'
122
+ files.merge `git status -s | #{cut}`.split
120
123
 
121
124
  # find committed changes if there was a branch change / rebase
122
- files.merge `git diff --name-status HEAD..#{@@hash} | #{awk}`.split
125
+ files.merge `git diff --name-status HEAD..#{@@hash} | #{cut}`.split
123
126
 
124
127
  # filter for ruby files and those that dissapeared during
125
128
  # a branch change
@@ -1,3 +1,3 @@
1
1
  module MonkeyReloader
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monkey-reloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-19 00:00:00.000000000 Z
11
+ date: 2017-01-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  fast IRB reloading for non-conventional file naming, using git