rooftop-rails 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32fadc73493ff3130ef9fbe75cb0e0a2cc7494cc
4
- data.tar.gz: c0e4aa6303bdf70dd7c60072e3719cab3d562356
3
+ metadata.gz: 88ea19d1fe60db93b285c6ab729f39c77c635cef
4
+ data.tar.gz: f78fbc9c7a8d107535fb5bee0ab54fbb98ee0023
5
5
  SHA512:
6
- metadata.gz: eca79f48863f0983a85c77950786d4a7eb80dcdfa6f6182ee5a1bfa39bd34388b72167a711363672f878974340569ef5087f1c1eb8713a5de91c2d4592d78bc4
7
- data.tar.gz: abbad2e5925b29e542ba49944cb734f31435135bfd8976d8a8a5d487611a40c7f3d7670d11c5c3cdbe0b4a6d7025d4e7f74deedf1021da376c19a4f228972719
6
+ metadata.gz: 2b8eb321d553adf40043c152e46ff1136436c4ad5673a7b5bf69cadb54a34c08c4d10a4e51a7885dc807e0a6071f88a20f7af338cbc18719d07233695abe6a89
7
+ data.tar.gz: 32af41894c54d6da455089bf44ef305e121b240a21d8c4408b122d568443bc17d6184abfdcc8528536ce60486fd45c15dd9718116a2aabb0e2a4493074b34dd1
@@ -1,4 +1,4 @@
1
- class Rooftop::Rails::PreviewController < ActionController::Base
1
+ class Rooftop::Rails::PreviewController < ApplicationController
2
2
  skip_before_filter :verify_authenticity_token, :only => [:create]
3
3
 
4
4
  #this is where we receive a message from Rooftop via a POST
@@ -1,10 +1,10 @@
1
- class Rooftop::Rails::WebhooksController < ActionController::Base
1
+ class Rooftop::Rails::WebhooksController < ApplicationController
2
2
  # if Rooftop::Rails.configuration.authenticate_webhooks
3
3
  # http_basic_authenticate_with name: Rooftop::Rails.configuration.webhooks_username,
4
4
  # password: Rooftop::Rails.configuration.webhooks_password
5
5
  # end
6
6
 
7
- skip_before_filter :verify_authenticity_token, :only => [:create]
7
+ skip_before_action :verify_authenticity_token, :only => [:create]
8
8
 
9
9
  #this is where we receive a webhook, via a POST
10
10
  def create
@@ -0,0 +1,9 @@
1
+ class RailsControllerFactory
2
+ def self.determine_rails_version
3
+ if Rails.version =~ /^5/
4
+ ApplicationController
5
+ else
6
+ ActionController::Base
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Rooftop
2
2
  module Rails
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rooftop-rails
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
  - Error Studio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: require_all
@@ -99,6 +99,7 @@ files:
99
99
  - lib/rooftop/rails/engine.rb
100
100
  - lib/rooftop/rails/errors.rb
101
101
  - lib/rooftop/rails/post_type_resolver.rb
102
+ - lib/rooftop/rails/rails_controller_factory.rb
102
103
  - lib/rooftop/rails/route_resolver.rb
103
104
  - lib/rooftop/rails/version.rb
104
105
  - test/controllers/rooftop_rails/webhooks_controller_test.rb