zuora_connect 0 → 0.0.1
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 +5 -5
- data/Rakefile +1 -2
- data/app/assets/javascripts/{zuora_connect → connect_sdk}/api/v1/app_instance.js +0 -0
- data/app/assets/javascripts/{zuora_connect → connect_sdk}/application.js +0 -0
- data/app/assets/stylesheets/{zuora_connect → connect_sdk}/api/v1/app_instance.css +0 -0
- data/app/assets/stylesheets/{zuora_connect → connect_sdk}/application.css +0 -0
- data/app/controllers/connect/admin/tenant_controller.rb +11 -0
- data/app/controllers/connect/api/v1/app_instance_controller.rb +19 -0
- data/app/controllers/connect/application_controller.rb +6 -0
- data/app/helpers/{zuora_connect → connect}/api/v1/app_instance_helper.rb +1 -1
- data/app/helpers/{zuora_connect → connect}/application_helper.rb +1 -2
- data/app/models/connect/app_instance.rb +41 -0
- data/app/views/layouts/connect_sdk/application.html.erb +14 -0
- data/config/initializers/apartment.rb +6 -8
- data/config/routes.rb +1 -15
- data/db/migrate/20160718151733_create_connect_app_instances.rb +7 -0
- data/lib/connect.rb +24 -0
- data/lib/connect/configuration.rb +11 -0
- data/lib/connect/controllers/helpers.rb +47 -0
- data/lib/{zuora_connect → connect}/engine.rb +9 -11
- data/lib/connect/version.rb +3 -0
- data/lib/tasks/{zuora_connect_tasks.rake → connect_tasks.rake} +0 -0
- data/test/connect_test.rb +7 -0
- data/test/controllers/{zuora_connect → connect}/api/v1/app_instance_controller_test.rb +1 -1
- data/test/dummy/config/application.rb +1 -1
- data/test/fixtures/{zuora_connect → connect}/app_instances.yml +0 -0
- data/test/models/{zuora_connect → connect}/app_instance_test.rb +1 -1
- metadata +57 -279
- data/app/assets/javascripts/hallway_wrapper/after.js +0 -15
- data/app/assets/javascripts/hallway_wrapper/before.js +0 -2
- data/app/controllers/zuora_connect/admin/tenant_controller.rb +0 -11
- data/app/controllers/zuora_connect/api/v1/app_instance_controller.rb +0 -58
- data/app/controllers/zuora_connect/application_controller.rb +0 -8
- data/app/controllers/zuora_connect/static_controller.rb +0 -58
- data/app/models/zuora_connect/app_instance.rb +0 -5
- data/app/models/zuora_connect/app_instance_base.rb +0 -952
- data/app/models/zuora_connect/login.rb +0 -36
- data/app/models/zuora_connect/telegraf.rb +0 -93
- data/app/views/layouts/zuora_connect/application.html.erb +0 -14
- data/app/views/sql/refresh_aggregate_table.txt +0 -85
- data/app/views/zuora_connect/static/invalid_app_instance_error.html.erb +0 -65
- data/app/views/zuora_connect/static/invalid_launch_request.html +0 -65
- data/app/views/zuora_connect/static/launch.html.erb +0 -80
- data/app/views/zuora_connect/static/session_error.html.erb +0 -63
- data/config/initializers/aws.rb +0 -2
- data/config/initializers/elastic_apm.rb +0 -25
- data/config/initializers/object_method_hooks.rb +0 -27
- data/config/initializers/postgresql_adapter.rb +0 -32
- data/config/initializers/prometheus.rb +0 -40
- data/config/initializers/redis.rb +0 -13
- data/config/initializers/resque.rb +0 -22
- data/config/initializers/to_bool.rb +0 -24
- data/config/initializers/unicorn.rb +0 -9
- data/db/migrate/20100718151733_create_connect_app_instances.rb +0 -9
- data/db/migrate/20101024162319_add_tokens_to_app_instance.rb +0 -6
- data/db/migrate/20101024220705_add_token_to_app_instance.rb +0 -5
- data/db/migrate/20110131211919_add_sessions_table.rb +0 -13
- data/db/migrate/20110411200303_add_expiration_to_app_instance.rb +0 -5
- data/db/migrate/20110413191512_add_new_api_token.rb +0 -5
- data/db/migrate/20110503003602_add_catalog_data_to_app_instance.rb +0 -6
- data/db/migrate/20110503003603_add_catalog_mappings_to_app_instance.rb +0 -5
- data/db/migrate/20110503003604_catalog_default.rb +0 -5
- data/db/migrate/20180301052853_add_catalog_attempted_at.rb +0 -5
- data/db/migrate/20181206162339_add_fields_to_instance.rb +0 -5
- data/lib/metrics/influx/point_value.rb +0 -79
- data/lib/metrics/net.rb +0 -218
- data/lib/middleware/metrics_middleware.rb +0 -134
- data/lib/resque/additions.rb +0 -53
- data/lib/resque/dynamic_queues.rb +0 -222
- data/lib/resque/plugins/custom_logger.rb +0 -46
- data/lib/resque/self_lookup.rb +0 -19
- data/lib/resque/silence_done.rb +0 -71
- data/lib/zuora_connect.rb +0 -42
- data/lib/zuora_connect/configuration.rb +0 -53
- data/lib/zuora_connect/controllers/helpers.rb +0 -261
- data/lib/zuora_connect/exceptions.rb +0 -67
- data/lib/zuora_connect/railtie.rb +0 -63
- data/lib/zuora_connect/version.rb +0 -3
- data/lib/zuora_connect/views/helpers.rb +0 -9
- data/test/lib/generators/zuora_connect/datatable_generator_test.rb +0 -16
- data/test/zuora_connect_test.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 37c8d40c8de7084cda582b8453d8254ef7fd4754
|
4
|
+
data.tar.gz: ceda0fe441cb72636e41af87e90153c5e881fd1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 818390a17fc7e10ac5fb90d96fdc50fea09445d5321af97cc977c637c3aa889070366524c4b1e23a131fba2a1ea478754b7bf99d205df39eadc2d44c1b9af60f
|
7
|
+
data.tar.gz: f2e1242938759bd52852317225b3a8a0f64f205c45230e934ca60cd767fd7b97d70fc856fd4d38f527dd1cbff874e34c7a2e1ffd6ba906179fd5b53be819539d
|
data/Rakefile
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_dependency "connect/application_controller"
|
2
|
+
|
3
|
+
module Connect
|
4
|
+
class Api::V1::AppInstanceController < ApplicationController
|
5
|
+
|
6
|
+
def create
|
7
|
+
Apartment::Tenant.create(session['AppInstance'])
|
8
|
+
respond_to do |format|
|
9
|
+
format.json (render :json => "Created")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def status
|
14
|
+
|
15
|
+
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Connect
|
2
|
+
class AppInstance < ActiveRecord::Base
|
3
|
+
attr_accessor :user, :pass, :options, :mode, :logins, :valid
|
4
|
+
|
5
|
+
def new_session(user, password)
|
6
|
+
@user = user
|
7
|
+
@password = password
|
8
|
+
response = JSON.parse(HTTParty.get(Connect.configuration.url + "/api/v1/tools/tasks/#{self.id}.json",:basic_auth => auth = {:username => user, :password => password}).body)
|
9
|
+
@mode = response["mode"]
|
10
|
+
@options = Hash.new
|
11
|
+
@logins = Hash.new
|
12
|
+
response.each do |k,v|
|
13
|
+
if k.match(/^(.*)_login$/)
|
14
|
+
@logins[k] = v
|
15
|
+
elsif k == "options"
|
16
|
+
v.each do |opt|
|
17
|
+
@options[opt["config_name"]] = opt
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
@valid = true
|
22
|
+
end
|
23
|
+
|
24
|
+
def updateOption(optionId, value)
|
25
|
+
if @user && @pass
|
26
|
+
return HTTParty.get(Connect.configuration.url + "/api/v1/tools/application_options/#{optionId}/edit?value=#{value}",:basic_auth => auth = {:username => user, :password => password})
|
27
|
+
else
|
28
|
+
puts "Username or password is nil"
|
29
|
+
return false
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def send_email
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
def self.decrypt_response(resp)
|
38
|
+
OpenSSL::PKey::RSA.new(Connect.configuration.private_key).private_decrypt(resp)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Connect</title>
|
5
|
+
<%= stylesheet_link_tag "connect/application", media: "all" %>
|
6
|
+
<%= javascript_include_tag "connect/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
@@ -6,6 +6,7 @@
|
|
6
6
|
# require 'apartment/elevators/domain'
|
7
7
|
#require 'apartment/elevators/subdomain'
|
8
8
|
# require 'apartment/elevators/first_subdomain'
|
9
|
+
|
9
10
|
#
|
10
11
|
# Apartment Configuration
|
11
12
|
#
|
@@ -46,19 +47,16 @@ Apartment.configure do |config|
|
|
46
47
|
# end
|
47
48
|
# end
|
48
49
|
#
|
49
|
-
config.tenant_names = lambda {
|
50
|
-
|
51
|
-
|
52
|
-
else
|
53
|
-
config.excluded_models = ["ZuoraConnect::AppInstance","ZuoraConnect::AppInstanceBase"]
|
54
|
-
end
|
50
|
+
config.tenant_names = lambda { Connect::AppInstance.pluck :database }
|
51
|
+
config.excluded_models = ["Connect::AppInstance"]
|
52
|
+
|
55
53
|
#
|
56
54
|
# ==> PostgreSQL only options
|
57
55
|
|
58
56
|
# Specifies whether to use PostgreSQL schemas or create a new database per Tenant.
|
59
57
|
# The default behaviour is true.
|
60
58
|
#
|
61
|
-
config.use_schemas = true
|
59
|
+
# config.use_schemas = true
|
62
60
|
|
63
61
|
# Apartment can be forced to use raw SQL dumps instead of schema.rb for creating new schemas.
|
64
62
|
# Use this when you are using some extra features in PostgreSQL that can't be respresented in
|
@@ -71,7 +69,7 @@ Apartment.configure do |config|
|
|
71
69
|
# e.g when using a PostgreSQL extension like hstore.
|
72
70
|
# Any schemas added here will be available along with your selected Tenant.
|
73
71
|
#
|
74
|
-
config.persistent_schemas = %w{
|
72
|
+
# config.persistent_schemas = %w{ hstore }
|
75
73
|
|
76
74
|
# <== PostgreSQL only options
|
77
75
|
#
|
data/config/routes.rb
CHANGED
@@ -1,16 +1,2 @@
|
|
1
|
-
|
2
|
-
get '/health' => 'static#health'
|
3
|
-
get '/internal/data' => 'static#metrics'
|
4
|
-
get '/invalid_session' => 'static#session_error', :as => :invalid_session
|
5
|
-
get '/invalid_instance' => "static#invalid_app_instance_error", :as => :invalid_instance
|
6
|
-
post '/initialize_app' => 'static#initialize_app'
|
7
|
-
|
8
|
-
namespace :api do
|
9
|
-
namespace :v1 do
|
10
|
-
resources :app_instance, :only => [:index], defaults: {format: :json} do
|
11
|
-
match "drop", via: [:get, :post], on: :collection
|
12
|
-
match "cache_bust", via: [:get, :post], on: :collection
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
Connect::Engine.routes.draw do
|
16
2
|
end
|
data/lib/connect.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'connect/configuration'
|
2
|
+
require "connect/engine"
|
3
|
+
require 'connect/controllers/helpers'
|
4
|
+
|
5
|
+
module Connect
|
6
|
+
class << self
|
7
|
+
attr_accessor :configuration
|
8
|
+
end
|
9
|
+
module Controllers
|
10
|
+
autoload :Helpers, 'connect/controllers/helpers'
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.configuration
|
14
|
+
@configuration ||= Configuration.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.reset
|
18
|
+
@configuration = Configuration.new
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.configure
|
22
|
+
yield(configuration)
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Connect
|
2
|
+
class Configuration
|
3
|
+
attr_accessor :url
|
4
|
+
attr_accessor :private_key
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@url = "https://connect.zuora.com"
|
8
|
+
@private_key = "-----BEGIN RSA PRIVATE KEY-----\nMIIEpgIBAAKCAQEA3PlAZWUbyvBSVU9GZxQM+brbwDfecsrFXJIbEvV76LVfFuTO\nDbyMPyuM0SBEAskb79wqNsn5JD0edCwmvZ+/Kn83b8SFkFW3f1tUxA0zFdVuqKP2\nJk1vms97yvOUveDjv22gYVMJYcSAFEzg9D9fUvTRocuBWQdbTq1cyJL+LYs9bUpl\nMB4oIUZuQ5nYz66y2gLlF0yUFNAfLpaCyaJvAmN93bPWTPfaKf+PMtkWCMQJQ3w+\nGvsudynLyE0ZgLx5mfM18h08iTMl61sUawyUEYNPm71Q6er9TB7oiOt3RT7ncw9P\nN+jzdklEphPp+1RaK35joPLQZjZl3Nh/XZg5eQIDAQABAoIBAQCJB+SgPDgk/C0C\njDurdmqpfvABXmQLKaWER3KUqjjh0X+bUd5Z9F/AWMBley3R0GcLsqtW+J8QkvpM\nroiDtQm2T9fP7r2pCQ7W4otJXKoeUxHhcHQXwpOAHES3UaAes9RoBJKdaAH8Z//J\nFve1X4s8hWdufyXCUOaVfrp4A3euQ3BYkb1n6yCnaEclG/evX6VM5jYMuHSDH0AS\nRUAMotuNvoLEIweNjWIolrKBEe+ZA6Rz6UaSoOxoNl8qWWOMsQvKzWfzHOA/YMnn\n9TN3AR10XYhWVjzNWL2dN1Jh4aD3d0byzImuhnCdIsIkTmS5aogl3/iFDce+9+kF\nLnkH5PuRAoGBAPiXQZdXHu7HwuQvZdb+2kII4kVLyLRM6v81rmXZr7pBUWrdpezy\nnFDj8OumSml4cKOLDUTAj/2/Hjs1o3JVGZqD0EbVrfIF0LZ3LzHb0rAae0uoyG7S\ny+2Y8wjLP53RogdZMA+6uoozEPM7yAp04d+rVPQY8i6JwGQmRYh7xSSlAoGBAOOP\nRssUBabZX13gQQ3BsO28g4HTEiFuqgAvGG/44Xbf74IRQiOT6ZaNYELvgaZT+RW2\nbp5E+T15Qe+SHHdxJhv3wtsnAw7yno1BmHpkAs1mEjjGFbNMF84YcRWSRU09g9Pm\nORhAc4lCFxHh7LnGsI1bgcPOYuFDRSHjYEy6y6VFAoGBAOiE8kEQqEpIZy7wdp1m\nu9fQX3TZsd2TpKsaFwoFV60rs2/16mF7fGLdElgYrrmAgjs2sS6Bvy1lOm2/eiZT\nGyO/72ySKaWbcuF5EZfdOXCnFHRsZy3h1gVjbs/m7JY9owSkk6Pi0OC7aztXy4Cc\nWznPFCNNwhltl5sVgSxsOLZRAoGBAJcPOI581xegevdFc8nfB0V5+86FwCZjYQTI\nPq+uBnW0SDkOndoiSVEAvqMQfP9eBR7NwPbdkJqnUQbo9m6vtP2h5j820YfttSTO\nI5szosyY8oWvsR4Z6D+O6BrKw6h3qnhS/xnDRy8ZqVjcohnc9LyRvz2tVuR0lILf\nfsDQy3kFAoGBAOm3N39RR7BwOMWIbe0Pk/ohJJdKwzsd1t1WyuXjAHJGdhMXkjl5\n9T1UsrouUr6qr545FNwEXktjmJ0IuqwypBC7B9kezKJlNTsZxmtcl7HfIFFOade7\nvrPHAAHPHSvCRcUPcFG1PDnFno66dXFOZwMo7W2lN+xTXuO0EvBAlW9P\n-----END RSA PRIVATE KEY-----\n"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Connect
|
2
|
+
module Controllers
|
3
|
+
module Helpers
|
4
|
+
extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
def authenticate_request
|
7
|
+
data_present = set_session
|
8
|
+
if !session["valid"] && data_present
|
9
|
+
res = HTTParty.get(Connect.configuration.url + "/api/v1/tools/tasks/#{session["appInstance"]}.json",:basic_auth => auth = {:username => session["user"], :password => session["key"]})
|
10
|
+
if res.code == 200
|
11
|
+
session["valid"] = true
|
12
|
+
end
|
13
|
+
end
|
14
|
+
if !session["valid"]
|
15
|
+
redirect_to "/500.html"
|
16
|
+
end
|
17
|
+
set_app_instance(session["appInstance"].to_i) if session["appInstance"] || ( session["appInstance"] && Apartment::Tenant.current != session["appInstance"])
|
18
|
+
@appinstance.new_session(session["user"], session["key"]) if @appinstance && @appinstance.valid
|
19
|
+
end
|
20
|
+
|
21
|
+
def set_session
|
22
|
+
if request["data"]
|
23
|
+
values = JSON.parse(Connect::AppInstance.decrypt_response(Base64.urlsafe_decode64(request["data"])))
|
24
|
+
values.each do |k ,v|
|
25
|
+
session[k] = v
|
26
|
+
end
|
27
|
+
session["valid"] = false
|
28
|
+
return true
|
29
|
+
end
|
30
|
+
return false
|
31
|
+
end
|
32
|
+
|
33
|
+
def set_app_instance(id)
|
34
|
+
if Connect::AppInstance.where(:id => id).size == 0
|
35
|
+
Connect::AppInstance.create!(:id => id )
|
36
|
+
Apartment::Tenant.create(id)
|
37
|
+
end
|
38
|
+
@appinstance = Connect::AppInstance.find(id)
|
39
|
+
Apartment::Tenant.switch!(@appinstance.id)
|
40
|
+
end
|
41
|
+
|
42
|
+
def check_admin
|
43
|
+
redirect_to "/500.html" if session["admin"] != "true"
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -1,23 +1,19 @@
|
|
1
1
|
require 'rails/all'
|
2
|
-
require '
|
2
|
+
require 'connect'
|
3
3
|
require 'apartment'
|
4
4
|
require 'httparty'
|
5
|
-
require 'zuora_api'
|
6
|
-
require 'elastic_apm'
|
7
5
|
|
8
|
-
module
|
6
|
+
module Connect
|
9
7
|
class Engine < ::Rails::Engine
|
10
|
-
isolate_namespace
|
8
|
+
isolate_namespace Connect
|
11
9
|
|
12
10
|
initializer "connect", before: :load_config_initializers do |app|
|
13
|
-
Rails.application.routes.
|
14
|
-
mount
|
15
|
-
match '/api/connect/health', via: :all, to: 'zuora_connect/static#health'
|
16
|
-
match '/api/connect/internal/data', via: :all, to: 'zuora_connect/static#metrics'
|
11
|
+
Rails.application.routes.append do
|
12
|
+
mount Connect::Engine, at: "/connect"
|
17
13
|
end
|
18
14
|
end
|
19
15
|
|
20
|
-
|
16
|
+
initializer :append_migrations do |app|
|
21
17
|
unless app.root.to_s.match root.to_s
|
22
18
|
config.paths["db/migrate"].expanded.each do |expanded_path|
|
23
19
|
app.config.paths["db/migrate"] << expanded_path
|
@@ -27,8 +23,10 @@ module ZuoraConnect
|
|
27
23
|
|
28
24
|
initializer "connect.helpers" do
|
29
25
|
ActiveSupport.on_load(:action_controller) do
|
30
|
-
include
|
26
|
+
include Connect::Controllers::Helpers
|
31
27
|
end
|
32
28
|
end
|
29
|
+
|
30
|
+
|
33
31
|
end
|
34
32
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,83 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: zuora_api
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.6.21
|
34
17
|
- - "~>"
|
35
18
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
19
|
+
version: 1.2.0
|
37
20
|
type: :runtime
|
38
21
|
prerelease: false
|
39
22
|
version_requirements: !ruby/object:Gem::Requirement
|
40
23
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.6.21
|
44
24
|
- - "~>"
|
45
25
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
26
|
+
version: 1.2.0
|
47
27
|
- !ruby/object:Gem::Dependency
|
48
28
|
name: httparty
|
49
29
|
requirement: !ruby/object:Gem::Requirement
|
50
30
|
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 0.16.4
|
54
31
|
- - "~>"
|
55
32
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
33
|
+
version: 0.14.0
|
57
34
|
type: :runtime
|
58
35
|
prerelease: false
|
59
36
|
version_requirements: !ruby/object:Gem::Requirement
|
60
37
|
requirements:
|
61
|
-
- - ">="
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.16.4
|
64
38
|
- - "~>"
|
65
39
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: elastic-apm
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '0'
|
74
|
-
type: :runtime
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '0'
|
40
|
+
version: 0.14.0
|
81
41
|
- !ruby/object:Gem::Dependency
|
82
42
|
name: bundler
|
83
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,47 +53,19 @@ dependencies:
|
|
93
53
|
- !ruby/object:Gem::Version
|
94
54
|
version: '1.12'
|
95
55
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
102
|
-
type: :runtime
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - ">="
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '0'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: aws-sdk-s3
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - ">="
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '0'
|
116
|
-
type: :runtime
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '0'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: mono_logger
|
56
|
+
name: rspec
|
125
57
|
requirement: !ruby/object:Gem::Requirement
|
126
58
|
requirements:
|
127
59
|
- - "~>"
|
128
60
|
- !ruby/object:Gem::Version
|
129
|
-
version: '
|
61
|
+
version: '3.0'
|
130
62
|
type: :runtime
|
131
63
|
prerelease: false
|
132
64
|
version_requirements: !ruby/object:Gem::Requirement
|
133
65
|
requirements:
|
134
66
|
- - "~>"
|
135
67
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
68
|
+
version: '3.0'
|
137
69
|
- !ruby/object:Gem::Dependency
|
138
70
|
name: railties
|
139
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,118 +86,6 @@ dependencies:
|
|
154
86
|
- - "<"
|
155
87
|
- !ruby/object:Gem::Version
|
156
88
|
version: '5.1'
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: rspec
|
159
|
-
requirement: !ruby/object:Gem::Requirement
|
160
|
-
requirements:
|
161
|
-
- - "~>"
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: '3.0'
|
164
|
-
type: :development
|
165
|
-
prerelease: false
|
166
|
-
version_requirements: !ruby/object:Gem::Requirement
|
167
|
-
requirements:
|
168
|
-
- - "~>"
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: '3.0'
|
171
|
-
- !ruby/object:Gem::Dependency
|
172
|
-
name: rspec-rails
|
173
|
-
requirement: !ruby/object:Gem::Requirement
|
174
|
-
requirements:
|
175
|
-
- - ">="
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: '0'
|
178
|
-
type: :development
|
179
|
-
prerelease: false
|
180
|
-
version_requirements: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
182
|
-
- - ">="
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
version: '0'
|
185
|
-
- !ruby/object:Gem::Dependency
|
186
|
-
name: rspec-expectations
|
187
|
-
requirement: !ruby/object:Gem::Requirement
|
188
|
-
requirements:
|
189
|
-
- - ">="
|
190
|
-
- !ruby/object:Gem::Version
|
191
|
-
version: '0'
|
192
|
-
type: :development
|
193
|
-
prerelease: false
|
194
|
-
version_requirements: !ruby/object:Gem::Requirement
|
195
|
-
requirements:
|
196
|
-
- - ">="
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '0'
|
199
|
-
- !ruby/object:Gem::Dependency
|
200
|
-
name: factory_bot
|
201
|
-
requirement: !ruby/object:Gem::Requirement
|
202
|
-
requirements:
|
203
|
-
- - ">="
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: '0'
|
206
|
-
type: :development
|
207
|
-
prerelease: false
|
208
|
-
version_requirements: !ruby/object:Gem::Requirement
|
209
|
-
requirements:
|
210
|
-
- - ">="
|
211
|
-
- !ruby/object:Gem::Version
|
212
|
-
version: '0'
|
213
|
-
- !ruby/object:Gem::Dependency
|
214
|
-
name: derailed
|
215
|
-
requirement: !ruby/object:Gem::Requirement
|
216
|
-
requirements:
|
217
|
-
- - ">="
|
218
|
-
- !ruby/object:Gem::Version
|
219
|
-
version: '0'
|
220
|
-
type: :development
|
221
|
-
prerelease: false
|
222
|
-
version_requirements: !ruby/object:Gem::Requirement
|
223
|
-
requirements:
|
224
|
-
- - ">="
|
225
|
-
- !ruby/object:Gem::Version
|
226
|
-
version: '0'
|
227
|
-
- !ruby/object:Gem::Dependency
|
228
|
-
name: pg
|
229
|
-
requirement: !ruby/object:Gem::Requirement
|
230
|
-
requirements:
|
231
|
-
- - ">="
|
232
|
-
- !ruby/object:Gem::Version
|
233
|
-
version: '0'
|
234
|
-
type: :development
|
235
|
-
prerelease: false
|
236
|
-
version_requirements: !ruby/object:Gem::Requirement
|
237
|
-
requirements:
|
238
|
-
- - ">="
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: '0'
|
241
|
-
- !ruby/object:Gem::Dependency
|
242
|
-
name: webmock
|
243
|
-
requirement: !ruby/object:Gem::Requirement
|
244
|
-
requirements:
|
245
|
-
- - ">="
|
246
|
-
- !ruby/object:Gem::Version
|
247
|
-
version: '0'
|
248
|
-
type: :development
|
249
|
-
prerelease: false
|
250
|
-
version_requirements: !ruby/object:Gem::Requirement
|
251
|
-
requirements:
|
252
|
-
- - ">="
|
253
|
-
- !ruby/object:Gem::Version
|
254
|
-
version: '0'
|
255
|
-
- !ruby/object:Gem::Dependency
|
256
|
-
name: fakeredis
|
257
|
-
requirement: !ruby/object:Gem::Requirement
|
258
|
-
requirements:
|
259
|
-
- - ">="
|
260
|
-
- !ruby/object:Gem::Version
|
261
|
-
version: '0'
|
262
|
-
type: :development
|
263
|
-
prerelease: false
|
264
|
-
version_requirements: !ruby/object:Gem::Requirement
|
265
|
-
requirements:
|
266
|
-
- - ">="
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: '0'
|
269
89
|
description: Description of Connect.
|
270
90
|
email:
|
271
91
|
- connect@zuora.com
|
@@ -275,68 +95,28 @@ extra_rdoc_files: []
|
|
275
95
|
files:
|
276
96
|
- MIT-LICENSE
|
277
97
|
- Rakefile
|
278
|
-
- app/assets/javascripts/
|
279
|
-
- app/assets/javascripts/
|
280
|
-
- app/assets/
|
281
|
-
- app/assets/
|
282
|
-
- app/
|
283
|
-
- app/
|
284
|
-
- app/controllers/
|
285
|
-
- app/
|
286
|
-
- app/
|
287
|
-
- app/
|
288
|
-
- app/
|
289
|
-
- app/helpers/zuora_connect/application_helper.rb
|
290
|
-
- app/models/zuora_connect/app_instance.rb
|
291
|
-
- app/models/zuora_connect/app_instance_base.rb
|
292
|
-
- app/models/zuora_connect/login.rb
|
293
|
-
- app/models/zuora_connect/telegraf.rb
|
294
|
-
- app/views/layouts/zuora_connect/application.html.erb
|
295
|
-
- app/views/sql/refresh_aggregate_table.txt
|
296
|
-
- app/views/zuora_connect/static/invalid_app_instance_error.html.erb
|
297
|
-
- app/views/zuora_connect/static/invalid_launch_request.html
|
298
|
-
- app/views/zuora_connect/static/launch.html.erb
|
299
|
-
- app/views/zuora_connect/static/session_error.html.erb
|
98
|
+
- app/assets/javascripts/connect_sdk/api/v1/app_instance.js
|
99
|
+
- app/assets/javascripts/connect_sdk/application.js
|
100
|
+
- app/assets/stylesheets/connect_sdk/api/v1/app_instance.css
|
101
|
+
- app/assets/stylesheets/connect_sdk/application.css
|
102
|
+
- app/controllers/connect/admin/tenant_controller.rb
|
103
|
+
- app/controllers/connect/api/v1/app_instance_controller.rb
|
104
|
+
- app/controllers/connect/application_controller.rb
|
105
|
+
- app/helpers/connect/api/v1/app_instance_helper.rb
|
106
|
+
- app/helpers/connect/application_helper.rb
|
107
|
+
- app/models/connect/app_instance.rb
|
108
|
+
- app/views/layouts/connect_sdk/application.html.erb
|
300
109
|
- config/initializers/apartment.rb
|
301
|
-
- config/initializers/aws.rb
|
302
|
-
- config/initializers/elastic_apm.rb
|
303
|
-
- config/initializers/object_method_hooks.rb
|
304
|
-
- config/initializers/postgresql_adapter.rb
|
305
|
-
- config/initializers/prometheus.rb
|
306
|
-
- config/initializers/redis.rb
|
307
|
-
- config/initializers/resque.rb
|
308
|
-
- config/initializers/to_bool.rb
|
309
|
-
- config/initializers/unicorn.rb
|
310
110
|
- config/routes.rb
|
311
|
-
- db/migrate/
|
312
|
-
-
|
313
|
-
-
|
314
|
-
-
|
315
|
-
-
|
316
|
-
-
|
317
|
-
-
|
318
|
-
-
|
319
|
-
-
|
320
|
-
- db/migrate/20180301052853_add_catalog_attempted_at.rb
|
321
|
-
- db/migrate/20181206162339_add_fields_to_instance.rb
|
322
|
-
- lib/metrics/influx/point_value.rb
|
323
|
-
- lib/metrics/net.rb
|
324
|
-
- lib/middleware/metrics_middleware.rb
|
325
|
-
- lib/resque/additions.rb
|
326
|
-
- lib/resque/dynamic_queues.rb
|
327
|
-
- lib/resque/plugins/custom_logger.rb
|
328
|
-
- lib/resque/self_lookup.rb
|
329
|
-
- lib/resque/silence_done.rb
|
330
|
-
- lib/tasks/zuora_connect_tasks.rake
|
331
|
-
- lib/zuora_connect.rb
|
332
|
-
- lib/zuora_connect/configuration.rb
|
333
|
-
- lib/zuora_connect/controllers/helpers.rb
|
334
|
-
- lib/zuora_connect/engine.rb
|
335
|
-
- lib/zuora_connect/exceptions.rb
|
336
|
-
- lib/zuora_connect/railtie.rb
|
337
|
-
- lib/zuora_connect/version.rb
|
338
|
-
- lib/zuora_connect/views/helpers.rb
|
339
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
111
|
+
- db/migrate/20160718151733_create_connect_app_instances.rb
|
112
|
+
- lib/connect.rb
|
113
|
+
- lib/connect/configuration.rb
|
114
|
+
- lib/connect/controllers/helpers.rb
|
115
|
+
- lib/connect/engine.rb
|
116
|
+
- lib/connect/version.rb
|
117
|
+
- lib/tasks/connect_tasks.rake
|
118
|
+
- test/connect_test.rb
|
119
|
+
- test/controllers/connect/api/v1/app_instance_controller_test.rb
|
340
120
|
- test/dummy/README.rdoc
|
341
121
|
- test/dummy/Rakefile
|
342
122
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -371,12 +151,10 @@ files:
|
|
371
151
|
- test/dummy/public/422.html
|
372
152
|
- test/dummy/public/500.html
|
373
153
|
- test/dummy/public/favicon.ico
|
374
|
-
- test/fixtures/
|
154
|
+
- test/fixtures/connect/app_instances.yml
|
375
155
|
- test/integration/navigation_test.rb
|
376
|
-
- test/
|
377
|
-
- test/models/zuora_connect/app_instance_test.rb
|
156
|
+
- test/models/connect/app_instance_test.rb
|
378
157
|
- test/test_helper.rb
|
379
|
-
- test/zuora_connect_test.rb
|
380
158
|
homepage:
|
381
159
|
licenses: []
|
382
160
|
metadata: {}
|
@@ -395,49 +173,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
395
173
|
- !ruby/object:Gem::Version
|
396
174
|
version: '0'
|
397
175
|
requirements: []
|
398
|
-
|
176
|
+
rubyforge_project:
|
177
|
+
rubygems_version: 2.5.1
|
399
178
|
signing_key:
|
400
179
|
specification_version: 4
|
401
180
|
summary: Summary of Connect.
|
402
181
|
test_files:
|
403
|
-
- test/
|
404
|
-
- test/
|
405
|
-
- test/test_helper.rb
|
406
|
-
- test/models/zuora_connect/app_instance_test.rb
|
407
|
-
- test/fixtures/zuora_connect/app_instances.yml
|
408
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
409
|
-
- test/zuora_connect_test.rb
|
410
|
-
- test/dummy/README.rdoc
|
411
|
-
- test/dummy/Rakefile
|
412
|
-
- test/dummy/app/assets/stylesheets/application.css
|
182
|
+
- test/connect_test.rb
|
183
|
+
- test/controllers/connect/api/v1/app_instance_controller_test.rb
|
413
184
|
- test/dummy/app/assets/javascripts/application.js
|
185
|
+
- test/dummy/app/assets/stylesheets/application.css
|
414
186
|
- test/dummy/app/controllers/application_controller.rb
|
415
187
|
- test/dummy/app/helpers/application_helper.rb
|
416
188
|
- test/dummy/app/views/layouts/application.html.erb
|
417
|
-
- test/dummy/
|
418
|
-
- test/dummy/
|
419
|
-
- test/dummy/
|
189
|
+
- test/dummy/bin/bundle
|
190
|
+
- test/dummy/bin/rails
|
191
|
+
- test/dummy/bin/rake
|
192
|
+
- test/dummy/bin/setup
|
193
|
+
- test/dummy/config/application.rb
|
194
|
+
- test/dummy/config/boot.rb
|
420
195
|
- test/dummy/config/database.yml
|
421
|
-
- test/dummy/config/
|
196
|
+
- test/dummy/config/environment.rb
|
197
|
+
- test/dummy/config/environments/development.rb
|
198
|
+
- test/dummy/config/environments/production.rb
|
199
|
+
- test/dummy/config/environments/test.rb
|
422
200
|
- test/dummy/config/initializers/assets.rb
|
423
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
424
|
-
- test/dummy/config/initializers/mime_types.rb
|
425
201
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
202
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
426
203
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
204
|
+
- test/dummy/config/initializers/inflections.rb
|
205
|
+
- test/dummy/config/initializers/mime_types.rb
|
427
206
|
- test/dummy/config/initializers/session_store.rb
|
428
207
|
- test/dummy/config/initializers/wrap_parameters.rb
|
429
|
-
- test/dummy/config/initializers/inflections.rb
|
430
208
|
- test/dummy/config/locales/en.yml
|
431
|
-
- test/dummy/config/
|
432
|
-
- test/dummy/config/application.rb
|
433
|
-
- test/dummy/config/boot.rb
|
209
|
+
- test/dummy/config/routes.rb
|
434
210
|
- test/dummy/config/secrets.yml
|
435
|
-
- test/dummy/bin/setup
|
436
|
-
- test/dummy/bin/rails
|
437
|
-
- test/dummy/bin/bundle
|
438
|
-
- test/dummy/bin/rake
|
439
211
|
- test/dummy/config.ru
|
212
|
+
- test/dummy/public/404.html
|
440
213
|
- test/dummy/public/422.html
|
441
214
|
- test/dummy/public/500.html
|
442
215
|
- test/dummy/public/favicon.ico
|
443
|
-
- test/dummy/
|
216
|
+
- test/dummy/Rakefile
|
217
|
+
- test/dummy/README.rdoc
|
218
|
+
- test/fixtures/connect/app_instances.yml
|
219
|
+
- test/integration/navigation_test.rb
|
220
|
+
- test/models/connect/app_instance_test.rb
|
221
|
+
- test/test_helper.rb
|