netuitive_rails_agent 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +11 -2
- data/lib/netuitive_rails_agent/netuitive_logger.rb +3 -6
- metadata +26 -32
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: de1f11bcfe4f7aeb12a5a2f22745eadaeed5431e
|
4
|
+
data.tar.gz: 846af5ccbb8f70a198cdcef530345c0d359e8d12
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 26736f7dd7b2aa8bedbd4518f0330484cdf5fe699d8445857d6174cd1cab1e281ae840780d98b8367dcf62495c20cde8171d447c53ddc4a7663379ab1a637e21
|
7
|
+
data.tar.gz: 10e99349e652f6a6f1ee66ba2d3666e85267911f04f5220a163cf0e5fd4c953f11fd23431b125c03e774be0beb93693e0f1b91a0a56be5cd06f71309326ff552
|
data/README.md
CHANGED
@@ -14,8 +14,17 @@ Installing the Netuitive Rails Agent
|
|
14
14
|
-------------------------------------
|
15
15
|
|
16
16
|
1. Add `gem 'netuitive_rails_agent'` to your Gemfile.
|
17
|
-
|
17
|
+
|
18
18
|
2. Run `bundle install`.
|
19
|
-
|
19
|
+
|
20
20
|
3. Restart your rails app.
|
21
21
|
|
22
|
+
## Dockerized Example
|
23
|
+
|
24
|
+
Included in this project are Docker and Docker Compose files for easy testing of this application. To run an example Rails app with the Netuitive Rails Agent monitoring it perform the following steps:
|
25
|
+
|
26
|
+
1. [Sign Up](https://app.netuitive.com/signup/) for a Netuitive account if you don't already have one
|
27
|
+
1. Copy the `example.env` file to `.env` and replace the `RUBY_KEY` variable with your Ruby API key from the [Netuitive Integrations page](https://app.netuitive.com/#/profile/integrations)
|
28
|
+
1. Run `docker-compose up -d`
|
29
|
+
1. Access the example Rails application by going to http://localhost:3000 (or the IP address of your Docker host)
|
30
|
+
1. View your Netuitive inventory for the new **example-rails-application** element (the name is configurable in the `docker-compose.yml` file)
|
@@ -1,14 +1,11 @@
|
|
1
1
|
module NetuitiveRailsAgent
|
2
2
|
class CheaterLogger
|
3
3
|
attr_accessor :level
|
4
|
-
def debug(message)
|
5
|
-
end
|
4
|
+
def debug(message); end
|
6
5
|
|
7
|
-
def error(message)
|
8
|
-
end
|
6
|
+
def error(message); end
|
9
7
|
|
10
|
-
def info(message)
|
11
|
-
end
|
8
|
+
def info(message); end
|
12
9
|
end
|
13
10
|
|
14
11
|
class NetuitiveLogger
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netuitive_rails_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John King
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2016-
|
11
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: netuitive_ruby_api
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 1.0.1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.0.1
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: netuitived
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 1.0.1
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 1.0.1
|
46
41
|
description: Automatically generates Rails metrics for submission to Netuitive's API
|
@@ -49,52 +44,51 @@ executables: []
|
|
49
44
|
extensions: []
|
50
45
|
extra_rdoc_files: []
|
51
46
|
files:
|
47
|
+
- "./LICENSE"
|
48
|
+
- "./README.md"
|
49
|
+
- config/agent.yml
|
52
50
|
- lib/netuitive_rails_agent.rb
|
53
|
-
- lib/netuitive_rails_agent/
|
51
|
+
- lib/netuitive_rails_agent/action_controller.rb
|
54
52
|
- lib/netuitive_rails_agent/action_mailer.rb
|
55
|
-
- lib/netuitive_rails_agent/objectspace.rb
|
56
53
|
- lib/netuitive_rails_agent/action_view.rb
|
57
|
-
- lib/netuitive_rails_agent/netuitive_logger.rb
|
58
|
-
- lib/netuitive_rails_agent/scheduler.rb
|
59
54
|
- lib/netuitive_rails_agent/active_job.rb
|
60
|
-
- lib/netuitive_rails_agent/request_data.rb
|
61
|
-
- lib/netuitive_rails_agent/config_manager.rb
|
62
|
-
- lib/netuitive_rails_agent/action_controller.rb
|
63
55
|
- lib/netuitive_rails_agent/active_record.rb
|
56
|
+
- lib/netuitive_rails_agent/active_support.rb
|
57
|
+
- lib/netuitive_rails_agent/api_interaction.rb
|
58
|
+
- lib/netuitive_rails_agent/config_manager.rb
|
64
59
|
- lib/netuitive_rails_agent/controller_utils.rb
|
60
|
+
- lib/netuitive_rails_agent/error_logger.rb
|
61
|
+
- lib/netuitive_rails_agent/error_tracker.rb
|
62
|
+
- lib/netuitive_rails_agent/error_utils.rb
|
65
63
|
- lib/netuitive_rails_agent/gc.rb
|
64
|
+
- lib/netuitive_rails_agent/netuitive_logger.rb
|
65
|
+
- lib/netuitive_rails_agent/objectspace.rb
|
66
|
+
- lib/netuitive_rails_agent/request_data.rb
|
67
|
+
- lib/netuitive_rails_agent/scheduler.rb
|
66
68
|
- lib/netuitive_rails_agent/sidekiq.rb
|
67
|
-
- lib/netuitive_rails_agent/error_tracker.rb
|
68
|
-
- lib/netuitive_rails_agent/active_support.rb
|
69
|
-
- lib/netuitive_rails_agent/error_logger.rb
|
70
|
-
- lib/netuitive_rails_agent/api_interaction.rb
|
71
|
-
- config/agent.yml
|
72
|
-
- ./LICENSE
|
73
69
|
- log/netuitive.log
|
74
|
-
- ./README.md
|
75
70
|
homepage: http://rubygems.org/gems/netuitive_rails_agent
|
76
71
|
licenses:
|
77
|
-
- Apache
|
72
|
+
- Apache-2.0
|
73
|
+
metadata: {}
|
78
74
|
post_install_message:
|
79
75
|
rdoc_options: []
|
80
76
|
require_paths:
|
81
77
|
- lib
|
82
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
79
|
requirements:
|
85
|
-
- -
|
80
|
+
- - ">="
|
86
81
|
- !ruby/object:Gem::Version
|
87
82
|
version: '0'
|
88
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
84
|
requirements:
|
91
|
-
- -
|
85
|
+
- - ">="
|
92
86
|
- !ruby/object:Gem::Version
|
93
87
|
version: '0'
|
94
88
|
requirements: []
|
95
89
|
rubyforge_project:
|
96
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.4.8
|
97
91
|
signing_key:
|
98
|
-
specification_version:
|
92
|
+
specification_version: 4
|
99
93
|
summary: Rails metrics for Netuitive's API
|
100
94
|
test_files: []
|