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 ADDED
@@ -0,0 +1 @@
1
+ /*.gemspec
data/Rakefile CHANGED
@@ -1,8 +1,6 @@
1
- require 'rubygems'
2
1
  require 'rake'
3
2
  require 'jeweler'
4
3
  require 'rake/gem_ghost_task'
5
- require 'rspec/core'
6
4
  require 'rspec/core/rake_task'
7
5
 
8
6
  name = 'fspath'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1.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.1.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-15}
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
@@ -23,8 +23,8 @@ class FSPath < Pathname
23
23
 
24
24
  unless (new('a') + 'b').is_a?(self)
25
25
  # Fixing Pathname.+
26
- def +(part)
27
- self.class.new(super + part)
26
+ def +(other)
27
+ self.class.new(plus(@path, other.to_s))
28
28
  end
29
29
  end
30
30
 
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
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
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: 65
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- - 1
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-15 00:00:00 +03:00
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