reportsmash 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +34 -0
  3. data/README.rdoc +2 -0
  4. data/Rakefile +32 -0
  5. data/lib/reportsmash/control/class_methods.rb +17 -0
  6. data/lib/reportsmash/control/instance_methods.rb +70 -0
  7. data/lib/reportsmash/control.rb +11 -0
  8. data/lib/reportsmash/engine/engine.rb +118 -0
  9. data/lib/reportsmash/engine/instrumentation/external.rb +16 -0
  10. data/lib/reportsmash/engine/instrumentation/memcache/dalli.rb +39 -0
  11. data/lib/reportsmash/engine/instrumentation/memcache/mem_cache.rb +39 -0
  12. data/lib/reportsmash/engine/instrumentation/memcache/memcached.rb +48 -0
  13. data/lib/reportsmash/engine/instrumentation/memcache.rb +7 -0
  14. data/lib/reportsmash/engine/instrumentation/redis.rb +28 -0
  15. data/lib/reportsmash/engine/instrumentation/typhoeus.rb +22 -0
  16. data/lib/reportsmash/engine/instrumentation.rb +6 -0
  17. data/lib/reportsmash/engine/thread_state.rb +19 -0
  18. data/lib/reportsmash/engine/threading.rb +13 -0
  19. data/lib/reportsmash/engine/transaction.rb +116 -0
  20. data/lib/reportsmash/engine/worker.rb +56 -0
  21. data/lib/reportsmash/engine.rb +41 -0
  22. data/lib/reportsmash/rack/hooks.rb +37 -0
  23. data/lib/reportsmash/rack.rb +5 -0
  24. data/lib/reportsmash/version.rb +3 -0
  25. data/lib/reportsmash.rb +22 -0
  26. data/lib/tasks/reportsmash_tasks.rake +4 -0
  27. data/test/dummy/README.rdoc +28 -0
  28. data/test/dummy/Rakefile +6 -0
  29. data/test/dummy/app/assets/javascripts/application.js +13 -0
  30. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  31. data/test/dummy/app/controllers/application_controller.rb +5 -0
  32. data/test/dummy/app/helpers/application_helper.rb +2 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/bin/bundle +3 -0
  35. data/test/dummy/bin/rails +4 -0
  36. data/test/dummy/bin/rake +4 -0
  37. data/test/dummy/config/application.rb +23 -0
  38. data/test/dummy/config/boot.rb +5 -0
  39. data/test/dummy/config/database.yml +25 -0
  40. data/test/dummy/config/environment.rb +5 -0
  41. data/test/dummy/config/environments/development.rb +37 -0
  42. data/test/dummy/config/environments/production.rb +78 -0
  43. data/test/dummy/config/environments/test.rb +39 -0
  44. data/test/dummy/config/initializers/assets.rb +8 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/mime_types.rb +4 -0
  50. data/test/dummy/config/initializers/session_store.rb +3 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +23 -0
  53. data/test/dummy/config/routes.rb +56 -0
  54. data/test/dummy/config/secrets.yml +22 -0
  55. data/test/dummy/config.ru +4 -0
  56. data/test/dummy/public/404.html +67 -0
  57. data/test/dummy/public/422.html +67 -0
  58. data/test/dummy/public/500.html +66 -0
  59. data/test/dummy/public/favicon.ico +0 -0
  60. data/test/reportsmash_test.rb +7 -0
  61. data/test/test_helper.rb +15 -0
  62. metadata +173 -0
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: f4294137f499cf5ad89f20744e5b82a38c27e35e074d93a377cc5a7b95c1c98f5a753f3f0f47412414f089501ac9fa3ab68ac6d11a25172e90d4dad3c298ffa5
15
+
16
+ test:
17
+ secret_key_base: 5331de2816c84b592b08ce5ff359a2821d484b21feb8aeee43f0fd31ee3afc22c2e355caffb39eb1252ca60e338595415e42849d857dd915a4f30e907d1d8487
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ReportsMashTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ReportsMash
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reportsmash
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
5
+ platform: ruby
6
+ authors:
7
+ - Zeljko Tomic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.2.13
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.13
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.2.13
33
+ - !ruby/object:Gem::Dependency
34
+ name: snappy
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: 0.0.12
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: 0.0.12
47
+ description: ReportsMash agent for rails applications.
48
+ email:
49
+ - ztomic@reportsmash.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - LICENSE
55
+ - README.rdoc
56
+ - Rakefile
57
+ - lib/reportsmash.rb
58
+ - lib/reportsmash/control.rb
59
+ - lib/reportsmash/control/class_methods.rb
60
+ - lib/reportsmash/control/instance_methods.rb
61
+ - lib/reportsmash/engine.rb
62
+ - lib/reportsmash/engine/engine.rb
63
+ - lib/reportsmash/engine/instrumentation.rb
64
+ - lib/reportsmash/engine/instrumentation/external.rb
65
+ - lib/reportsmash/engine/instrumentation/memcache.rb
66
+ - lib/reportsmash/engine/instrumentation/memcache/dalli.rb
67
+ - lib/reportsmash/engine/instrumentation/memcache/mem_cache.rb
68
+ - lib/reportsmash/engine/instrumentation/memcache/memcached.rb
69
+ - lib/reportsmash/engine/instrumentation/redis.rb
70
+ - lib/reportsmash/engine/instrumentation/typhoeus.rb
71
+ - lib/reportsmash/engine/thread_state.rb
72
+ - lib/reportsmash/engine/threading.rb
73
+ - lib/reportsmash/engine/transaction.rb
74
+ - lib/reportsmash/engine/worker.rb
75
+ - lib/reportsmash/rack.rb
76
+ - lib/reportsmash/rack/hooks.rb
77
+ - lib/reportsmash/version.rb
78
+ - lib/tasks/reportsmash_tasks.rake
79
+ - test/dummy/README.rdoc
80
+ - test/dummy/Rakefile
81
+ - test/dummy/app/assets/javascripts/application.js
82
+ - test/dummy/app/assets/stylesheets/application.css
83
+ - test/dummy/app/controllers/application_controller.rb
84
+ - test/dummy/app/helpers/application_helper.rb
85
+ - test/dummy/app/views/layouts/application.html.erb
86
+ - test/dummy/bin/bundle
87
+ - test/dummy/bin/rails
88
+ - test/dummy/bin/rake
89
+ - test/dummy/config.ru
90
+ - test/dummy/config/application.rb
91
+ - test/dummy/config/boot.rb
92
+ - test/dummy/config/database.yml
93
+ - test/dummy/config/environment.rb
94
+ - test/dummy/config/environments/development.rb
95
+ - test/dummy/config/environments/production.rb
96
+ - test/dummy/config/environments/test.rb
97
+ - test/dummy/config/initializers/assets.rb
98
+ - test/dummy/config/initializers/backtrace_silencers.rb
99
+ - test/dummy/config/initializers/cookies_serializer.rb
100
+ - test/dummy/config/initializers/filter_parameter_logging.rb
101
+ - test/dummy/config/initializers/inflections.rb
102
+ - test/dummy/config/initializers/mime_types.rb
103
+ - test/dummy/config/initializers/session_store.rb
104
+ - test/dummy/config/initializers/wrap_parameters.rb
105
+ - test/dummy/config/locales/en.yml
106
+ - test/dummy/config/routes.rb
107
+ - test/dummy/config/secrets.yml
108
+ - test/dummy/public/404.html
109
+ - test/dummy/public/422.html
110
+ - test/dummy/public/500.html
111
+ - test/dummy/public/favicon.ico
112
+ - test/reportsmash_test.rb
113
+ - test/test_helper.rb
114
+ homepage: http://www.reportsmash.com
115
+ licenses:
116
+ - ReportsMash License
117
+ metadata: {}
118
+ post_install_message:
119
+ rdoc_options: []
120
+ require_paths:
121
+ - lib
122
+ required_ruby_version: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ requirements: []
133
+ rubyforge_project:
134
+ rubygems_version: 2.5.1
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: ReportsMash agent
138
+ test_files:
139
+ - test/dummy/config/secrets.yml
140
+ - test/dummy/config/routes.rb
141
+ - test/dummy/config/environments/production.rb
142
+ - test/dummy/config/environments/test.rb
143
+ - test/dummy/config/environments/development.rb
144
+ - test/dummy/config/initializers/backtrace_silencers.rb
145
+ - test/dummy/config/initializers/assets.rb
146
+ - test/dummy/config/initializers/filter_parameter_logging.rb
147
+ - test/dummy/config/initializers/cookies_serializer.rb
148
+ - test/dummy/config/initializers/session_store.rb
149
+ - test/dummy/config/initializers/inflections.rb
150
+ - test/dummy/config/initializers/mime_types.rb
151
+ - test/dummy/config/initializers/wrap_parameters.rb
152
+ - test/dummy/config/environment.rb
153
+ - test/dummy/config/locales/en.yml
154
+ - test/dummy/config/database.yml
155
+ - test/dummy/config/boot.rb
156
+ - test/dummy/config/application.rb
157
+ - test/dummy/Rakefile
158
+ - test/dummy/public/404.html
159
+ - test/dummy/public/422.html
160
+ - test/dummy/public/favicon.ico
161
+ - test/dummy/public/500.html
162
+ - test/dummy/bin/rake
163
+ - test/dummy/bin/bundle
164
+ - test/dummy/bin/rails
165
+ - test/dummy/README.rdoc
166
+ - test/dummy/config.ru
167
+ - test/dummy/app/helpers/application_helper.rb
168
+ - test/dummy/app/controllers/application_controller.rb
169
+ - test/dummy/app/assets/javascripts/application.js
170
+ - test/dummy/app/assets/stylesheets/application.css
171
+ - test/dummy/app/views/layouts/application.html.erb
172
+ - test/reportsmash_test.rb
173
+ - test/test_helper.rb