mascot 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mascot.rb +5 -0
- data/lib/mascot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd189be94137f4449cf5cd3adfe17cc3c73696d
|
4
|
+
data.tar.gz: f7bd464af3cbcad19c4556a481d35fe6b09a4980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e3dd576d4168e4ac6b5bc1e54fe8bb0279fb1fbfc657831db743580608523fe481df1dd105a48069a02605a681aaafbb2466e3b5fb007456373530d0242b2cd
|
7
|
+
data.tar.gz: ab69681818613b98b7f0cd4766bbdd86c55e6624812fbdf9783afb27491c42299088c0b61437d3099bf128efd39175fa0178c7fabb1f80314cd2f17a99aecaeb
|
data/lib/mascot.rb
CHANGED
@@ -68,6 +68,11 @@ module Mascot
|
|
68
68
|
(@mime_types ||= Array(resolve_mime_type)).push(DEFAULT_MIME_TYPE).first
|
69
69
|
end
|
70
70
|
|
71
|
+
# Treat resources with the same request path as equal.
|
72
|
+
def ==(resource)
|
73
|
+
request_path == resource.request_path
|
74
|
+
end
|
75
|
+
|
71
76
|
private
|
72
77
|
# Returns the mime type of the file extension. If a type can't
|
73
78
|
# be resolved then we'll just grab the first type.
|
data/lib/mascot/version.rb
CHANGED