triboelectric 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: abbb6d9f0c464dedd612a38aa37b6203e58618eb
4
- data.tar.gz: 898da423f28fcb0a6a1f87c77bc0365ddf17b4a2
3
+ metadata.gz: bba8dad0f0100b14d1efb5c195d01ce0ed87f485
4
+ data.tar.gz: 889c6dacabe8c14d207c94f6eefec9b500556189
5
5
  SHA512:
6
- metadata.gz: bce3df593b9d24c5e17708d1c292d2a430a732c25470ec58298944be898d836a989432cc928be15eeda68d86b78861444fe2d030cf1551a8d1edee7a11b7aa7e
7
- data.tar.gz: a9b26c00f3915151a4093810e1b78b9df611a9bd477d95d264eba4a532fef1df7fe71cd640f30b9925484aada2baa09c4694fe0c5bdbe764475e4a836e2be9a1
6
+ metadata.gz: 24476085ed0c1f6d37afb75d9a05aa1f1e2a141ac4408dca4d2e79df3282a1f4234e06605f9725a8dfa010ff94b7e9afda42a28aa00b3ef63c365b3f143145c4
7
+ data.tar.gz: 7229f4934528fa3a4995e396ac9c4b7d7ed5ab070d998bdae9f17da3125f0ecc50d190af25672f2d449af7d6fcd4f4ba316d2c585af0117a89478780aa841456
@@ -31,7 +31,11 @@ module Triboelectric
31
31
  return unless @bucket
32
32
  return unless status == 404
33
33
  path = env[Rack::PATH_INFO]
34
- path = File.join(@root, path) if @root
34
+ if @root
35
+ path = File.join(@root, path)
36
+ else
37
+ path = path.sub(/^\//, "")
38
+ end
35
39
  object = @bucket.object(path)
36
40
  return unless object.exists?
37
41
  object.get
@@ -1,3 +1,3 @@
1
1
  module Triboelectric
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triboelectric
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
  - Ed Robinson