jenkins-plugin-runtime 0.1.7 → 0.1.8

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.
@@ -16,6 +16,10 @@ module Jenkins
16
16
  FilePath.new(@native.child(name))
17
17
  end
18
18
 
19
+ def join(*names)
20
+ FilePath.new names.inject(@native) {|native, name| native.child(name) }
21
+ end
22
+
19
23
  def to_s
20
24
  @native.getRemote()
21
25
  end
@@ -3,7 +3,7 @@ module Jenkins
3
3
  # Launch processes on build slaves. No functionality is currently exposed
4
4
  class Launcher
5
5
  class Proc
6
- attr_reader :natvie
6
+ attr_reader :native
7
7
 
8
8
  def initialize(native)
9
9
  @native = native
@@ -1,7 +1,7 @@
1
1
  module Jenkins
2
2
  class Plugin
3
3
  module Runtime
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
6
6
  end
7
7
  end
@@ -17,6 +17,12 @@ describe Jenkins::FilePath do
17
17
  (create(".") + "foo" + "bar").to_s.should == "foo/bar"
18
18
  end
19
19
 
20
+ it "returns child for join" do
21
+ create('.').join('foo').to_s.should == "foo"
22
+ create('.').join('foo', 'bar').to_s.should == "foo/bar"
23
+ create('.').join('foo', 'bar', 'baz').to_s.should == "foo/bar/baz"
24
+ end
25
+
20
26
  it "returns path for to_s" do
21
27
  create(".").to_s.should == "."
22
28
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jenkins-plugin-runtime
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.7
5
+ version: 0.1.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Charles Lowell