og_pilot_ruby 0.4.5 → 0.4.6
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 +4 -4
- data/README.md +10 -5
- data/lib/og_pilot_ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfefae49c597192416e12b3ce37cbeb6c9a96978cd0117544cab4ed3d334d754
|
|
4
|
+
data.tar.gz: 1ad8da7a1af0b52c0a039fce941d5e35c0718317586fbe694b537886c6e7e14d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c43d41211ef1bbe5685565ce341adea1c9e56b8007e322c37a7561ee5b068ba944176826a7455546ec6580b53b3a8b3f640064ad30dada66a25df1035230f1a
|
|
7
|
+
data.tar.gz: 8967f05bb0129386f0b8397f401918ccecc54127a6f939066615a960fa98433e3863579bfc59b926373631b0d0513624c8fff68a3715c8fff0192d464a8b5f90
|
data/README.md
CHANGED
|
@@ -683,20 +683,25 @@ OgPilotRuby.create_image(title: "Docs", path: "/docs.php")
|
|
|
683
683
|
### Strip query parameters
|
|
684
684
|
|
|
685
685
|
When `strip_query_parameters` is enabled, the client drops the query string from
|
|
686
|
-
every resolved path before it signs the payload
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
`/archive.tar.gz?ref=campaign`
|
|
686
|
+
every resolved path before it signs the payload, so `/docs?ref=main` and
|
|
687
|
+
`/docs?ref=next` are normalized to `"/docs"`. When both `strip_extensions` and
|
|
688
|
+
`strip_query_parameters` are enabled, the extension is removed first and the
|
|
689
|
+
query string is removed afterward, which means `/archive.tar.gz?ref=campaign`
|
|
690
|
+
becomes `"/archive"`.
|
|
690
691
|
|
|
691
692
|
```ruby
|
|
692
693
|
OgPilotRuby.configure do |config|
|
|
693
694
|
config.strip_query_parameters = true
|
|
695
|
+
config.strip_extensions = true
|
|
694
696
|
end
|
|
695
697
|
|
|
696
698
|
# These resolve to "/docs":
|
|
697
699
|
OgPilotRuby.create_image(title: "Docs", path: "/docs")
|
|
698
700
|
OgPilotRuby.create_image(title: "Docs", path: "/docs?ref=main")
|
|
699
|
-
|
|
701
|
+
|
|
702
|
+
# Both of these resolve to "/archive":
|
|
703
|
+
OgPilotRuby.create_image(title: "Archive", path: "/archive.tar.gz")
|
|
704
|
+
OgPilotRuby.create_image(title: "Archive", path: "/archive.tar.gz?ref=campaign")
|
|
700
705
|
```
|
|
701
706
|
|
|
702
707
|
## Development
|