newrelic_tag 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/newrelic_tag/version.rb +1 -1
- data/lib/newrelic_tag.rb +2 -2
- metadata +4 -4
data/lib/newrelic_tag/version.rb
CHANGED
data/lib/newrelic_tag.rb
CHANGED
@@ -17,7 +17,7 @@ class NewrelicTag
|
|
17
17
|
self.tag = 'NewRelic'
|
18
18
|
self.value = 'true'
|
19
19
|
self.instance_id_url = 'http://169.254.169.254/latest/meta-data/instance-id'
|
20
|
-
self.allowed_environments = %
|
20
|
+
self.allowed_environments = %w(staging production)
|
21
21
|
|
22
22
|
class << self
|
23
23
|
def instance
|
@@ -65,7 +65,7 @@ class NewrelicTag
|
|
65
65
|
private
|
66
66
|
|
67
67
|
def environment
|
68
|
-
ENV['RACK_ENV'] || ENV['RAILS_ENV']
|
68
|
+
ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
|
69
69
|
end
|
70
70
|
|
71
71
|
def instance_id
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_tag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Griffin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-10-10 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|