fspath 0.1.1.1-darwin → 0.1.2-darwin
Sign up to get free protection for your applications and to get access to all the features.
- data/.tmignore +1 -0
- data/Rakefile +0 -2
- data/VERSION +1 -1
- data/fspath.gemspec +3 -2
- data/lib/fspath.rb +2 -2
- data/spec/fspath_spec.rb +8 -0
- data/spec/spec_helper.rb +1 -10
- metadata +5 -5
data/.tmignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/*.gemspec
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/fspath.gemspec
CHANGED
@@ -5,18 +5,19 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{fspath}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
s.platform = %q{darwin}
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["Ivan Kuchin"]
|
13
|
-
s.date = %q{2010-12-
|
13
|
+
s.date = %q{2010-12-18}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
16
16
|
"README.markdown",
|
17
17
|
"TODO"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
+
".tmignore",
|
20
21
|
"LICENSE.txt",
|
21
22
|
"README.markdown",
|
22
23
|
"Rakefile",
|
data/lib/fspath.rb
CHANGED
data/spec/fspath_spec.rb
CHANGED
@@ -51,6 +51,14 @@ describe FSPath do
|
|
51
51
|
it "should return instance of FSPath" do
|
52
52
|
(FSPath('a') + 'b').should be_instance_of(FSPath)
|
53
53
|
end
|
54
|
+
|
55
|
+
it "should join simple paths" do
|
56
|
+
(FSPath('a') + 'b').should == FSPath('a/b')
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should join path starting with slash" do
|
60
|
+
(FSPath('a') + '/b').should == FSPath('/b')
|
61
|
+
end
|
54
62
|
end
|
55
63
|
|
56
64
|
describe "writing" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,3 @@
|
|
1
|
-
|
2
|
-
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
3
2
|
require 'rspec'
|
4
3
|
require 'fspath'
|
5
|
-
|
6
|
-
# Requires supporting files with custom matchers and macros, etc,
|
7
|
-
# in ./support/ and its subdirectories.
|
8
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
|
12
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fspath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
|
11
|
-
version: 0.1.1.1
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
12
11
|
platform: darwin
|
13
12
|
authors:
|
14
13
|
- Ivan Kuchin
|
@@ -16,7 +15,7 @@ autorequire:
|
|
16
15
|
bindir: bin
|
17
16
|
cert_chain: []
|
18
17
|
|
19
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-18 00:00:00 +03:00
|
20
19
|
default_executable:
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
@@ -102,6 +101,7 @@ extra_rdoc_files:
|
|
102
101
|
- README.markdown
|
103
102
|
- TODO
|
104
103
|
files:
|
104
|
+
- .tmignore
|
105
105
|
- LICENSE.txt
|
106
106
|
- README.markdown
|
107
107
|
- Rakefile
|