rooftop-rails 0.1.5.2 → 0.1.6

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: c8d16350349056ff7af3ba4a45cba1b37ac46359
4
- data.tar.gz: 08c6a1ca07f7722ca1bf17f0edc569dad342c719
3
+ metadata.gz: 675e51e7d242214efb708f8e18d0d6f839e63348
4
+ data.tar.gz: bac499634e4b296d6b9b5eee911badcbeaf2eaa8
5
5
  SHA512:
6
- metadata.gz: 11a2b80abae566794586aee9e0d1f065c1ad88faeddebdc00359c6154ef8624fbcf2f6142238ddad2da11dd373fbc12940a5be07f1382b52ecbce4c29abd0b30
7
- data.tar.gz: a393f2212912872e745792756795862e8b820e8c0d32763ea0d60e7d08eed9256406ef4921ea88b44a5c5eb210e8a8e45106217f903d3b226bf3778bb03e4eca
6
+ metadata.gz: 5d5588ad8e65956c7d14c95f7dfd4a0357a90a530512b4d855adf07f7e4b818548bbaf5e1c44333a2b1358d48aab6361b6ab2a30dab6c735af6beb5e3d608b6c
7
+ data.tar.gz: 323ac56a44218a528b96b0e026c41f28198d789651e41d5757b54e7e306fd34cad365d6e30d214c48481de9468f386009158c3cc95e175ab6e18ae86e6b09850
@@ -19,8 +19,12 @@ class Rooftop::Rails::WebhooksController < ApplicationController
19
19
  # implement your own and subscribe in an initializer.
20
20
  ActiveSupport::Notifications.instrument("rooftop.#{update_type}", params)
21
21
 
22
- #must return an ok
23
- render nothing: true
22
+ #must return an ok - check Rails version to determine whether to return nothing or head response.
23
+ if Rails.version =~ /^4/
24
+ render nothing: true
25
+ else
26
+ head :ok
27
+ end
24
28
  end
25
29
 
26
30
  def debug
@@ -1,5 +1,5 @@
1
1
  module Rooftop
2
2
  module Rails
3
- VERSION = "0.1.5.2"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rooftop-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.2
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Error Studio