committee 1.6.2 → 1.6.3

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: 3c1a215cb7740938fdf30e58ee122320d5cdddd4
4
- data.tar.gz: 1388d0711d069c004807d2c2420a25552f2f058b
3
+ metadata.gz: 9aedb3bccc410a9dbc3c361146b7d60a6dcb3f85
4
+ data.tar.gz: 1eadfab98ece0372a7133a1429df76bd3c77f11b
5
5
  SHA512:
6
- metadata.gz: d07eee23cbcae49bf7b284701ba3c525fdc72259d63469a5a907ebe533890aa6f5ad8b5f496a044ea536b1bd7a0ee771be91a09999f19765d830e02639139f82
7
- data.tar.gz: 7d49178e2e79052b48bc60509f3bedf98470675d990f840e9257f425f328068d375ebafc5a01257be499d4fb085d6a2a88666bb035dad89725378943697710ad
6
+ metadata.gz: b75b6b31b27846b6d4761c9ce83d3c9a5e99a4ffcdd8a36a4069fddf4aa0b1db85335651692c5ae759db639b47ea164822d928b71c5b912e3022610e9f5374ab
7
+ data.tar.gz: 670473dc12fbaf3ea3f9f32cebd72804d67833432fd43fb01ae7fb778298e383eb813f64042fef6053f6c640a856f4e711ceb95743224c5f1364133333dd64cc
@@ -19,7 +19,7 @@ module Committee
19
19
 
20
20
  def check_content_type!(request, data)
21
21
  if request.content_type && !empty_request?(request)
22
- unless Rack::Mime.match?(@link.enc_type, request.content_type)
22
+ unless Rack::Mime.match?(request.content_type, @link.enc_type)
23
23
  raise Committee::InvalidRequest,
24
24
  %{"Content-Type" request header must be set to "#{@link.enc_type}".}
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: committee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandur
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-02 00:00:00.000000000 Z
12
+ date: 2015-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_schema