shimmer 0.0.37 → 0.0.38

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48d1c88d49cf870d7a44235454ca682ea4b510cf215c8e990c65d4c511cc122c
4
- data.tar.gz: 29497228d74e28e72234713c28d72a6a72e08fd6ee133648dc0ba3396be0448c
3
+ metadata.gz: 902f5e484bf8f16867c9467eb8c98b81120ff6b7997b26128c73b5d46109bb8c
4
+ data.tar.gz: 3c23f32feedb88261af4fcfefa304b57dee51a0804e247b78e52ee89b7c2c25c
5
5
  SHA512:
6
- metadata.gz: b8a1a0460e3ab70d8857ce5d95f969a316ffcdb783de4c39efd4ea70791be107ebcad9b7b898bb87c5866631ca4098e8b20e872f595611a57c5b7d6f8b785828
7
- data.tar.gz: 05c6b79f3fc057af3ae444b914ae5955699d24787608c7658521233f88fcd972546ad0390ede351ed59bd4262d73fd69dfd3e03089b01d4f3dcdf7dca10b429b
6
+ metadata.gz: 49348ee549734616e4ddc2a11a4cb11080adc6268c116017dfcf3536e5aaefd2db960b8eb8833127d77ea90fd5015dcc575b3f7c5ebf33784fcd2a6e58b06338
7
+ data.tar.gz: 99102aaed6f59ae09035a1ec6e564d0098816af2919382530289e99e19280195218887b60aaf3ba6cf020db370c6e018cbaa7fe591d184318d410f37275eddb0
@@ -3,8 +3,8 @@
3
3
  module Shimmer
4
4
  class SitemapsController < ActionController::Base
5
5
  def show
6
- path = "sitemaps/#{params.require(:path)}.gz"
7
- filename = "sitemap_#{params[:path]}.xml.gz"
6
+ path = request.path[1..]
7
+ filename = path.gsub("/", "-")
8
8
 
9
9
  send_data ActiveStorage::Blob.service.download(path), filename: filename, type: "application/gzip", disposition: "attachment"
10
10
  end
@@ -4,7 +4,7 @@ module Shimmer
4
4
  class SitemapAdapter
5
5
  def write(location, raw_data)
6
6
  SitemapGenerator::FileAdapter.new.write(location, raw_data)
7
- ActiveStorage::Blob.service.upload("sitemaps/#{location.path_in_public}", File.open(location.path))
7
+ ActiveStorage::Blob.service.upload(location.path_in_public, File.open(location.path))
8
8
  end
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shimmer
4
- VERSION = "0.0.37"
4
+ VERSION = "0.0.38"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shimmer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ravens
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-23 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: