gh-diff 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gh-diff/cli.rb +11 -0
- data/lib/gh-diff/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: df88d776025400eb4dea76dcb6a31f303da8efe6
|
4
|
+
data.tar.gz: f8063a6acccc3708d6524155b559bca0bb4cda52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b9014ab2b8b6dad06409f895a9c9c85c5a4351ed64fe9faf7af37e8eee4ac7042d2874c2a637ba59cc0967db7282ab5e724b82e9669805e0a142b136d12cdb5
|
7
|
+
data.tar.gz: a0fee2f77bf4ce3cf5dc45d4852db974961330e0b6d567a42db50d93a3bf1fd4253cbfc7ffb52180d032212a2b869b206db56657806f77a2e08915992ecdcd99
|
data/lib/gh-diff/cli.rb
CHANGED
@@ -149,6 +149,17 @@ module GhDiff
|
|
149
149
|
if removed.any?
|
150
150
|
puts "\e[33mRemoved files:\e[0m"
|
151
151
|
puts removed.map { |f| " \e[31m" + f + "\e[0m" }
|
152
|
+
if opts[:save]
|
153
|
+
removed.each do |f|
|
154
|
+
path = File.join(dir, f)
|
155
|
+
content = "---\nFile: #{path}\nStatus: file deleted\n---\n"
|
156
|
+
if opts[:ref]
|
157
|
+
content = add_reference(gh, opts[:revision],
|
158
|
+
opts[:repo], content)
|
159
|
+
end
|
160
|
+
save(content, opts[:save_dir], path, '.delete')
|
161
|
+
end
|
162
|
+
end
|
152
163
|
end
|
153
164
|
end
|
154
165
|
end
|
data/lib/gh-diff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gh-diff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyoendo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: togglate
|