cortex-snippets-client-ruby 0.2.0 → 0.2.1
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/lib/cortex/snippets/client.rb +2 -2
- data/lib/cortex/snippets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 418988a1e8db8b54d5b044c092de4363c38d4c1e
|
|
4
|
+
data.tar.gz: 4126c7a1d86d71ef25417e9509b8aa436a6eecdf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 446d8bddf1e545fc6522ddf7ac94803716995fed77ace1aacb2f77447e1153ee7d2479c8f8b9f2ef00684484f5b6202555e15024ffe5c5e2c8a75b48eddc341f
|
|
7
|
+
data.tar.gz: f4b077c27a03c84f66581f51e1c9990de25a4e45c792c9e43768132b3bf8354dac7db4cee419af4287284ac04f5a104a740739adc21dd7dc043558dbd08386d7
|
|
@@ -29,8 +29,8 @@ module Cortex
|
|
|
29
29
|
def request_url(request)
|
|
30
30
|
# TODO: Should be grabbing request URL in a framework-agnostic manner, but this is fine for now
|
|
31
31
|
uri = Addressable::URI.parse(request.original_url)
|
|
32
|
-
|
|
33
|
-
"#{uri.scheme}://#{uri.authority}#{
|
|
32
|
+
path = uri.path == "/" ? uri.path : uri.path.chomp("/")
|
|
33
|
+
"#{uri.scheme}://#{uri.authority}#{path}"
|
|
34
34
|
end
|
|
35
35
|
end
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cortex-snippets-client-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- CB Content Enablement
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cortex-client
|