to_pass 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/to_pass/directories.rb +1 -1
- data/lib/to_pass/version.rb +1 -1
- data/test/test_directories.rb +2 -2
- metadata +4 -5
- data/.travis.yml +0 -1
data/lib/to_pass/directories.rb
CHANGED
@@ -50,7 +50,7 @@ module ToPass
|
|
50
50
|
# list of all directories used by this project
|
51
51
|
def all
|
52
52
|
@all ||= {
|
53
|
-
:user => "~/.#{APP_NAME}",
|
53
|
+
:user => File.expand_path("~/.#{APP_NAME}"),
|
54
54
|
:data => "#{ruby_data_dir}/#{APP_NAME}",
|
55
55
|
:base => File.expand_path("#{File.dirname(__FILE__)}/../.."),
|
56
56
|
:source_data => File.expand_path("#{File.dirname(__FILE__)}/../../data/#{APP_NAME}"),
|
data/lib/to_pass/version.rb
CHANGED
data/test/test_directories.rb
CHANGED
@@ -8,7 +8,7 @@ class TestDirectories < Test::Unit::TestCase
|
|
8
8
|
def test_directories
|
9
9
|
assert_respond_to dirs, :[]
|
10
10
|
|
11
|
-
assert_equal '~/.to_pass', dirs[:user]
|
11
|
+
assert_equal Pathname.new('~/.to_pass').expand_path.to_s, dirs[:user]
|
12
12
|
assert_equal "#{ruby_data_dir}/#{ToPass::APP_NAME}", dirs[:data]
|
13
13
|
|
14
14
|
if in_to_pass_soure_tree?
|
@@ -37,7 +37,7 @@ class TestDirectories < Test::Unit::TestCase
|
|
37
37
|
|
38
38
|
# assert_include(needle, haystack[, msg]) uses include? to verify.
|
39
39
|
assert_include :user, dirs
|
40
|
-
assert_include '~/.to_pass', dirs
|
40
|
+
assert_include Pathname.new('~/.to_pass').expand_path.to_s, dirs
|
41
41
|
end
|
42
42
|
|
43
43
|
protected
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: to_pass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthias Viehweger
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-04 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -74,7 +74,6 @@ extra_rdoc_files:
|
|
74
74
|
- TODO
|
75
75
|
files:
|
76
76
|
- .gemtest
|
77
|
-
- .travis.yml
|
78
77
|
- .vclog/rules.rb
|
79
78
|
- .yardopts
|
80
79
|
- Gemfile
|
data/.travis.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
script: "rake test:all"
|