lib/remote_table/properties.rb in remote_table-1.2.3 vs lib/remote_table/properties.rb in remote_table-1.2.4

- old
+ new

@@ -12,9 +12,13 @@ def update(options) current_options.update options end + def delay_between_requests + current_options['delay_between_requests'] || (::ENV.has_key?('REMOTE_TABLE_DELAY_BETWEEN_REQUESTS') ? ::ENV['REMOTE_TABLE_DELAY_BETWEEN_REQUESTS'].to_i : nil) + end + # The parsed URI of the file to get. def uri return @uri if @uri.is_a?(::URI) @uri = ::URI.parse t.url if @uri.host == 'spreadsheets.google.com'