zuora_connect 3.0.0.pre.i → 3.0.0.pre.p
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/app_instance_base.rb +20 -7
- data/app/models/zuora_connect/telegraf.rb +73 -0
- data/config/initializers/prometheus.rb +0 -23
- data/config/initializers/resque.rb +0 -14
- data/config/initializers/unicorn.rb +1 -1
- data/lib/metrics/influx/point_value.rb +79 -0
- data/lib/metrics/net.rb +7 -7
- data/lib/middleware/metrics_middleware.rb +34 -3
- data/lib/zuora_connect.rb +1 -0
- data/lib/zuora_connect/configuration.rb +2 -1
- data/lib/zuora_connect/controllers/helpers.rb +12 -9
- data/lib/zuora_connect/railtie.rb +3 -0
- data/lib/zuora_connect/version.rb +1 -1
- metadata +9 -103
- data/test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb +0 -13
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -29
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -26
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -41
- data/test/dummy/config/environments/production.rb +0 -79
- data/test/dummy/config/environments/test.rb +0 -42
- data/test/dummy/config/initializers/assets.rb +0 -11
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/secrets.yml +0 -22
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/favicon.ico +0 -0
- data/test/fixtures/zuora_connect/app_instances.yml +0 -11
- data/test/integration/navigation_test.rb +0 -8
- data/test/lib/generators/zuora_connect/datatable_generator_test.rb +0 -16
- data/test/models/zuora_connect/app_instance_test.rb +0 -9
- data/test/test_helper.rb +0 -21
- data/test/zuora_connect_test.rb +0 -7
@@ -32,5 +32,8 @@ module ZuoraConnect
|
|
32
32
|
app.config.middleware.use Rack::Deflater, if: ->(env, *) { env['PATH_INFO'] == '/connect/internal/metrics' }
|
33
33
|
end
|
34
34
|
end
|
35
|
+
|
36
|
+
# hook to process_action
|
37
|
+
ActiveSupport::Notifications.subscribe('process_action.action_controller', ZuoraConnect::PageRequest.new)
|
35
38
|
end
|
36
39
|
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: 3.0.0.pre.
|
4
|
+
version: 3.0.0.pre.p
|
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: 2021-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -188,14 +188,14 @@ dependencies:
|
|
188
188
|
requirements:
|
189
189
|
- - '='
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: 0.1.0.pre.
|
191
|
+
version: 0.1.0.pre.d
|
192
192
|
type: :runtime
|
193
193
|
prerelease: false
|
194
194
|
version_requirements: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
196
|
- - '='
|
197
197
|
- !ruby/object:Gem::Version
|
198
|
-
version: 0.1.0.pre.
|
198
|
+
version: 0.1.0.pre.d
|
199
199
|
- !ruby/object:Gem::Dependency
|
200
200
|
name: rspec
|
201
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -281,21 +281,7 @@ dependencies:
|
|
281
281
|
- !ruby/object:Gem::Version
|
282
282
|
version: '0'
|
283
283
|
- !ruby/object:Gem::Dependency
|
284
|
-
name:
|
285
|
-
requirement: !ruby/object:Gem::Requirement
|
286
|
-
requirements:
|
287
|
-
- - ">="
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: '0'
|
290
|
-
type: :development
|
291
|
-
prerelease: false
|
292
|
-
version_requirements: !ruby/object:Gem::Requirement
|
293
|
-
requirements:
|
294
|
-
- - ">="
|
295
|
-
- !ruby/object:Gem::Version
|
296
|
-
version: '0'
|
297
|
-
- !ruby/object:Gem::Dependency
|
298
|
-
name: derailed
|
284
|
+
name: factory_bot_rails
|
299
285
|
requirement: !ruby/object:Gem::Requirement
|
300
286
|
requirements:
|
301
287
|
- - ">="
|
@@ -374,6 +360,7 @@ files:
|
|
374
360
|
- app/models/zuora_connect/app_instance.rb
|
375
361
|
- app/models/zuora_connect/app_instance_base.rb
|
376
362
|
- app/models/zuora_connect/login.rb
|
363
|
+
- app/models/zuora_connect/telegraf.rb
|
377
364
|
- app/models/zuora_connect/zuora_user.rb
|
378
365
|
- app/views/layouts/zuora_connect/application.html.erb
|
379
366
|
- app/views/sql/refresh_aggregate_table.txt
|
@@ -408,6 +395,7 @@ files:
|
|
408
395
|
- db/migrate/20190520232222_add_unique_index.rb
|
409
396
|
- db/migrate/20190520232223_add_provisioning_fields.rb
|
410
397
|
- db/migrate/20190520232224_add_environment_fields.rb
|
398
|
+
- lib/metrics/influx/point_value.rb
|
411
399
|
- lib/metrics/net.rb
|
412
400
|
- lib/middleware/bad_multipart_form_data_sanitizer.rb
|
413
401
|
- lib/middleware/json_parse_errors.rb
|
@@ -428,47 +416,6 @@ files:
|
|
428
416
|
- lib/zuora_connect/railtie.rb
|
429
417
|
- lib/zuora_connect/version.rb
|
430
418
|
- lib/zuora_connect/zuora_audit.rb
|
431
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
432
|
-
- test/dummy/README.rdoc
|
433
|
-
- test/dummy/Rakefile
|
434
|
-
- test/dummy/app/assets/javascripts/application.js
|
435
|
-
- test/dummy/app/assets/stylesheets/application.css
|
436
|
-
- test/dummy/app/controllers/application_controller.rb
|
437
|
-
- test/dummy/app/helpers/application_helper.rb
|
438
|
-
- test/dummy/app/views/layouts/application.html.erb
|
439
|
-
- test/dummy/bin/bundle
|
440
|
-
- test/dummy/bin/rails
|
441
|
-
- test/dummy/bin/rake
|
442
|
-
- test/dummy/bin/setup
|
443
|
-
- test/dummy/config.ru
|
444
|
-
- test/dummy/config/application.rb
|
445
|
-
- test/dummy/config/boot.rb
|
446
|
-
- test/dummy/config/database.yml
|
447
|
-
- test/dummy/config/environment.rb
|
448
|
-
- test/dummy/config/environments/development.rb
|
449
|
-
- test/dummy/config/environments/production.rb
|
450
|
-
- test/dummy/config/environments/test.rb
|
451
|
-
- test/dummy/config/initializers/assets.rb
|
452
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
453
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
454
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
455
|
-
- test/dummy/config/initializers/inflections.rb
|
456
|
-
- test/dummy/config/initializers/mime_types.rb
|
457
|
-
- test/dummy/config/initializers/session_store.rb
|
458
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
459
|
-
- test/dummy/config/locales/en.yml
|
460
|
-
- test/dummy/config/routes.rb
|
461
|
-
- test/dummy/config/secrets.yml
|
462
|
-
- test/dummy/public/404.html
|
463
|
-
- test/dummy/public/422.html
|
464
|
-
- test/dummy/public/500.html
|
465
|
-
- test/dummy/public/favicon.ico
|
466
|
-
- test/fixtures/zuora_connect/app_instances.yml
|
467
|
-
- test/integration/navigation_test.rb
|
468
|
-
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
469
|
-
- test/models/zuora_connect/app_instance_test.rb
|
470
|
-
- test/test_helper.rb
|
471
|
-
- test/zuora_connect_test.rb
|
472
419
|
homepage:
|
473
420
|
licenses: []
|
474
421
|
metadata: {}
|
@@ -487,49 +434,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
487
434
|
- !ruby/object:Gem::Version
|
488
435
|
version: 1.3.1
|
489
436
|
requirements: []
|
490
|
-
rubygems_version: 3.
|
437
|
+
rubygems_version: 3.2.3
|
491
438
|
signing_key:
|
492
439
|
specification_version: 4
|
493
440
|
summary: Summary of Connect.
|
494
|
-
test_files:
|
495
|
-
- test/fixtures/zuora_connect/app_instances.yml
|
496
|
-
- test/models/zuora_connect/app_instance_test.rb
|
497
|
-
- test/integration/navigation_test.rb
|
498
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
499
|
-
- test/zuora_connect_test.rb
|
500
|
-
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
501
|
-
- test/dummy/public/500.html
|
502
|
-
- test/dummy/public/404.html
|
503
|
-
- test/dummy/public/favicon.ico
|
504
|
-
- test/dummy/public/422.html
|
505
|
-
- test/dummy/Rakefile
|
506
|
-
- test/dummy/config.ru
|
507
|
-
- test/dummy/config/secrets.yml
|
508
|
-
- test/dummy/config/boot.rb
|
509
|
-
- test/dummy/config/application.rb
|
510
|
-
- test/dummy/config/initializers/session_store.rb
|
511
|
-
- test/dummy/config/initializers/assets.rb
|
512
|
-
- test/dummy/config/initializers/wrap_parameters.rb
|
513
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
514
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
515
|
-
- test/dummy/config/initializers/mime_types.rb
|
516
|
-
- test/dummy/config/initializers/inflections.rb
|
517
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
518
|
-
- test/dummy/config/routes.rb
|
519
|
-
- test/dummy/config/database.yml
|
520
|
-
- test/dummy/config/environments/test.rb
|
521
|
-
- test/dummy/config/environments/production.rb
|
522
|
-
- test/dummy/config/environments/development.rb
|
523
|
-
- test/dummy/config/environment.rb
|
524
|
-
- test/dummy/config/locales/en.yml
|
525
|
-
- test/dummy/README.rdoc
|
526
|
-
- test/dummy/bin/rake
|
527
|
-
- test/dummy/bin/setup
|
528
|
-
- test/dummy/bin/rails
|
529
|
-
- test/dummy/bin/bundle
|
530
|
-
- test/dummy/app/views/layouts/application.html.erb
|
531
|
-
- test/dummy/app/assets/javascripts/application.js
|
532
|
-
- test/dummy/app/assets/stylesheets/application.css
|
533
|
-
- test/dummy/app/helpers/application_helper.rb
|
534
|
-
- test/dummy/app/controllers/application_controller.rb
|
535
|
-
- test/test_helper.rb
|
441
|
+
test_files: []
|
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
-
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
-
* file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
6
|
-
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/bin/setup
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'pathname'
|
3
|
-
|
4
|
-
# path to your application root.
|
5
|
-
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
6
|
-
|
7
|
-
Dir.chdir APP_ROOT do
|
8
|
-
# This script is a starting point to setup your application.
|
9
|
-
# Add necessary setup steps to this file:
|
10
|
-
|
11
|
-
puts "== Installing dependencies =="
|
12
|
-
system "gem install bundler --conservative"
|
13
|
-
system "bundle check || bundle install"
|
14
|
-
|
15
|
-
# puts "\n== Copying sample files =="
|
16
|
-
# unless File.exist?("config/database.yml")
|
17
|
-
# system "cp config/database.yml.sample config/database.yml"
|
18
|
-
# end
|
19
|
-
|
20
|
-
puts "\n== Preparing database =="
|
21
|
-
system "bin/rake db:setup"
|
22
|
-
|
23
|
-
puts "\n== Removing old logs and tempfiles =="
|
24
|
-
system "rm -f log/*"
|
25
|
-
system "rm -rf tmp/cache"
|
26
|
-
|
27
|
-
puts "\n== Restarting application server =="
|
28
|
-
system "touch tmp/restart.txt"
|
29
|
-
end
|
data/test/dummy/config.ru
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require "zuora_connect"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
data/test/dummy/config/boot.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
#
|
7
|
-
default: &default
|
8
|
-
adapter: sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
development:
|
13
|
-
<<: *default
|
14
|
-
database: db/development.sqlite3
|
15
|
-
|
16
|
-
# Warning: The database defined as "test" will be erased and
|
17
|
-
# re-generated from your development database when you run "rake".
|
18
|
-
# Do not set this db to the same as development or production.
|
19
|
-
test:
|
20
|
-
<<: *default
|
21
|
-
database: db/test.sqlite3
|
22
|
-
|
23
|
-
production:
|
24
|
-
<<: *default
|
25
|
-
database: db/production.sqlite3
|
@@ -1,41 +0,0 @@
|
|
1
|
-
Rails.application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
-
|
4
|
-
# In the development environment your application's code is reloaded on
|
5
|
-
# every request. This slows down response time but is perfect for development
|
6
|
-
# since you don't have to restart the web server when you make code changes.
|
7
|
-
config.cache_classes = false
|
8
|
-
|
9
|
-
# Do not eager load code on boot.
|
10
|
-
config.eager_load = false
|
11
|
-
|
12
|
-
# Show full error reports and disable caching.
|
13
|
-
config.consider_all_requests_local = true
|
14
|
-
config.action_controller.perform_caching = false
|
15
|
-
|
16
|
-
# Don't care if the mailer can't send.
|
17
|
-
config.action_mailer.raise_delivery_errors = false
|
18
|
-
|
19
|
-
# Print deprecation notices to the Rails logger.
|
20
|
-
config.active_support.deprecation = :log
|
21
|
-
|
22
|
-
# Raise an error on page load if there are pending migrations.
|
23
|
-
config.active_record.migration_error = :page_load
|
24
|
-
|
25
|
-
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
-
# This option may cause significant delays in view rendering with a large
|
27
|
-
# number of complex assets.
|
28
|
-
config.assets.debug = true
|
29
|
-
|
30
|
-
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
|
31
|
-
# yet still be able to expire them through the digest params.
|
32
|
-
config.assets.digest = true
|
33
|
-
|
34
|
-
# Adds additional error checking when serving assets at runtime.
|
35
|
-
# Checks for improperly declared sprockets dependencies.
|
36
|
-
# Raises helpful error messages.
|
37
|
-
config.assets.raise_runtime_errors = true
|
38
|
-
|
39
|
-
# Raises error for missing translations
|
40
|
-
# config.action_view.raise_on_missing_translations = true
|
41
|
-
end
|