splot 0.5.5 → 0.5.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e923fdd3cece99b795b726968ab664c2b5f85735
4
- data.tar.gz: 5a97b017eb3ac14269012ab42f6afcdb3c6be1cf
3
+ metadata.gz: c390e5c9ed3b32dc82d64892d8ae2bc01c3c3f56
4
+ data.tar.gz: 7dab2a7ba33e56a5022c94857a9b63e21a6f2b39
5
5
  SHA512:
6
- metadata.gz: 303d126166adb7a7d324020c7972fb479dc1b1ab798e5b8c94d6a47e7b37d77e954e43ffd966979b71d951357f0c5fc1abb878826c43a763c06688586e90cb52
7
- data.tar.gz: c7aa78bc509abc917051e998e12aa61e8a3ccce8de7498c2a8974193d7ddcfbbf4e2c8b14882d3192c981e03b25c9cbcae5d2f143af00adf1578e9bce83669fc
6
+ metadata.gz: 5a4d3839cd1f1a83bd05aab28fef0c36aa4837a00d9c7a8c359bca190f9aaa8da5e218429caf591a9a463aee454cd68ba86e026f620c8be82381ad44faa6d478
7
+ data.tar.gz: 9459aa0f6a9ad5550a97d8cbf60ffe603e03b5748b40b6fef41baeb3d2f18ff435ed0a7edfcccfa4004759bfcd9ea391ed4a31cbbf050953a5b89a7cad35cba7
@@ -30,9 +30,9 @@ module Splot
30
30
  end
31
31
  end
32
32
 
33
- # my_gem/foo.rb -> foo.rb
33
+ # my_gem/my_namespace/foo.rb -> my_namespace/foo.rb
34
34
  def extract_gem_name(lib_file)
35
- File.join File.split(lib_file).tap(&:shift)
35
+ File.join lib_file.split(File::Separator, 2).tap(&:shift)
36
36
  end
37
37
 
38
38
  def try_file(test_path)
@@ -1,3 +1,3 @@
1
1
  module Splot
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
@@ -33,6 +33,10 @@ class CorrespondingFileTest < Minitest::Test
33
33
  assert_equal "test/lib/my_namespace/my_class_test.rb",
34
34
  CorrespondingFile.fetch("lib/my_namespace/my_class.rb")
35
35
  end
36
+ mock_files_existing "test/lib/commands/open_bank_account_test.rb" do
37
+ assert_equal "test/lib/commands/open_bank_account_test.rb",
38
+ CorrespondingFile.fetch("lib/finance_fu/commands/open_bank_account.rb")
39
+ end
36
40
  end
37
41
 
38
42
  def test_rails_models
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ntl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2013-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler