mj 0.5.1 → 0.5.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68281e38b6bf810bb52d6c06082ceb22eceb434da732156830d1c437c477e1f8
|
4
|
+
data.tar.gz: c6f3d7e407bfb9851c0cd956dd25d2e8d07b2ce366dfe41e81605affa3cfd21a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d9fad09f14ca8496a5392ba46ae2e1fdc46a1585717dae55704ae840f788ea530a8c1e0a8313a562de724ec05d41441dbb6d0012938824727fa0b4b0a7b14fe
|
7
|
+
data.tar.gz: aac5ab59bd4fb6ffde7043091cd9c99955e6822364ac4f6e18efbde343dbd17fa464be7aec701f98fa9efd51c765b3727e5b6e3325501bcc75674ef66b16e46c
|
data/Gemfile.lock
CHANGED
@@ -19,6 +19,7 @@ module Mj
|
|
19
19
|
|
20
20
|
# lib files
|
21
21
|
add_candidate("lib/#{ruby_file.class_path}.rb", "lib", to: candidates)
|
22
|
+
add_candidate("#{ruby_file.class_path}.rb", "lib", to: candidates)
|
22
23
|
add_candidate("spec/lib/#{ruby_file.class_path}_spec.rb", :spec, to: candidates)
|
23
24
|
add_candidate("test/lib/#{ruby_file.class_path}_test.rb", :minitest, to: candidates)
|
24
25
|
end
|
@@ -7,9 +7,10 @@ module Mj
|
|
7
7
|
class RubyFile < AlternativeFile::CurrentFile
|
8
8
|
def class_path
|
9
9
|
path_without_extension
|
10
|
+
.without_prefix("spec")
|
11
|
+
.without_prefix("test")
|
10
12
|
.without_prefix("app")
|
11
13
|
.without_prefix("lib")
|
12
|
-
.without_prefix("spec")
|
13
14
|
.without_suffix("_spec")
|
14
15
|
.without_suffix("_test")
|
15
16
|
.trim_slashes
|
data/lib/mj/version.rb
CHANGED