driftrock-service 0.2.1 → 0.2.2

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.
@@ -13,6 +13,10 @@ module Driftrock
13
13
  get(ENDPOINT+'/query', {query: query})
14
14
  end
15
15
 
16
+ def driftrock_app_status
17
+ render text: "OK"
18
+ end
19
+
16
20
  end
17
21
  end
18
22
  end
@@ -27,7 +27,12 @@ module Driftrock
27
27
  def self.init
28
28
  config = new
29
29
  yield(config)
30
- config.base_url.gsub(/\/$/, "")
30
+ config.base_url.gsub(/\/$/, "")
31
+ if Rails && config.app_id
32
+ Rails.application.routes.prepend do
33
+ get 'driftrock_app_status' => 'application#driftrock_app_status'
34
+ end
35
+ end
31
36
  @config = config
32
37
  end
33
38
 
@@ -1,5 +1,5 @@
1
1
  module Driftrock
2
2
  module Service
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
@@ -10,10 +10,11 @@ require "driftrock-service/errors/driftrock_error"
10
10
 
11
11
  module Driftrock
12
12
  module Service
13
+
13
14
  module ClassMethods
14
15
  def act_as_driftrock_app
15
16
  if respond_to?(:before_filter)
16
- before_filter :authorise
17
+ before_filter :authorise, except: :driftrock_app_status
17
18
  end
18
19
  include Driftrock::Service::Api::Data
19
20
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: driftrock-service
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Max