atomos 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/atomos.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e516ea2ae8f0137457b60e049ec68d0b5747e0575fe59f42c76428e927a4667
|
4
|
+
data.tar.gz: a335860613caaa9b0b6bf6c9c59dcd3d08f97de2fc4aa1cc80f3aa0f823bdc05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3859a521d54d27668c6eafff4ed1f2057a38440d37030484031cee76fa808cd4408f84f68f4a1a1d6c682b36c955b2fabdbe87eb70d767028f3fb3c4e668473a
|
7
|
+
data.tar.gz: c51ab4488e563dad38f6b9446d00c6eb8e21ef8e94a325f0f13f842309adc0fa0b3a306d2cd040104532de604b9fc1084cf733b7952dfc562b728aeb7064d317
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/atomos.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|