scm_workspace 0.3.0 → 0.3.1
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 +4 -4
- data/lib/scm_workspace/core_ext/fileutils.rb +15 -0
- data/lib/scm_workspace/version.rb +1 -1
- data/lib/scm_workspace.rb +1 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b5aed2ebb23effa0e4d640181d609aa67fbf26
|
4
|
+
data.tar.gz: c49b9fa6ff2dab68bfd7bfcfcb4b77f9481ef497
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 189d7d0d60e6fa0bd1f490ffee50f0047e1a2e853c42eb940e6817798760e42b946b9739dec09cd79abdb6b43ef81081481e095268ac8a2d77ada54608de9ea0
|
7
|
+
data.tar.gz: 0846be292f4e3ab347608db6c70a480d5e0c8ab175bd6727ef3bb005149c1b20ebcf401f88833d5e12088b01a9bdf3918a16201586d2b430d77d17039a166fad
|
@@ -3,6 +3,21 @@ require 'logger'
|
|
3
3
|
|
4
4
|
module FileUtils
|
5
5
|
|
6
|
+
# Monkey patch
|
7
|
+
# original source code is here:
|
8
|
+
# https://github.com/ruby/ruby/blob/v2_0_0_247/lib/fileutils.rb#L122
|
9
|
+
def cd(dir, options = {}, &block) # :yield: dir
|
10
|
+
fu_check_options options, OPT_TABLE['cd']
|
11
|
+
fu_output_message "cd #{dir}" if options[:verbose]
|
12
|
+
r = Dir.chdir(dir, &block)
|
13
|
+
fu_output_message 'cd -' if options[:verbose] and block
|
14
|
+
r
|
15
|
+
end
|
16
|
+
module_function :cd
|
17
|
+
|
18
|
+
alias chdir cd
|
19
|
+
module_function :chdir
|
20
|
+
|
6
21
|
class << self
|
7
22
|
def with_logger(logger, level = :info)
|
8
23
|
output = LoggerAdapter.new(logger, level)
|
data/lib/scm_workspace.rb
CHANGED