Sha256: 55a759eaefc2514e3452ed3759469655c9debdc37d2588dc727297dcf3060925

Contents?: true

Size: 620 Bytes

Versions: 19

Compression:

Stored size: 620 Bytes

Contents

begin
  require 'carrierwave'
rescue LoadError
  raise LoadError.new("Missing required 'carrierwave'.  Please 'gem install carrierwave' and require it in your application.")
end

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

19 entries across 19 versions & 4 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sitemap_generator-5.3.1/lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.3.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.3.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.2.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.1.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.5 lib/sitemap_generator/adapters/wave_adapter.rb
ftbpro_sitemap_generator-5.0.8 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator_ftbpro-5.0.6 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator_ftbpro-5.0.5 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator_ftbpro-5.0.4 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.4 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.3 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.2 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.0 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.0.beta1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-5.0.0.beta lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.3.1 lib/sitemap_generator/adapters/wave_adapter.rb
sitemap_generator-4.3.0 lib/sitemap_generator/adapters/wave_adapter.rb