tuttle 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +61 -4
  4. data/Rakefile +1 -16
  5. data/app/controllers/tuttle/active_job_controller.rb +51 -0
  6. data/app/controllers/tuttle/active_model_serializers_controller.rb +3 -8
  7. data/app/controllers/tuttle/application_controller.rb +3 -0
  8. data/app/controllers/tuttle/cancancan_controller.rb +8 -15
  9. data/app/controllers/tuttle/devise_controller.rb +1 -2
  10. data/app/controllers/tuttle/gems_controller.rb +4 -4
  11. data/app/controllers/tuttle/home_controller.rb +0 -1
  12. data/app/controllers/tuttle/paperclip_controller.rb +1 -2
  13. data/app/controllers/tuttle/rack_mini_profiler_controller.rb +15 -0
  14. data/app/controllers/tuttle/rails_controller.rb +45 -7
  15. data/app/controllers/tuttle/request_controller.rb +0 -4
  16. data/app/controllers/tuttle/ruby_controller.rb +6 -2
  17. data/app/helpers/tuttle/application_helper.rb +13 -8
  18. data/app/models/tuttle/configuration_registry.rb +25 -0
  19. data/app/models/tuttle/version_detector.rb +9 -0
  20. data/app/views/layouts/tuttle/application.html.erb +29 -20
  21. data/app/views/tuttle/active_job/index.html.erb +48 -0
  22. data/app/views/tuttle/active_model_serializers/index.html.erb +2 -0
  23. data/app/views/tuttle/gems/get_process_mem.html.erb +13 -13
  24. data/app/views/tuttle/gems/http_clients.html.erb +9 -10
  25. data/app/views/tuttle/gems/json.html.erb +3 -3
  26. data/app/views/tuttle/gems/other.html.erb +41 -11
  27. data/app/views/tuttle/home/index.html.erb +27 -23
  28. data/app/views/tuttle/{performance_tuning → rack_mini_profiler}/index.html.erb +6 -6
  29. data/app/views/tuttle/rails/_cache_dalli_store.html.erb +65 -0
  30. data/app/views/tuttle/rails/_cache_memory_store.html.erb +43 -0
  31. data/app/views/tuttle/rails/_cache_monitor.html.erb +63 -0
  32. data/app/views/tuttle/rails/assets.html.erb +181 -28
  33. data/app/views/tuttle/rails/cache.html.erb +92 -102
  34. data/app/views/tuttle/rails/database.html.erb +2 -2
  35. data/app/views/tuttle/rails/index.html.erb +20 -21
  36. data/app/views/tuttle/rails/routes.html.erb +88 -36
  37. data/app/views/tuttle/rails/schema_cache.html.erb +2 -1
  38. data/app/views/tuttle/ruby/index.html.erb +24 -20
  39. data/config/rails_config_base.yml +80 -0
  40. data/config/rails_config_v4.x.yml +14 -0
  41. data/config/rails_config_v5.x.yml +12 -0
  42. data/config/routes.rb +7 -1
  43. data/lib/tuttle.rb +3 -6
  44. data/lib/tuttle/engine.rb +24 -12
  45. data/lib/tuttle/instrumenter.rb +7 -7
  46. data/lib/tuttle/middleware/request_profiler.rb +165 -24
  47. data/lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb +7 -3
  48. data/lib/tuttle/presenters/rack_mini_profiler/client_settings.rb +27 -0
  49. data/lib/tuttle/ruby_prof/fast_call_stack_printer.rb +26 -53
  50. data/lib/tuttle/version.rb +1 -1
  51. metadata +18 -8
  52. data/app/controllers/tuttle/performance_tuning_controller.rb +0 -14
@@ -1,3 +1,3 @@
1
1
  module Tuttle
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuttle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Gynn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-11 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -34,14 +34,14 @@ dependencies:
34
34
  name: appraisal
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  description: Rails server inspector
@@ -55,6 +55,7 @@ files:
55
55
  - MIT-LICENSE
56
56
  - README.md
57
57
  - Rakefile
58
+ - app/controllers/tuttle/active_job_controller.rb
58
59
  - app/controllers/tuttle/active_model_serializers_controller.rb
59
60
  - app/controllers/tuttle/active_support_controller.rb
60
61
  - app/controllers/tuttle/application_controller.rb
@@ -63,12 +64,15 @@ files:
63
64
  - app/controllers/tuttle/gems_controller.rb
64
65
  - app/controllers/tuttle/home_controller.rb
65
66
  - app/controllers/tuttle/paperclip_controller.rb
66
- - app/controllers/tuttle/performance_tuning_controller.rb
67
+ - app/controllers/tuttle/rack_mini_profiler_controller.rb
67
68
  - app/controllers/tuttle/rails_controller.rb
68
69
  - app/controllers/tuttle/request_controller.rb
69
70
  - app/controllers/tuttle/ruby_controller.rb
70
71
  - app/helpers/tuttle/application_helper.rb
72
+ - app/models/tuttle/configuration_registry.rb
73
+ - app/models/tuttle/version_detector.rb
71
74
  - app/views/layouts/tuttle/application.html.erb
75
+ - app/views/tuttle/active_job/index.html.erb
72
76
  - app/views/tuttle/active_model_serializers/index.html.erb
73
77
  - app/views/tuttle/active_model_serializers/index9.html.erb
74
78
  - app/views/tuttle/active_support/dependencies.html.erb
@@ -86,7 +90,10 @@ files:
86
90
  - app/views/tuttle/gems/other.html.erb
87
91
  - app/views/tuttle/home/index.html.erb
88
92
  - app/views/tuttle/paperclip/index.html.erb
89
- - app/views/tuttle/performance_tuning/index.html.erb
93
+ - app/views/tuttle/rack_mini_profiler/index.html.erb
94
+ - app/views/tuttle/rails/_cache_dalli_store.html.erb
95
+ - app/views/tuttle/rails/_cache_memory_store.html.erb
96
+ - app/views/tuttle/rails/_cache_monitor.html.erb
90
97
  - app/views/tuttle/rails/assets.html.erb
91
98
  - app/views/tuttle/rails/cache.html.erb
92
99
  - app/views/tuttle/rails/controllers.html.erb
@@ -103,6 +110,9 @@ files:
103
110
  - app/views/tuttle/ruby/index.html.erb
104
111
  - app/views/tuttle/ruby/miscellaneous.html.erb
105
112
  - app/views/tuttle/ruby/tuning.html.erb
113
+ - config/rails_config_base.yml
114
+ - config/rails_config_v4.x.yml
115
+ - config/rails_config_v5.x.yml
106
116
  - config/routes.rb
107
117
  - lib/tasks/tuttle_tasks.rake
108
118
  - lib/tuttle.rb
@@ -110,6 +120,7 @@ files:
110
120
  - lib/tuttle/instrumenter.rb
111
121
  - lib/tuttle/middleware/request_profiler.rb
112
122
  - lib/tuttle/presenters/action_dispatch/routing/route_wrapper.rb
123
+ - lib/tuttle/presenters/rack_mini_profiler/client_settings.rb
113
124
  - lib/tuttle/ruby_prof/fast_call_stack_printer.rb
114
125
  - lib/tuttle/version.rb
115
126
  homepage: https://github.com/dgynn/tuttle
@@ -132,9 +143,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
143
  version: '0'
133
144
  requirements: []
134
145
  rubyforge_project:
135
- rubygems_version: 2.5.1
146
+ rubygems_version: 2.5.2
136
147
  signing_key:
137
148
  specification_version: 4
138
149
  summary: Tuttle for Rails
139
150
  test_files: []
140
- has_rdoc:
@@ -1,14 +0,0 @@
1
- require_dependency 'tuttle/application_controller'
2
-
3
- module Tuttle
4
- class PerformanceTuningController < ApplicationController
5
-
6
- def index
7
- if defined?(::Rack::MiniProfiler)
8
- @mp_config = ::Rack::MiniProfiler.config
9
- @mp_client_settings = ::Rack::MiniProfiler::ClientSettings.new(request.env)
10
- end
11
- end
12
-
13
- end
14
- end