incline 0.3.11 → 0.3.12

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: fba88a4127d8f200917c249799bcd72e7a40743f
4
- data.tar.gz: b1b76db88b49bf63c258ecdc87ac0b4a4ca6dae6
3
+ metadata.gz: ed1d941f9aee968075259fd6ef262d2f661c946c
4
+ data.tar.gz: 404a8a377663e2f32acc8b89170073923f912b45
5
5
  SHA512:
6
- metadata.gz: 512fb510a967bd0a3fb4ae6fd69082d5fa037ba2614d3d99a9605123adda0f161a3d93f47e14d37dc647e5be446f392241da43def40045faac0a2386a99fd990
7
- data.tar.gz: 4d79c1d131ac34da17c07ccb88b92e0e879fde0387bcff03a37be577d7d4e6bfdce4b94cfb8f6c5664577df85909bfca17a93d8836577f5aaa3d7fde362ab90f
6
+ metadata.gz: ea83722bfdd43e4734c439a817e3fe40fb1dea3190c648c24bf2bf46b90f19eede2b18d3802817bef653e018c1da892718f484b4e187edc20a3db15a15293afd
7
+ data.tar.gz: de58cc115a9687c445240c4e5f92992c3074110542a4a77f599fd6fcaea5107f18a0643acbd5c035ccda954a2fee4f251f5d3a6dc6d8aa6d40568ab87d3ab832
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.3.11)
4
+ incline (0.3.12)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -344,7 +344,7 @@ module Incline::Extensions
344
344
  # Redirects are generally bad when JSON data is requested.
345
345
  # For instance a `create` request in JSON format should return data, not redirect to `show`.
346
346
  def json_request? #:doc:
347
- request.format.to_s.downcase == 'json'
347
+ request.format.to_s =~ /^(application\/)?json$/i
348
348
  end
349
349
 
350
350
  ##
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.3.11"
2
+ VERSION = "0.3.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker