relocator 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/relocator/cli/move.rb +10 -2
- data/lib/relocator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d908b11fbb3dc9d210b3251b0fb0fef5b79d45eacf3f29f3a76f9e1ebce70923
|
4
|
+
data.tar.gz: 7f7da85887113a8a5fa63995e8e3900c04697570902c14c1add9ce0d617a99b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a3423ad8e0f1708cd646d7d259a76c875f776827e7a4ee7634cbf0dd169e74f6fcfae088eec07e45602bd0286263ae86de6010b4b04ce9fe42018db00891e5d
|
7
|
+
data.tar.gz: 1b76f786b2150249a139147909f31e3a8fea2d3305d69d01aa4a65e218e9332964deb6675f4b876d9643d100cb91b56424429970fc6e427daa9acdd9d4530a91
|
data/Gemfile.lock
CHANGED
data/lib/relocator/cli/move.rb
CHANGED
@@ -13,8 +13,8 @@ class Relocator::CLI::Move
|
|
13
13
|
def call
|
14
14
|
return unless Relocator::CLI::Success.call(files)
|
15
15
|
|
16
|
-
STDOUT.puts "mkdir -p %s".format(
|
17
|
-
STDOUT.puts "mkdir -p %s".format(
|
16
|
+
STDOUT.puts "mkdir -p %s".format(code_dest_dir)
|
17
|
+
STDOUT.puts "mkdir -p %s".format(spec_dest_dir)
|
18
18
|
STDOUT.puts "mv %s %s".format(code_source, code_dest)
|
19
19
|
STDOUT.puts "mv %s %s".format(spec_source, spec_dest)
|
20
20
|
STDOUT.puts replace_command
|
@@ -49,7 +49,15 @@ class Relocator::CLI::Move
|
|
49
49
|
@_code_dest ||= Relocator::Path::Formatter.call(dest_class_name, code_source)
|
50
50
|
end
|
51
51
|
|
52
|
+
def code_dest_dir
|
53
|
+
File.dirname(code_dest)
|
54
|
+
end
|
55
|
+
|
52
56
|
def spec_dest
|
53
57
|
@_spec_dest ||= Relocator::Path::Spec.call(code_dest)
|
54
58
|
end
|
59
|
+
|
60
|
+
def spec_dest_dir
|
61
|
+
File.dirname(spec_dest)
|
62
|
+
end
|
55
63
|
end
|
data/lib/relocator/version.rb
CHANGED