zuora_connect 0.0.5.5 → 0.0.5.6

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: 78191faab947e8d6d4f3b4a97acf9f63afe2972a
4
- data.tar.gz: 6799fb9d29cdf60746a650b1a122a2fc09cc6fdf
3
+ metadata.gz: d75f9ed98e63d0fc10ad01c42cab2ef742f1a999
4
+ data.tar.gz: c0458d7d31cfc53e81e4cc0bf01d157f28709dd3
5
5
  SHA512:
6
- metadata.gz: 09a1c9e4c41fd1630bb8c239b93edb538dfc0efd6e22f6a5192ba4ff5d2cc01db0c4b2b735d6f495d7afa8b18aa5262299a143189469486eee94708d370993f8
7
- data.tar.gz: 1df0a0d61658477f1881326e2b7bfa5ebac8538a3668536fa019a2061e259efc6c38a46d84a806d71db56a349c8bd70a174b22ba8a36b5be1c42667a72d45297
6
+ metadata.gz: e65ce18868b73e80d407bf6bb64b97f3db4dd394cdb523f4fa87b6c4e2947e1635b3d4bb94d2b56b21eff63b278c8f7d885d6b19fedb2cb62cf6a705b249e674
7
+ data.tar.gz: 44c17338a21b285a94bc0fb839f83b8e84e81cf20097780ae8f40f46efe6a660c88f96241e8a6acc4cba7862e37ddda20a19817dbf6e8d3cfdd99cbe0144eb05
@@ -1,6 +1,13 @@
1
1
  module ZuoraConnect
2
2
  class ApplicationController < ActionController::Base
3
3
  protect_from_forgery with: :exception
4
- before_filter :authenticate_request
4
+ before_filter :authenticate_request, :except => [:health]
5
+
6
+ def health
7
+ render json: {
8
+ message: "Alive",
9
+ status: 200
10
+ }, status: 200
11
+ end
5
12
  end
6
13
  end
data/config/routes.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  ZuoraConnect::Engine.routes.draw do
2
+ get '/health' => 'application#health'
2
3
  end
@@ -3,7 +3,7 @@ module ZuoraConnect
3
3
  attr_accessor :url, :private_key, :dev_mode_logins,:dev_mode_mode, :dev_mode_options, :mode
4
4
 
5
5
  def initialize
6
- @url = "http://localhost:3001"
6
+ @url = "https://connect.zuora.com"
7
7
  @mode = "Production"
8
8
  @dev_mode_logins = { "target_login" => {"tenant_type" => "Zuora", "username" => "user", "password" => "pass", "url" => "url"} }
9
9
  @dev_mode_options = {"name" => {"config_name" => "name", "datatype" => "type", "value" => "value"}}
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "0.0.5.5"
2
+ VERSION = "0.0.5.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.5
4
+ version: 0.0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-15 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment