remote_table 1.1.3 → 1.1.4
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.
|
@@ -7,6 +7,7 @@ class RemoteTable
|
|
|
7
7
|
class Executor
|
|
8
8
|
include ::Singleton
|
|
9
9
|
def bang(path, cmd)
|
|
10
|
+
srand # in case this was forked by resque
|
|
10
11
|
tmp_path = "#{path}.bang.#{rand}"
|
|
11
12
|
backtick_with_reporting "cat #{::Escape.shell_single_word path} | #{cmd} > #{::Escape.shell_single_word tmp_path}"
|
|
12
13
|
::FileUtils.mv tmp_path, path
|
|
@@ -25,6 +25,7 @@ class RemoteTable
|
|
|
25
25
|
::Slither.send :definition, t.properties.schema_name
|
|
26
26
|
elsif t.properties.schema.is_a?(::Array)
|
|
27
27
|
everything = lambda { |_| true }
|
|
28
|
+
srand # in case this was forked by resque
|
|
28
29
|
::Slither.define(rand.to_s) do |d|
|
|
29
30
|
d.rows do |row|
|
|
30
31
|
row.trap(&everything)
|
|
@@ -212,6 +212,7 @@ class RemoteTable
|
|
|
212
212
|
|
|
213
213
|
def staging_dir_path #:nodoc:
|
|
214
214
|
return @staging_dir_path if @staging_dir_path.is_a?(::String)
|
|
215
|
+
srand # in case this was forked by resque
|
|
215
216
|
@staging_dir_path = ::File.join ::Dir.tmpdir, 'remote_table_gem', rand.to_s
|
|
216
217
|
::FileUtils.mkdir_p @staging_dir_path
|
|
217
218
|
@staging_dir_path
|
data/lib/remote_table/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: remote_table
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 1.1.
|
|
9
|
+
- 4
|
|
10
|
+
version: 1.1.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Seamus Abshere
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-03-
|
|
19
|
+
date: 2011-03-30 00:00:00 -05:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|