instrumental_agent 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,43 +1,56 @@
1
- = Instrumental Agent
1
+ # Instrumental Agent
2
2
 
3
3
  Instrument anything.
4
4
 
5
- == Setup & Usage
5
+ ## Setup & Usage
6
6
 
7
7
  Add the gem to your Gemfile.
8
8
 
9
- gem 'instrumental_agent'
9
+ ```sh
10
+ gem 'instrumental_agent'
11
+ ```
10
12
 
11
13
  Visit instrumentalapp.com[instrumentalapp.com] and create an account, then
12
14
  initialize the agent with your API key, found in the Docs section.
13
15
 
14
- I = Instrumental::Agent.new('YOUR_API_KEY', :test_mode => !Rails.env.production?)
16
+ ```sh
17
+ I = Instrumental::Agent.new('YOUR_API_KEY', :test_mode => !Rails.env.production?)
18
+ ```
15
19
 
16
20
  We recommend setting test_mode to true in dev/test modes so that you don't pollute your production data.
17
21
 
18
22
  Now you can begin to use Instrumental to track your application.
19
23
 
20
- I.gauge('load', 1.23)
21
- I.increment('signups')
24
+ ```sh
25
+ I.gauge('load', 1.23)
26
+ I.increment('signups')
27
+ ```
22
28
 
23
29
  Data without historical context sucks. Instrumental lets you
24
30
  backfill data, allowing you to see deep into your project's past.
25
31
 
26
- User.find_each do |user|
27
- I.increment('signups', 1, user.created_at)
28
- end
32
+ ```sh
33
+ User.find_each do |user|
34
+ I.increment('signups', 1, user.created_at)
35
+ end
36
+ ```
29
37
 
30
- Want some general server stats (load, memory, etc.)? Run this command, sorry not daemonized yet :)
38
+ Want some general server stats (load, memory, etc.)? Install instrumental_tools and run this command (sorry not daemonized yet :)
31
39
 
32
- instrument_server
40
+ ```sh
41
+ gem install instrumental_tools
42
+ instrument_server
43
+ ```
33
44
 
34
45
  Running under Rails? You can also give our experimental Rack middleware
35
46
  a shot by initializing it with:
36
47
 
37
- Instrumental::Middleware.boot
48
+ ```sh
49
+ Instrumental::Middleware.boot
50
+ ```
38
51
 
39
52
  Need to quickly disable the agent? set :enabled to false on initialization and you don't need to change any application code.
40
53
 
41
- == Troubleshooting & Help
54
+ ## Troubleshooting & Help
42
55
 
43
- We are here to help, please email us at mailto:support@instrumentalapp.com.
56
+ We are here to help, please email us at [support@instrumentalapp.com](mailto:support@instrumentalapp.com).
@@ -1,3 +1,3 @@
1
1
  module Instrumental
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,134 +1,108 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: instrumental_agent
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 5
8
- - 0
9
- segments_generated: true
10
- version: 0.5.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Elijah Miller
14
9
  - Christopher Zelenak
15
10
  - Kristopher Chambers
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2011-12-09 00:00:00 -05:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- segments_generated: true
31
- version: "0"
32
- requirement: *id001
14
+ date: 2011-12-12 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
33
17
  name: rake
34
- prerelease: false
18
+ requirement: &70326630447340 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
35
24
  type: :development
36
- - !ruby/object:Gem::Dependency
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 2
43
- - 0
44
- segments_generated: true
45
- version: "2.0"
46
- requirement: *id002
47
- name: rspec
48
25
  prerelease: false
26
+ version_requirements: *70326630447340
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: &70326630446640 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: '2.0'
49
35
  type: :development
50
- - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 0
57
- segments_generated: true
58
- version: "0"
59
- requirement: *id003
60
- name: guard
61
36
  prerelease: false
37
+ version_requirements: *70326630446640
38
+ - !ruby/object:Gem::Dependency
39
+ name: guard
40
+ requirement: &70326630445220 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
62
46
  type: :development
63
- - !ruby/object:Gem::Dependency
64
- version_requirements: &id004 !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- segments:
69
- - 0
70
- segments_generated: true
71
- version: "0"
72
- requirement: *id004
73
- name: guard-rspec
74
47
  prerelease: false
48
+ version_requirements: *70326630445220
49
+ - !ruby/object:Gem::Dependency
50
+ name: guard-rspec
51
+ requirement: &70326630444280 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
75
57
  type: :development
76
- - !ruby/object:Gem::Dependency
77
- version_requirements: &id005 !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- segments:
82
- - 0
83
- segments_generated: true
84
- version: "0"
85
- requirement: *id005
86
- name: growl_notify
87
58
  prerelease: false
59
+ version_requirements: *70326630444280
60
+ - !ruby/object:Gem::Dependency
61
+ name: growl_notify
62
+ requirement: &70326630443280 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
88
68
  type: :development
89
- - !ruby/object:Gem::Dependency
90
- version_requirements: &id006 !ruby/object:Gem::Requirement
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
- segments_generated: true
97
- version: "0"
98
- requirement: *id006
99
- name: rb-fsevent
100
69
  prerelease: false
70
+ version_requirements: *70326630443280
71
+ - !ruby/object:Gem::Dependency
72
+ name: rb-fsevent
73
+ requirement: &70326630442600 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
101
79
  type: :development
102
- - !ruby/object:Gem::Dependency
103
- version_requirements: &id007 !ruby/object:Gem::Requirement
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- segments:
108
- - 0
109
- segments_generated: true
110
- version: "0"
111
- requirement: *id007
112
- name: fuubar
113
80
  prerelease: false
81
+ version_requirements: *70326630442600
82
+ - !ruby/object:Gem::Dependency
83
+ name: fuubar
84
+ requirement: &70326630441940 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
114
90
  type: :development
91
+ prerelease: false
92
+ version_requirements: *70326630441940
115
93
  description: Keep track of anything.
116
- email:
94
+ email:
117
95
  - support@instrumentalapp.com
118
- executables:
119
- - instrument_server
96
+ executables: []
120
97
  extensions: []
121
-
122
98
  extra_rdoc_files: []
123
-
124
- files:
99
+ files:
125
100
  - .gitignore
126
101
  - .rspec
127
102
  - Gemfile
128
103
  - Guardfile
129
- - README.rdoc
104
+ - README.md
130
105
  - Rakefile
131
- - bin/instrument_server
132
106
  - instrumental_agent.gemspec
133
107
  - lib/instrumental/agent.rb
134
108
  - lib/instrumental/rack/middleware.rb
@@ -140,39 +114,31 @@ files:
140
114
  - spec/agent_spec.rb
141
115
  - spec/spec_helper.rb
142
116
  - spec/test_server.rb
143
- has_rdoc: true
144
117
  homepage: http://github.com/fastestforward/instrumental_agent
145
118
  licenses: []
146
-
147
119
  post_install_message:
148
120
  rdoc_options: []
149
-
150
- require_paths:
121
+ require_paths:
151
122
  - lib
152
- required_ruby_version: !ruby/object:Gem::Requirement
153
- requirements:
154
- - - ">="
155
- - !ruby/object:Gem::Version
156
- segments:
157
- - 0
158
- segments_generated: true
159
- version: "0"
160
- required_rubygems_version: !ruby/object:Gem::Requirement
161
- requirements:
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- segments:
165
- - 0
166
- segments_generated: true
167
- version: "0"
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
168
135
  requirements: []
169
-
170
136
  rubyforge_project:
171
- rubygems_version: 1.3.6
137
+ rubygems_version: 1.8.11
172
138
  signing_key:
173
139
  specification_version: 3
174
140
  summary: Agent for reporting data to instrumentalapp.com
175
- test_files:
141
+ test_files:
176
142
  - spec/agent_spec.rb
177
143
  - spec/spec_helper.rb
178
144
  - spec/test_server.rb
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- puts '***********************************'
4
- puts '*** Moved to instrumental_tools ***'
5
- puts '***********************************'
6
- puts "\ngem install instrumental_tools\n"
7
- exit 1