fozzie 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -13
  2. data/.gitignore +5 -5
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +5 -5
  6. data/Gemfile +3 -3
  7. data/README.md +288 -276
  8. data/Rakefile +6 -6
  9. data/fozzie.gemspec +29 -29
  10. data/fozzie.yml.example +14 -14
  11. data/lib/core_ext/hash/symbolize_keys.rb +21 -21
  12. data/lib/core_ext/module/alias_method_chain.rb +19 -19
  13. data/lib/core_ext/module/monitor.rb +12 -12
  14. data/lib/core_ext/string/snakecase.rb +9 -9
  15. data/lib/fozzie.rb +67 -67
  16. data/lib/fozzie/adapter/statsd.rb +95 -95
  17. data/lib/fozzie/bulk_dsl.rb +27 -27
  18. data/lib/fozzie/configuration.rb +1 -0
  19. data/lib/fozzie/dsl.rb +18 -18
  20. data/lib/fozzie/exception.rb +4 -4
  21. data/lib/fozzie/interface.rb +139 -139
  22. data/lib/fozzie/rack/middleware.rb +43 -43
  23. data/lib/fozzie/sniff.rb +49 -49
  24. data/lib/fozzie/version.rb +3 -3
  25. data/resources/mill.js.example +26 -26
  26. data/spec/config/fozzie.yml +5 -5
  27. data/spec/lib/core_ext/module/monitor_spec.rb +8 -8
  28. data/spec/lib/fozzie/adapter/statsd_spec.rb +82 -82
  29. data/spec/lib/fozzie/bulk_dsl_spec.rb +46 -46
  30. data/spec/lib/fozzie/configuration_spec.rb +125 -125
  31. data/spec/lib/fozzie/dsl_spec.rb +15 -15
  32. data/spec/lib/fozzie/rack/middleware_spec.rb +69 -69
  33. data/spec/lib/fozzie/rack/sinatra_spec.rb +30 -30
  34. data/spec/lib/fozzie/sniff_spec.rb +131 -131
  35. data/spec/lib/fozzie/version_spec.rb +9 -9
  36. data/spec/lib/fozzie_spec.rb +39 -39
  37. data/spec/shared_examples/fozzie_adapter.rb +7 -7
  38. data/spec/shared_examples/interface.rb +159 -159
  39. data/spec/spec_helper.rb +28 -28
  40. metadata +24 -36
  41. data/.rvmrc +0 -1
@@ -1,29 +1,29 @@
1
- ENV['RACK_ENV'] ||= 'test'
2
-
3
- # Basic path registers
4
- root = File.expand_path('../', File.dirname(__FILE__))
5
- lib = File.expand_path('lib', root)
6
- $:.unshift(root, lib)
7
-
8
- # Shared Examples
9
- Dir[File.expand_path('spec/shared_examples/*.rb')].each {|r| require r }
10
-
11
- require 'fozzie'
12
-
13
- module Fozzie
14
- class Adapter::TestAdapter
15
- def register(*params); end
16
- def delimeter; ""; end
17
- def safe_separator; ""; end
18
- end
19
- end
20
-
21
- Fozzie.configure do |config|
22
- config.host = '127.0.0.1'
23
- config.port = 8809
24
- config.adapter = "TestAdapter"
25
- end
26
-
27
- RSpec.configure do |config|
28
- config.order = :random
1
+ ENV['RACK_ENV'] ||= 'test'
2
+
3
+ # Basic path registers
4
+ root = File.expand_path('../', File.dirname(__FILE__))
5
+ lib = File.expand_path('lib', root)
6
+ $:.unshift(root, lib)
7
+
8
+ # Shared Examples
9
+ Dir[File.expand_path('spec/shared_examples/*.rb')].each {|r| require r }
10
+
11
+ require 'fozzie'
12
+
13
+ module Fozzie
14
+ class Adapter::TestAdapter
15
+ def register(*params); end
16
+ def delimeter; ""; end
17
+ def safe_separator; ""; end
18
+ end
19
+ end
20
+
21
+ Fozzie.configure do |config|
22
+ config.host = '127.0.0.1'
23
+ config.port = 8809
24
+ config.adapter = "TestAdapter"
25
+ end
26
+
27
+ RSpec.configure do |config|
28
+ config.order = :random
29
29
  end
metadata CHANGED
@@ -1,97 +1,98 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fozzie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Watts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-15 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sys-uname
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sinatra
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rack-test
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: ! "\n Gem to make statistics sending from Ruby applications simple
84
- and efficient as possible.\n Currently supports Statsd, and is inspired by the
85
- original ruby-statsd gem by Etsy.\n "
83
+ description: "\n Gem to make statistics sending from Ruby applications simple and
84
+ efficient as possible.\n Currently supports Statsd, and is inspired by the original
85
+ ruby-statsd gem by Etsy.\n "
86
86
  email:
87
87
  - marc.watts@lonelyplanet.co.uk
88
88
  executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .gitignore
93
- - .rvmrc
94
- - .travis.yml
92
+ - ".gitignore"
93
+ - ".ruby-gemset"
94
+ - ".ruby-version"
95
+ - ".travis.yml"
95
96
  - Gemfile
96
97
  - README.md
97
98
  - Rakefile
@@ -137,33 +138,20 @@ require_paths:
137
138
  - lib
138
139
  required_ruby_version: !ruby/object:Gem::Requirement
139
140
  requirements:
140
- - - ! '>='
141
+ - - ">="
141
142
  - !ruby/object:Gem::Version
142
143
  version: '0'
143
144
  required_rubygems_version: !ruby/object:Gem::Requirement
144
145
  requirements:
145
- - - ! '>='
146
+ - - ">="
146
147
  - !ruby/object:Gem::Version
147
148
  version: '0'
148
149
  requirements: []
149
150
  rubyforge_project: fozzie
150
- rubygems_version: 2.1.10
151
+ rubygems_version: 2.2.2
151
152
  signing_key:
152
153
  specification_version: 4
153
154
  summary: Ruby gem from Lonely Planet Online to register statistics. Currently supports
154
155
  Statsd.
155
- test_files:
156
- - spec/config/fozzie.yml
157
- - spec/lib/core_ext/module/monitor_spec.rb
158
- - spec/lib/fozzie/adapter/statsd_spec.rb
159
- - spec/lib/fozzie/bulk_dsl_spec.rb
160
- - spec/lib/fozzie/configuration_spec.rb
161
- - spec/lib/fozzie/dsl_spec.rb
162
- - spec/lib/fozzie/rack/middleware_spec.rb
163
- - spec/lib/fozzie/rack/sinatra_spec.rb
164
- - spec/lib/fozzie/sniff_spec.rb
165
- - spec/lib/fozzie/version_spec.rb
166
- - spec/lib/fozzie_spec.rb
167
- - spec/shared_examples/fozzie_adapter.rb
168
- - spec/shared_examples/interface.rb
169
- - spec/spec_helper.rb
156
+ test_files: []
157
+ has_rdoc:
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use --create 1.9.3@fozzie