From 304fef1167dfd5482e6718744149e160ea1d1e4c Mon Sep 17 00:00:00 2001 From: Sam Goldstein Date: Fri, 22 Feb 2013 14:11:45 -0800 Subject: [PATCH] Add license header to source files --- init.rb | 4 ++++ install.rb | 4 ++++ lib/conditional_vendored_dependency_detection.rb | 4 ++++ lib/conditional_vendored_metric_parser.rb | 4 ++++ lib/new_relic/agent.rb | 4 ++++ lib/new_relic/agent/agent.rb | 4 ++++ lib/new_relic/agent/agent_logger.rb | 4 ++++ lib/new_relic/agent/audit_logger.rb | 4 ++++ lib/new_relic/agent/beacon_configuration.rb | 4 ++++ lib/new_relic/agent/browser_monitoring.rb | 4 ++++ lib/new_relic/agent/busy_calculator.rb | 4 ++++ lib/new_relic/agent/chained_call.rb | 4 ++++ lib/new_relic/agent/configuration.rb | 4 ++++ lib/new_relic/agent/configuration/defaults.rb | 4 ++++ lib/new_relic/agent/configuration/environment_source.rb | 4 ++++ lib/new_relic/agent/configuration/manager.rb | 4 ++++ lib/new_relic/agent/configuration/mask_defaults.rb | 4 ++++ lib/new_relic/agent/configuration/server_source.rb | 4 ++++ lib/new_relic/agent/configuration/yaml_source.rb | 4 ++++ lib/new_relic/agent/cross_app_monitor.rb | 4 ++++ lib/new_relic/agent/database.rb | 4 ++++ lib/new_relic/agent/error_collector.rb | 4 ++++ lib/new_relic/agent/event_listener.rb | 4 ++++ lib/new_relic/agent/instrumentation.rb | 4 ++++ lib/new_relic/agent/instrumentation/active_merchant.rb | 4 ++++ lib/new_relic/agent/instrumentation/active_record.rb | 4 ++++ lib/new_relic/agent/instrumentation/acts_as_solr.rb | 4 ++++ lib/new_relic/agent/instrumentation/authlogic.rb | 4 ++++ .../agent/instrumentation/browser_monitoring_timings.rb | 4 ++++ .../agent/instrumentation/controller_instrumentation.rb | 4 ++++ lib/new_relic/agent/instrumentation/data_mapper.rb | 4 ++++ .../agent/instrumentation/delayed_job_instrumentation.rb | 4 ++++ lib/new_relic/agent/instrumentation/memcache.rb | 4 ++++ lib/new_relic/agent/instrumentation/merb/controller.rb | 4 ++++ lib/new_relic/agent/instrumentation/merb/errors.rb | 4 ++++ lib/new_relic/agent/instrumentation/metric_frame.rb | 4 ++++ lib/new_relic/agent/instrumentation/metric_frame/pop.rb | 4 ++++ lib/new_relic/agent/instrumentation/net.rb | 3 +++ .../agent/instrumentation/passenger_instrumentation.rb | 4 ++++ lib/new_relic/agent/instrumentation/queue_time.rb | 4 ++++ lib/new_relic/agent/instrumentation/rack.rb | 4 ++++ .../agent/instrumentation/rails/action_controller.rb | 4 ++++ .../agent/instrumentation/rails/action_web_service.rb | 4 ++++ lib/new_relic/agent/instrumentation/rails/errors.rb | 4 ++++ .../agent/instrumentation/rails3/action_controller.rb | 4 ++++ lib/new_relic/agent/instrumentation/rails3/errors.rb | 4 ++++ lib/new_relic/agent/instrumentation/resque.rb | 4 ++++ lib/new_relic/agent/instrumentation/sinatra.rb | 4 ++++ lib/new_relic/agent/instrumentation/sunspot.rb | 4 ++++ .../agent/instrumentation/unicorn_instrumentation.rb | 4 ++++ lib/new_relic/agent/method_tracer.rb | 4 ++++ lib/new_relic/agent/new_relic_service.rb | 4 ++++ lib/new_relic/agent/pipe_channel_manager.rb | 4 ++++ lib/new_relic/agent/pipe_service.rb | 4 ++++ lib/new_relic/agent/rules_engine.rb | 4 ++++ lib/new_relic/agent/sampler.rb | 4 ++++ lib/new_relic/agent/samplers/cpu_sampler.rb | 4 ++++ lib/new_relic/agent/samplers/delayed_job_sampler.rb | 4 ++++ lib/new_relic/agent/samplers/memory_sampler.rb | 4 ++++ lib/new_relic/agent/samplers/object_sampler.rb | 4 ++++ lib/new_relic/agent/shim_agent.rb | 4 ++++ lib/new_relic/agent/sql_sampler.rb | 4 ++++ lib/new_relic/agent/stats_engine.rb | 4 ++++ lib/new_relic/agent/stats_engine/gc_profiler.rb | 4 ++++ lib/new_relic/agent/stats_engine/metric_stats.rb | 4 ++++ lib/new_relic/agent/stats_engine/samplers.rb | 4 ++++ lib/new_relic/agent/stats_engine/stats_hash.rb | 4 ++++ lib/new_relic/agent/stats_engine/transactions.rb | 4 ++++ lib/new_relic/agent/thread.rb | 4 ++++ lib/new_relic/agent/thread_profiler.rb | 4 ++++ lib/new_relic/agent/transaction_info.rb | 4 ++++ lib/new_relic/agent/transaction_sample_builder.rb | 4 ++++ lib/new_relic/agent/transaction_sampler.rb | 4 ++++ lib/new_relic/agent/worker_loop.rb | 4 ++++ lib/new_relic/coerce.rb | 4 ++++ lib/new_relic/collection_helper.rb | 4 ++++ lib/new_relic/command.rb | 4 ++++ lib/new_relic/commands/deployments.rb | 4 ++++ lib/new_relic/commands/install.rb | 4 ++++ lib/new_relic/control.rb | 4 ++++ lib/new_relic/control/class_methods.rb | 4 ++++ lib/new_relic/control/frameworks.rb | 4 ++++ lib/new_relic/control/frameworks/external.rb | 4 ++++ lib/new_relic/control/frameworks/merb.rb | 4 ++++ lib/new_relic/control/frameworks/rails.rb | 4 ++++ lib/new_relic/control/frameworks/rails3.rb | 4 ++++ lib/new_relic/control/frameworks/rails4.rb | 4 ++++ lib/new_relic/control/frameworks/ruby.rb | 4 ++++ lib/new_relic/control/frameworks/sinatra.rb | 4 ++++ lib/new_relic/control/instance_methods.rb | 4 ++++ lib/new_relic/control/instrumentation.rb | 4 ++++ lib/new_relic/control/profiling.rb | 4 ++++ lib/new_relic/control/server_methods.rb | 4 ++++ lib/new_relic/delayed_job_injection.rb | 4 ++++ lib/new_relic/helper.rb | 5 ++++- lib/new_relic/language_support.rb | 4 ++++ lib/new_relic/latest_changes.rb | 4 ++++ lib/new_relic/local_environment.rb | 4 ++++ lib/new_relic/merbtasks.rb | 4 ++++ lib/new_relic/metric_data.rb | 4 ++++ lib/new_relic/metric_spec.rb | 4 ++++ lib/new_relic/metrics.rb | 4 ++++ lib/new_relic/noticed_error.rb | 4 ++++ lib/new_relic/okjson.rb | 5 ++++- lib/new_relic/rack.rb | 4 ++++ lib/new_relic/rack/agent_hooks.rb | 4 ++++ lib/new_relic/rack/browser_monitoring.rb | 4 ++++ lib/new_relic/rack/developer_mode.rb | 4 ++++ lib/new_relic/rack/error_collector.rb | 4 ++++ lib/new_relic/recipes.rb | 4 ++++ lib/new_relic/stats.rb | 4 ++++ lib/new_relic/timer_lib.rb | 4 ++++ lib/new_relic/transaction_analysis.rb | 4 ++++ lib/new_relic/transaction_analysis/segment_summary.rb | 4 ++++ lib/new_relic/transaction_sample.rb | 4 ++++ lib/new_relic/transaction_sample/composite_segment.rb | 4 ++++ lib/new_relic/transaction_sample/fake_segment.rb | 4 ++++ lib/new_relic/transaction_sample/segment.rb | 4 ++++ lib/new_relic/transaction_sample/summary_segment.rb | 4 ++++ lib/new_relic/url_rule.rb | 4 ++++ lib/new_relic/version.rb | 4 ++++ lib/newrelic_rpm.rb | 4 ++++ lib/tasks/all.rb | 4 ++++ recipes/newrelic.rb | 4 ++++ test/active_record_fixtures.rb | 4 ++++ test/config/test_control.rb | 4 ++++ test/intentional_fail.rb | 4 ++++ test/multiverse/lib/multiverse/color.rb | 4 ++++ test/multiverse/lib/multiverse/envfile.rb | 4 ++++ test/multiverse/lib/multiverse/environment.rb | 4 ++++ test/multiverse/lib/multiverse/output_collector.rb | 4 ++++ test/multiverse/lib/multiverse/runner.rb | 4 ++++ test/multiverse/lib/multiverse/suite.rb | 4 ++++ test/multiverse/suites/active_record/ar_method_aliasing.rb | 4 ++++ test/multiverse/suites/active_record/encoding_test.rb | 4 ++++ test/multiverse/suites/agent_only/audit_log_test.rb | 4 ++++ .../suites/agent_only/cross_application_tracing_test.rb | 4 ++++ test/multiverse/suites/agent_only/http_response_code_test.rb | 4 ++++ test/multiverse/suites/agent_only/key_transactions_test.rb | 4 ++++ test/multiverse/suites/agent_only/logging_test.rb | 4 ++++ test/multiverse/suites/agent_only/marshaling_test.rb | 4 ++++ test/multiverse/suites/agent_only/method_visibility_test.rb | 4 ++++ test/multiverse/suites/agent_only/no_dns_resolv.rb | 4 ++++ test/multiverse/suites/agent_only/pipe_manager_test.rb | 4 ++++ test/multiverse/suites/agent_only/rename_rule_test.rb | 4 ++++ .../multiverse/suites/agent_only/rum_instrumentation_test.rb | 4 ++++ test/multiverse/suites/agent_only/service_timeout_test.rb | 4 ++++ test/multiverse/suites/agent_only/ssl_test.rb | 4 ++++ test/multiverse/suites/agent_only/start_up_test.rb | 4 ++++ .../suites/agent_only/test_trace_method_with_punctuation.rb | 4 ++++ .../agent_only/test_trace_transaction_with_punctuation.rb | 4 ++++ test/multiverse/suites/agent_only/testing_app.rb | 4 ++++ test/multiverse/suites/agent_only/thread_profiling_test.rb | 4 ++++ .../suites/config_file_loading/config_file_loading_test.rb | 4 ++++ test/multiverse/suites/datamapper/encoding_test.rb | 4 ++++ test/multiverse/suites/rails/app.rb | 4 ++++ test/multiverse/suites/rails/error_tracing_test.rb | 4 ++++ test/multiverse/suites/rails/gc_instrumentation_test.rb | 4 ++++ test/multiverse/suites/rails/queue_time_test.rb | 4 ++++ test/multiverse/suites/rails/view_instrumentation_test.rb | 4 ++++ test/multiverse/suites/resque/instrumentation_test.rb | 4 ++++ test/multiverse/suites/resque/resque_setup.rb | 4 ++++ test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb | 4 ++++ .../suites/sinatra/sinatra_metric_explosion_test.rb | 4 ++++ test/multiverse/suites/sinatra/sinatra_routes_test.rb | 4 ++++ test/multiverse/suites/sinatra/sinatra_test.rb | 4 ++++ test/multiverse/test/multiverse_test.rb | 4 ++++ test/multiverse/test/suite_examples/one/a/a_test.rb | 4 ++++ test/multiverse/test/suite_examples/one/b/b_test.rb | 4 ++++ test/multiverse/test/suite_examples/three/a/fail_test.rb | 4 ++++ test/multiverse/test/suite_examples/three/b/win_test.rb | 4 ++++ test/multiverse/test/suite_examples/two/a/fail_test.rb | 4 ++++ test/new_relic/agent/agent/connect_test.rb | 4 ++++ test/new_relic/agent/agent/start_test.rb | 4 ++++ test/new_relic/agent/agent/start_worker_thread_test.rb | 4 ++++ test/new_relic/agent/agent_logger_test.rb | 4 ++++ test/new_relic/agent/agent_test.rb | 4 ++++ test/new_relic/agent/agent_test_controller.rb | 4 ++++ test/new_relic/agent/agent_test_controller_test.rb | 4 ++++ test/new_relic/agent/apdex_from_server_test.rb | 4 ++++ test/new_relic/agent/audit_logger_test.rb | 4 ++++ test/new_relic/agent/beacon_configuration_test.rb | 4 ++++ test/new_relic/agent/browser_monitoring_test.rb | 4 ++++ test/new_relic/agent/busy_calculator_test.rb | 4 ++++ .../new_relic/agent/configuration/environment_source_test.rb | 4 ++++ test/new_relic/agent/configuration/manager_test.rb | 4 ++++ test/new_relic/agent/configuration/server_source_test.rb | 4 ++++ test/new_relic/agent/configuration/yaml_source_test.rb | 4 ++++ test/new_relic/agent/cross_app_monitor_test.rb | 4 ++++ test/new_relic/agent/database_test.rb | 4 ++++ test/new_relic/agent/error_collector/notice_error_test.rb | 4 ++++ test/new_relic/agent/error_collector_test.rb | 4 ++++ test/new_relic/agent/event_listener_test.rb | 4 ++++ .../instrumentation/active_record_instrumentation_test.rb | 4 ++++ .../agent/instrumentation/browser_monitoring_timings_test.rb | 4 ++++ .../agent/instrumentation/controller_instrumentation_test.rb | 4 ++++ test/new_relic/agent/instrumentation/instrumentation_test.rb | 4 ++++ .../new_relic/agent/instrumentation/metric_frame/pop_test.rb | 4 ++++ test/new_relic/agent/instrumentation/metric_frame_test.rb | 4 ++++ .../agent/instrumentation/net_instrumentation_test.rb | 3 +++ test/new_relic/agent/instrumentation/queue_time_test.rb | 4 ++++ test/new_relic/agent/instrumentation/rack_test.rb | 4 ++++ test/new_relic/agent/instrumentation/sinatra_test.rb | 4 ++++ .../agent/instrumentation/task_instrumentation_test.rb | 4 ++++ test/new_relic/agent/memcache_instrumentation_test.rb | 4 ++++ .../method_tracer/class_methods/add_method_tracer_test.rb | 4 ++++ .../instance_methods/trace_execution_scoped_test.rb | 4 ++++ test/new_relic/agent/method_tracer_test.rb | 4 ++++ test/new_relic/agent/mock_scope_listener.rb | 4 ++++ test/new_relic/agent/new_relic_service_test.rb | 4 ++++ test/new_relic/agent/pipe_channel_manager_test.rb | 4 ++++ test/new_relic/agent/pipe_service_test.rb | 4 ++++ test/new_relic/agent/rpm_agent_test.rb | 4 ++++ test/new_relic/agent/rules_engine_test.rb | 4 ++++ test/new_relic/agent/sampler_test.rb | 4 ++++ test/new_relic/agent/shim_agent_test.rb | 4 ++++ test/new_relic/agent/sql_sampler_test.rb | 4 ++++ test/new_relic/agent/stats_engine/gc_profiler_test.rb | 4 ++++ test/new_relic/agent/stats_engine/metric_stats_test.rb | 4 ++++ test/new_relic/agent/stats_engine/samplers_test.rb | 4 ++++ test/new_relic/agent/stats_engine_test.rb | 4 ++++ test/new_relic/agent/stats_hash_test.rb | 4 ++++ test/new_relic/agent/thread_profiler_test.rb | 4 ++++ test/new_relic/agent/thread_test.rb | 4 ++++ test/new_relic/agent/threaded_test.rb | 4 ++++ test/new_relic/agent/transaction_info_test.rb | 4 ++++ test/new_relic/agent/transaction_sample_builder_test.rb | 4 ++++ test/new_relic/agent/transaction_sampler_test.rb | 4 ++++ test/new_relic/agent/worker_loop_test.rb | 4 ++++ test/new_relic/agent_test.rb | 4 ++++ test/new_relic/coerce_test.rb | 4 ++++ test/new_relic/collection_helper_test.rb | 4 ++++ test/new_relic/command/deployments_test.rb | 4 ++++ test/new_relic/control/class_methods_test.rb | 4 ++++ test/new_relic/control/frameworks/rails_test.rb | 4 ++++ test/new_relic/control_test.rb | 4 ++++ test/new_relic/delayed_job_injection_test.rb | 4 ++++ test/new_relic/dispatcher_test.rb | 4 ++++ test/new_relic/fake_collector.rb | 4 ++++ test/new_relic/framework_test.rb | 4 ++++ test/new_relic/helper_test.rb | 5 ++++- test/new_relic/load_test.rb | 4 ++++ test/new_relic/local_environment_test.rb | 4 ++++ test/new_relic/metric_data_test.rb | 4 ++++ test/new_relic/metric_parser/metric_parser_test.rb | 4 ++++ test/new_relic/metric_spec_test.rb | 4 ++++ test/new_relic/noticed_error_test.rb | 4 ++++ test/new_relic/rack/agent_hooks_test.rb | 4 ++++ test/new_relic/rack/all_test.rb | 4 ++++ test/new_relic/rack/browser_monitoring_test.rb | 4 ++++ test/new_relic/rack/developer_mode_helper_test.rb | 4 ++++ test/new_relic/rack/developer_mode_test.rb | 4 ++++ test/new_relic/rack/error_collector_test.rb | 4 ++++ test/new_relic/stats_test.rb | 4 ++++ test/new_relic/transaction_analysis/segment_summary_test.rb | 4 ++++ test/new_relic/transaction_analysis_test.rb | 4 ++++ test/new_relic/transaction_sample/composite_segment_test.rb | 4 ++++ test/new_relic/transaction_sample/fake_segment_test.rb | 4 ++++ test/new_relic/transaction_sample/segment_test.rb | 4 ++++ test/new_relic/transaction_sample/summary_segment_test.rb | 4 ++++ test/new_relic/transaction_sample_subtest_test.rb | 4 ++++ test/new_relic/transaction_sample_test.rb | 4 ++++ test/new_relic/version_number_test.rb | 4 ++++ test/test_contexts.rb | 4 ++++ test/test_helper.rb | 4 ++++ ui/helpers/developer_mode_helper.rb | 4 ++++ ui/helpers/google_pie_chart.rb | 4 ++++ ui/views/newrelic/file/javascript/jquery-1.4.2.js | 3 +++ ui/views/newrelic/file/javascript/transaction_sample.js | 3 +++ .../lib/dependency_detection.rb | 4 ++++ .../lib/dependency_detection/version.rb | 4 ++++ vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb | 4 ++++ .../metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb | 4 ++++ .../lib/new_relic/metric_parser/action_mailer.rb | 4 ++++ .../lib/new_relic/metric_parser/active_merchant.rb | 4 ++++ .../lib/new_relic/metric_parser/active_record.rb | 4 ++++ .../lib/new_relic/metric_parser/apdex.rb | 4 ++++ .../lib/new_relic/metric_parser/background_transaction.rb | 4 ++++ .../lib/new_relic/metric_parser/client.rb | 4 ++++ .../lib/new_relic/metric_parser/controller.rb | 4 ++++ .../lib/new_relic/metric_parser/controller_cpu.rb | 4 ++++ .../lib/new_relic/metric_parser/controller_ext.rb | 4 ++++ .../lib/new_relic/metric_parser/database.rb | 4 ++++ .../lib/new_relic/metric_parser/database_pool.rb | 4 ++++ .../lib/new_relic/metric_parser/dot_net.rb | 4 ++++ .../lib/new_relic/metric_parser/dot_net_parser.rb | 4 ++++ .../lib/new_relic/metric_parser/errors.rb | 4 ++++ .../lib/new_relic/metric_parser/external.rb | 4 ++++ .../lib/new_relic/metric_parser/frontend.rb | 4 ++++ .../lib/new_relic/metric_parser/gc.rb | 4 ++++ .../lib/new_relic/metric_parser/hibernate_session.rb | 4 ++++ .../lib/new_relic/metric_parser/java.rb | 4 ++++ .../lib/new_relic/metric_parser/java_parser.rb | 4 ++++ .../lib/new_relic/metric_parser/jsp.rb | 4 ++++ .../lib/new_relic/metric_parser/jsp_tag.rb | 4 ++++ .../lib/new_relic/metric_parser/mem_cache.rb | 4 ++++ .../lib/new_relic/metric_parser/metric_parser.rb | 4 ++++ .../lib/new_relic/metric_parser/orm.rb | 4 ++++ .../lib/new_relic/metric_parser/other_transaction.rb | 4 ++++ .../lib/new_relic/metric_parser/servlet.rb | 4 ++++ .../lib/new_relic/metric_parser/servlet_context_listener.rb | 4 ++++ .../lib/new_relic/metric_parser/servlet_filter.rb | 4 ++++ .../lib/new_relic/metric_parser/servlet_init.rb | 4 ++++ .../lib/new_relic/metric_parser/solr.rb | 4 ++++ .../lib/new_relic/metric_parser/solr_request_handler.rb | 4 ++++ .../lib/new_relic/metric_parser/spring.rb | 4 ++++ .../lib/new_relic/metric_parser/spring_controller.rb | 4 ++++ .../lib/new_relic/metric_parser/spring_view.rb | 4 ++++ .../lib/new_relic/metric_parser/struts_action.rb | 4 ++++ .../lib/new_relic/metric_parser/struts_result.rb | 4 ++++ .../lib/new_relic/metric_parser/version.rb | 4 ++++ .../lib/new_relic/metric_parser/view.rb | 4 ++++ .../lib/new_relic/metric_parser/web_frontend.rb | 4 ++++ .../lib/new_relic/metric_parser/web_service.rb | 4 ++++ .../lib/new_relic/metric_parser/web_transaction.rb | 4 ++++ 315 files changed, 1256 insertions(+), 3 deletions(-) diff --git a/init.rb b/init.rb index fd45c27dd5..e095923f0d 100644 --- a/init.rb +++ b/init.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This is the initialization for the New Relic Ruby Agent when used as # a plugin require 'new_relic/control' diff --git a/install.rb b/install.rb index 8414f3caa1..78818eef01 100644 --- a/install.rb +++ b/install.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + if __FILE__ == $0 || $0 =~ /script\/plugin/ $LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'lib')) require 'new_relic/command' diff --git a/lib/conditional_vendored_dependency_detection.rb b/lib/conditional_vendored_dependency_detection.rb index d68b039371..beefe6d263 100644 --- a/lib/conditional_vendored_dependency_detection.rb +++ b/lib/conditional_vendored_dependency_detection.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + path = File.expand_path('../vendor/gems/dependency_detection-0.0.1.build/lib', File.dirname(__FILE__)) $LOAD_PATH << path unless $LOAD_PATH.include?(path) require 'dependency_detection' diff --git a/lib/conditional_vendored_metric_parser.rb b/lib/conditional_vendored_metric_parser.rb index 55337b3531..808bf33df0 100644 --- a/lib/conditional_vendored_metric_parser.rb +++ b/lib/conditional_vendored_metric_parser.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + unless defined?(NewRelic) && defined?(NewRelic::MetricParser) vendored_metric_parser = File.expand_path('../../vendor/gems/metric_parser-0.1.0.pre1/lib/', __FILE__) $:.unshift vendored_metric_parser unless $:.include?(vendored_metric_parser) diff --git a/lib/new_relic/agent.rb b/lib/new_relic/agent.rb index e5c4566296..df83b10fac 100644 --- a/lib/new_relic/agent.rb +++ b/lib/new_relic/agent.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'forwardable' require 'new_relic/control' diff --git a/lib/new_relic/agent/agent.rb b/lib/new_relic/agent/agent.rb index 3a726bb494..4f2e50d1c6 100644 --- a/lib/new_relic/agent/agent.rb +++ b/lib/new_relic/agent/agent.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'socket' require 'net/https' require 'net/http' diff --git a/lib/new_relic/agent/agent_logger.rb b/lib/new_relic/agent/agent_logger.rb index 9405ee6146..bf22cf643e 100644 --- a/lib/new_relic/agent/agent_logger.rb +++ b/lib/new_relic/agent/agent_logger.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'logger' module NewRelic diff --git a/lib/new_relic/agent/audit_logger.rb b/lib/new_relic/agent/audit_logger.rb index c7451dc7b9..2dc9c19737 100644 --- a/lib/new_relic/agent/audit_logger.rb +++ b/lib/new_relic/agent/audit_logger.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'logger' require 'fileutils' diff --git a/lib/new_relic/agent/beacon_configuration.rb b/lib/new_relic/agent/beacon_configuration.rb index afd9940e7a..fc1b38ce65 100644 --- a/lib/new_relic/agent/beacon_configuration.rb +++ b/lib/new_relic/agent/beacon_configuration.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent # This class contains the configuration data for setting up RUM diff --git a/lib/new_relic/agent/browser_monitoring.rb b/lib/new_relic/agent/browser_monitoring.rb index bcc46db419..29b242c482 100644 --- a/lib/new_relic/agent/browser_monitoring.rb +++ b/lib/new_relic/agent/browser_monitoring.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'base64' require 'new_relic/agent/beacon_configuration' module NewRelic diff --git a/lib/new_relic/agent/busy_calculator.rb b/lib/new_relic/agent/busy_calculator.rb index 9688a2d2ff..5f1ef32b88 100644 --- a/lib/new_relic/agent/busy_calculator.rb +++ b/lib/new_relic/agent/busy_calculator.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent # This module supports calculation of actual time spent processing requests over the course of diff --git a/lib/new_relic/agent/chained_call.rb b/lib/new_relic/agent/chained_call.rb index b2a89075c7..0641953be5 100644 --- a/lib/new_relic/agent/chained_call.rb +++ b/lib/new_relic/agent/chained_call.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This class is used by NewRelic::Agent.set_sql_obfuscator to chain multiple # obfuscation blocks when not using the default :replace action class NewRelic::ChainedCall diff --git a/lib/new_relic/agent/configuration.rb b/lib/new_relic/agent/configuration.rb index 6cecf5d328..daf9d4265d 100644 --- a/lib/new_relic/agent/configuration.rb +++ b/lib/new_relic/agent/configuration.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/configuration/manager' # The agent's configuration is accessed through a configuration object exposed diff --git a/lib/new_relic/agent/configuration/defaults.rb b/lib/new_relic/agent/configuration/defaults.rb index 9fd67c10ba..e11f588123 100644 --- a/lib/new_relic/agent/configuration/defaults.rb +++ b/lib/new_relic/agent/configuration/defaults.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Configuration diff --git a/lib/new_relic/agent/configuration/environment_source.rb b/lib/new_relic/agent/configuration/environment_source.rb index 5ad8e0c97b..8c83bfed0a 100644 --- a/lib/new_relic/agent/configuration/environment_source.rb +++ b/lib/new_relic/agent/configuration/environment_source.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Configuration diff --git a/lib/new_relic/agent/configuration/manager.rb b/lib/new_relic/agent/configuration/manager.rb index 424d13a3c8..a462eeee42 100644 --- a/lib/new_relic/agent/configuration/manager.rb +++ b/lib/new_relic/agent/configuration/manager.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'forwardable' require 'new_relic/agent/configuration/defaults' require 'new_relic/agent/configuration/mask_defaults' diff --git a/lib/new_relic/agent/configuration/mask_defaults.rb b/lib/new_relic/agent/configuration/mask_defaults.rb index 620eb92808..7d3a87a05c 100644 --- a/lib/new_relic/agent/configuration/mask_defaults.rb +++ b/lib/new_relic/agent/configuration/mask_defaults.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Configuration diff --git a/lib/new_relic/agent/configuration/server_source.rb b/lib/new_relic/agent/configuration/server_source.rb index 8f42732417..ded0ade613 100644 --- a/lib/new_relic/agent/configuration/server_source.rb +++ b/lib/new_relic/agent/configuration/server_source.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Configuration diff --git a/lib/new_relic/agent/configuration/yaml_source.rb b/lib/new_relic/agent/configuration/yaml_source.rb index b602e16e17..408bca496e 100644 --- a/lib/new_relic/agent/configuration/yaml_source.rb +++ b/lib/new_relic/agent/configuration/yaml_source.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/configuration' module NewRelic diff --git a/lib/new_relic/agent/cross_app_monitor.rb b/lib/new_relic/agent/cross_app_monitor.rb index 944570597c..08d991b570 100644 --- a/lib/new_relic/agent/cross_app_monitor.rb +++ b/lib/new_relic/agent/cross_app_monitor.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/rack/agent_hooks' require 'new_relic/agent/thread' diff --git a/lib/new_relic/agent/database.rb b/lib/new_relic/agent/database.rb index 582f75c243..70ac27082a 100644 --- a/lib/new_relic/agent/database.rb +++ b/lib/new_relic/agent/database.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'singleton' module NewRelic diff --git a/lib/new_relic/agent/error_collector.rb b/lib/new_relic/agent/error_collector.rb index bcf5726c06..60b0a1bd21 100644 --- a/lib/new_relic/agent/error_collector.rb +++ b/lib/new_relic/agent/error_collector.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent # This class collects errors from the parent application, storing diff --git a/lib/new_relic/agent/event_listener.rb b/lib/new_relic/agent/event_listener.rb index 2ca9dccb20..bafd0d4c70 100644 --- a/lib/new_relic/agent/event_listener.rb +++ b/lib/new_relic/agent/event_listener.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic::Agent # Basic mechanism for the agent instance to provide agent-wide eventing. # It is intended to keep different pieces of the app decoupled from each other. diff --git a/lib/new_relic/agent/instrumentation.rb b/lib/new_relic/agent/instrumentation.rb index f3b0d52b36..1bfb21cc20 100644 --- a/lib/new_relic/agent/instrumentation.rb +++ b/lib/new_relic/agent/instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent' module NewRelic module Agent diff --git a/lib/new_relic/agent/instrumentation/active_merchant.rb b/lib/new_relic/agent/instrumentation/active_merchant.rb index 121da2601d..c918dd713c 100644 --- a/lib/new_relic/agent/instrumentation/active_merchant.rb +++ b/lib/new_relic/agent/instrumentation/active_merchant.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :active_merchant diff --git a/lib/new_relic/agent/instrumentation/active_record.rb b/lib/new_relic/agent/instrumentation/active_record.rb index 7c12743994..1cb7c94230 100644 --- a/lib/new_relic/agent/instrumentation/active_record.rb +++ b/lib/new_relic/agent/instrumentation/active_record.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Instrumentation diff --git a/lib/new_relic/agent/instrumentation/acts_as_solr.rb b/lib/new_relic/agent/instrumentation/acts_as_solr.rb index a90fa16756..5bf21bcade 100644 --- a/lib/new_relic/agent/instrumentation/acts_as_solr.rb +++ b/lib/new_relic/agent/instrumentation/acts_as_solr.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Instrumentation module ActsAsSolrInstrumentation diff --git a/lib/new_relic/agent/instrumentation/authlogic.rb b/lib/new_relic/agent/instrumentation/authlogic.rb index 2d1b9ddcfe..c9f7338eb4 100644 --- a/lib/new_relic/agent/instrumentation/authlogic.rb +++ b/lib/new_relic/agent/instrumentation/authlogic.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :authlogic diff --git a/lib/new_relic/agent/instrumentation/browser_monitoring_timings.rb b/lib/new_relic/agent/instrumentation/browser_monitoring_timings.rb index 0f70f6ecfd..af2222930a 100644 --- a/lib/new_relic/agent/instrumentation/browser_monitoring_timings.rb +++ b/lib/new_relic/agent/instrumentation/browser_monitoring_timings.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Instrumentation diff --git a/lib/new_relic/agent/instrumentation/controller_instrumentation.rb b/lib/new_relic/agent/instrumentation/controller_instrumentation.rb index 63eaef75cd..4dffbbedce 100644 --- a/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +++ b/lib/new_relic/agent/instrumentation/controller_instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation/metric_frame' require 'new_relic/agent/instrumentation/queue_time' module NewRelic diff --git a/lib/new_relic/agent/instrumentation/data_mapper.rb b/lib/new_relic/agent/instrumentation/data_mapper.rb index 01fdb1d872..bc20d52035 100644 --- a/lib/new_relic/agent/instrumentation/data_mapper.rb +++ b/lib/new_relic/agent/instrumentation/data_mapper.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + ## NewRelic instrumentation for DataMapper # # Instrumenting DM has different key challenges versus AR: diff --git a/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb b/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb index 093f3a5abb..dd9c4045fe 100644 --- a/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +++ b/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation/controller_instrumentation' DependencyDetection.defer do diff --git a/lib/new_relic/agent/instrumentation/memcache.rb b/lib/new_relic/agent/instrumentation/memcache.rb index a106832240..1bc9fb8c5a 100644 --- a/lib/new_relic/agent/instrumentation/memcache.rb +++ b/lib/new_relic/agent/instrumentation/memcache.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # NOTE there are multiple implementations of the MemCache client in Ruby, # each with slightly different API's and semantics. # See: diff --git a/lib/new_relic/agent/instrumentation/merb/controller.rb b/lib/new_relic/agent/instrumentation/merb/controller.rb index 351a192fc1..37654383ef 100644 --- a/lib/new_relic/agent/instrumentation/merb/controller.rb +++ b/lib/new_relic/agent/instrumentation/merb/controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'set' DependencyDetection.defer do diff --git a/lib/new_relic/agent/instrumentation/merb/errors.rb b/lib/new_relic/agent/instrumentation/merb/errors.rb index 07a4a7caac..01bdcbfc91 100644 --- a/lib/new_relic/agent/instrumentation/merb/errors.rb +++ b/lib/new_relic/agent/instrumentation/merb/errors.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :merb_error diff --git a/lib/new_relic/agent/instrumentation/metric_frame.rb b/lib/new_relic/agent/instrumentation/metric_frame.rb index 962d49a451..70733f15bb 100644 --- a/lib/new_relic/agent/instrumentation/metric_frame.rb +++ b/lib/new_relic/agent/instrumentation/metric_frame.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation/metric_frame/pop' # A struct holding the information required to measure a controller diff --git a/lib/new_relic/agent/instrumentation/metric_frame/pop.rb b/lib/new_relic/agent/instrumentation/metric_frame/pop.rb index ef5c6e26a2..034d5287a7 100644 --- a/lib/new_relic/agent/instrumentation/metric_frame/pop.rb +++ b/lib/new_relic/agent/instrumentation/metric_frame/pop.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation' module NewRelic module Agent diff --git a/lib/new_relic/agent/instrumentation/net.rb b/lib/new_relic/agent/instrumentation/net.rb index 080900e8f9..80b2354bd3 100644 --- a/lib/new_relic/agent/instrumentation/net.rb +++ b/lib/new_relic/agent/instrumentation/net.rb @@ -1,4 +1,7 @@ # encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :net diff --git a/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb b/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb index c2a19553d3..b5df524467 100644 --- a/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +++ b/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :passenger diff --git a/lib/new_relic/agent/instrumentation/queue_time.rb b/lib/new_relic/agent/instrumentation/queue_time.rb index b34daafc38..4e096d13ba 100644 --- a/lib/new_relic/agent/instrumentation/queue_time.rb +++ b/lib/new_relic/agent/instrumentation/queue_time.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Instrumentation diff --git a/lib/new_relic/agent/instrumentation/rack.rb b/lib/new_relic/agent/instrumentation/rack.rb index cb50e54b71..745064913b 100644 --- a/lib/new_relic/agent/instrumentation/rack.rb +++ b/lib/new_relic/agent/instrumentation/rack.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation/controller_instrumentation' module NewRelic diff --git a/lib/new_relic/agent/instrumentation/rails/action_controller.rb b/lib/new_relic/agent/instrumentation/rails/action_controller.rb index 461c45739c..2ac224fab1 100644 --- a/lib/new_relic/agent/instrumentation/rails/action_controller.rb +++ b/lib/new_relic/agent/instrumentation/rails/action_controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :rails21_view diff --git a/lib/new_relic/agent/instrumentation/rails/action_web_service.rb b/lib/new_relic/agent/instrumentation/rails/action_web_service.rb index 233ba5d752..de95c5a72e 100644 --- a/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +++ b/lib/new_relic/agent/instrumentation/rails/action_web_service.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :rails_action_web_service diff --git a/lib/new_relic/agent/instrumentation/rails/errors.rb b/lib/new_relic/agent/instrumentation/rails/errors.rb index c8dc8e7510..909bf5f718 100644 --- a/lib/new_relic/agent/instrumentation/rails/errors.rb +++ b/lib/new_relic/agent/instrumentation/rails/errors.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :rails2_error diff --git a/lib/new_relic/agent/instrumentation/rails3/action_controller.rb b/lib/new_relic/agent/instrumentation/rails3/action_controller.rb index 8a8079ebf2..61f45e1d9a 100644 --- a/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +++ b/lib/new_relic/agent/instrumentation/rails3/action_controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Instrumentation diff --git a/lib/new_relic/agent/instrumentation/rails3/errors.rb b/lib/new_relic/agent/instrumentation/rails3/errors.rb index 7300cdde45..0dd7ea6e1f 100644 --- a/lib/new_relic/agent/instrumentation/rails3/errors.rb +++ b/lib/new_relic/agent/instrumentation/rails3/errors.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent module Instrumentation diff --git a/lib/new_relic/agent/instrumentation/resque.rb b/lib/new_relic/agent/instrumentation/resque.rb index cc97dde739..2337aceb5f 100644 --- a/lib/new_relic/agent/instrumentation/resque.rb +++ b/lib/new_relic/agent/instrumentation/resque.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :resque diff --git a/lib/new_relic/agent/instrumentation/sinatra.rb b/lib/new_relic/agent/instrumentation/sinatra.rb index b031781371..881e4bae06 100644 --- a/lib/new_relic/agent/instrumentation/sinatra.rb +++ b/lib/new_relic/agent/instrumentation/sinatra.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/instrumentation/controller_instrumentation' DependencyDetection.defer do diff --git a/lib/new_relic/agent/instrumentation/sunspot.rb b/lib/new_relic/agent/instrumentation/sunspot.rb index 1cf5e9e09b..f73901c0df 100644 --- a/lib/new_relic/agent/instrumentation/sunspot.rb +++ b/lib/new_relic/agent/instrumentation/sunspot.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :sunspot diff --git a/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb b/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb index 0843c2a4e1..431a0c270d 100644 --- a/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +++ b/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + DependencyDetection.defer do @name = :unicorn diff --git a/lib/new_relic/agent/method_tracer.rb b/lib/new_relic/agent/method_tracer.rb index 315b70735b..64f1d5e3e1 100644 --- a/lib/new_relic/agent/method_tracer.rb +++ b/lib/new_relic/agent/method_tracer.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control' module NewRelic module Agent diff --git a/lib/new_relic/agent/new_relic_service.rb b/lib/new_relic/agent/new_relic_service.rb index 54fbe4e647..40204716c0 100644 --- a/lib/new_relic/agent/new_relic_service.rb +++ b/lib/new_relic/agent/new_relic_service.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'zlib' require 'new_relic/agent/audit_logger' diff --git a/lib/new_relic/agent/pipe_channel_manager.rb b/lib/new_relic/agent/pipe_channel_manager.rb index 3cf888fcc0..e5fbc012da 100644 --- a/lib/new_relic/agent/pipe_channel_manager.rb +++ b/lib/new_relic/agent/pipe_channel_manager.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'base64' module NewRelic diff --git a/lib/new_relic/agent/pipe_service.rb b/lib/new_relic/agent/pipe_service.rb index 2ee31ae336..b748a805dc 100644 --- a/lib/new_relic/agent/pipe_service.rb +++ b/lib/new_relic/agent/pipe_service.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent class PipeService diff --git a/lib/new_relic/agent/rules_engine.rb b/lib/new_relic/agent/rules_engine.rb index 66370fd6c7..7bf6722f8f 100644 --- a/lib/new_relic/agent/rules_engine.rb +++ b/lib/new_relic/agent/rules_engine.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent class RulesEngine diff --git a/lib/new_relic/agent/sampler.rb b/lib/new_relic/agent/sampler.rb index beb95c42d5..5e4f8d7ab2 100644 --- a/lib/new_relic/agent/sampler.rb +++ b/lib/new_relic/agent/sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # A Sampler is used to capture meaningful metrics in a background thread # periodically. They will either be invoked once a minute just before the # data is sent to the agent (default) or every 10 seconds, when #use_harvest_sampler? diff --git a/lib/new_relic/agent/samplers/cpu_sampler.rb b/lib/new_relic/agent/samplers/cpu_sampler.rb index 62dc08f7fa..234f20a167 100644 --- a/lib/new_relic/agent/samplers/cpu_sampler.rb +++ b/lib/new_relic/agent/samplers/cpu_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/sampler' module NewRelic diff --git a/lib/new_relic/agent/samplers/delayed_job_sampler.rb b/lib/new_relic/agent/samplers/delayed_job_sampler.rb index b4839d46ef..5c4d2272a0 100644 --- a/lib/new_relic/agent/samplers/delayed_job_sampler.rb +++ b/lib/new_relic/agent/samplers/delayed_job_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/sampler' require 'new_relic/delayed_job_injection' diff --git a/lib/new_relic/agent/samplers/memory_sampler.rb b/lib/new_relic/agent/samplers/memory_sampler.rb index 77412ccc3c..a58fafff82 100644 --- a/lib/new_relic/agent/samplers/memory_sampler.rb +++ b/lib/new_relic/agent/samplers/memory_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/sampler' module NewRelic diff --git a/lib/new_relic/agent/samplers/object_sampler.rb b/lib/new_relic/agent/samplers/object_sampler.rb index ba375cf313..75fa811b49 100644 --- a/lib/new_relic/agent/samplers/object_sampler.rb +++ b/lib/new_relic/agent/samplers/object_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/sampler' module NewRelic diff --git a/lib/new_relic/agent/shim_agent.rb b/lib/new_relic/agent/shim_agent.rb index 1f9e7926ef..9a2c4e6f2a 100644 --- a/lib/new_relic/agent/shim_agent.rb +++ b/lib/new_relic/agent/shim_agent.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This agent is loaded by the plug when the plug-in is disabled # It recreates just enough of the API to not break any clients that # invoke the Agent. diff --git a/lib/new_relic/agent/sql_sampler.rb b/lib/new_relic/agent/sql_sampler.rb index 8f7abd8a5f..d413d3994a 100644 --- a/lib/new_relic/agent/sql_sampler.rb +++ b/lib/new_relic/agent/sql_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'zlib' require 'base64' require 'digest/md5' diff --git a/lib/new_relic/agent/stats_engine.rb b/lib/new_relic/agent/stats_engine.rb index 617c50e4f8..92d0998f45 100644 --- a/lib/new_relic/agent/stats_engine.rb +++ b/lib/new_relic/agent/stats_engine.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/stats_engine/metric_stats' require 'new_relic/agent/stats_engine/samplers' require 'new_relic/agent/stats_engine/transactions' diff --git a/lib/new_relic/agent/stats_engine/gc_profiler.rb b/lib/new_relic/agent/stats_engine/gc_profiler.rb index 9025a544fa..38a133b9f9 100644 --- a/lib/new_relic/agent/stats_engine/gc_profiler.rb +++ b/lib/new_relic/agent/stats_engine/gc_profiler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # -*- coding: utf-8 -*- module NewRelic module Agent diff --git a/lib/new_relic/agent/stats_engine/metric_stats.rb b/lib/new_relic/agent/stats_engine/metric_stats.rb index 5e058b7db0..b4c8477353 100644 --- a/lib/new_relic/agent/stats_engine/metric_stats.rb +++ b/lib/new_relic/agent/stats_engine/metric_stats.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/language_support' module NewRelic diff --git a/lib/new_relic/agent/stats_engine/samplers.rb b/lib/new_relic/agent/stats_engine/samplers.rb index 732794e7a1..cad1bd75a0 100644 --- a/lib/new_relic/agent/stats_engine/samplers.rb +++ b/lib/new_relic/agent/stats_engine/samplers.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent class StatsEngine diff --git a/lib/new_relic/agent/stats_engine/stats_hash.rb b/lib/new_relic/agent/stats_engine/stats_hash.rb index ce1a864f4a..f28e38681d 100644 --- a/lib/new_relic/agent/stats_engine/stats_hash.rb +++ b/lib/new_relic/agent/stats_engine/stats_hash.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # A Hash-descended class for storing metric data in the NewRelic Agent. # # Keys are NewRelic::MetricSpec objects. diff --git a/lib/new_relic/agent/stats_engine/transactions.rb b/lib/new_relic/agent/stats_engine/transactions.rb index fba9a00b9e..2ea3b3284b 100644 --- a/lib/new_relic/agent/stats_engine/transactions.rb +++ b/lib/new_relic/agent/stats_engine/transactions.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # -*- coding: utf-8 -*- module NewRelic module Agent diff --git a/lib/new_relic/agent/thread.rb b/lib/new_relic/agent/thread.rb index c4c6f4f065..f12c08535a 100644 --- a/lib/new_relic/agent/thread.rb +++ b/lib/new_relic/agent/thread.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Agent diff --git a/lib/new_relic/agent/thread_profiler.rb b/lib/new_relic/agent/thread_profiler.rb index fedd6ba540..883759100d 100644 --- a/lib/new_relic/agent/thread_profiler.rb +++ b/lib/new_relic/agent/thread_profiler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/thread' require 'new_relic/agent/worker_loop' diff --git a/lib/new_relic/agent/transaction_info.rb b/lib/new_relic/agent/transaction_info.rb index 55ba321e8e..164bac8913 100644 --- a/lib/new_relic/agent/transaction_info.rb +++ b/lib/new_relic/agent/transaction_info.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'erb' module NewRelic diff --git a/lib/new_relic/agent/transaction_sample_builder.rb b/lib/new_relic/agent/transaction_sample_builder.rb index 7222e96351..7f83f1d4fa 100644 --- a/lib/new_relic/agent/transaction_sample_builder.rb +++ b/lib/new_relic/agent/transaction_sample_builder.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/collection_helper' require 'new_relic/transaction_sample' require 'new_relic/control' diff --git a/lib/new_relic/agent/transaction_sampler.rb b/lib/new_relic/agent/transaction_sampler.rb index e9e0e6b316..72d97434fd 100644 --- a/lib/new_relic/agent/transaction_sampler.rb +++ b/lib/new_relic/agent/transaction_sampler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent' require 'new_relic/control' require 'new_relic/agent/transaction_sample_builder' diff --git a/lib/new_relic/agent/worker_loop.rb b/lib/new_relic/agent/worker_loop.rb index 22813d25ae..54d4143ae4 100644 --- a/lib/new_relic/agent/worker_loop.rb +++ b/lib/new_relic/agent/worker_loop.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'thread' module NewRelic module Agent diff --git a/lib/new_relic/coerce.rb b/lib/new_relic/coerce.rb index 3af96a8ba5..46e4db1469 100644 --- a/lib/new_relic/coerce.rb +++ b/lib/new_relic/coerce.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic # We really don't want to send bad values to the collector, and it doesn't # accept types like Rational that have occasionally slipped into our data. diff --git a/lib/new_relic/collection_helper.rb b/lib/new_relic/collection_helper.rb index 2abd7c96c3..a240ab479a 100644 --- a/lib/new_relic/collection_helper.rb +++ b/lib/new_relic/collection_helper.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control' module NewRelic diff --git a/lib/new_relic/command.rb b/lib/new_relic/command.rb index ae5d8cea5e..809414f5ea 100644 --- a/lib/new_relic/command.rb +++ b/lib/new_relic/command.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'optparse' # Run the command given by the first argument. Right diff --git a/lib/new_relic/commands/deployments.rb b/lib/new_relic/commands/deployments.rb index a2753ef3cb..3fef35cf69 100644 --- a/lib/new_relic/commands/deployments.rb +++ b/lib/new_relic/commands/deployments.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This is a class for executing commands related to deployment # events. It runs without loading the rails environment diff --git a/lib/new_relic/commands/install.rb b/lib/new_relic/commands/install.rb index 361375c9bb..bbd18a21fe 100644 --- a/lib/new_relic/commands/install.rb +++ b/lib/new_relic/commands/install.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'fileutils' require 'new_relic/version' require 'erb' diff --git a/lib/new_relic/control.rb b/lib/new_relic/control.rb index 9ac749e700..7ccb67f72e 100644 --- a/lib/new_relic/control.rb +++ b/lib/new_relic/control.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'yaml' require 'conditional_vendored_metric_parser' require 'conditional_vendored_dependency_detection' diff --git a/lib/new_relic/control/class_methods.rb b/lib/new_relic/control/class_methods.rb index ac93c0978f..a6a038548f 100644 --- a/lib/new_relic/control/class_methods.rb +++ b/lib/new_relic/control/class_methods.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control # class-level methods for lazy creation of NewRelic::Control and diff --git a/lib/new_relic/control/frameworks.rb b/lib/new_relic/control/frameworks.rb index 5950b7754e..36056a6d39 100644 --- a/lib/new_relic/control/frameworks.rb +++ b/lib/new_relic/control/frameworks.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control # Contains subclasses of NewRelic::Control that are used when diff --git a/lib/new_relic/control/frameworks/external.rb b/lib/new_relic/control/frameworks/external.rb index d5a88d1d49..62dbc4f094 100755 --- a/lib/new_relic/control/frameworks/external.rb +++ b/lib/new_relic/control/frameworks/external.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/ruby' module NewRelic class Control diff --git a/lib/new_relic/control/frameworks/merb.rb b/lib/new_relic/control/frameworks/merb.rb index cce7efcf7c..ec0059ecb2 100644 --- a/lib/new_relic/control/frameworks/merb.rb +++ b/lib/new_relic/control/frameworks/merb.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control module Frameworks diff --git a/lib/new_relic/control/frameworks/rails.rb b/lib/new_relic/control/frameworks/rails.rb index 3ed3aab4b7..14f3ced73b 100644 --- a/lib/new_relic/control/frameworks/rails.rb +++ b/lib/new_relic/control/frameworks/rails.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/ruby' module NewRelic class Control diff --git a/lib/new_relic/control/frameworks/rails3.rb b/lib/new_relic/control/frameworks/rails3.rb index 30213af55e..ccb0edde77 100644 --- a/lib/new_relic/control/frameworks/rails3.rb +++ b/lib/new_relic/control/frameworks/rails3.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/rails' require 'new_relic/rack/error_collector' module NewRelic diff --git a/lib/new_relic/control/frameworks/rails4.rb b/lib/new_relic/control/frameworks/rails4.rb index 6db6803d4d..d16a348ca1 100644 --- a/lib/new_relic/control/frameworks/rails4.rb +++ b/lib/new_relic/control/frameworks/rails4.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/rails3' require 'new_relic/rack/error_collector' module NewRelic diff --git a/lib/new_relic/control/frameworks/ruby.rb b/lib/new_relic/control/frameworks/ruby.rb index d094d652cb..a205a0e59d 100644 --- a/lib/new_relic/control/frameworks/ruby.rb +++ b/lib/new_relic/control/frameworks/ruby.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control module Frameworks diff --git a/lib/new_relic/control/frameworks/sinatra.rb b/lib/new_relic/control/frameworks/sinatra.rb index 8f33e3f808..6b6c22cc64 100755 --- a/lib/new_relic/control/frameworks/sinatra.rb +++ b/lib/new_relic/control/frameworks/sinatra.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/ruby' module NewRelic diff --git a/lib/new_relic/control/instance_methods.rb b/lib/new_relic/control/instance_methods.rb index 46b48e0f23..d82917823d 100644 --- a/lib/new_relic/control/instance_methods.rb +++ b/lib/new_relic/control/instance_methods.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/language_support' require 'new_relic/agent/agent_logger' diff --git a/lib/new_relic/control/instrumentation.rb b/lib/new_relic/control/instrumentation.rb index 9056d0abda..7675ed2d69 100644 --- a/lib/new_relic/control/instrumentation.rb +++ b/lib/new_relic/control/instrumentation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control # Contains methods that relate to adding and executing files that diff --git a/lib/new_relic/control/profiling.rb b/lib/new_relic/control/profiling.rb index 59aa30f22e..c0966fb066 100644 --- a/lib/new_relic/control/profiling.rb +++ b/lib/new_relic/control/profiling.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control module Profiling diff --git a/lib/new_relic/control/server_methods.rb b/lib/new_relic/control/server_methods.rb index a5772973e4..275bcc2985 100644 --- a/lib/new_relic/control/server_methods.rb +++ b/lib/new_relic/control/server_methods.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Control diff --git a/lib/new_relic/delayed_job_injection.rb b/lib/new_relic/delayed_job_injection.rb index 1372de0da6..df42279e1c 100644 --- a/lib/new_relic/delayed_job_injection.rb +++ b/lib/new_relic/delayed_job_injection.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'dependency_detection' # This installs some code to manually start the agent when a delayed # job worker starts. It's not really instrumentation. It's more like diff --git a/lib/new_relic/helper.rb b/lib/new_relic/helper.rb index c27c65782e..8d7ee28200 100644 --- a/lib/new_relic/helper.rb +++ b/lib/new_relic/helper.rb @@ -1,4 +1,7 @@ -#encoding: utf-8 +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic # A singleton for shared generic helper methods diff --git a/lib/new_relic/language_support.rb b/lib/new_relic/language_support.rb index 6283780589..5fda5a5a31 100644 --- a/lib/new_relic/language_support.rb +++ b/lib/new_relic/language_support.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic::LanguageSupport extend self diff --git a/lib/new_relic/latest_changes.rb b/lib/new_relic/latest_changes.rb index fca1c08bca..d311aabb28 100644 --- a/lib/new_relic/latest_changes.rb +++ b/lib/new_relic/latest_changes.rb @@ -1,4 +1,8 @@ #!/usr/bin/ruby +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module LatestChanges diff --git a/lib/new_relic/local_environment.rb b/lib/new_relic/local_environment.rb index d86f52d1b8..75a08620c6 100644 --- a/lib/new_relic/local_environment.rb +++ b/lib/new_relic/local_environment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'set' require 'new_relic/version' diff --git a/lib/new_relic/merbtasks.rb b/lib/new_relic/merbtasks.rb index 42fcd3898f..8784cd2b79 100644 --- a/lib/new_relic/merbtasks.rb +++ b/lib/new_relic/merbtasks.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + namespace :newrelic do desc "Install the developer mode newrelic.yml file" task :default do diff --git a/lib/new_relic/metric_data.rb b/lib/new_relic/metric_data.rb index e41ebd2242..262372b9e1 100644 --- a/lib/new_relic/metric_data.rb +++ b/lib/new_relic/metric_data.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/coerce' module NewRelic diff --git a/lib/new_relic/metric_spec.rb b/lib/new_relic/metric_spec.rb index cb489ffaa0..cb9cb41108 100644 --- a/lib/new_relic/metric_spec.rb +++ b/lib/new_relic/metric_spec.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # this struct uniquely defines a metric, optionally inside # the call scope of another metric class NewRelic::MetricSpec diff --git a/lib/new_relic/metrics.rb b/lib/new_relic/metrics.rb index 8fbb6a91db..287b5f98f3 100644 --- a/lib/new_relic/metrics.rb +++ b/lib/new_relic/metrics.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Metrics CONTROLLER = "Controller" diff --git a/lib/new_relic/noticed_error.rb b/lib/new_relic/noticed_error.rb index 391fcd992c..37de16804d 100644 --- a/lib/new_relic/noticed_error.rb +++ b/lib/new_relic/noticed_error.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/helper' # This class encapsulates an error that was noticed by New Relic in a managed app. diff --git a/lib/new_relic/okjson.rb b/lib/new_relic/okjson.rb index c1250f0daf..5d9b71a2f7 100644 --- a/lib/new_relic/okjson.rb +++ b/lib/new_relic/okjson.rb @@ -1,4 +1,7 @@ -# encoding: UTF-8 +# encoding: utf-8 +# This file is distributed under okjson's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # # Copyright 2011, 2012 Keith Rarick # diff --git a/lib/new_relic/rack.rb b/lib/new_relic/rack.rb index b59e9e1c38..edeb07a17e 100644 --- a/lib/new_relic/rack.rb +++ b/lib/new_relic/rack.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module Rack end diff --git a/lib/new_relic/rack/agent_hooks.rb b/lib/new_relic/rack/agent_hooks.rb index 00b3984c19..86e66a0447 100644 --- a/lib/new_relic/rack/agent_hooks.rb +++ b/lib/new_relic/rack/agent_hooks.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/agent/event_listener' module NewRelic::Rack diff --git a/lib/new_relic/rack/browser_monitoring.rb b/lib/new_relic/rack/browser_monitoring.rb index 51aade5958..d27b8cc168 100644 --- a/lib/new_relic/rack/browser_monitoring.rb +++ b/lib/new_relic/rack/browser_monitoring.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rack' module NewRelic::Rack diff --git a/lib/new_relic/rack/developer_mode.rb b/lib/new_relic/rack/developer_mode.rb index 565ccac88a..c53f94eb0b 100644 --- a/lib/new_relic/rack/developer_mode.rb +++ b/lib/new_relic/rack/developer_mode.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rack' require 'rack/request' require 'rack/response' diff --git a/lib/new_relic/rack/error_collector.rb b/lib/new_relic/rack/error_collector.rb index 876db16412..d6ad1b80b6 100644 --- a/lib/new_relic/rack/error_collector.rb +++ b/lib/new_relic/rack/error_collector.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic::Rack class ErrorCollector def initialize(app, options={}) diff --git a/lib/new_relic/recipes.rb b/lib/new_relic/recipes.rb index 725fb7fcf3..6ead872490 100644 --- a/lib/new_relic/recipes.rb +++ b/lib/new_relic/recipes.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # When installed as a plugin this is loaded automatically. # # When installed as a gem, you need to add diff --git a/lib/new_relic/stats.rb b/lib/new_relic/stats.rb index e8e930d8de..54dc2c44f9 100644 --- a/lib/new_relic/stats.rb +++ b/lib/new_relic/stats.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic class Stats attr_accessor :call_count diff --git a/lib/new_relic/timer_lib.rb b/lib/new_relic/timer_lib.rb index fa8a3fda19..bdb6fa32b3 100644 --- a/lib/new_relic/timer_lib.rb +++ b/lib/new_relic/timer_lib.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Copyright: (C) 2008 David Vollbracht & Philippe Hanrigou # This code was borrowed from the system_timer gem under the terms diff --git a/lib/new_relic/transaction_analysis.rb b/lib/new_relic/transaction_analysis.rb index d530e90e4d..0240167990 100644 --- a/lib/new_relic/transaction_analysis.rb +++ b/lib/new_relic/transaction_analysis.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/transaction_analysis/segment_summary' # Add these methods to TransactionSample that enable performance analysis in the user interface. module NewRelic diff --git a/lib/new_relic/transaction_analysis/segment_summary.rb b/lib/new_relic/transaction_analysis/segment_summary.rb index 7c43103d2e..7d74859a1b 100644 --- a/lib/new_relic/transaction_analysis/segment_summary.rb +++ b/lib/new_relic/transaction_analysis/segment_summary.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module TransactionAnalysis # summarizes performance data for all calls to segments diff --git a/lib/new_relic/transaction_sample.rb b/lib/new_relic/transaction_sample.rb index 059ec115ad..61129c7520 100644 --- a/lib/new_relic/transaction_sample.rb +++ b/lib/new_relic/transaction_sample.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'base64' require 'new_relic/transaction_sample/segment' diff --git a/lib/new_relic/transaction_sample/composite_segment.rb b/lib/new_relic/transaction_sample/composite_segment.rb index 144457b06e..1283e861c9 100644 --- a/lib/new_relic/transaction_sample/composite_segment.rb +++ b/lib/new_relic/transaction_sample/composite_segment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/transaction_sample' require 'new_relic/transaction_sample/segment' require 'new_relic/transaction_sample/summary_segment' diff --git a/lib/new_relic/transaction_sample/fake_segment.rb b/lib/new_relic/transaction_sample/fake_segment.rb index 2d103fd32b..6873281df4 100644 --- a/lib/new_relic/transaction_sample/fake_segment.rb +++ b/lib/new_relic/transaction_sample/fake_segment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/transaction_sample' require 'new_relic/transaction_sample/segment' module NewRelic diff --git a/lib/new_relic/transaction_sample/segment.rb b/lib/new_relic/transaction_sample/segment.rb index 4d4498ff9e..68a9328d33 100644 --- a/lib/new_relic/transaction_sample/segment.rb +++ b/lib/new_relic/transaction_sample/segment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/transaction_sample' module NewRelic diff --git a/lib/new_relic/transaction_sample/summary_segment.rb b/lib/new_relic/transaction_sample/summary_segment.rb index bad5a5db08..1caad9dafb 100644 --- a/lib/new_relic/transaction_sample/summary_segment.rb +++ b/lib/new_relic/transaction_sample/summary_segment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/transaction_sample' require 'new_relic/transaction_sample/segment' module NewRelic diff --git a/lib/new_relic/url_rule.rb b/lib/new_relic/url_rule.rb index 948dd07292..e70281ea2f 100644 --- a/lib/new_relic/url_rule.rb +++ b/lib/new_relic/url_rule.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Represents url mapping rules stored on the server. These rules should be applied # to URLs which are not normalized into controller class/action by Rails routes. # Insantiated strictly by Marshal. diff --git a/lib/new_relic/version.rb b/lib/new_relic/version.rb index 9eeb4b0991..7600cf0842 100644 --- a/lib/new_relic/version.rb +++ b/lib/new_relic/version.rb @@ -1,4 +1,8 @@ #!/usr/bin/ruby +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module VERSION #:nodoc: diff --git a/lib/newrelic_rpm.rb b/lib/newrelic_rpm.rb index 4f47ab3b54..85833e4252 100644 --- a/lib/newrelic_rpm.rb +++ b/lib/newrelic_rpm.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # == New Relic Initialization # # When installed as a gem, you can activate the New Relic agent one of the following ways: diff --git a/lib/tasks/all.rb b/lib/tasks/all.rb index cad582df1e..169d7f75fa 100644 --- a/lib/tasks/all.rb +++ b/lib/tasks/all.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This is required to load in task definitions from merb Dir.glob(File.join(File.dirname(__FILE__),'*.rake')) do |file| load file diff --git a/recipes/newrelic.rb b/recipes/newrelic.rb index f8dd7014b8..24832078e8 100644 --- a/recipes/newrelic.rb +++ b/recipes/newrelic.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # The capistrano recipes in plugins are automatically # loaded from here. From gems, they are available from # the lib directory. We have to make them available from diff --git a/test/active_record_fixtures.rb b/test/active_record_fixtures.rb index 9033457541..19e72b3cb9 100644 --- a/test/active_record_fixtures.rb +++ b/test/active_record_fixtures.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Some test models # These will get created and dropped during the active record tests # Be sure and call setup and teardown diff --git a/test/config/test_control.rb b/test/config/test_control.rb index b5e96b533d..a459545800 100644 --- a/test/config/test_control.rb +++ b/test/config/test_control.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/control/frameworks/rails' require 'new_relic/control/frameworks/rails3' require 'new_relic/control/frameworks/rails4' diff --git a/test/intentional_fail.rb b/test/intentional_fail.rb index a902df325e..4a76bb76c9 100644 --- a/test/intentional_fail.rb +++ b/test/intentional_fail.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class IntentionalFail < Test::Unit::TestCase diff --git a/test/multiverse/lib/multiverse/color.rb b/test/multiverse/lib/multiverse/color.rb index 44fcdb093a..4516a97766 100644 --- a/test/multiverse/lib/multiverse/color.rb +++ b/test/multiverse/lib/multiverse/color.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module Multiverse module Color def red(string) diff --git a/test/multiverse/lib/multiverse/envfile.rb b/test/multiverse/lib/multiverse/envfile.rb index cb6b6f8ceb..764d65b53d 100644 --- a/test/multiverse/lib/multiverse/envfile.rb +++ b/test/multiverse/lib/multiverse/envfile.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module Multiverse # Reads an envfile.rb and converts it into gemfiles that can be used by # bundler diff --git a/test/multiverse/lib/multiverse/environment.rb b/test/multiverse/lib/multiverse/environment.rb index 559402c44e..5de5188fb2 100644 --- a/test/multiverse/lib/multiverse/environment.rb +++ b/test/multiverse/lib/multiverse/environment.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'fileutils' require 'test/unit' module Multiverse diff --git a/test/multiverse/lib/multiverse/output_collector.rb b/test/multiverse/lib/multiverse/output_collector.rb index 83c6f268b5..70f5dcb87d 100644 --- a/test/multiverse/lib/multiverse/output_collector.rb +++ b/test/multiverse/lib/multiverse/output_collector.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # This module is responsible for intercepting output made through various stdlib # calls (i.e. puts, print, etc.) and printing summary information (e.g. a list # of failing tests) at the end of the process. diff --git a/test/multiverse/lib/multiverse/runner.rb b/test/multiverse/lib/multiverse/runner.rb index 863ba120f9..5a9c4023a1 100644 --- a/test/multiverse/lib/multiverse/runner.rb +++ b/test/multiverse/lib/multiverse/runner.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module Multiverse module Runner extend self diff --git a/test/multiverse/lib/multiverse/suite.rb b/test/multiverse/lib/multiverse/suite.rb index 2fe02468b0..24911184ee 100755 --- a/test/multiverse/lib/multiverse/suite.rb +++ b/test/multiverse/lib/multiverse/suite.rb @@ -1,4 +1,8 @@ #!/usr/bin/env ruby +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), 'environment')) module Multiverse class Suite diff --git a/test/multiverse/suites/active_record/ar_method_aliasing.rb b/test/multiverse/suites/active_record/ar_method_aliasing.rb index 471b7b1e6d..d45806f5cb 100644 --- a/test/multiverse/suites/active_record/ar_method_aliasing.rb +++ b/test/multiverse/suites/active_record/ar_method_aliasing.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rubygems' diff --git a/test/multiverse/suites/active_record/encoding_test.rb b/test/multiverse/suites/active_record/encoding_test.rb index 228473ad42..492a668ef9 100644 --- a/test/multiverse/suites/active_record/encoding_test.rb +++ b/test/multiverse/suites/active_record/encoding_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://support.newrelic.com/tickets/2101 # https://github.com/newrelic/rpm/pull/42 # https://github.com/newrelic/rpm/pull/45 diff --git a/test/multiverse/suites/agent_only/audit_log_test.rb b/test/multiverse/suites/agent_only/audit_log_test.rb index 303df4a554..7ccb38b386 100644 --- a/test/multiverse/suites/agent_only/audit_log_test.rb +++ b/test/multiverse/suites/agent_only/audit_log_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # RUBY-981 Audit Log require 'newrelic_rpm' diff --git a/test/multiverse/suites/agent_only/cross_application_tracing_test.rb b/test/multiverse/suites/agent_only/cross_application_tracing_test.rb index b0efc5b7fb..ad66f75294 100644 --- a/test/multiverse/suites/agent_only/cross_application_tracing_test.rb +++ b/test/multiverse/suites/agent_only/cross_application_tracing_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rack/test' require 'fake_collector' require './testing_app' diff --git a/test/multiverse/suites/agent_only/http_response_code_test.rb b/test/multiverse/suites/agent_only/http_response_code_test.rb index 962b7ba479..13095069fa 100644 --- a/test/multiverse/suites/agent_only/http_response_code_test.rb +++ b/test/multiverse/suites/agent_only/http_response_code_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/browse/RUBY-765 require 'fake_collector' diff --git a/test/multiverse/suites/agent_only/key_transactions_test.rb b/test/multiverse/suites/agent_only/key_transactions_test.rb index ca52db2996..559b87055b 100644 --- a/test/multiverse/suites/agent_only/key_transactions_test.rb +++ b/test/multiverse/suites/agent_only/key_transactions_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class KeyTransactionsTest < Test::Unit::TestCase class TestWidget include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation diff --git a/test/multiverse/suites/agent_only/logging_test.rb b/test/multiverse/suites/agent_only/logging_test.rb index a307ea8d2f..47fb32ae93 100644 --- a/test/multiverse/suites/agent_only/logging_test.rb +++ b/test/multiverse/suites/agent_only/logging_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # RUBY-980 Improve logging # This test suite is for checking IMPORTANT conditions that we log rather than # trying to do this via brittle unit tests diff --git a/test/multiverse/suites/agent_only/marshaling_test.rb b/test/multiverse/suites/agent_only/marshaling_test.rb index eaaf300d8c..848883203c 100644 --- a/test/multiverse/suites/agent_only/marshaling_test.rb +++ b/test/multiverse/suites/agent_only/marshaling_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/wiki/display/eng/The+Terror+and+Glory+of+Transaction+Traces # https://newrelic.atlassian.net/browse/RUBY-914 diff --git a/test/multiverse/suites/agent_only/method_visibility_test.rb b/test/multiverse/suites/agent_only/method_visibility_test.rb index ae49128098..5b96fad7fc 100644 --- a/test/multiverse/suites/agent_only/method_visibility_test.rb +++ b/test/multiverse/suites/agent_only/method_visibility_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'multiverse/color' class MethodVisibilityTest < Test::Unit::TestCase diff --git a/test/multiverse/suites/agent_only/no_dns_resolv.rb b/test/multiverse/suites/agent_only/no_dns_resolv.rb index bb19a3fb32..81e0e4970d 100644 --- a/test/multiverse/suites/agent_only/no_dns_resolv.rb +++ b/test/multiverse/suites/agent_only/no_dns_resolv.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NoDnsResolv < Test::Unit::TestCase def test_should_no_resolve_hostname_when_agent_is_disabled diff --git a/test/multiverse/suites/agent_only/pipe_manager_test.rb b/test/multiverse/suites/agent_only/pipe_manager_test.rb index b2ab4b64ec..d168de331a 100644 --- a/test/multiverse/suites/agent_only/pipe_manager_test.rb +++ b/test/multiverse/suites/agent_only/pipe_manager_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/browse/RUBY-669 class PipeManagerTest < Test::Unit::TestCase diff --git a/test/multiverse/suites/agent_only/rename_rule_test.rb b/test/multiverse/suites/agent_only/rename_rule_test.rb index 151427986f..321da256cc 100644 --- a/test/multiverse/suites/agent_only/rename_rule_test.rb +++ b/test/multiverse/suites/agent_only/rename_rule_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class RenameRuleTest < Test::Unit::TestCase class TestWidget include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation diff --git a/test/multiverse/suites/agent_only/rum_instrumentation_test.rb b/test/multiverse/suites/agent_only/rum_instrumentation_test.rb index cd04ad7a4a..3d1d8b2efa 100644 --- a/test/multiverse/suites/agent_only/rum_instrumentation_test.rb +++ b/test/multiverse/suites/agent_only/rum_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rack/test' require 'new_relic/rack/browser_monitoring' require './testing_app' diff --git a/test/multiverse/suites/agent_only/service_timeout_test.rb b/test/multiverse/suites/agent_only/service_timeout_test.rb index 347002f512..f8aedd6e38 100644 --- a/test/multiverse/suites/agent_only/service_timeout_test.rb +++ b/test/multiverse/suites/agent_only/service_timeout_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'socket' class ServiceTimeoutTest < Test::Unit::TestCase diff --git a/test/multiverse/suites/agent_only/ssl_test.rb b/test/multiverse/suites/agent_only/ssl_test.rb index c393634310..0899150524 100644 --- a/test/multiverse/suites/agent_only/ssl_test.rb +++ b/test/multiverse/suites/agent_only/ssl_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class SSLTest < Test::Unit::TestCase def setup diff --git a/test/multiverse/suites/agent_only/start_up_test.rb b/test/multiverse/suites/agent_only/start_up_test.rb index 6d25269fc3..06631993c6 100644 --- a/test/multiverse/suites/agent_only/start_up_test.rb +++ b/test/multiverse/suites/agent_only/start_up_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # RUBY-839 make sure there is no STDOUT chatter require 'open3' diff --git a/test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb b/test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb index a181441307..4ce3f7b0e1 100644 --- a/test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb +++ b/test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' require 'newrelic_rpm' diff --git a/test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb b/test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb index 82a095155b..5f2517be88 100644 --- a/test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb +++ b/test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' require 'newrelic_rpm' diff --git a/test/multiverse/suites/agent_only/testing_app.rb b/test/multiverse/suites/agent_only/testing_app.rb index e4b2af41af..2b8714acd9 100644 --- a/test/multiverse/suites/agent_only/testing_app.rb +++ b/test/multiverse/suites/agent_only/testing_app.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class TestingApp attr_accessor :response, :headers diff --git a/test/multiverse/suites/agent_only/thread_profiling_test.rb b/test/multiverse/suites/agent_only/thread_profiling_test.rb index d296f7726f..9b97a93c43 100644 --- a/test/multiverse/suites/agent_only/thread_profiling_test.rb +++ b/test/multiverse/suites/agent_only/thread_profiling_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/wiki/display/eng/Agent+Thread+Profiling # https://newrelic.atlassian.net/browse/RUBY-917 diff --git a/test/multiverse/suites/config_file_loading/config_file_loading_test.rb b/test/multiverse/suites/config_file_loading/config_file_loading_test.rb index 74addeff8e..5cce1572c0 100644 --- a/test/multiverse/suites/config_file_loading/config_file_loading_test.rb +++ b/test/multiverse/suites/config_file_loading/config_file_loading_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Test the logic for loading the newrelic.yml config file. # # We will look at (in this priority): diff --git a/test/multiverse/suites/datamapper/encoding_test.rb b/test/multiverse/suites/datamapper/encoding_test.rb index a18433596d..5ee9c2be4e 100644 --- a/test/multiverse/suites/datamapper/encoding_test.rb +++ b/test/multiverse/suites/datamapper/encoding_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://support.newrelic.com/tickets/2101 # https://github.com/newrelic/rpm/pull/42 # https://github.com/newrelic/rpm/pull/45 diff --git a/test/multiverse/suites/rails/app.rb b/test/multiverse/suites/rails/app.rb index 9011b0ba5f..f147ca745f 100644 --- a/test/multiverse/suites/rails/app.rb +++ b/test/multiverse/suites/rails/app.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'action_controller/railtie' # We define our single Rails application here, one time, upon the first inclusion diff --git a/test/multiverse/suites/rails/error_tracing_test.rb b/test/multiverse/suites/rails/error_tracing_test.rb index 8f36448b49..da5eb26eea 100644 --- a/test/multiverse/suites/rails/error_tracing_test.rb +++ b/test/multiverse/suites/rails/error_tracing_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/browse/RUBY-747 require 'rails/test_help' diff --git a/test/multiverse/suites/rails/gc_instrumentation_test.rb b/test/multiverse/suites/rails/gc_instrumentation_test.rb index 4f65cd9c6b..f88ae5e3c9 100644 --- a/test/multiverse/suites/rails/gc_instrumentation_test.rb +++ b/test/multiverse/suites/rails/gc_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require './app' # GC instrumentation only works with REE or 1.9.x diff --git a/test/multiverse/suites/rails/queue_time_test.rb b/test/multiverse/suites/rails/queue_time_test.rb index 465bb5c654..87b6e6319b 100644 --- a/test/multiverse/suites/rails/queue_time_test.rb +++ b/test/multiverse/suites/rails/queue_time_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/browse/RUBY-927 require 'rails/test_help' diff --git a/test/multiverse/suites/rails/view_instrumentation_test.rb b/test/multiverse/suites/rails/view_instrumentation_test.rb index 3bdbb8851b..8538d6c8c2 100644 --- a/test/multiverse/suites/rails/view_instrumentation_test.rb +++ b/test/multiverse/suites/rails/view_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require './app' ActionController::Base.view_paths = ['app/views'] diff --git a/test/multiverse/suites/resque/instrumentation_test.rb b/test/multiverse/suites/resque/instrumentation_test.rb index 7b30c5c5ed..182e20123f 100644 --- a/test/multiverse/suites/resque/instrumentation_test.rb +++ b/test/multiverse/suites/resque/instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # https://newrelic.atlassian.net/browse/RUBY-669 require 'resque' diff --git a/test/multiverse/suites/resque/resque_setup.rb b/test/multiverse/suites/resque/resque_setup.rb index 9592cf6b4f..54b2c13f6e 100644 --- a/test/multiverse/suites/resque/resque_setup.rb +++ b/test/multiverse/suites/resque/resque_setup.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'resque' require 'newrelic_rpm' diff --git a/test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb b/test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb index cd16b8289a..70b89989c9 100644 --- a/test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb +++ b/test/multiverse/suites/sinatra/sinatra_error_tracing_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class SinatraErrorTracingTestApp < Sinatra::Base configure do set :show_exceptions, false diff --git a/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb b/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb index a96b1768f5..53664006e6 100644 --- a/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb +++ b/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class SinatraTestApp < Sinatra::Base get '/hello/:name' do |name| diff --git a/test/multiverse/suites/sinatra/sinatra_routes_test.rb b/test/multiverse/suites/sinatra/sinatra_routes_test.rb index b191efe5e7..b5705b748b 100644 --- a/test/multiverse/suites/sinatra/sinatra_routes_test.rb +++ b/test/multiverse/suites/sinatra/sinatra_routes_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class SinatraRouteTestApp < Sinatra::Base configure do diff --git a/test/multiverse/suites/sinatra/sinatra_test.rb b/test/multiverse/suites/sinatra/sinatra_test.rb index 104e62f95f..f63197838e 100644 --- a/test/multiverse/suites/sinatra/sinatra_test.rb +++ b/test/multiverse/suites/sinatra/sinatra_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class SinatraRouteTestApp < Sinatra::Base configure do diff --git a/test/multiverse/test/multiverse_test.rb b/test/multiverse/test/multiverse_test.rb index b691e52dac..c57a2d8659 100644 --- a/test/multiverse/test/multiverse_test.rb +++ b/test/multiverse/test/multiverse_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' ENV['NEWRELIC_GEM_PATH'] = '../../../../../ruby_agent' diff --git a/test/multiverse/test/suite_examples/one/a/a_test.rb b/test/multiverse/test/suite_examples/one/a/a_test.rb index e8a224c6ad..eb3d3bca5d 100644 --- a/test/multiverse/test/suite_examples/one/a/a_test.rb +++ b/test/multiverse/test/suite_examples/one/a/a_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class ATest < Test::Unit::TestCase def test_timetrap_is_loaded diff --git a/test/multiverse/test/suite_examples/one/b/b_test.rb b/test/multiverse/test/suite_examples/one/b/b_test.rb index 71906095a5..ac4bcccbe0 100644 --- a/test/multiverse/test/suite_examples/one/b/b_test.rb +++ b/test/multiverse/test/suite_examples/one/b/b_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class BTest < Test::Unit::TestCase def test_timetrap_is_not_loaded diff --git a/test/multiverse/test/suite_examples/three/a/fail_test.rb b/test/multiverse/test/suite_examples/three/a/fail_test.rb index 9250cdb18d..8837753ffd 100644 --- a/test/multiverse/test/suite_examples/three/a/fail_test.rb +++ b/test/multiverse/test/suite_examples/three/a/fail_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class ATest < Test::Unit::TestCase def test_failure diff --git a/test/multiverse/test/suite_examples/three/b/win_test.rb b/test/multiverse/test/suite_examples/three/b/win_test.rb index e390b38864..4bac15232a 100644 --- a/test/multiverse/test/suite_examples/three/b/win_test.rb +++ b/test/multiverse/test/suite_examples/three/b/win_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class ATest < Test::Unit::TestCase def test_success diff --git a/test/multiverse/test/suite_examples/two/a/fail_test.rb b/test/multiverse/test/suite_examples/two/a/fail_test.rb index 9250cdb18d..8837753ffd 100644 --- a/test/multiverse/test/suite_examples/two/a/fail_test.rb +++ b/test/multiverse/test/suite_examples/two/a/fail_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'test/unit' class ATest < Test::Unit::TestCase def test_failure diff --git a/test/new_relic/agent/agent/connect_test.rb b/test/new_relic/agent/agent/connect_test.rb index 3d47c9d2a3..bdde370b3d 100644 --- a/test/new_relic/agent/agent/connect_test.rb +++ b/test/new_relic/agent/agent/connect_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', '..','test_helper')) require 'new_relic/agent/agent' require 'ostruct' diff --git a/test/new_relic/agent/agent/start_test.rb b/test/new_relic/agent/agent/start_test.rb index 0df40ef21b..59354456eb 100644 --- a/test/new_relic/agent/agent/start_test.rb +++ b/test/new_relic/agent/agent/start_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::Agent::StartTest < Test::Unit::TestCase require 'new_relic/agent/agent' diff --git a/test/new_relic/agent/agent/start_worker_thread_test.rb b/test/new_relic/agent/agent/start_worker_thread_test.rb index 10abcbb50e..5e4a6af58e 100644 --- a/test/new_relic/agent/agent/start_worker_thread_test.rb +++ b/test/new_relic/agent/agent/start_worker_thread_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::Agent::StartWorkerThreadTest < Test::Unit::TestCase require 'new_relic/agent/agent' diff --git a/test/new_relic/agent/agent_logger_test.rb b/test/new_relic/agent/agent_logger_test.rb index 01bea49608..75a0b60124 100644 --- a/test/new_relic/agent/agent_logger_test.rb +++ b/test/new_relic/agent/agent_logger_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/agent_logger' diff --git a/test/new_relic/agent/agent_test.rb b/test/new_relic/agent/agent_test.rb index 73c88deb11..efb7f8ac87 100644 --- a/test/new_relic/agent/agent_test.rb +++ b/test/new_relic/agent/agent_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/thread_profiler' diff --git a/test/new_relic/agent/agent_test_controller.rb b/test/new_relic/agent/agent_test_controller.rb index c721e19f4f..029bf0c974 100644 --- a/test/new_relic/agent/agent_test_controller.rb +++ b/test/new_relic/agent/agent_test_controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Defining a test controller class with a superclass, used to # verify correct attribute inheritence class NewRelic::Agent::SuperclassController < ActionController::Base diff --git a/test/new_relic/agent/agent_test_controller_test.rb b/test/new_relic/agent/agent_test_controller_test.rb index 07eca75a0d..0636784905 100644 --- a/test/new_relic/agent/agent_test_controller_test.rb +++ b/test/new_relic/agent/agent_test_controller_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'action_controller/test_case' class NewRelic::Agent::AgentTestControllerTest < ActionController::TestCase diff --git a/test/new_relic/agent/apdex_from_server_test.rb b/test/new_relic/agent/apdex_from_server_test.rb index 95e880a711..8cc243894e 100644 --- a/test/new_relic/agent/apdex_from_server_test.rb +++ b/test/new_relic/agent/apdex_from_server_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class NewRelic::Agent::ApdexFromServerTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/audit_logger_test.rb b/test/new_relic/agent/audit_logger_test.rb index e357116d3c..0031917248 100644 --- a/test/new_relic/agent/audit_logger_test.rb +++ b/test/new_relic/agent/audit_logger_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/audit_logger' diff --git a/test/new_relic/agent/beacon_configuration_test.rb b/test/new_relic/agent/beacon_configuration_test.rb index e7b5ab97af..6dc8a1562a 100644 --- a/test/new_relic/agent/beacon_configuration_test.rb +++ b/test/new_relic/agent/beacon_configuration_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require "new_relic/agent/beacon_configuration" class NewRelic::Agent::BeaconConfigurationTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/browser_monitoring_test.rb b/test/new_relic/agent/browser_monitoring_test.rb index 9012db5e41..efa26bfc73 100644 --- a/test/new_relic/agent/browser_monitoring_test.rb +++ b/test/new_relic/agent/browser_monitoring_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require "new_relic/agent/browser_monitoring" diff --git a/test/new_relic/agent/busy_calculator_test.rb b/test/new_relic/agent/busy_calculator_test.rb index 3139f7a611..c900137203 100644 --- a/test/new_relic/agent/busy_calculator_test.rb +++ b/test/new_relic/agent/busy_calculator_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Run faster standalone ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) diff --git a/test/new_relic/agent/configuration/environment_source_test.rb b/test/new_relic/agent/configuration/environment_source_test.rb index dcaf0024e3..1b09ea9e60 100644 --- a/test/new_relic/agent/configuration/environment_source_test.rb +++ b/test/new_relic/agent/configuration/environment_source_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) require 'new_relic/agent/configuration/environment_source' diff --git a/test/new_relic/agent/configuration/manager_test.rb b/test/new_relic/agent/configuration/manager_test.rb index b8f5414bbd..2b2e7723f3 100644 --- a/test/new_relic/agent/configuration/manager_test.rb +++ b/test/new_relic/agent/configuration/manager_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) require 'new_relic/agent/configuration/manager' require 'new_relic/agent/configuration/mask_defaults' diff --git a/test/new_relic/agent/configuration/server_source_test.rb b/test/new_relic/agent/configuration/server_source_test.rb index 08601a8e4b..38d3c64e1a 100644 --- a/test/new_relic/agent/configuration/server_source_test.rb +++ b/test/new_relic/agent/configuration/server_source_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) require 'new_relic/agent/configuration/server_source' diff --git a/test/new_relic/agent/configuration/yaml_source_test.rb b/test/new_relic/agent/configuration/yaml_source_test.rb index f24bd69a99..8831e3c7c6 100644 --- a/test/new_relic/agent/configuration/yaml_source_test.rb +++ b/test/new_relic/agent/configuration/yaml_source_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) require 'new_relic/agent/configuration/yaml_source' diff --git a/test/new_relic/agent/cross_app_monitor_test.rb b/test/new_relic/agent/cross_app_monitor_test.rb index c86c6711c5..9a0ca53a09 100644 --- a/test/new_relic/agent/cross_app_monitor_test.rb +++ b/test/new_relic/agent/cross_app_monitor_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) module NewRelic::Agent diff --git a/test/new_relic/agent/database_test.rb b/test/new_relic/agent/database_test.rb index efb6a561e1..1b80c4a925 100644 --- a/test/new_relic/agent/database_test.rb +++ b/test/new_relic/agent/database_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/agent/database' diff --git a/test/new_relic/agent/error_collector/notice_error_test.rb b/test/new_relic/agent/error_collector/notice_error_test.rb index 07b0bd442c..623b61a79b 100644 --- a/test/new_relic/agent/error_collector/notice_error_test.rb +++ b/test/new_relic/agent/error_collector/notice_error_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::ErrorCollector::NoticeErrorTest < Test::Unit::TestCase require 'new_relic/agent/error_collector' diff --git a/test/new_relic/agent/error_collector_test.rb b/test/new_relic/agent/error_collector_test.rb index 6fa093983a..7a8095abf1 100644 --- a/test/new_relic/agent/error_collector_test.rb +++ b/test/new_relic/agent/error_collector_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Run faster standalone ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) diff --git a/test/new_relic/agent/event_listener_test.rb b/test/new_relic/agent/event_listener_test.rb index e0500448b7..86ef85738e 100644 --- a/test/new_relic/agent/event_listener_test.rb +++ b/test/new_relic/agent/event_listener_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class EventListenerTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb b/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb index c339320489..1b5162bef3 100644 --- a/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +++ b/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::Instrumentation::ActiveRecordInstrumentationTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/instrumentation/browser_monitoring_timings_test.rb b/test/new_relic/agent/instrumentation/browser_monitoring_timings_test.rb index b9967480c1..24e858b482 100644 --- a/test/new_relic/agent/instrumentation/browser_monitoring_timings_test.rb +++ b/test/new_relic/agent/instrumentation/browser_monitoring_timings_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) module NewRelic::Agent::Instrumentation diff --git a/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb b/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb index b9e90c43f7..2e098b67dc 100644 --- a/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb +++ b/test/new_relic/agent/instrumentation/controller_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) class NewRelic::Agent::Instrumentation::ControllerInstrumentationTest < Test::Unit::TestCase require 'new_relic/agent/instrumentation/controller_instrumentation' diff --git a/test/new_relic/agent/instrumentation/instrumentation_test.rb b/test/new_relic/agent/instrumentation/instrumentation_test.rb index 033dbea1fb..a929c65424 100644 --- a/test/new_relic/agent/instrumentation/instrumentation_test.rb +++ b/test/new_relic/agent/instrumentation/instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) class NewRelic::Agent::Instrumentation::InstrumentationTest < Test::Unit::TestCase def test_load_all_instrumentation_files diff --git a/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb b/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb index 830ca6d55c..d4b25eae0c 100644 --- a/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb +++ b/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', '..', 'test_helper')) require 'new_relic/agent/instrumentation/metric_frame/pop' class NewRelic::Agent::Instrumentation::MetricFrame::PopTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/instrumentation/metric_frame_test.rb b/test/new_relic/agent/instrumentation/metric_frame_test.rb index b66da3055a..ef6982ca5f 100644 --- a/test/new_relic/agent/instrumentation/metric_frame_test.rb +++ b/test/new_relic/agent/instrumentation/metric_frame_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::Instrumentation::MetricFrameTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/instrumentation/net_instrumentation_test.rb b/test/new_relic/agent/instrumentation/net_instrumentation_test.rb index df7d45423a..c18b45bd4d 100755 --- a/test/new_relic/agent/instrumentation/net_instrumentation_test.rb +++ b/test/new_relic/agent/instrumentation/net_instrumentation_test.rb @@ -1,5 +1,8 @@ #!/usr/bin/env ruby # encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'net/http' require 'pp' diff --git a/test/new_relic/agent/instrumentation/queue_time_test.rb b/test/new_relic/agent/instrumentation/queue_time_test.rb index 061dc89928..a5c1ceaa0b 100644 --- a/test/new_relic/agent/instrumentation/queue_time_test.rb +++ b/test/new_relic/agent/instrumentation/queue_time_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) class NewRelic::Agent::Instrumentation::QueueTimeTest < Test::Unit::TestCase include NewRelic::Agent::Instrumentation diff --git a/test/new_relic/agent/instrumentation/rack_test.rb b/test/new_relic/agent/instrumentation/rack_test.rb index a3fcc6d40d..a119eb05ca 100644 --- a/test/new_relic/agent/instrumentation/rack_test.rb +++ b/test/new_relic/agent/instrumentation/rack_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) require 'new_relic/agent/instrumentation/rack' diff --git a/test/new_relic/agent/instrumentation/sinatra_test.rb b/test/new_relic/agent/instrumentation/sinatra_test.rb index a23c7babb3..e81d1c647d 100644 --- a/test/new_relic/agent/instrumentation/sinatra_test.rb +++ b/test/new_relic/agent/instrumentation/sinatra_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) require 'new_relic/agent/instrumentation/sinatra' diff --git a/test/new_relic/agent/instrumentation/task_instrumentation_test.rb b/test/new_relic/agent/instrumentation/task_instrumentation_test.rb index 56a5d0f875..2150b3d0fb 100644 --- a/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +++ b/test/new_relic/agent/instrumentation/task_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_contexts')) diff --git a/test/new_relic/agent/memcache_instrumentation_test.rb b/test/new_relic/agent/memcache_instrumentation_test.rb index e05b833491..7880721de0 100644 --- a/test/new_relic/agent/memcache_instrumentation_test.rb +++ b/test/new_relic/agent/memcache_instrumentation_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) memcached_ready = false diff --git a/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb b/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb index d464fae258..99625166b7 100644 --- a/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +++ b/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','test_helper')) require 'set' diff --git a/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb b/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb index ede751f8c4..7cdbafc5cd 100644 --- a/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +++ b/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','..','test_helper')) class NewRelic::Agent::MethodTracer::InstanceMethods::TraceExecutionScopedTest < Test::Unit::TestCase require 'new_relic/agent/method_tracer' diff --git a/test/new_relic/agent/method_tracer_test.rb b/test/new_relic/agent/method_tracer_test.rb index 17ffcbfe86..efa8451d2b 100644 --- a/test/new_relic/agent/method_tracer_test.rb +++ b/test/new_relic/agent/method_tracer_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/mock_scope_listener' diff --git a/test/new_relic/agent/mock_scope_listener.rb b/test/new_relic/agent/mock_scope_listener.rb index cbd70313a6..94e87fffe2 100644 --- a/test/new_relic/agent/mock_scope_listener.rb +++ b/test/new_relic/agent/mock_scope_listener.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::Agent::MockScopeListener diff --git a/test/new_relic/agent/new_relic_service_test.rb b/test/new_relic/agent/new_relic_service_test.rb index 61dd5438c4..4cdb5d965f 100644 --- a/test/new_relic/agent/new_relic_service_test.rb +++ b/test/new_relic/agent/new_relic_service_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/agent/thread_profiler' diff --git a/test/new_relic/agent/pipe_channel_manager_test.rb b/test/new_relic/agent/pipe_channel_manager_test.rb index 365aeae9dc..457eb2c3a9 100644 --- a/test/new_relic/agent/pipe_channel_manager_test.rb +++ b/test/new_relic/agent/pipe_channel_manager_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'timeout' require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/agent/pipe_channel_manager' diff --git a/test/new_relic/agent/pipe_service_test.rb b/test/new_relic/agent/pipe_service_test.rb index b7ba65e710..413d36ba25 100644 --- a/test/new_relic/agent/pipe_service_test.rb +++ b/test/new_relic/agent/pipe_service_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) class PipeServiceTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/rpm_agent_test.rb b/test/new_relic/agent/rpm_agent_test.rb index e517e390ba..f98437f3ff 100644 --- a/test/new_relic/agent/rpm_agent_test.rb +++ b/test/new_relic/agent/rpm_agent_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + ENV['SKIP_RAILS'] = 'true' require File.expand_path('../../../test_helper', __FILE__) require File.expand_path('../../../test_contexts', __FILE__) diff --git a/test/new_relic/agent/rules_engine_test.rb b/test/new_relic/agent/rules_engine_test.rb index 94d68fc973..7d7b720e1e 100644 --- a/test/new_relic/agent/rules_engine_test.rb +++ b/test/new_relic/agent/rules_engine_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class RulesEngineTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/sampler_test.rb b/test/new_relic/agent/sampler_test.rb index a56609b26c..bd7bc2f85f 100644 --- a/test/new_relic/agent/sampler_test.rb +++ b/test/new_relic/agent/sampler_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) class NewRelic::Agent::SamplerTest < Test::Unit::TestCase require 'new_relic/agent/sampler' diff --git a/test/new_relic/agent/shim_agent_test.rb b/test/new_relic/agent/shim_agent_test.rb index 861a652304..b6219516f0 100644 --- a/test/new_relic/agent/shim_agent_test.rb +++ b/test/new_relic/agent/shim_agent_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) module NewRelic module Agent diff --git a/test/new_relic/agent/sql_sampler_test.rb b/test/new_relic/agent/sql_sampler_test.rb index 8cebe973b3..5fadf89bd3 100644 --- a/test/new_relic/agent/sql_sampler_test.rb +++ b/test/new_relic/agent/sql_sampler_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class NewRelic::Agent::SqlSamplerTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/stats_engine/gc_profiler_test.rb b/test/new_relic/agent/stats_engine/gc_profiler_test.rb index 64a7b17b98..8a9131bb67 100644 --- a/test/new_relic/agent/stats_engine/gc_profiler_test.rb +++ b/test/new_relic/agent/stats_engine/gc_profiler_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::StatsEngine::GCProfilerTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/stats_engine/metric_stats_test.rb b/test/new_relic/agent/stats_engine/metric_stats_test.rb index 82f0d6f572..639ec783f8 100644 --- a/test/new_relic/agent/stats_engine/metric_stats_test.rb +++ b/test/new_relic/agent/stats_engine/metric_stats_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','test_helper')) class NewRelic::Agent::MetricStatsTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/stats_engine/samplers_test.rb b/test/new_relic/agent/stats_engine/samplers_test.rb index e138bb79bf..3773de510e 100644 --- a/test/new_relic/agent/stats_engine/samplers_test.rb +++ b/test/new_relic/agent/stats_engine/samplers_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..','..','test_helper')) require 'new_relic/agent/samplers/cpu_sampler' diff --git a/test/new_relic/agent/stats_engine_test.rb b/test/new_relic/agent/stats_engine_test.rb index e1c57baedd..2e1d00af15 100644 --- a/test/new_relic/agent/stats_engine_test.rb +++ b/test/new_relic/agent/stats_engine_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..', 'test_helper')) diff --git a/test/new_relic/agent/stats_hash_test.rb b/test/new_relic/agent/stats_hash_test.rb index 5006c5a35c..f963316410 100644 --- a/test/new_relic/agent/stats_hash_test.rb +++ b/test/new_relic/agent/stats_hash_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..','test_helper')) class NewRelic::Agent::StatsHashTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/thread_profiler_test.rb b/test/new_relic/agent/thread_profiler_test.rb index 9aa6badc4f..478dfda4d7 100644 --- a/test/new_relic/agent/thread_profiler_test.rb +++ b/test/new_relic/agent/thread_profiler_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'base64' require 'thread' diff --git a/test/new_relic/agent/thread_test.rb b/test/new_relic/agent/thread_test.rb index 3fc91b7a7b..c245d0632d 100644 --- a/test/new_relic/agent/thread_test.rb +++ b/test/new_relic/agent/thread_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/agent/thread' diff --git a/test/new_relic/agent/threaded_test.rb b/test/new_relic/agent/threaded_test.rb index 60aa635f04..32ca855889 100644 --- a/test/new_relic/agent/threaded_test.rb +++ b/test/new_relic/agent/threaded_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class ThreadedTest < Test::Unit::TestCase def setup @original_thread_class = NewRelic::Agent::AgentThread diff --git a/test/new_relic/agent/transaction_info_test.rb b/test/new_relic/agent/transaction_info_test.rb index 7236320ff9..db524c64a2 100644 --- a/test/new_relic/agent/transaction_info_test.rb +++ b/test/new_relic/agent/transaction_info_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'ostruct' diff --git a/test/new_relic/agent/transaction_sample_builder_test.rb b/test/new_relic/agent/transaction_sample_builder_test.rb index 29d4cf3b5e..a2a07a31dc 100644 --- a/test/new_relic/agent/transaction_sample_builder_test.rb +++ b/test/new_relic/agent/transaction_sample_builder_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class NewRelic::Agent::TransationSampleBuilderTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/transaction_sampler_test.rb b/test/new_relic/agent/transaction_sampler_test.rb index e16e156439..cf7f615b06 100644 --- a/test/new_relic/agent/transaction_sampler_test.rb +++ b/test/new_relic/agent/transaction_sampler_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) class NewRelic::Agent::TransactionSamplerTest < Test::Unit::TestCase diff --git a/test/new_relic/agent/worker_loop_test.rb b/test/new_relic/agent/worker_loop_test.rb index 9acbe7b334..a8eb44e0b8 100644 --- a/test/new_relic/agent/worker_loop_test.rb +++ b/test/new_relic/agent/worker_loop_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) diff --git a/test/new_relic/agent_test.rb b/test/new_relic/agent_test.rb index 03ba0a9cfd..815a2e9254 100644 --- a/test/new_relic/agent_test.rb +++ b/test/new_relic/agent_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) require 'ostruct' diff --git a/test/new_relic/coerce_test.rb b/test/new_relic/coerce_test.rb index e93903b09e..42d81cc938 100644 --- a/test/new_relic/coerce_test.rb +++ b/test/new_relic/coerce_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) require 'new_relic/coerce' diff --git a/test/new_relic/collection_helper_test.rb b/test/new_relic/collection_helper_test.rb index 156900c1f4..a3ab2964dd 100644 --- a/test/new_relic/collection_helper_test.rb +++ b/test/new_relic/collection_helper_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) require 'ostruct' require 'active_record_fixtures' if defined?(::ActiveRecord) diff --git a/test/new_relic/command/deployments_test.rb b/test/new_relic/command/deployments_test.rb index 5738e43623..958505b244 100644 --- a/test/new_relic/command/deployments_test.rb +++ b/test/new_relic/command/deployments_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'/../../test_helper')) require File.expand_path(File.join(File.dirname(__FILE__),'/../../../lib/new_relic/command')) diff --git a/test/new_relic/control/class_methods_test.rb b/test/new_relic/control/class_methods_test.rb index 22d039cd62..a2039e1af6 100644 --- a/test/new_relic/control/class_methods_test.rb +++ b/test/new_relic/control/class_methods_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/control/class_methods' diff --git a/test/new_relic/control/frameworks/rails_test.rb b/test/new_relic/control/frameworks/rails_test.rb index 77155a2d54..e6c7d8dd73 100644 --- a/test/new_relic/control/frameworks/rails_test.rb +++ b/test/new_relic/control/frameworks/rails_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'/../../../test_helper')) class NewRelic::Control::Frameworks::RailsTest < Test::Unit::TestCase diff --git a/test/new_relic/control_test.rb b/test/new_relic/control_test.rb index 23ce904cf7..575edb5a98 100644 --- a/test/new_relic/control_test.rb +++ b/test/new_relic/control_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'/../test_helper')) class NewRelic::ControlTest < Test::Unit::TestCase diff --git a/test/new_relic/delayed_job_injection_test.rb b/test/new_relic/delayed_job_injection_test.rb index c1441039f6..d0ac80f986 100644 --- a/test/new_relic/delayed_job_injection_test.rb +++ b/test/new_relic/delayed_job_injection_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) class NewRelic::DelayedJobInstrumentationTest < Test::Unit::TestCase diff --git a/test/new_relic/dispatcher_test.rb b/test/new_relic/dispatcher_test.rb index fd4e971dc7..0453705ba9 100644 --- a/test/new_relic/dispatcher_test.rb +++ b/test/new_relic/dispatcher_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) # Test logic around detecting or configuring dispatcher diff --git a/test/new_relic/fake_collector.rb b/test/new_relic/fake_collector.rb index ba80009935..f1b111ed64 100644 --- a/test/new_relic/fake_collector.rb +++ b/test/new_relic/fake_collector.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'rubygems' require 'rack' require 'uri' diff --git a/test/new_relic/framework_test.rb b/test/new_relic/framework_test.rb index f0df15047c..639b3103e5 100644 --- a/test/new_relic/framework_test.rb +++ b/test/new_relic/framework_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) # Test logic around detecting or configuring framework diff --git a/test/new_relic/helper_test.rb b/test/new_relic/helper_test.rb index e06ccbbb82..0454479905 100644 --- a/test/new_relic/helper_test.rb +++ b/test/new_relic/helper_test.rb @@ -1,4 +1,7 @@ -#encoding: utf-8 +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + #require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) require 'test/unit' diff --git a/test/new_relic/load_test.rb b/test/new_relic/load_test.rb index 977640acd0..7fdf78cfe1 100644 --- a/test/new_relic/load_test.rb +++ b/test/new_relic/load_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) require 'test/unit' require 'resolv' diff --git a/test/new_relic/local_environment_test.rb b/test/new_relic/local_environment_test.rb index 87b8b9f78b..dbc3ec4e8b 100644 --- a/test/new_relic/local_environment_test.rb +++ b/test/new_relic/local_environment_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) class NewRelic::LocalEnvironmentTest < Test::Unit::TestCase diff --git a/test/new_relic/metric_data_test.rb b/test/new_relic/metric_data_test.rb index 3c1eebe799..1eb7f38dec 100644 --- a/test/new_relic/metric_data_test.rb +++ b/test/new_relic/metric_data_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) require 'new_relic/metric_data' class NewRelic::MetricDataTest < Test::Unit::TestCase diff --git a/test/new_relic/metric_parser/metric_parser_test.rb b/test/new_relic/metric_parser/metric_parser_test.rb index 1b921e3b81..5537949fd1 100644 --- a/test/new_relic/metric_parser/metric_parser_test.rb +++ b/test/new_relic/metric_parser/metric_parser_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', 'test_helper')) class NewRelic::MetricParser::MetricParserTest < Test::Unit::TestCase class ::AnApplicationClass diff --git a/test/new_relic/metric_spec_test.rb b/test/new_relic/metric_spec_test.rb index a25eaffe57..037604420e 100644 --- a/test/new_relic/metric_spec_test.rb +++ b/test/new_relic/metric_spec_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) class NewRelic::MetricSpecTest < Test::Unit::TestCase diff --git a/test/new_relic/noticed_error_test.rb b/test/new_relic/noticed_error_test.rb index 6b69069133..ad1c4b577c 100644 --- a/test/new_relic/noticed_error_test.rb +++ b/test/new_relic/noticed_error_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) class NewRelic::Agent::NoticedErrorTest < Test::Unit::TestCase diff --git a/test/new_relic/rack/agent_hooks_test.rb b/test/new_relic/rack/agent_hooks_test.rb index 2fe858adda..ddcf4dbdab 100644 --- a/test/new_relic/rack/agent_hooks_test.rb +++ b/test/new_relic/rack/agent_hooks_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/rack/agent_hooks' diff --git a/test/new_relic/rack/all_test.rb b/test/new_relic/rack/all_test.rb index 5b75241712..e4ea79b728 100644 --- a/test/new_relic/rack/all_test.rb +++ b/test/new_relic/rack/all_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'new_relic/rack/browser_monitoring' require 'new_relic/rack/developer_mode' diff --git a/test/new_relic/rack/browser_monitoring_test.rb b/test/new_relic/rack/browser_monitoring_test.rb index 5c032efccf..44b8e7fa05 100644 --- a/test/new_relic/rack/browser_monitoring_test.rb +++ b/test/new_relic/rack/browser_monitoring_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', 'test_helper')) require 'rack/test' diff --git a/test/new_relic/rack/developer_mode_helper_test.rb b/test/new_relic/rack/developer_mode_helper_test.rb index f42177b552..53b1729944 100644 --- a/test/new_relic/rack/developer_mode_helper_test.rb +++ b/test/new_relic/rack/developer_mode_helper_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', 'test_helper')) diff --git a/test/new_relic/rack/developer_mode_test.rb b/test/new_relic/rack/developer_mode_test.rb index 5c338c0c23..f1226b920b 100644 --- a/test/new_relic/rack/developer_mode_test.rb +++ b/test/new_relic/rack/developer_mode_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', 'test_helper')) diff --git a/test/new_relic/rack/error_collector_test.rb b/test/new_relic/rack/error_collector_test.rb index f2e70e6918..d433fa37d7 100644 --- a/test/new_relic/rack/error_collector_test.rb +++ b/test/new_relic/rack/error_collector_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..', 'test_helper')) require 'rack/test' diff --git a/test/new_relic/stats_test.rb b/test/new_relic/stats_test.rb index 865a1838cc..305e334247 100644 --- a/test/new_relic/stats_test.rb +++ b/test/new_relic/stats_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + ENV['SKIP_RAILS'] = 'true' require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) ##require "new_relic/stats" diff --git a/test/new_relic/transaction_analysis/segment_summary_test.rb b/test/new_relic/transaction_analysis/segment_summary_test.rb index adae366c7a..9e17162e8f 100644 --- a/test/new_relic/transaction_analysis/segment_summary_test.rb +++ b/test/new_relic/transaction_analysis/segment_summary_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', '..','test_helper')) require 'new_relic/transaction_analysis/segment_summary' class NewRelic::TransactionAnalysis::SegmentSummaryTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_analysis_test.rb b/test/new_relic/transaction_analysis_test.rb index 151487bbe6..8bd41f56aa 100644 --- a/test/new_relic/transaction_analysis_test.rb +++ b/test/new_relic/transaction_analysis_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) require 'new_relic/transaction_analysis' class NewRelic::TransactionAnalysisTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_sample/composite_segment_test.rb b/test/new_relic/transaction_sample/composite_segment_test.rb index 94640b88fc..35ce3c6a8c 100644 --- a/test/new_relic/transaction_sample/composite_segment_test.rb +++ b/test/new_relic/transaction_sample/composite_segment_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/transaction_sample/composite_segment' class NewRelic::TransactionSample::CompositeSegmentTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_sample/fake_segment_test.rb b/test/new_relic/transaction_sample/fake_segment_test.rb index 542ef1fb41..02039d5f0f 100644 --- a/test/new_relic/transaction_sample/fake_segment_test.rb +++ b/test/new_relic/transaction_sample/fake_segment_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/transaction_sample/fake_segment' class NewRelic::TransactionSample::FakeSegmentTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_sample/segment_test.rb b/test/new_relic/transaction_sample/segment_test.rb index 38ce1d5e0a..b2dbff4102 100644 --- a/test/new_relic/transaction_sample/segment_test.rb +++ b/test/new_relic/transaction_sample/segment_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/transaction_sample/segment' class NewRelic::TransactionSample::SegmentTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_sample/summary_segment_test.rb b/test/new_relic/transaction_sample/summary_segment_test.rb index f8785f3ec8..d7271c42aa 100644 --- a/test/new_relic/transaction_sample/summary_segment_test.rb +++ b/test/new_relic/transaction_sample/summary_segment_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/transaction_sample/summary_segment' class NewRelic::TransactionSample::SummarySegmentTest < Test::Unit::TestCase diff --git a/test/new_relic/transaction_sample_subtest_test.rb b/test/new_relic/transaction_sample_subtest_test.rb index 56dcc4e46a..dad700e83c 100644 --- a/test/new_relic/transaction_sample_subtest_test.rb +++ b/test/new_relic/transaction_sample_subtest_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::TransactionSample::SubTest < Test::Unit::TestCase def setup @t = NewRelic::TransactionSample.new diff --git a/test/new_relic/transaction_sample_test.rb b/test/new_relic/transaction_sample_test.rb index c1908d16c7..0b3467f439 100644 --- a/test/new_relic/transaction_sample_test.rb +++ b/test/new_relic/transaction_sample_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path('../../test_helper.rb', __FILE__) class NewRelic::TransactionSampleTest < Test::Unit::TestCase diff --git a/test/new_relic/version_number_test.rb b/test/new_relic/version_number_test.rb index 03ae01f083..28269ceae7 100644 --- a/test/new_relic/version_number_test.rb +++ b/test/new_relic/version_number_test.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require File.expand_path(File.join(File.dirname(__FILE__),'..', 'test_helper')) class NewRelic::VersionNumberTest < Test::Unit::TestCase diff --git a/test/test_contexts.rb b/test/test_contexts.rb index 51e7710413..eb94b6ea27 100644 --- a/test/test_contexts.rb +++ b/test/test_contexts.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module TestContexts def with_running_agent diff --git a/test/test_helper.rb b/test/test_helper.rb index 410e86bb86..094c74e264 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic; TEST = true; end unless defined? NewRelic::TEST ENV['RAILS_ENV'] = 'test' NEWRELIC_PLUGIN_DIR = File.expand_path(File.join(File.dirname(__FILE__),"..")) diff --git a/ui/helpers/developer_mode_helper.rb b/ui/helpers/developer_mode_helper.rb index 7a3cf5ce83..46a7df08da 100644 --- a/ui/helpers/developer_mode_helper.rb +++ b/ui/helpers/developer_mode_helper.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'pathname' require File.expand_path('../google_pie_chart', __FILE__) require 'new_relic/collection_helper' diff --git a/ui/helpers/google_pie_chart.rb b/ui/helpers/google_pie_chart.rb index 7ac1607ab8..d7e6243a21 100644 --- a/ui/helpers/google_pie_chart.rb +++ b/ui/helpers/google_pie_chart.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'cgi' # A wrapper around the google charts service. diff --git a/ui/views/newrelic/file/javascript/jquery-1.4.2.js b/ui/views/newrelic/file/javascript/jquery-1.4.2.js index fff6776433..386c83e0c9 100644 --- a/ui/views/newrelic/file/javascript/jquery-1.4.2.js +++ b/ui/views/newrelic/file/javascript/jquery-1.4.2.js @@ -1,3 +1,6 @@ +// This file is distributed under jquery's license terms. +// See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + /*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ diff --git a/ui/views/newrelic/file/javascript/transaction_sample.js b/ui/views/newrelic/file/javascript/transaction_sample.js index 74567258e3..b9a4dfb827 100644 --- a/ui/views/newrelic/file/javascript/transaction_sample.js +++ b/ui/views/newrelic/file/javascript/transaction_sample.js @@ -1,3 +1,6 @@ +// This file is distributed under New Relic's license terms. +// See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + function show_request_params() { $('#params_link').hide(); diff --git a/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb b/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb index 21d2931c9b..2e02cb3879 100644 --- a/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb +++ b/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'dependency_detection/version' module DependencyDetection diff --git a/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb b/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb index 5cf45b2318..af0d78e8a9 100644 --- a/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb +++ b/vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module DependencyDetection VERSION='0.0.1.build' end diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb index a89af0da17..c760fc6547 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb @@ -1 +1,5 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb index 25479b446e..780da9e90a 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic # Metric parsing logic mixin. Given a metric name (attribute called "name"), provide a set of accessors # that enable inspection of the metric. A metric has 2 or more segments, each separated diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb index fbf76684d2..7f2846a765 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb index 9d2cfb5480..54bbb8e2e6 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb index 0a3eac40a4..9ca3f95fa9 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb index 85329c32a2..aad4d6b67a 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb index b4df831d5c..92d0e9dcaa 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::BackgroundTransaction < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb index fdee6c7dab..5b5aa30437 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Client < NewRelic::MetricParser::MetricParser def measure diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb index 44d20f7690..3efbd1c528 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb index 28b97526be..f800dc0b78 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb index 2cbd9a51fc..764e21609e 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + # Extend the controller with extra behavior from web transactions # This is just temporary until we switchover to WebTransaction from Controller. diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb index 2edc4b6d3f..2d2e6b8eb4 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Database < NewRelic::MetricParser::MetricParser def is_database?; true; end diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb index fb0c84340c..05fbe91062 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::DatabasePool < NewRelic::MetricParser::MetricParser def developer_name diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb index 39990e8ab8..f964405efe 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/dot_net_parser' class NewRelic::MetricParser::DotNet < NewRelic::MetricParser::MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb index 8f8a8abd92..70bcc06484 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module MetricParser module DotNetParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb index fed00cc7eb..68b7196fc2 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb index 55b6044146..24aec3b7cf 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb index a7f48d88f5..9b69df2bdf 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Frontend < NewRelic::MetricParser::MetricParser =begin diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb index 9216cdd028..3ed67018c7 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::GC < NewRelic::MetricParser::MetricParser def developer_name diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb index 551a40f1ee..85e283c514 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::HibernateSession < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb index 6a6634fde0..518f54aa8a 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb index 4a30f1341f..fc8cb7e280 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module MetricParser module JavaParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb index 10fb93d9c1..0fd5566114 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Jsp < NewRelic::MetricParser::MetricParser def is_view?; true; end def pie_chart_label diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb index e23537f041..5683c7ad93 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::JspTag < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb index 49bfe730d8..195c2a8579 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb index faf375b0cb..f0969039b2 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module MetricParser class MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb index 0c7b4ba699..a63910d5d4 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module MetricParser class ORM < NewRelic::MetricParser::MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb index 9048461dda..9a8a17a97c 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' # OtherTransaction metrics must have at least three segments: /OtherTransaction//* # Task is "Background", "Resque", "DelayedJob" etc. diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb index 23bad36d70..02c8f10a2b 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::Servlet < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb index c0276558f5..5668ea24cd 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::ServletContextListener < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb index ad3121ba66..741fc2a4fb 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::ServletFilter < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb index fd0a578a73..ff92158dc2 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java' class NewRelic::MetricParser::ServletInit < NewRelic::MetricParser::Java diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb index 76a1a4d06a..9dfc397c94 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Solr < NewRelic::MetricParser::MetricParser def short_name diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb index 4d1649085d..fea0f24e9e 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + #require 'new_relic/metric_parser/java' class NewRelic::MetricParser::SolrRequestHandler < NewRelic::MetricParser::MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb index d6634af909..e85333ce60 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::Spring < NewRelic::MetricParser::MetricParser def initialize(name) super diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb index fd2696e2c5..36eea6827b 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/spring' class NewRelic::MetricParser::SpringController < NewRelic::MetricParser::Spring def component_type diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb index 56a5dc3366..d735f596ca 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/spring' class NewRelic::MetricParser::SpringView < NewRelic::MetricParser::Spring def component_type diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb index 3c9b678171..79fc1f1dcb 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb index 5f014e42c9..214642a7bb 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser/java_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb index 4c7cff9376..8b1f6df5a6 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + module NewRelic module MetricParser VERSION = "0.1.0.pre1" diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb index abdfa56119..4a6953e787 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb index 3525a13edc..19955658ec 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' # The metric where the mongrel queue time is stored module NewRelic diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb index a22340db4c..41966a596b 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + require 'new_relic/metric_parser' module NewRelic module MetricParser diff --git a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb index 57841eaacd..5ba470c185 100644 --- a/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb +++ b/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb @@ -1,3 +1,7 @@ +# encoding: utf-8 +# This file is distributed under New Relic's license terms. +# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. + class NewRelic::MetricParser::WebTransaction < NewRelic::MetricParser::MetricParser def is_web_transaction?; true; end