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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a745e31a129cad4e300637e38f2f5f7fa1b76a16
4
- data.tar.gz: 874b614d0be82a3e9ca16af514489c57936b6c1c
3
+ metadata.gz: df88d776025400eb4dea76dcb6a31f303da8efe6
4
+ data.tar.gz: f8063a6acccc3708d6524155b559bca0bb4cda52
5
5
  SHA512:
6
- metadata.gz: 0193890b04eebd909a04501bf5411bc51fa2fc60f06a965e5337d7fa9d80be6b029f7b952b379f2c0141fd4652f1ba86c58ca103b5c99d2cfdc35d305a513657
7
- data.tar.gz: d56807813c65b3b77a8229e3294cbbbf7ac786ec3f70f58e83925d3faad209ae000e6eef6a757b294f1c4fba2c15afa283713cc588473a58eb2cbc4e80dfadf8
6
+ metadata.gz: 4b9014ab2b8b6dad06409f895a9c9c85c5a4351ed64fe9faf7af37e8eee4ac7042d2874c2a637ba59cc0967db7282ab5e724b82e9669805e0a142b136d12cdb5
7
+ data.tar.gz: a0fee2f77bf4ce3cf5dc45d4852db974961330e0b6d567a42db50d93a3bf1fd4253cbfc7ffb52180d032212a2b869b206db56657806f77a2e08915992ecdcd99
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GhDiff
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-17 00:00:00.000000000 Z
11
+ date: 2014-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: togglate