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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da23da3a5ba2fbd8c8f8342e3f9bf37f0835c626
4
- data.tar.gz: c73c8b667db4c9ae49afdb799b7f6de44e111d91
3
+ metadata.gz: 418988a1e8db8b54d5b044c092de4363c38d4c1e
4
+ data.tar.gz: 4126c7a1d86d71ef25417e9509b8aa436a6eecdf
5
5
  SHA512:
6
- metadata.gz: 8013d46f0527816e897f29f2d8191ac78e960252c327d1488ca8bedaae7147258ca1731cfb2180b604a946198c228c0aa50c80d47504c027ede3042d6a0349b0
7
- data.tar.gz: 9ba89aa71fce4431e84b9a99c045b2f1d36647e06e04664b6ca5e78a9e5c1f91cd6b690da7a3173b567edcc55360d9e205183827d0f5caccd1da9e5be4ee6ead
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}#{uri.path}"
32
+ path = uri.path == "/" ? uri.path : uri.path.chomp("/")
33
+ "#{uri.scheme}://#{uri.authority}#{path}"
34
34
  end
35
35
  end
36
36
  end
@@ -1,5 +1,5 @@
1
1
  module Cortex
2
2
  module Snippets
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  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.0
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: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cortex-client