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 +4 -4
- data/lib/monkey-reloader.rb +7 -4
- data/lib/monkey-reloader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d25e0b9f70291efc7168e9805a27649601179a8
|
4
|
+
data.tar.gz: 48be308d2c0ddd895cc191afbcbf24d7c088f89b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3377205d4a441bef2ca5ae620b3a84b1a73add3234a8f9fa5f5b51c1c16d3974347b104c9d66e250af4873bfc963748715a44b62ae27f3a27fc01ddddfa55d45
|
7
|
+
data.tar.gz: 73c14e00fec99c12789e46924f1c0c20bfe7401e439a91aa1ee0ef2a05c59f7fe5ca24aefb1248e4e2d342c60f6bb50d288fa460a23a93e15fd7a3db4795663a
|
data/lib/monkey-reloader.rb
CHANGED
@@ -113,13 +113,16 @@ module MonkeyReloader
|
|
113
113
|
# return a list of changed files
|
114
114
|
|
115
115
|
files = Set.new
|
116
|
-
|
116
|
+
# grab last arg, space delemited
|
117
|
+
cut = "rev | cut -d' ' -f 1 | rev"
|
117
118
|
|
118
|
-
# find recent changes
|
119
|
-
|
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} | #{
|
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
|
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.
|
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:
|
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
|