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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d18ef5037dc7af6b3f592ed65bf3b67f5099854
4
- data.tar.gz: 0bd16879741ce6a7f936e5156e22b6055e196717
3
+ metadata.gz: 5dd189be94137f4449cf5cd3adfe17cc3c73696d
4
+ data.tar.gz: f7bd464af3cbcad19c4556a481d35fe6b09a4980
5
5
  SHA512:
6
- metadata.gz: 342b222a5a1f7ad3624611039b892fbf0a2c95f8e7e18132e55577fd17e3c0c8f6926da069dd750995789eb155f117c2560dd733e550703882b0fd506ab11d1f
7
- data.tar.gz: 9712af3200ea7ad081b6e4c5996ac0aca96e5cae4857e3cf5a048556fd57952beeec0472effabf1e795307f2e0d0cb9c31ba769275422243e4c677ac66d2ae97
6
+ metadata.gz: 3e3dd576d4168e4ac6b5bc1e54fe8bb0279fb1fbfc657831db743580608523fe481df1dd105a48069a02605a681aaafbb2466e3b5fb007456373530d0242b2cd
7
+ data.tar.gz: ab69681818613b98b7f0cd4766bbdd86c55e6624812fbdf9783afb27491c42299088c0b61437d3099bf128efd39175fa0178c7fabb1f80314cd2f17a99aecaeb
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module Mascot
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mascot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler