newrelic_tag 0.1.0 → 0.1.1

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.
@@ -2,7 +2,7 @@ class NewrelicTag
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = [MAJOR, MINOR, PATCH].join('.')
7
7
  end
8
8
  end
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 = %q(staging production)
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-09-06 00:00:00 -04:00
18
+ date: 2011-10-10 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency