appsignal 1.0.1 → 1.0.2.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a97493676106452572f060f431a43d086d14f307
4
- data.tar.gz: f08d472b67de0c9c60281534c89630610c8ff3ea
3
+ metadata.gz: 04e179e04f9119affdabab7e154ab0d94eccdae2
4
+ data.tar.gz: 34329272cbf71e9bc7ef73b069726b09418ce985
5
5
  SHA512:
6
- metadata.gz: 3f64225eb581be6726079d4e68d74f4060e28d3c53a648a3863871d0a7cf4ed44ecb294a94e4e61658436a7be3fb6a036a0fc0b13b698f6a0d3335471f59aaac
7
- data.tar.gz: 8d312bcadddab44f10ccd60e2490a832e39e46187dd7f3176ab4859c00dc883fbdb8acaa0a2315870f1d2a8323ddb28c6386e1252ef99fcb4e9c6de36d5a17bb
6
+ metadata.gz: e89d5c9c46c28a154b29da185f9b9b95b8a1a40b399d4ad8c4b680775d663590a4a9bdd650c20a8cf9b3f3b176e4c85751923585661df123f703969340413ea1
7
+ data.tar.gz: cb99c5936fc50cbc0fa168b46ebd8fb55f7c879c8a228735266c1bcc35450e88c4c2ebdebf87938995ea4a09ef269b58e2e4004e4399f1d53520757851e055f2
@@ -1,3 +1,8 @@
1
+ # 1.0.2
2
+ * Bug fix in format of process memory measurements
3
+ * Event formatter for `instantiation.active_record`
4
+ * Rake integration file for backwards compatibility
5
+
1
6
  # 1.0.1
2
7
  * Fix for bug in gem initialization when using `safe_yaml` gem
3
8
 
@@ -1,15 +1,15 @@
1
1
  ---
2
- version: 9e5359a
2
+ version: 72b3ea5
3
3
  triples:
4
4
  x86_64-linux:
5
- checksum: cafe3e12730619db156edc7d36ce4c6e7a367fba94dcb509c0373e46beeacc00
6
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-x86_64-linux-static.tar.gz
5
+ checksum: 7e542558f427462a004fb50602d88bae75de9d3f210d1ee8ab23ee66d246e190
6
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/72b3ea5/appsignal-agent-x86_64-linux-static.tar.gz
7
7
  lib_filename: libappsignal.a
8
8
  i686-linux:
9
- checksum: 4f5453174877e5bbc61e686eadfd741870eb5ed7713a405440ba8cfa77a884d8
10
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-i686-linux-static.tar.gz
9
+ checksum: 14e8937e93707d78302f04d4c02a5f969a1910f0187e8192a6a82c38493e2926
10
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/72b3ea5/appsignal-agent-i686-linux-static.tar.gz
11
11
  lib_filename: libappsignal.a
12
12
  x86_64-darwin:
13
- checksum: 19d974f0ce1c8e1e296f631876f050992b2de055e0f835c07a811da6513c621d
14
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9e5359a/appsignal-agent-x86_64-darwin-static.tar.gz
13
+ checksum: 684ce250db2e717937e2099d74358c2bfde8d911e9d98788ba483e652f0e8945
14
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/72b3ea5/appsignal-agent-x86_64-darwin-static.tar.gz
15
15
  lib_filename: libappsignal.a
@@ -0,0 +1,13 @@
1
+ module Appsignal
2
+ class EventFormatter
3
+ module ActiveRecord
4
+ class InstantiationFormatter < Appsignal::EventFormatter
5
+ register 'instantiation.active_record'
6
+
7
+ def format(payload)
8
+ [payload[:class_name], nil]
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,2 @@
1
+ # Since version 1.0 requiring this file is not necessary anymore to get
2
+ # Rake integration, it's just here for backward compatibility.
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2.beta.1'
5
5
  end
@@ -0,0 +1,23 @@
1
+ require 'spec_helper'
2
+
3
+ describe Appsignal::EventFormatter::ActiveRecord::InstantiationFormatter do
4
+ let(:klass) { Appsignal::EventFormatter::ActiveRecord::InstantiationFormatter }
5
+ let(:formatter) { klass.new }
6
+
7
+ it "should register request.net_http" do
8
+ Appsignal::EventFormatter.registered?('instantiation.active_record', klass).should be_true
9
+ end
10
+
11
+ describe "#format" do
12
+ let(:payload) do
13
+ {
14
+ record_count: 1,
15
+ class_name: 'User'
16
+ }
17
+ end
18
+
19
+ subject { formatter.format(payload) }
20
+
21
+ it { should == ['User', nil] }
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-18 00:00:00.000000000 Z
12
+ date: 2016-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -152,6 +152,7 @@ files:
152
152
  - lib/appsignal/config.rb
153
153
  - lib/appsignal/event_formatter.rb
154
154
  - lib/appsignal/event_formatter/action_view/render_formatter.rb
155
+ - lib/appsignal/event_formatter/active_record/instantiation_formatter.rb
155
156
  - lib/appsignal/event_formatter/active_record/sql_formatter.rb
156
157
  - lib/appsignal/event_formatter/moped/query_formatter.rb
157
158
  - lib/appsignal/event_formatter/net_http/request_formatter.rb
@@ -175,6 +176,7 @@ files:
175
176
  - lib/appsignal/integrations/mongo_ruby_driver.rb
176
177
  - lib/appsignal/integrations/padrino.rb
177
178
  - lib/appsignal/integrations/railtie.rb
179
+ - lib/appsignal/integrations/rake.rb
178
180
  - lib/appsignal/integrations/resque.rb
179
181
  - lib/appsignal/integrations/sinatra.rb
180
182
  - lib/appsignal/js_exception_transaction.rb
@@ -205,6 +207,7 @@ files:
205
207
  - spec/lib/appsignal/cli_spec.rb
206
208
  - spec/lib/appsignal/config_spec.rb
207
209
  - spec/lib/appsignal/event_formatter/action_view/render_formatter_spec.rb
210
+ - spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
208
211
  - spec/lib/appsignal/event_formatter/active_record/sql_formatter_spec.rb
209
212
  - spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
210
213
  - spec/lib/appsignal/event_formatter/net_http/request_formatter_spec.rb
@@ -271,9 +274,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
271
274
  version: '1.9'
272
275
  required_rubygems_version: !ruby/object:Gem::Requirement
273
276
  requirements:
274
- - - ">="
277
+ - - ">"
275
278
  - !ruby/object:Gem::Version
276
- version: '0'
279
+ version: 1.3.1
277
280
  requirements: []
278
281
  rubyforge_project:
279
282
  rubygems_version: 2.2.5
@@ -287,6 +290,7 @@ test_files:
287
290
  - spec/lib/appsignal/cli_spec.rb
288
291
  - spec/lib/appsignal/config_spec.rb
289
292
  - spec/lib/appsignal/event_formatter/action_view/render_formatter_spec.rb
293
+ - spec/lib/appsignal/event_formatter/active_record/instantiation_formatter_spec.rb
290
294
  - spec/lib/appsignal/event_formatter/active_record/sql_formatter_spec.rb
291
295
  - spec/lib/appsignal/event_formatter/moped/query_formatter_spec.rb
292
296
  - spec/lib/appsignal/event_formatter/net_http/request_formatter_spec.rb