appsignal 0.12.rc.10 → 0.12.rc.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 693aa4f235ee31447feb2a8b1f33a70df69fee2c
4
- data.tar.gz: d52a48f030ed7a0b816b315365e0a71a26a77436
3
+ metadata.gz: 56cab93f808647996e941e6725812caf047ad82a
4
+ data.tar.gz: d2c42dd9dc8ab022a4c4eaea86376c250ee20d7b
5
5
  SHA512:
6
- metadata.gz: 20ba8304f8ac2b8969b34f869e7cd0f9ea43c9ba007112dd6d1195e2bcbcfc9d1b0210acba9ceb529b4b7cc576ce4b34c3c5f5fd3737023ff8d8b086cd1ca74c
7
- data.tar.gz: 8909aa17bfec6253d49c4ad7bdff01d57f8cc66c4c8b4a905ced96e5be942f918e8681788f209fbe8073d806288bc342954013eb89980eeb02cc46caa515f877
6
+ metadata.gz: 421e5d6f2706808fd629780b4eab747e9d266ad60ffbb9701330462175bf9e02a314757e07c1be9e3d4b23db30b44066e7cd49998b34e0ff4d98fb001b60b7ec
7
+ data.tar.gz: 61c83c6b69f2af3457758c07c6065defb9f40824f622264a1ea134e8c58878839903c1346030395ca24742c6927c32b8c0cef26fbfc8331282d1fdfb8c0d7c8a
data/ext/agent.yml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
- :version: ae85df1
2
+ :version: 77b69c0
3
3
  :triples:
4
4
  x86_64-linux:
5
- :checksum: f5b31b2e487a9865bf660ef244142e38f18d90b7ff91d538fff9d3d9b386c044
6
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/ae85df1/appsignal-agent-x86_64-linux-static.tar.gz
5
+ :checksum: df8ee4b4842bab532dea442bda7e8f2dd9711a75f154119d549570c5732c0cf2
6
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/77b69c0/appsignal-agent-x86_64-linux-static.tar.gz
7
7
  :lib_filename: libappsignal.a
8
8
  i686-linux:
9
- :checksum: 6a053ed939a6f9c36271ac4b421674d01e2ea4d6b962914cec5fbb36f64675bd
10
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/ae85df1/appsignal-agent-i686-linux-static.tar.gz
9
+ :checksum: 1c42a4d8796a52bf7810c1ebbd370a8daa20501db127adc72c6383d2568db5e0
10
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/77b69c0/appsignal-agent-i686-linux-static.tar.gz
11
11
  :lib_filename: libappsignal.a
12
12
  x86_64-darwin:
13
- :checksum: 91fe3a509541a9d18c1cc41821df21d3b09bf6e0bbcbd52e30b49674c348cd32
14
- :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/ae85df1/appsignal-agent-x86_64-darwin-static.tar.gz
13
+ :checksum: c86bbbfaf24e99b90018c46ed489c346d3612c6aca3f7f321c737b5647e5663b
14
+ :download_url: https://appsignal-agent-releases.global.ssl.fastly.net/77b69c0/appsignal-agent-x86_64-darwin-static.tar.gz
15
15
  :lib_filename: libappsignal.a
@@ -129,28 +129,6 @@ static VALUE set_gauge(VALUE self, VALUE key, VALUE value) {
129
129
  return Qnil;
130
130
  }
131
131
 
132
- static VALUE set_host_gauge(VALUE self, VALUE key, VALUE value) {
133
- Check_Type(key, T_STRING);
134
- Check_Type(value, T_FLOAT);
135
-
136
- appsignal_set_host_gauge(
137
- StringValueCStr(key),
138
- NUM2DBL(value)
139
- );
140
- return Qnil;
141
- }
142
-
143
- static VALUE set_process_gauge(VALUE self, VALUE key, VALUE value) {
144
- Check_Type(key, T_STRING);
145
- Check_Type(value, T_FLOAT);
146
-
147
- appsignal_set_process_gauge(
148
- StringValueCStr(key),
149
- NUM2DBL(value)
150
- );
151
- return Qnil;
152
- }
153
-
154
132
  static VALUE increment_counter(VALUE self, VALUE key, VALUE count) {
155
133
  Check_Type(key, T_STRING);
156
134
  Check_Type(count, T_FIXNUM);
@@ -251,8 +229,6 @@ void Init_appsignal_extension(void) {
251
229
 
252
230
  // Metrics
253
231
  rb_define_singleton_method(Extension, "set_gauge", set_gauge, 2);
254
- rb_define_singleton_method(Extension, "set_host_gauge", set_host_gauge, 2);
255
- rb_define_singleton_method(Extension, "set_process_gauge", set_process_gauge, 2);
256
232
  rb_define_singleton_method(Extension, "increment_counter", increment_counter, 2);
257
233
  rb_define_singleton_method(Extension, "add_distribution_value", add_distribution_value, 2);
258
234
  }
@@ -142,6 +142,11 @@ module Appsignal
142
142
  config[:active] = true
143
143
  end
144
144
 
145
+ # Heroku is a container based system
146
+ if ENV['DYNO']
147
+ config[:running_in_container] = true
148
+ end
149
+
145
150
  # Configuration with string type
146
151
  %w(APPSIGNAL_PUSH_API_KEY APPSIGNAL_APP_NAME APPSIGNAL_PUSH_API_ENDPOINT
147
152
  APPSIGNAL_FRONTEND_ERROR_CATCHING_PATH APPSIGNAL_HTTP_PROXY APPSIGNAL_LOG_PATH).each do |var|
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '0.12.rc.10'
4
+ VERSION = '0.12.rc.11'
5
5
  end
@@ -120,6 +120,19 @@ describe Appsignal::Config do
120
120
  it "should use env vars that are not present in the config file" do
121
121
  subject[:debug].should == true
122
122
  end
123
+
124
+ context "running on Heroku" do
125
+ before do
126
+ ENV['DYNO'] = 'true'
127
+ end
128
+ after do
129
+ ENV.delete('DYNO')
130
+ end
131
+
132
+ it "should set running in container to true" do
133
+ subject[:running_in_container].should be_true
134
+ end
135
+ end
123
136
  end
124
137
 
125
138
  context "and there is an initial config" do
@@ -77,14 +77,6 @@ describe "extension loading and operation" do
77
77
  Appsignal.set_gauge('key', 1.0)
78
78
  end
79
79
 
80
- it "should have a set_host_gauge method" do
81
- Appsignal.set_host_gauge('key', 1.0)
82
- end
83
-
84
- it "should have a set_process_gauge method" do
85
- Appsignal.set_process_gauge('key', 1.0)
86
- end
87
-
88
80
  it "should have a increment_counter method" do
89
81
  Appsignal.increment_counter('key', 1)
90
82
  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: 0.12.rc.10
4
+ version: 0.12.rc.11
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: 2015-12-14 00:00:00.000000000 Z
12
+ date: 2015-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack