statsd-instrument 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -199,3 +199,4 @@ require 'statsd/instrument/backend'
199
199
  require 'statsd/instrument/assertions'
200
200
  require 'statsd/instrument/environment'
201
201
  require 'statsd/instrument/version'
202
+ require 'statsd/instrument/railtie' if defined?(Rails)
@@ -24,4 +24,4 @@ module StatsD::Instrument::Environment
24
24
  end
25
25
 
26
26
  StatsD.default_sample_rate = ENV.fetch('STATSD_SAMPLE_RATE', 1.0).to_f
27
- StatsD.logger = defined?(Rails) ? Rails.logger : Logger.new($stderr)
27
+ StatsD.logger = Logger.new($stderr)
@@ -0,0 +1,6 @@
1
+ class StatsD::Instrument::Railtie < Rails::Railtie
2
+
3
+ initializer 'statsd-instrument.railtie' do
4
+ StatsD.logger = Rails.logger
5
+ end
6
+ end
@@ -1,5 +1,5 @@
1
1
  module StatsD
2
2
  module Instrument
3
- VERSION = "2.0.3"
3
+ VERSION = "2.0.4"
4
4
  end
5
5
  end
data/shipit.rubygems.yml CHANGED
@@ -1,15 +1 @@
1
- dependencies:
2
- override:
3
- - bundle install --path=./data/bundler
4
-
5
- deploy:
6
- override:
7
- - |
8
- BUILD=`bundle exec rake build`
9
- if [ $? != 0 ]; then
10
- echo $BUILD;
11
- exit 1;
12
- fi
13
- PKG=`echo $BUILD | cut -d" " -f5 | sed -e s/\.$//`;
14
- VERSION=`echo $BUILD | cut -d" " -f2`;
15
- gem push $PKG
1
+ # using the default shipit config
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statsd-instrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Jesse Storimer
@@ -9,48 +10,54 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-05-22 00:00:00.000000000 Z
13
+ date: 2014-06-10 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: rake
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
- - - '>='
20
+ - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
23
  type: :development
22
24
  prerelease: false
23
25
  version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
24
27
  requirements:
25
- - - '>='
28
+ - - ! '>='
26
29
  - !ruby/object:Gem::Version
27
30
  version: '0'
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: minitest
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
- - - '>='
36
+ - - ! '>='
33
37
  - !ruby/object:Gem::Version
34
38
  version: '0'
35
39
  type: :development
36
40
  prerelease: false
37
41
  version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
38
43
  requirements:
39
- - - '>='
44
+ - - ! '>='
40
45
  - !ruby/object:Gem::Version
41
46
  version: '0'
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: mocha
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
- - - '>='
52
+ - - ! '>='
47
53
  - !ruby/object:Gem::Version
48
54
  version: '0'
49
55
  type: :development
50
56
  prerelease: false
51
57
  version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
52
59
  requirements:
53
- - - '>='
60
+ - - ! '>='
54
61
  - !ruby/object:Gem::Version
55
62
  version: '0'
56
63
  description: A StatsD client for Ruby appspec. Provides metaprogramming methods to
@@ -77,6 +84,7 @@ files:
77
84
  - lib/statsd/instrument/backends/udp_backend.rb
78
85
  - lib/statsd/instrument/environment.rb
79
86
  - lib/statsd/instrument/metric.rb
87
+ - lib/statsd/instrument/railtie.rb
80
88
  - lib/statsd/instrument/version.rb
81
89
  - shipit.rubygems.yml
82
90
  - statsd-instrument.gemspec
@@ -93,26 +101,27 @@ files:
93
101
  homepage: https://github.com/Shopify/statsd-instrument
94
102
  licenses:
95
103
  - MIT
96
- metadata: {}
97
104
  post_install_message:
98
105
  rdoc_options: []
99
106
  require_paths:
100
107
  - lib
101
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
+ none: false
102
110
  requirements:
103
- - - '>='
111
+ - - ! '>='
104
112
  - !ruby/object:Gem::Version
105
113
  version: '0'
106
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
107
116
  requirements:
108
- - - '>='
117
+ - - ! '>='
109
118
  - !ruby/object:Gem::Version
110
119
  version: '0'
111
120
  requirements: []
112
121
  rubyforge_project:
113
- rubygems_version: 2.0.14
122
+ rubygems_version: 1.8.23
114
123
  signing_key:
115
- specification_version: 4
124
+ specification_version: 3
116
125
  summary: A StatsD client for Ruby apps
117
126
  test_files:
118
127
  - test/assertions_test.rb
@@ -125,4 +134,3 @@ test_files:
125
134
  - test/statsd_test.rb
126
135
  - test/test_helper.rb
127
136
  - test/udp_backend_test.rb
128
- has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 55f8c84568425e122a485916dea1798f630bb600
4
- data.tar.gz: df9ac73422a7819f4272e2a4877784cb2ce84fc4
5
- SHA512:
6
- metadata.gz: 3ac8ca36a860f3c1bbc5d3268ef5714ac536e1fbbf4e424b310e5167cc001d6ba8b40cb7281a72b0528eae1f424b4e8e83a3b9f865206f5639bd0cd841f48ec9
7
- data.tar.gz: 23c2375c9c3bd8ed1fc249498b87f4465dc04a2ad91f70f5531336799b7ae3b971cd9c3f3d39568d0240a0f740fe53e8c555b2020461263d11f9b4f4cd15acc7