derivative-rodeo 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab1b83bcaef257fb1bf6759a69fef10c5f51753d7361b3ea42453134efc65ee7
|
4
|
+
data.tar.gz: 726e7838955d8a1380ad18b24663ae0212d1eceae5c47f789050bda61f1460e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d35baa8c3020a5dadfe020cf091721a7132e034c671323c26cf89ad21923b4240bb1f1e6c4fc1675f0573f86e8d16eb9d67e17d08ba55d7e0cccc056ff0affce
|
7
|
+
data.tar.gz: a5806370c9a0f797fb6f837536b47be9acbf8ef5a98f1d1c04f1886554d9834d5c97447ad3e701d1051391110f384a83128f2e8d7909ebaab4f6ba58e51ee7b0
|
@@ -46,7 +46,7 @@ module DerivativeRodeo
|
|
46
46
|
delegate :config, to: DerivativeRodeo
|
47
47
|
end
|
48
48
|
|
49
|
-
delegate :logger, to: DerivativeRodeo
|
49
|
+
delegate :config, :logger, to: DerivativeRodeo
|
50
50
|
|
51
51
|
##
|
52
52
|
# @param location_name [String]
|
@@ -123,16 +123,14 @@ module DerivativeRodeo
|
|
123
123
|
##
|
124
124
|
# @param file_uri [String] a URI to the file's location; this is **not** a templated URI (as
|
125
125
|
# described in {DerivativeRodeo::Services::ConvertUriViaTemplateService}
|
126
|
-
|
127
|
-
def initialize(file_uri, config: DerivativeRodeo.config)
|
126
|
+
def initialize(file_uri)
|
128
127
|
@file_uri = file_uri
|
129
|
-
@config = config
|
130
128
|
end
|
131
129
|
|
132
130
|
attr_accessor :tmp_file_path
|
133
131
|
private :tmp_file_path=, :tmp_file_path
|
134
132
|
|
135
|
-
attr_reader :
|
133
|
+
attr_reader :file_uri
|
136
134
|
|
137
135
|
##
|
138
136
|
# @param auto_write_file [Boolean] Provided as a testing helper method.
|
@@ -20,7 +20,7 @@ module DerivativeRodeo
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
delegate :
|
23
|
+
delegate :logger, to: DerivativeRodeo
|
24
24
|
|
25
25
|
def with_existing_tmp_path(&block)
|
26
26
|
with_tmp_path(lambda { |file_path, tmp_file_path, exist|
|
@@ -44,9 +44,9 @@ module DerivativeRodeo
|
|
44
44
|
#
|
45
45
|
# @return [String]
|
46
46
|
def get(url)
|
47
|
-
HTTParty.get(url, logger:
|
47
|
+
HTTParty.get(url, logger: logger)
|
48
48
|
rescue => e
|
49
|
-
|
49
|
+
logger.error(%(#{e.message}\n#{e.backtrace.join("\n")}))
|
50
50
|
raise e
|
51
51
|
end
|
52
52
|
|
@@ -55,11 +55,24 @@ module DerivativeRodeo
|
|
55
55
|
# @return [FalseClass] when the URL's head request is not successful or we've exhausted our
|
56
56
|
# remaining redirects.
|
57
57
|
def exist?
|
58
|
-
HTTParty.head(file_uri, logger:
|
58
|
+
HTTParty.head(file_uri, logger: logger)
|
59
59
|
rescue => e
|
60
|
-
|
60
|
+
logger.error(%(#{e.message}\n#{e.backtrace.join("\n")}))
|
61
61
|
false
|
62
62
|
end
|
63
|
+
|
64
|
+
##
|
65
|
+
# @param tail_regexp [Regex] the file pattern that we're looking to find; but due to the
|
66
|
+
# nature of this location adapter, it won't matter.
|
67
|
+
# @return [Array] always returns an empty array.
|
68
|
+
#
|
69
|
+
# @see S3Location#matching_locations_in_file_dir
|
70
|
+
# @see FileLocation#matching_locations_in_file_dir
|
71
|
+
def matching_locations_in_file_dir(tail_regexp:)
|
72
|
+
logger.info("#{self.class}##{__method__} for file_uri: #{file_uri.inspect}, tail_regexp: #{tail_regexp} will always return an empty array. This is the nature of the #{self.class} location.")
|
73
|
+
|
74
|
+
[]
|
75
|
+
end
|
63
76
|
end
|
64
77
|
end
|
65
78
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: derivative-rodeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Kaufman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-11-
|
12
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
337
337
|
- !ruby/object:Gem::Version
|
338
338
|
version: '0'
|
339
339
|
requirements: []
|
340
|
-
rubygems_version: 3.
|
340
|
+
rubygems_version: 3.1.6
|
341
341
|
signing_key:
|
342
342
|
specification_version: 4
|
343
343
|
summary: An ETL Ecosystem for Derivative Processing.
|