atomos 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/VERSION +1 -1
  4. data/lib/atomos.rb +6 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f0decb9156b9a697c15921569baf9438bd0f1e07db808978574bb8123107fca
4
- data.tar.gz: 3adf570c6ccb438c8825c700a09b4c745752667edb5fe0fc42ccd51aa0ed8a1a
3
+ metadata.gz: 0e516ea2ae8f0137457b60e049ec68d0b5747e0575fe59f42c76428e927a4667
4
+ data.tar.gz: a335860613caaa9b0b6bf6c9c59dcd3d08f97de2fc4aa1cc80f3aa0f823bdc05
5
5
  SHA512:
6
- metadata.gz: d336ac63bd9a6f489bca77b06d33392eb99b732a33acf4097464f1f7b88484f629b24ca346b9ca4651f0d59193d0b492c3f8cdc5e1dd1c61e14d88127f2527b1
7
- data.tar.gz: ebedf3d90282ef5a1b8a3baa686c594aea4370bc0203c1e7a52777ac1516442a78501ca4e2b80809f2d7a6b9ac06c5c6e8d5a85b5897eef9ec8237bdb91bb4ad
6
+ metadata.gz: 3859a521d54d27668c6eafff4ed1f2057a38440d37030484031cee76fa808cd4408f84f68f4a1a1d6c682b36c955b2fabdbe87eb70d767028f3fb3c4e668473a
7
+ data.tar.gz: c51ab4488e563dad38f6b9446d00c6eb8e21ef8e94a325f0f13f842309adc0fa0b3a306d2cd040104532de604b9fc1084cf733b7952dfc562b728aeb7064d317
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- atomos (0.1.0)
4
+ atomos (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -12,6 +12,12 @@ module Atomos
12
12
 
13
13
  require 'tempfile'
14
14
 
15
+ # Ensure the destination is on the same device as tmpdir
16
+ if File.stat(tmpdir).dev != File.stat(File.dirname(dest)).dev
17
+ # If not, use the directory of the destination as the tmpdir.
18
+ tmpdir = File.dirname(dest)
19
+ end
20
+
15
21
  Tempfile.open(".atomos.#{File.basename(dest)}", tmpdir) do |tmpfile|
16
22
  if contents
17
23
  tmpfile << contents
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Giddins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler