wd_newrelic_rpm 3.3.4.1 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (290) hide show
  1. data/.gitignore +20 -0
  2. data/.project +23 -0
  3. data/.travis.yml +9 -0
  4. data/CHANGELOG +317 -39
  5. data/GUIDELINES_FOR_CONTRIBUTING.md +76 -0
  6. data/Gemfile +16 -0
  7. data/LICENSE +1 -1
  8. data/{README.rdoc → README.md} +71 -55
  9. data/Rakefile +62 -0
  10. data/bin/mongrel_rpm +1 -1
  11. data/config.dot +290 -0
  12. data/config/database.yml +5 -0
  13. data/init.rb +31 -0
  14. data/lib/new_relic/agent.rb +31 -60
  15. data/lib/new_relic/agent/agent.rb +277 -502
  16. data/lib/new_relic/agent/agent_logger.rb +165 -0
  17. data/lib/new_relic/agent/audit_logger.rb +72 -0
  18. data/lib/new_relic/agent/beacon_configuration.rb +36 -50
  19. data/lib/new_relic/agent/browser_monitoring.rb +114 -61
  20. data/lib/new_relic/agent/busy_calculator.rb +14 -6
  21. data/lib/new_relic/agent/configuration.rb +74 -0
  22. data/lib/new_relic/agent/configuration/defaults.rb +126 -0
  23. data/lib/new_relic/agent/configuration/environment_source.rb +49 -0
  24. data/lib/new_relic/agent/configuration/manager.rb +136 -0
  25. data/lib/new_relic/agent/configuration/mask_defaults.rb +10 -0
  26. data/lib/new_relic/agent/configuration/server_source.rb +27 -0
  27. data/lib/new_relic/agent/configuration/yaml_source.rb +63 -0
  28. data/lib/new_relic/agent/cross_process_monitoring.rb +43 -0
  29. data/lib/new_relic/agent/database.rb +39 -26
  30. data/lib/new_relic/agent/error_collector.rb +48 -49
  31. data/lib/new_relic/agent/instrumentation/active_merchant.rb +1 -1
  32. data/lib/new_relic/agent/instrumentation/active_record.rb +4 -7
  33. data/lib/new_relic/agent/instrumentation/acts_as_solr.rb +1 -1
  34. data/lib/new_relic/agent/instrumentation/authlogic.rb +1 -1
  35. data/lib/new_relic/agent/instrumentation/browser_monitoring_timings.rb +41 -0
  36. data/lib/new_relic/agent/instrumentation/controller_instrumentation.rb +35 -12
  37. data/lib/new_relic/agent/instrumentation/data_mapper.rb +4 -12
  38. data/lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb +2 -2
  39. data/lib/new_relic/agent/instrumentation/memcache.rb +6 -6
  40. data/lib/new_relic/agent/instrumentation/merb/controller.rb +1 -1
  41. data/lib/new_relic/agent/instrumentation/merb/errors.rb +1 -1
  42. data/lib/new_relic/agent/instrumentation/metric_frame.rb +4 -14
  43. data/lib/new_relic/agent/instrumentation/metric_frame/pop.rb +1 -1
  44. data/lib/new_relic/agent/instrumentation/net.rb +1 -1
  45. data/lib/new_relic/agent/instrumentation/passenger_instrumentation.rb +6 -20
  46. data/lib/new_relic/agent/instrumentation/queue_time.rb +2 -2
  47. data/lib/new_relic/agent/instrumentation/rack.rb +1 -1
  48. data/lib/new_relic/agent/instrumentation/rails/action_controller.rb +7 -7
  49. data/lib/new_relic/agent/instrumentation/rails/action_web_service.rb +1 -1
  50. data/lib/new_relic/agent/instrumentation/rails/errors.rb +1 -1
  51. data/lib/new_relic/agent/instrumentation/rails3/action_controller.rb +5 -5
  52. data/lib/new_relic/agent/instrumentation/rails3/errors.rb +6 -2
  53. data/lib/new_relic/agent/instrumentation/resque.rb +81 -0
  54. data/lib/new_relic/agent/instrumentation/sinatra.rb +21 -10
  55. data/lib/new_relic/agent/instrumentation/sunspot.rb +1 -1
  56. data/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb +5 -4
  57. data/lib/new_relic/agent/method_tracer.rb +11 -9
  58. data/lib/new_relic/agent/new_relic_service.rb +379 -0
  59. data/lib/new_relic/agent/pipe_channel_manager.rb +175 -0
  60. data/lib/new_relic/agent/pipe_service.rb +58 -0
  61. data/lib/new_relic/agent/samplers/delayed_job_sampler.rb +86 -0
  62. data/lib/new_relic/agent/samplers/memory_sampler.rb +6 -8
  63. data/lib/new_relic/agent/sql_sampler.rb +31 -74
  64. data/lib/new_relic/agent/stats_engine.rb +0 -5
  65. data/lib/new_relic/agent/stats_engine/gc_profiler.rb +40 -24
  66. data/lib/new_relic/agent/stats_engine/metric_stats.rb +89 -14
  67. data/lib/new_relic/agent/stats_engine/samplers.rb +9 -7
  68. data/lib/new_relic/agent/stats_engine/transactions.rb +20 -12
  69. data/lib/new_relic/agent/thread.rb +32 -0
  70. data/lib/new_relic/agent/thread_profiler.rb +306 -0
  71. data/lib/new_relic/agent/transaction_info.rb +24 -4
  72. data/lib/new_relic/agent/transaction_sample_builder.rb +12 -13
  73. data/lib/new_relic/agent/transaction_sampler.rb +49 -65
  74. data/lib/new_relic/agent/worker_loop.rb +31 -25
  75. data/lib/new_relic/collection_helper.rb +1 -1
  76. data/lib/new_relic/commands/deployments.rb +19 -10
  77. data/lib/new_relic/control.rb +1 -3
  78. data/lib/new_relic/control/class_methods.rb +10 -5
  79. data/lib/new_relic/control/frameworks/merb.rb +0 -6
  80. data/lib/new_relic/control/frameworks/rails.rb +30 -45
  81. data/lib/new_relic/control/frameworks/rails3.rb +23 -18
  82. data/lib/new_relic/control/frameworks/rails4.rb +23 -0
  83. data/lib/new_relic/control/frameworks/ruby.rb +2 -23
  84. data/lib/new_relic/control/instance_methods.rb +35 -73
  85. data/lib/new_relic/control/instrumentation.rb +7 -12
  86. data/lib/new_relic/control/server_methods.rb +17 -19
  87. data/lib/new_relic/delayed_job_injection.rb +2 -2
  88. data/lib/new_relic/helper.rb +34 -0
  89. data/lib/new_relic/language_support.rb +56 -37
  90. data/lib/new_relic/local_environment.rb +32 -67
  91. data/lib/new_relic/metric_data.rb +10 -2
  92. data/lib/new_relic/metric_spec.rb +7 -3
  93. data/lib/new_relic/noticed_error.rb +32 -9
  94. data/lib/new_relic/rack.rb +4 -0
  95. data/lib/new_relic/rack/browser_monitoring.rb +34 -25
  96. data/lib/new_relic/rack/developer_mode.rb +3 -0
  97. data/lib/new_relic/rack/error_collector.rb +56 -0
  98. data/lib/new_relic/stats.rb +9 -7
  99. data/lib/new_relic/transaction_sample.rb +19 -18
  100. data/lib/new_relic/transaction_sample/segment.rb +13 -15
  101. data/lib/new_relic/version.rb +19 -3
  102. data/lib/newrelic_rpm.rb +1 -1
  103. data/lib/tasks/tests.rake +6 -8
  104. data/newrelic.yml +15 -32
  105. data/newrelic_rpm.gemspec +224 -43
  106. data/newrelic_rpm.gemspec.erb +54 -0
  107. data/test/config/newrelic.yml +4 -3
  108. data/test/config/test_control.rb +18 -18
  109. data/test/fixtures/gemspec_no_build.rb +442 -0
  110. data/test/fixtures/gemspec_with_build.rb +442 -0
  111. data/test/fixtures/gemspec_with_build_and_stage.rb +442 -0
  112. data/test/intentional_fail.rb +10 -0
  113. data/test/multiverse/.gitignore +10 -0
  114. data/test/multiverse/README.md +85 -0
  115. data/test/multiverse/lib/multiverse/color.rb +13 -0
  116. data/test/multiverse/lib/multiverse/envfile.rb +66 -0
  117. data/test/multiverse/lib/multiverse/environment.rb +16 -0
  118. data/test/multiverse/lib/multiverse/output_collector.rb +29 -0
  119. data/test/multiverse/lib/multiverse/runner.rb +44 -0
  120. data/test/multiverse/lib/multiverse/suite.rb +162 -0
  121. data/test/multiverse/script/run_one +3 -0
  122. data/test/multiverse/script/runner +9 -0
  123. data/test/multiverse/suites/active_record/Envfile +13 -0
  124. data/test/multiverse/suites/active_record/ar_method_aliasing.rb +94 -0
  125. data/test/multiverse/suites/active_record/config/newrelic.yml +22 -0
  126. data/test/multiverse/suites/active_record/encoding_test.rb +26 -0
  127. data/test/multiverse/suites/agent_only/Envfile +4 -0
  128. data/test/multiverse/suites/agent_only/audit_log_test.rb +99 -0
  129. data/test/multiverse/suites/agent_only/config/newrelic.yml +22 -0
  130. data/test/multiverse/suites/agent_only/http_response_code_test.rb +53 -0
  131. data/test/multiverse/suites/agent_only/marshaling_test.rb +109 -0
  132. data/test/multiverse/suites/agent_only/method_visibility_test.rb +98 -0
  133. data/test/multiverse/suites/agent_only/pipe_manager_test.rb +33 -0
  134. data/test/multiverse/suites/agent_only/service_timeout_test.rb +29 -0
  135. data/test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb +30 -0
  136. data/test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb +32 -0
  137. data/test/multiverse/suites/agent_only/thread_profiling_test.rb +80 -0
  138. data/test/multiverse/suites/config_file_loading/Envfile +7 -0
  139. data/test/multiverse/suites/config_file_loading/config_file_loading_test.rb +106 -0
  140. data/test/multiverse/suites/datamapper/Envfile +8 -0
  141. data/test/multiverse/suites/datamapper/config/newrelic.yml +22 -0
  142. data/test/multiverse/suites/datamapper/encoding_test.rb +36 -0
  143. data/test/multiverse/suites/logging/Envfile +4 -0
  144. data/test/multiverse/suites/logging/config/newrelic.yml +22 -0
  145. data/test/multiverse/suites/logging/logging_test.rb +143 -0
  146. data/test/multiverse/suites/monitor_mode_false/Envfile +2 -0
  147. data/test/multiverse/suites/monitor_mode_false/config/newrelic.yml +25 -0
  148. data/test/multiverse/suites/monitor_mode_false/no_dns_resolv.rb +29 -0
  149. data/test/multiverse/suites/no_load/Envfile +2 -0
  150. data/test/multiverse/suites/no_load/config/newrelic.yml +22 -0
  151. data/test/multiverse/suites/no_load/start_up_test.rb +14 -0
  152. data/test/multiverse/suites/rails_3_error_tracing/Envfile +15 -0
  153. data/test/multiverse/suites/rails_3_error_tracing/config/newrelic.yml +165 -0
  154. data/test/multiverse/suites/rails_3_error_tracing/error_tracing_test.rb +236 -0
  155. data/test/multiverse/suites/rails_3_gc/Envfile +8 -0
  156. data/test/multiverse/suites/rails_3_gc/config/newrelic.yml +167 -0
  157. data/test/multiverse/suites/rails_3_gc/instrumentation_test.rb +92 -0
  158. data/test/multiverse/suites/rails_3_queue_time/Envfile +15 -0
  159. data/test/multiverse/suites/rails_3_queue_time/config/newrelic.yml +165 -0
  160. data/test/multiverse/suites/rails_3_queue_time/queue_time_test.rb +75 -0
  161. data/test/multiverse/suites/rails_3_views/.gitignore +3 -0
  162. data/test/multiverse/suites/rails_3_views/Envfile +16 -0
  163. data/test/multiverse/suites/rails_3_views/app/views/foos/_foo.html.haml +1 -0
  164. data/test/multiverse/suites/rails_3_views/app/views/test/_a_partial.html.erb +1 -0
  165. data/test/multiverse/suites/rails_3_views/app/views/test/_mid_partial.html.erb +1 -0
  166. data/test/multiverse/suites/rails_3_views/app/views/test/_top_partial.html.erb +3 -0
  167. data/test/multiverse/suites/rails_3_views/app/views/test/deep_partial.html.erb +3 -0
  168. data/test/multiverse/suites/rails_3_views/app/views/test/haml_view.html.haml +6 -0
  169. data/test/multiverse/suites/rails_3_views/app/views/test/index.html.erb +4 -0
  170. data/test/multiverse/suites/rails_3_views/config/newrelic.yml +164 -0
  171. data/test/multiverse/suites/rails_3_views/view_instrumentation_test.rb +245 -0
  172. data/test/multiverse/suites/resque/Envfile +21 -0
  173. data/test/multiverse/suites/resque/config/newrelic.yml +22 -0
  174. data/test/multiverse/suites/resque/dump.rdb +0 -0
  175. data/test/multiverse/suites/resque/instrumentation_test.rb +73 -0
  176. data/test/multiverse/suites/rum_auto_instrumentation/Envfile +4 -0
  177. data/test/multiverse/suites/rum_auto_instrumentation/config/newrelic.yml +24 -0
  178. data/test/multiverse/suites/rum_auto_instrumentation/responses/worst_case_small.html +5000 -0
  179. data/test/multiverse/suites/rum_auto_instrumentation/sanity_test.rb +102 -0
  180. data/test/multiverse/suites/sinatra/Envfile +13 -0
  181. data/test/multiverse/suites/sinatra/config/newrelic.yml +24 -0
  182. data/test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb +77 -0
  183. data/test/multiverse/suites/sinatra/sinatra_routes_test.rb +46 -0
  184. data/test/multiverse/suites/sinatra/sinatra_test.rb +55 -0
  185. data/test/multiverse/test/multiverse_test.rb +55 -0
  186. data/test/multiverse/test/suite_examples/one/a/Envfile +3 -0
  187. data/test/multiverse/test/suite_examples/one/a/a_test.rb +11 -0
  188. data/test/multiverse/test/suite_examples/one/a/config/newrelic.yml +24 -0
  189. data/test/multiverse/test/suite_examples/one/b/Envfile +3 -0
  190. data/test/multiverse/test/suite_examples/one/b/b_test.rb +11 -0
  191. data/test/multiverse/test/suite_examples/one/b/config/newrelic.yml +24 -0
  192. data/test/multiverse/test/suite_examples/three/a/Envfile +2 -0
  193. data/test/multiverse/test/suite_examples/three/a/fail_test.rb +6 -0
  194. data/test/multiverse/test/suite_examples/three/b/Envfile +2 -0
  195. data/test/multiverse/test/suite_examples/three/b/win_test.rb +6 -0
  196. data/test/multiverse/test/suite_examples/two/a/Envfile +1 -0
  197. data/test/multiverse/test/suite_examples/two/a/fail_test.rb +6 -0
  198. data/test/new_relic/agent/agent/connect_test.rb +151 -227
  199. data/test/new_relic/agent/agent/start_test.rb +68 -118
  200. data/test/new_relic/agent/agent/start_worker_thread_test.rb +12 -74
  201. data/test/new_relic/agent/agent_logger_test.rb +153 -0
  202. data/test/new_relic/agent/agent_test.rb +116 -30
  203. data/test/new_relic/agent/agent_test_controller.rb +1 -1
  204. data/test/new_relic/agent/agent_test_controller_test.rb +42 -10
  205. data/test/new_relic/agent/audit_logger_test.rb +105 -0
  206. data/test/new_relic/agent/beacon_configuration_test.rb +63 -67
  207. data/test/new_relic/agent/browser_monitoring_test.rb +151 -79
  208. data/test/new_relic/agent/busy_calculator_test.rb +7 -0
  209. data/test/new_relic/agent/configuration/environment_source_test.rb +79 -0
  210. data/test/new_relic/agent/configuration/manager_test.rb +204 -0
  211. data/test/new_relic/agent/configuration/server_source_test.rb +45 -0
  212. data/test/new_relic/agent/configuration/yaml_source_test.rb +75 -0
  213. data/test/new_relic/agent/cross_process_monitoring_test.rb +77 -0
  214. data/test/new_relic/agent/database_test.rb +12 -11
  215. data/test/new_relic/agent/error_collector/notice_error_test.rb +64 -53
  216. data/test/new_relic/agent/error_collector_test.rb +33 -19
  217. data/test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb +60 -30
  218. data/test/new_relic/agent/instrumentation/browser_monitoring_timings_test.rb +39 -0
  219. data/test/new_relic/agent/instrumentation/metric_frame/pop_test.rb +1 -1
  220. data/test/new_relic/agent/instrumentation/metric_frame_test.rb +6 -0
  221. data/test/new_relic/agent/instrumentation/queue_time_test.rb +14 -0
  222. data/test/new_relic/agent/instrumentation/sinatra_test.rb +25 -0
  223. data/test/new_relic/agent/instrumentation/task_instrumentation_test.rb +2 -2
  224. data/test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb +4 -10
  225. data/test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb +3 -15
  226. data/test/new_relic/agent/method_tracer_test.rb +7 -6
  227. data/test/new_relic/agent/mock_scope_listener.rb +3 -0
  228. data/test/new_relic/agent/new_relic_service_test.rb +376 -0
  229. data/test/new_relic/agent/pipe_channel_manager_test.rb +131 -0
  230. data/test/new_relic/agent/pipe_service_test.rb +113 -0
  231. data/test/new_relic/agent/rpm_agent_test.rb +27 -50
  232. data/test/new_relic/agent/sql_sampler_test.rb +81 -56
  233. data/test/new_relic/agent/stats_engine/metric_stats/harvest_test.rb +3 -20
  234. data/test/new_relic/agent/stats_engine/metric_stats_test.rb +12 -1
  235. data/test/new_relic/agent/stats_engine_test.rb +17 -8
  236. data/test/new_relic/agent/thread_profiler_test.rb +537 -0
  237. data/test/new_relic/agent/thread_test.rb +89 -0
  238. data/test/new_relic/agent/threaded_test.rb +65 -0
  239. data/test/new_relic/agent/transaction_info_test.rb +45 -4
  240. data/test/new_relic/agent/transaction_sample_builder_test.rb +8 -7
  241. data/test/new_relic/agent/transaction_sampler_test.rb +193 -204
  242. data/test/new_relic/agent/worker_loop_test.rb +26 -11
  243. data/test/new_relic/agent_test.rb +113 -33
  244. data/test/new_relic/collection_helper_test.rb +7 -8
  245. data/test/new_relic/command/deployments_test.rb +18 -2
  246. data/test/new_relic/control/class_methods_test.rb +0 -18
  247. data/test/new_relic/control/frameworks/rails_test.rb +26 -0
  248. data/test/new_relic/control_test.rb +96 -137
  249. data/test/new_relic/delayed_job_injection_test.rb +6 -1
  250. data/test/new_relic/dispatcher_test.rb +54 -0
  251. data/test/new_relic/fake_collector.rb +283 -0
  252. data/test/new_relic/fake_service.rb +53 -0
  253. data/test/new_relic/fakes_sending_data.rb +30 -0
  254. data/test/new_relic/framework_test.rb +53 -0
  255. data/test/new_relic/load_test.rb +13 -0
  256. data/test/new_relic/local_environment_test.rb +11 -11
  257. data/test/new_relic/metric_data_test.rb +45 -16
  258. data/test/new_relic/noticed_error_test.rb +24 -0
  259. data/test/new_relic/rack/browser_monitoring_test.rb +20 -10
  260. data/test/new_relic/rack/developer_mode_test.rb +13 -7
  261. data/test/new_relic/rack/error_collector_test.rb +74 -0
  262. data/test/new_relic/stats_test.rb +10 -0
  263. data/test/new_relic/transaction_sample/segment_test.rb +23 -4
  264. data/test/new_relic/transaction_sample_test.rb +47 -2
  265. data/test/new_relic/version_number_test.rb +32 -0
  266. data/test/script/build_test_gem.sh +9 -3
  267. data/test/script/ci.sh +108 -35
  268. data/test/script/ci_agent-tests_runner.sh +82 -0
  269. data/test/script/ci_multiverse_runner.sh +63 -0
  270. data/test/test_contexts.rb +1 -0
  271. data/test/test_helper.rb +68 -18
  272. data/ui/helpers/developer_mode_helper.rb +21 -11
  273. data/ui/views/layouts/newrelic_default.rhtml +1 -0
  274. data/ui/views/newrelic/file/images/arrow-close.png +0 -0
  275. data/ui/views/newrelic/file/images/arrow-open.png +0 -0
  276. data/ui/views/newrelic/file/images/blue_bar.gif +0 -0
  277. data/ui/views/newrelic/file/images/file_icon.png +0 -0
  278. data/ui/views/newrelic/file/images/gray_bar.gif +0 -0
  279. data/ui/views/newrelic/show_sample.rhtml +1 -1
  280. data/ui/views/newrelic/threads.rhtml +2 -10
  281. data/vendor/gems/metric_parser-0.1.0.pre1/.specification +116 -0
  282. data/vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb +7 -0
  283. metadata +191 -65
  284. data/lib/new_relic/agent/samplers/delayed_job_lock_sampler.rb +0 -40
  285. data/lib/new_relic/control/configuration.rb +0 -206
  286. data/lib/new_relic/control/logging_methods.rb +0 -143
  287. data/lib/new_relic/data_serialization.rb +0 -151
  288. data/test/new_relic/control/configuration_test.rb +0 -84
  289. data/test/new_relic/control/logging_methods_test.rb +0 -185
  290. data/test/new_relic/data_serialization_test.rb +0 -208
@@ -0,0 +1,54 @@
1
+ #-*- coding: utf-8 -*-
2
+ # GITSHA: <%= `git rev-parse HEAD` %>
3
+ Gem::Specification.new do |s|
4
+ s.name = "wd_newrelic_rpm"
5
+ s.version = "<%= version_string %>"
6
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
7
+ s.authors = [ "Jason Clark", "Sam Goldstein", "Jon Guymon", "Ben Weintraub" ]
8
+ s.date = "<%= date %>"
9
+ s.description = <<-EOS
10
+ Weasel Diesel compatible version of rpm.
11
+ New Relic is a performance management system, developed by New Relic,
12
+ Inc (http://www.newrelic.com). New Relic provides you with deep
13
+ information about the performance of your web application as it runs
14
+ in production. The New Relic Ruby Agent is dual-purposed as a either a
15
+ Gem or plugin, hosted on
16
+ http://github.com/newrelic/rpm/
17
+ EOS
18
+ s.email = "support@newrelic.com"
19
+ s.executables = [ "mongrel_rpm", "newrelic_cmd", "newrelic" ]
20
+ s.extra_rdoc_files = [
21
+ "CHANGELOG",
22
+ "LICENSE",
23
+ "README.md",
24
+ "GUIDELINES_FOR_CONTRIBUTING.md",
25
+ "newrelic.yml"
26
+ ]
27
+ s.files = [<% files.each do |file| %>
28
+ "<%= file %>",<% end %>
29
+ ]
30
+ s.homepage = "http://www.github.com/newrelic/rpm"
31
+
32
+ <% # Print this version's CHANGELOG as a post_install_message.
33
+ version_count = 0
34
+ changes = []
35
+ File.read(File.join(File.dirname(__FILE__), 'CHANGELOG')).each_line do |line|
36
+ if line.match(/##\s+v[\d.]+\s+##/)
37
+ version_count += 1
38
+ end
39
+ break if version_count >= 2
40
+ changes << line.chomp
41
+ end
42
+ %>
43
+
44
+ s.post_install_message = <<'EOS'
45
+ <%= changes.join("\n") %>
46
+
47
+ See https://github.com/newrelic/rpm/blob/master/CHANGELOG for a full list of
48
+ changes.
49
+ EOS
50
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "New Relic Ruby Agent"]
51
+ s.require_paths = ["lib"]
52
+ s.rubygems_version = "<%= gem_version %>"
53
+ s.summary = "New Relic Ruby Agent"
54
+ end
@@ -24,7 +24,7 @@ test:
24
24
  - a
25
25
  - b
26
26
  - c
27
- log_file_path: <%= ::Rails::VERSION::MAJOR == 3 ? Rails.root : RAILS_ROOT %>/log
27
+ log_file_path: <%= ::Rails::VERSION::MAJOR >= 3 ? Rails.root : RAILS_ROOT %>/log
28
28
 
29
29
  # Some fixtures for newrelic.yml parsing tests
30
30
  erb_value: <%= 'hey'*3 %>
@@ -44,5 +44,6 @@ test:
44
44
  error_collector:
45
45
  enabled: true
46
46
  capture_source: true
47
-
48
-
47
+
48
+ development:
49
+ host: the.wrong.host
@@ -1,34 +1,34 @@
1
1
  require 'new_relic/control/frameworks/rails'
2
2
  require 'new_relic/control/frameworks/rails3'
3
+ require 'new_relic/control/frameworks/rails4'
3
4
 
4
- if defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_i == 3
5
- parent_class = NewRelic::Control::Frameworks::Rails3
6
- else
7
- parent_class = NewRelic::Control::Frameworks::Rails
5
+ if defined?(::Rails) && ::Rails.respond_to?(:version)
6
+ parent_class = case ::Rails.version.to_i
7
+ when 4
8
+ NewRelic::Control::Frameworks::Rails4
9
+ when 3
10
+ NewRelic::Control::Frameworks::Rails3
11
+ end
8
12
  end
9
-
13
+ parent_class ||= NewRelic::Control::Frameworks::Rails
10
14
 
11
15
  class NewRelic::Control::Frameworks::Test < parent_class
12
16
  def env
13
17
  'test'
14
18
  end
19
+
15
20
  def app
16
- if defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_i == 3
17
- :rails3
18
- else
19
- :rails
21
+ if defined?(::Rails::VERSION)
22
+ if ::Rails::VERSION::MAJOR.to_i == 4
23
+ :rails4
24
+ elsif ::Rails::VERSION::MAJOR.to_i == 3
25
+ :rails3
26
+ else
27
+ :rails
28
+ end
20
29
  end
21
30
  end
22
31
 
23
- def initialize *args
24
- super
25
- setup_log
26
- end
27
- # when running tests, don't write out stderr
28
- def log!(msg, level=:info)
29
- log.send level, msg if log
30
- end
31
-
32
32
  # Add the default route in case it's missing. Need it for testing.
33
33
  def install_devmode_route
34
34
  super
@@ -0,0 +1,442 @@
1
+ #-*- coding: utf-8 -*-
2
+ # GITSHA: fc3004f85277f2e682e481d9af8d0834fd858762
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "newrelic_rpm"
6
+ s.version = "3.5.3"
7
+ s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
8
+ s.authors = [ "Jason Clark", "Sam Goldstein", "Jon Guymon" ]
9
+ s.date = "2012-12-10"
10
+ s.description = <<-EOS
11
+ New Relic is a performance management system, developed by New Relic,
12
+ Inc (http://www.newrelic.com). New Relic provides you with deep
13
+ information about the performance of your web application as it runs
14
+ in production. The New Relic Ruby Agent is dual-purposed as a either a
15
+ Gem or plugin, hosted on
16
+ http://github.com/newrelic/rpm/
17
+ EOS
18
+ s.email = "support@newrelic.com"
19
+ s.executables = [ "mongrel_rpm", "newrelic_cmd", "newrelic" ]
20
+ s.extra_rdoc_files = [
21
+ "CHANGELOG",
22
+ "LICENSE",
23
+ "README.md",
24
+ "GUIDELINES_FOR_CONTRIBUTING.md",
25
+ "newrelic.yml"
26
+ ]
27
+ s.files = [
28
+ ".gitignore",
29
+ ".project",
30
+ ".travis.yml",
31
+ "CHANGELOG",
32
+ "GUIDELINES_FOR_CONTRIBUTING.md",
33
+ "Gemfile",
34
+ "InstallationNotes.md",
35
+ "LICENSE",
36
+ "README.md",
37
+ "Rakefile",
38
+ "bin/mongrel_rpm",
39
+ "bin/newrelic",
40
+ "bin/newrelic_cmd",
41
+ "cert/cacert.pem",
42
+ "cert/oldsite.pem",
43
+ "cert/site.pem",
44
+ "config.dot",
45
+ "config/database.yml",
46
+ "init.rb",
47
+ "install.rb",
48
+ "lib/conditional_vendored_dependency_detection.rb",
49
+ "lib/conditional_vendored_metric_parser.rb",
50
+ "lib/new_relic/agent.rb",
51
+ "lib/new_relic/agent/agent.rb",
52
+ "lib/new_relic/agent/beacon_configuration.rb",
53
+ "lib/new_relic/agent/browser_monitoring.rb",
54
+ "lib/new_relic/agent/busy_calculator.rb",
55
+ "lib/new_relic/agent/chained_call.rb",
56
+ "lib/new_relic/agent/configuration.rb",
57
+ "lib/new_relic/agent/configuration/defaults.rb",
58
+ "lib/new_relic/agent/configuration/environment_source.rb",
59
+ "lib/new_relic/agent/configuration/manager.rb",
60
+ "lib/new_relic/agent/configuration/mask_defaults.rb",
61
+ "lib/new_relic/agent/configuration/server_source.rb",
62
+ "lib/new_relic/agent/configuration/yaml_source.rb",
63
+ "lib/new_relic/agent/database.rb",
64
+ "lib/new_relic/agent/error_collector.rb",
65
+ "lib/new_relic/agent/instrumentation.rb",
66
+ "lib/new_relic/agent/instrumentation/active_merchant.rb",
67
+ "lib/new_relic/agent/instrumentation/active_record.rb",
68
+ "lib/new_relic/agent/instrumentation/acts_as_solr.rb",
69
+ "lib/new_relic/agent/instrumentation/authlogic.rb",
70
+ "lib/new_relic/agent/instrumentation/controller_instrumentation.rb",
71
+ "lib/new_relic/agent/instrumentation/data_mapper.rb",
72
+ "lib/new_relic/agent/instrumentation/delayed_job_instrumentation.rb",
73
+ "lib/new_relic/agent/instrumentation/memcache.rb",
74
+ "lib/new_relic/agent/instrumentation/merb/controller.rb",
75
+ "lib/new_relic/agent/instrumentation/merb/errors.rb",
76
+ "lib/new_relic/agent/instrumentation/metric_frame.rb",
77
+ "lib/new_relic/agent/instrumentation/metric_frame/pop.rb",
78
+ "lib/new_relic/agent/instrumentation/net.rb",
79
+ "lib/new_relic/agent/instrumentation/passenger_instrumentation.rb",
80
+ "lib/new_relic/agent/instrumentation/queue_time.rb",
81
+ "lib/new_relic/agent/instrumentation/rack.rb",
82
+ "lib/new_relic/agent/instrumentation/rails/action_controller.rb",
83
+ "lib/new_relic/agent/instrumentation/rails/action_web_service.rb",
84
+ "lib/new_relic/agent/instrumentation/rails/errors.rb",
85
+ "lib/new_relic/agent/instrumentation/rails3/action_controller.rb",
86
+ "lib/new_relic/agent/instrumentation/rails3/errors.rb",
87
+ "lib/new_relic/agent/instrumentation/resque.rb",
88
+ "lib/new_relic/agent/instrumentation/sinatra.rb",
89
+ "lib/new_relic/agent/instrumentation/sunspot.rb",
90
+ "lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb",
91
+ "lib/new_relic/agent/method_tracer.rb",
92
+ "lib/new_relic/agent/new_relic_service.rb",
93
+ "lib/new_relic/agent/pipe_channel_manager.rb",
94
+ "lib/new_relic/agent/pipe_service.rb",
95
+ "lib/new_relic/agent/sampler.rb",
96
+ "lib/new_relic/agent/samplers/cpu_sampler.rb",
97
+ "lib/new_relic/agent/samplers/delayed_job_sampler.rb",
98
+ "lib/new_relic/agent/samplers/memory_sampler.rb",
99
+ "lib/new_relic/agent/samplers/object_sampler.rb",
100
+ "lib/new_relic/agent/shim_agent.rb",
101
+ "lib/new_relic/agent/sql_sampler.rb",
102
+ "lib/new_relic/agent/stats_engine.rb",
103
+ "lib/new_relic/agent/stats_engine/gc_profiler.rb",
104
+ "lib/new_relic/agent/stats_engine/metric_stats.rb",
105
+ "lib/new_relic/agent/stats_engine/samplers.rb",
106
+ "lib/new_relic/agent/stats_engine/transactions.rb",
107
+ "lib/new_relic/agent/thread.rb",
108
+ "lib/new_relic/agent/thread_profiler.rb",
109
+ "lib/new_relic/agent/transaction_info.rb",
110
+ "lib/new_relic/agent/transaction_sample_builder.rb",
111
+ "lib/new_relic/agent/transaction_sampler.rb",
112
+ "lib/new_relic/agent/worker_loop.rb",
113
+ "lib/new_relic/collection_helper.rb",
114
+ "lib/new_relic/command.rb",
115
+ "lib/new_relic/commands/deployments.rb",
116
+ "lib/new_relic/commands/install.rb",
117
+ "lib/new_relic/control.rb",
118
+ "lib/new_relic/control/class_methods.rb",
119
+ "lib/new_relic/control/frameworks.rb",
120
+ "lib/new_relic/control/frameworks/external.rb",
121
+ "lib/new_relic/control/frameworks/merb.rb",
122
+ "lib/new_relic/control/frameworks/rails.rb",
123
+ "lib/new_relic/control/frameworks/rails3.rb",
124
+ "lib/new_relic/control/frameworks/ruby.rb",
125
+ "lib/new_relic/control/frameworks/sinatra.rb",
126
+ "lib/new_relic/control/instance_methods.rb",
127
+ "lib/new_relic/control/instrumentation.rb",
128
+ "lib/new_relic/control/profiling.rb",
129
+ "lib/new_relic/control/server_methods.rb",
130
+ "lib/new_relic/delayed_job_injection.rb",
131
+ "lib/new_relic/helper.rb",
132
+ "lib/new_relic/language_support.rb",
133
+ "lib/new_relic/local_environment.rb",
134
+ "lib/new_relic/merbtasks.rb",
135
+ "lib/new_relic/metric_data.rb",
136
+ "lib/new_relic/metric_spec.rb",
137
+ "lib/new_relic/metrics.rb",
138
+ "lib/new_relic/noticed_error.rb",
139
+ "lib/new_relic/rack.rb",
140
+ "lib/new_relic/rack/browser_monitoring.rb",
141
+ "lib/new_relic/rack/developer_mode.rb",
142
+ "lib/new_relic/rack/error_collector.rb",
143
+ "lib/new_relic/recipes.rb",
144
+ "lib/new_relic/stats.rb",
145
+ "lib/new_relic/timer_lib.rb",
146
+ "lib/new_relic/transaction_analysis.rb",
147
+ "lib/new_relic/transaction_analysis/segment_summary.rb",
148
+ "lib/new_relic/transaction_sample.rb",
149
+ "lib/new_relic/transaction_sample/composite_segment.rb",
150
+ "lib/new_relic/transaction_sample/fake_segment.rb",
151
+ "lib/new_relic/transaction_sample/segment.rb",
152
+ "lib/new_relic/transaction_sample/summary_segment.rb",
153
+ "lib/new_relic/url_rule.rb",
154
+ "lib/new_relic/version.rb",
155
+ "lib/newrelic_rpm.rb",
156
+ "lib/tasks/all.rb",
157
+ "lib/tasks/install.rake",
158
+ "lib/tasks/tests.rake",
159
+ "newrelic.yml",
160
+ "newrelic_rpm.gemspec.erb",
161
+ "recipes/newrelic.rb",
162
+ "test/active_record_fixtures.rb",
163
+ "test/config/newrelic.yml",
164
+ "test/config/test_control.rb",
165
+ "test/fixtures/proc_cpuinfo.txt",
166
+ "test/intentional_fail.rb",
167
+ "test/multiverse/.gitignore",
168
+ "test/multiverse/README.md",
169
+ "test/multiverse/Rakefile",
170
+ "test/multiverse/lib/multiverse/color.rb",
171
+ "test/multiverse/lib/multiverse/envfile.rb",
172
+ "test/multiverse/lib/multiverse/environment.rb",
173
+ "test/multiverse/lib/multiverse/output_collector.rb",
174
+ "test/multiverse/lib/multiverse/runner.rb",
175
+ "test/multiverse/lib/multiverse/suite.rb",
176
+ "test/multiverse/script/run_one",
177
+ "test/multiverse/script/runner",
178
+ "test/multiverse/suites/active_record/Envfile",
179
+ "test/multiverse/suites/active_record/ar_method_aliasing.rb",
180
+ "test/multiverse/suites/active_record/config/newrelic.yml",
181
+ "test/multiverse/suites/active_record/encoding_test.rb",
182
+ "test/multiverse/suites/agent_only/Envfile",
183
+ "test/multiverse/suites/agent_only/config/newrelic.yml",
184
+ "test/multiverse/suites/agent_only/http_response_code_test.rb",
185
+ "test/multiverse/suites/agent_only/marshaling_test.rb",
186
+ "test/multiverse/suites/agent_only/method_visibility_test.rb",
187
+ "test/multiverse/suites/agent_only/pipe_manager_test.rb",
188
+ "test/multiverse/suites/agent_only/service_timeout_test.rb",
189
+ "test/multiverse/suites/agent_only/test_trace_method_with_punctuation.rb",
190
+ "test/multiverse/suites/agent_only/test_trace_transaction_with_punctuation.rb",
191
+ "test/multiverse/suites/agent_only/thread_profiling_test.rb",
192
+ "test/multiverse/suites/datamapper/Envfile",
193
+ "test/multiverse/suites/datamapper/config/newrelic.yml",
194
+ "test/multiverse/suites/datamapper/encoding_test.rb",
195
+ "test/multiverse/suites/monitor_mode_false/Envfile",
196
+ "test/multiverse/suites/monitor_mode_false/config/newrelic.yml",
197
+ "test/multiverse/suites/monitor_mode_false/no_dns_resolv.rb",
198
+ "test/multiverse/suites/no_load/Envfile",
199
+ "test/multiverse/suites/no_load/config/newrelic.yml",
200
+ "test/multiverse/suites/no_load/start_up_test.rb",
201
+ "test/multiverse/suites/rails_3_error_tracing/Envfile",
202
+ "test/multiverse/suites/rails_3_error_tracing/config/newrelic.yml",
203
+ "test/multiverse/suites/rails_3_error_tracing/error_tracing_test.rb",
204
+ "test/multiverse/suites/rails_3_gc/Envfile",
205
+ "test/multiverse/suites/rails_3_gc/config/newrelic.yml",
206
+ "test/multiverse/suites/rails_3_gc/instrumentation_test.rb",
207
+ "test/multiverse/suites/rails_3_queue_time/Envfile",
208
+ "test/multiverse/suites/rails_3_queue_time/config/newrelic.yml",
209
+ "test/multiverse/suites/rails_3_queue_time/queue_time_test.rb",
210
+ "test/multiverse/suites/rails_3_views/.gitignore",
211
+ "test/multiverse/suites/rails_3_views/Envfile",
212
+ "test/multiverse/suites/rails_3_views/app/views/foos/_foo.html.haml",
213
+ "test/multiverse/suites/rails_3_views/app/views/test/_a_partial.html.erb",
214
+ "test/multiverse/suites/rails_3_views/app/views/test/_mid_partial.html.erb",
215
+ "test/multiverse/suites/rails_3_views/app/views/test/_top_partial.html.erb",
216
+ "test/multiverse/suites/rails_3_views/app/views/test/deep_partial.html.erb",
217
+ "test/multiverse/suites/rails_3_views/app/views/test/haml_view.html.haml",
218
+ "test/multiverse/suites/rails_3_views/app/views/test/index.html.erb",
219
+ "test/multiverse/suites/rails_3_views/config/newrelic.yml",
220
+ "test/multiverse/suites/rails_3_views/view_instrumentation_test.rb",
221
+ "test/multiverse/suites/resque/Envfile",
222
+ "test/multiverse/suites/resque/config/newrelic.yml",
223
+ "test/multiverse/suites/resque/dump.rdb",
224
+ "test/multiverse/suites/resque/instrumentation_test.rb",
225
+ "test/multiverse/suites/rum_auto_instrumentation/Envfile",
226
+ "test/multiverse/suites/rum_auto_instrumentation/config/newrelic.yml",
227
+ "test/multiverse/suites/rum_auto_instrumentation/responses/worst_case_small.html",
228
+ "test/multiverse/suites/rum_auto_instrumentation/sanity_test.rb",
229
+ "test/multiverse/suites/sinatra/Envfile",
230
+ "test/multiverse/suites/sinatra/config/newrelic.yml",
231
+ "test/multiverse/suites/sinatra/sinatra_metric_explosion_test.rb",
232
+ "test/multiverse/suites/sinatra/sinatra_routes_test.rb",
233
+ "test/multiverse/suites/sinatra/sinatra_test.rb",
234
+ "test/multiverse/test/multiverse_test.rb",
235
+ "test/multiverse/test/suite_examples/one/a/Envfile",
236
+ "test/multiverse/test/suite_examples/one/a/a_test.rb",
237
+ "test/multiverse/test/suite_examples/one/a/config/newrelic.yml",
238
+ "test/multiverse/test/suite_examples/one/b/Envfile",
239
+ "test/multiverse/test/suite_examples/one/b/b_test.rb",
240
+ "test/multiverse/test/suite_examples/one/b/config/newrelic.yml",
241
+ "test/multiverse/test/suite_examples/three/a/Envfile",
242
+ "test/multiverse/test/suite_examples/three/a/fail_test.rb",
243
+ "test/multiverse/test/suite_examples/three/b/Envfile",
244
+ "test/multiverse/test/suite_examples/three/b/win_test.rb",
245
+ "test/multiverse/test/suite_examples/two/a/Envfile",
246
+ "test/multiverse/test/suite_examples/two/a/fail_test.rb",
247
+ "test/new_relic/agent/agent/connect_test.rb",
248
+ "test/new_relic/agent/agent/start_test.rb",
249
+ "test/new_relic/agent/agent/start_worker_thread_test.rb",
250
+ "test/new_relic/agent/agent_test.rb",
251
+ "test/new_relic/agent/agent_test_controller.rb",
252
+ "test/new_relic/agent/agent_test_controller_test.rb",
253
+ "test/new_relic/agent/apdex_from_server_test.rb",
254
+ "test/new_relic/agent/beacon_configuration_test.rb",
255
+ "test/new_relic/agent/browser_monitoring_test.rb",
256
+ "test/new_relic/agent/busy_calculator_test.rb",
257
+ "test/new_relic/agent/configuration/environment_source_test.rb",
258
+ "test/new_relic/agent/configuration/manager_test.rb",
259
+ "test/new_relic/agent/configuration/server_source_test.rb",
260
+ "test/new_relic/agent/configuration/yaml_source_test.rb",
261
+ "test/new_relic/agent/database_test.rb",
262
+ "test/new_relic/agent/error_collector/notice_error_test.rb",
263
+ "test/new_relic/agent/error_collector_test.rb",
264
+ "test/new_relic/agent/instrumentation/active_record_instrumentation_test.rb",
265
+ "test/new_relic/agent/instrumentation/controller_instrumentation_test.rb",
266
+ "test/new_relic/agent/instrumentation/instrumentation_test.rb",
267
+ "test/new_relic/agent/instrumentation/metric_frame/pop_test.rb",
268
+ "test/new_relic/agent/instrumentation/metric_frame_test.rb",
269
+ "test/new_relic/agent/instrumentation/net_instrumentation_test.rb",
270
+ "test/new_relic/agent/instrumentation/queue_time_test.rb",
271
+ "test/new_relic/agent/instrumentation/rack_test.rb",
272
+ "test/new_relic/agent/instrumentation/sinatra_test.rb",
273
+ "test/new_relic/agent/instrumentation/task_instrumentation_test.rb",
274
+ "test/new_relic/agent/memcache_instrumentation_test.rb",
275
+ "test/new_relic/agent/method_tracer/class_methods/add_method_tracer_test.rb",
276
+ "test/new_relic/agent/method_tracer/instance_methods/trace_execution_scoped_test.rb",
277
+ "test/new_relic/agent/method_tracer_test.rb",
278
+ "test/new_relic/agent/mock_scope_listener.rb",
279
+ "test/new_relic/agent/new_relic_service_test.rb",
280
+ "test/new_relic/agent/pipe_channel_manager_test.rb",
281
+ "test/new_relic/agent/pipe_service_test.rb",
282
+ "test/new_relic/agent/rpm_agent_test.rb",
283
+ "test/new_relic/agent/sampler_test.rb",
284
+ "test/new_relic/agent/shim_agent_test.rb",
285
+ "test/new_relic/agent/sql_sampler_test.rb",
286
+ "test/new_relic/agent/stats_engine/metric_stats/harvest_test.rb",
287
+ "test/new_relic/agent/stats_engine/metric_stats_test.rb",
288
+ "test/new_relic/agent/stats_engine/samplers_test.rb",
289
+ "test/new_relic/agent/stats_engine_test.rb",
290
+ "test/new_relic/agent/thread_profiler_test.rb",
291
+ "test/new_relic/agent/thread_test.rb",
292
+ "test/new_relic/agent/threaded_test.rb",
293
+ "test/new_relic/agent/transaction_info_test.rb",
294
+ "test/new_relic/agent/transaction_sample_builder_test.rb",
295
+ "test/new_relic/agent/transaction_sampler_test.rb",
296
+ "test/new_relic/agent/worker_loop_test.rb",
297
+ "test/new_relic/agent_test.rb",
298
+ "test/new_relic/collection_helper_test.rb",
299
+ "test/new_relic/command/deployments_test.rb",
300
+ "test/new_relic/control/class_methods_test.rb",
301
+ "test/new_relic/control/frameworks/rails_test.rb",
302
+ "test/new_relic/control_test.rb",
303
+ "test/new_relic/delayed_job_injection_test.rb",
304
+ "test/new_relic/fake_collector.rb",
305
+ "test/new_relic/fake_service.rb",
306
+ "test/new_relic/fakes_sending_data.rb",
307
+ "test/new_relic/load_test.rb",
308
+ "test/new_relic/local_environment_test.rb",
309
+ "test/new_relic/metric_data_test.rb",
310
+ "test/new_relic/metric_parser/metric_parser_test.rb",
311
+ "test/new_relic/metric_spec_test.rb",
312
+ "test/new_relic/noticed_error_test.rb",
313
+ "test/new_relic/rack/all_test.rb",
314
+ "test/new_relic/rack/browser_monitoring_test.rb",
315
+ "test/new_relic/rack/developer_mode_helper_test.rb",
316
+ "test/new_relic/rack/developer_mode_test.rb",
317
+ "test/new_relic/rack/error_collector_test.rb",
318
+ "test/new_relic/stats_test.rb",
319
+ "test/new_relic/transaction_analysis/segment_summary_test.rb",
320
+ "test/new_relic/transaction_analysis_test.rb",
321
+ "test/new_relic/transaction_sample/composite_segment_test.rb",
322
+ "test/new_relic/transaction_sample/fake_segment_test.rb",
323
+ "test/new_relic/transaction_sample/segment_test.rb",
324
+ "test/new_relic/transaction_sample/summary_segment_test.rb",
325
+ "test/new_relic/transaction_sample_subtest_test.rb",
326
+ "test/new_relic/transaction_sample_test.rb",
327
+ "test/new_relic/version_number_test.rb",
328
+ "test/script/build_test_gem.sh",
329
+ "test/script/ci.sh",
330
+ "test/script/ci_agent-tests_runner.sh",
331
+ "test/script/ci_bench.sh",
332
+ "test/script/ci_multiverse_runner.sh",
333
+ "test/test_contexts.rb",
334
+ "test/test_helper.rb",
335
+ "ui/helpers/developer_mode_helper.rb",
336
+ "ui/helpers/google_pie_chart.rb",
337
+ "ui/views/layouts/newrelic_default.rhtml",
338
+ "ui/views/newrelic/_explain_plans.rhtml",
339
+ "ui/views/newrelic/_sample.rhtml",
340
+ "ui/views/newrelic/_segment.rhtml",
341
+ "ui/views/newrelic/_segment_limit_message.rhtml",
342
+ "ui/views/newrelic/_segment_row.rhtml",
343
+ "ui/views/newrelic/_show_sample_detail.rhtml",
344
+ "ui/views/newrelic/_show_sample_sql.rhtml",
345
+ "ui/views/newrelic/_show_sample_summary.rhtml",
346
+ "ui/views/newrelic/_sql_row.rhtml",
347
+ "ui/views/newrelic/_stack_trace.rhtml",
348
+ "ui/views/newrelic/_table.rhtml",
349
+ "ui/views/newrelic/explain_sql.rhtml",
350
+ "ui/views/newrelic/file/images/arrow-close.png",
351
+ "ui/views/newrelic/file/images/arrow-open.png",
352
+ "ui/views/newrelic/file/images/blue_bar.gif",
353
+ "ui/views/newrelic/file/images/file_icon.png",
354
+ "ui/views/newrelic/file/images/gray_bar.gif",
355
+ "ui/views/newrelic/file/images/new-relic-rpm-desktop.gif",
356
+ "ui/views/newrelic/file/images/new_relic_rpm_desktop.gif",
357
+ "ui/views/newrelic/file/images/textmate.png",
358
+ "ui/views/newrelic/file/javascript/jquery-1.4.2.js",
359
+ "ui/views/newrelic/file/javascript/transaction_sample.js",
360
+ "ui/views/newrelic/file/stylesheets/style.css",
361
+ "ui/views/newrelic/index.rhtml",
362
+ "ui/views/newrelic/sample_not_found.rhtml",
363
+ "ui/views/newrelic/show_sample.rhtml",
364
+ "ui/views/newrelic/show_source.rhtml",
365
+ "ui/views/newrelic/threads.rhtml",
366
+ "vendor/gems/dependency_detection-0.0.1.build/LICENSE",
367
+ "vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection.rb",
368
+ "vendor/gems/dependency_detection-0.0.1.build/lib/dependency_detection/version.rb",
369
+ "vendor/gems/metric_parser-0.1.0.pre1/.specification",
370
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/metric_parser.rb",
371
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser.rb",
372
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/action_mailer.rb",
373
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_merchant.rb",
374
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/active_record.rb",
375
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/apdex.rb",
376
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/background_transaction.rb",
377
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/client.rb",
378
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller.rb",
379
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_cpu.rb",
380
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb",
381
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database.rb",
382
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/database_pool.rb",
383
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net.rb",
384
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/dot_net_parser.rb",
385
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/errors.rb",
386
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/external.rb",
387
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/frontend.rb",
388
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/gc.rb",
389
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/hibernate_session.rb",
390
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java.rb",
391
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/java_parser.rb",
392
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp.rb",
393
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/jsp_tag.rb",
394
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/mem_cache.rb",
395
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/metric_parser.rb",
396
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/orm.rb",
397
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/other_transaction.rb",
398
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet.rb",
399
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_context_listener.rb",
400
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_filter.rb",
401
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/servlet_init.rb",
402
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr.rb",
403
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/solr_request_handler.rb",
404
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring.rb",
405
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_controller.rb",
406
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/spring_view.rb",
407
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_action.rb",
408
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/struts_result.rb",
409
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/version.rb",
410
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/view.rb",
411
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_frontend.rb",
412
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_service.rb",
413
+ "vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb",
414
+ "newrelic_rpm.gemspec",
415
+ ]
416
+ s.homepage = "http://www.github.com/newrelic/rpm"
417
+ s.post_install_message = <<-EOS
418
+ PLEASE NOTE:
419
+
420
+ Developer Mode is now a Rack middleware.
421
+
422
+ Developer Mode is no longer available in Rails 2.1 and earlier.
423
+ However, starting in version 2.12 you can use Developer Mode in any
424
+ Rack based framework, in addition to Rails. To install developer mode
425
+ in a non-Rails application, just add NewRelic::Rack::DeveloperMode to
426
+ your middleware stack.
427
+
428
+ If you are using JRuby, we recommend using at least version 1.4 or
429
+ later because of issues with the implementation of the timeout library.
430
+
431
+ Refer to the README.md file for more information.
432
+
433
+ Please see http://github.com/newrelic/rpm/blob/master/CHANGELOG
434
+ for a complete description of the features and enhancements available
435
+ in this version of the Ruby Agent.
436
+
437
+ EOS
438
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "New Relic Ruby Agent"]
439
+ s.require_paths = ["lib"]
440
+ s.rubygems_version = "1.8.23"
441
+ s.summary = "New Relic Ruby Agent"
442
+ end