Sha256: 714e4c26e68b0bd42fc799059fa9a7b6156bb399a59b416509ec3701773fd363

Contents?: true

Size: 464 Bytes

Versions: 25

Compression:

Stored size: 464 Bytes

Contents

require 'carrierwave'

module SitemapGenerator
  class WaveAdapter < ::CarrierWave::Uploader::Base
    attr_accessor :store_dir

    # Call with a SitemapLocation and string data
    def write(location, raw_data)
      SitemapGenerator::FileAdapter.new.write(location, raw_data)
      directory = File.dirname(location.path_in_public)
      if directory != '.'
        self.store_dir = directory
      end
      store!(open(location.path, 'rb'))
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
sitemap_generator-4.2.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.1.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.1.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.0.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.0.alpha lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.4 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.3 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.2.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.2 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.1.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.1.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-3.0.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.2.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.8 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.7 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.7.pre1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.6 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.5 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-2.1.4 lib/sitemap_generator/adapters/wave_adapter.rb