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: 040511b6ef46ad0760a5958920e53ec8d00fa3f0697c9098004e649808c41f73
4
- data.tar.gz: b9eaa497531aa4856674cf0f5d80825769e0b431ee8c304cf052680f8d22ee2c
3
+ metadata.gz: 68281e38b6bf810bb52d6c06082ceb22eceb434da732156830d1c437c477e1f8
4
+ data.tar.gz: c6f3d7e407bfb9851c0cd956dd25d2e8d07b2ce366dfe41e81605affa3cfd21a
5
5
  SHA512:
6
- metadata.gz: 1e0c951f24b70e6d25746e51f3cf0a37c9fd781818763e26115f6199a157da4cc3f6590cba8819f56d5ecbdb7de8523e509b3f29dd5362340cebc7d1646c3028
7
- data.tar.gz: 112bc4d98c34cd67f5ef1cae09646e06a920ab2b5ed27010130bbd926dc23d033bdf1a329d9fd0d4e56466dfb086747a40a3414200a5a441839f1a397dd90fdd
6
+ metadata.gz: 3d9fad09f14ca8496a5392ba46ae2e1fdc46a1585717dae55704ae840f788ea530a8c1e0a8313a562de724ec05d41441dbb6d0012938824727fa0b4b0a7b14fe
7
+ data.tar.gz: aac5ab59bd4fb6ffde7043091cd9c99955e6822364ac4f6e18efbde343dbd17fa464be7aec701f98fa9efd51c765b3727e5b6e3325501bcc75674ef66b16e46c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mj (0.5.1)
4
+ mj (0.5.2)
5
5
  thor (~> 1.2.1)
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mj
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcelo Jacobus