data_miner 0.4.15 → 0.4.16

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.15
1
+ 0.4.16
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{data_miner}
8
- s.version = "0.4.15"
8
+ s.version = "0.4.16"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Seamus Abshere", "Andy Rossmeissl"]
@@ -6,6 +6,8 @@ require 'remote_table'
6
6
  require 'errata'
7
7
  require 'andand'
8
8
  require 'log4r'
9
+ require 'fileutils'
10
+ require 'tmpdir'
9
11
 
10
12
  require 'data_miner/attribute'
11
13
  require 'data_miner/configuration'
@@ -28,12 +28,10 @@ module DataMiner
28
28
 
29
29
  private
30
30
 
31
- # from remote_table
32
- def tempfile_path
31
+ def tempfile_path
33
32
  return @_tempfile_path if @_tempfile_path
34
- @_tempfile_path = Tempfile.open(options[:url].gsub(/[^a-z0-9]+/i, '_')[0,100]).path
35
- FileUtils.rm_f @_tempfile_path
36
- at_exit { FileUtils.rm_rf @_tempfile_path }
33
+ @_tempfile_path = File.join Dir.tmpdir, rand.to_s
34
+ at_exit { FileUtils.rm_f @_tempfile_path }
37
35
  @_tempfile_path
38
36
  end
39
37
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 15
9
- version: 0.4.15
8
+ - 16
9
+ version: 0.4.16
10
10
  platform: ruby
11
11
  authors:
12
12
  - Seamus Abshere