ztk 1.6.5 → 1.6.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.
@@ -31,8 +31,8 @@ module ZTK
31
31
 
32
32
  tempfile = Tempfile.new("bootstrap")
33
33
 
34
- local_tempfile = tempfile.path
35
- remote_tempfile = ::File.join(ZTK::Locator.root, "tmp", ::File.basename(local_tempfile))
34
+ local_tempfile = Tempfile.new("tempfile-local").path
35
+ remote_tempfile = ::File.join("", "tmp", ::File.basename(Tempfile.new("tempfile-remote").path))
36
36
 
37
37
  ::File.open(local_tempfile, 'w') do |file|
38
38
  file.puts(content)
@@ -27,10 +27,8 @@ module ZTK
27
27
  target.nil? and raise SSHError, "You must supply a target file!"
28
28
  !block_given? and raise SSHError, "You must supply a block!"
29
29
 
30
- tempfile = Tempfile.new("tempfile")
31
-
32
- local_tempfile = tempfile.path
33
- remote_tempfile = ::File.join(ZTK::Locator.root, "tmp", ::File.basename(local_tempfile))
30
+ local_tempfile = Tempfile.new("tempfile-local").path
31
+ remote_tempfile = ::File.join("", "tmp", ::File.basename(Tempfile.new("tempfile-remote").path))
34
32
 
35
33
  ::File.open(local_tempfile, 'w') do |file|
36
34
  yield(file)
@@ -1,6 +1,6 @@
1
1
  module ZTK
2
2
 
3
3
  # ZTK Version String
4
- VERSION = "1.6.5"
4
+ VERSION = "1.6.6"
5
5
 
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-01 00:00:00.000000000 Z
12
+ date: 2013-07-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -275,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
275
  version: '0'
276
276
  segments:
277
277
  - 0
278
- hash: -4099506781897273217
278
+ hash: 2795030245117698389
279
279
  required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  none: false
281
281
  requirements:
@@ -284,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
284
284
  version: '0'
285
285
  segments:
286
286
  - 0
287
- hash: -4099506781897273217
287
+ hash: 2795030245117698389
288
288
  requirements: []
289
289
  rubyforge_project:
290
290
  rubygems_version: 1.8.25