librato-metrics 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  ## Changelog
2
2
 
3
+ ### Version 0.2.3
4
+ * Fix broken user-agent string in 1.8.7, thanks Sean Porter
5
+ * Update outdated spec
6
+
7
+ ### Version 0.2.2
8
+ * Fix abstract persistence instantiation in Ruby 1.8/REE
9
+
3
10
  ### Version 0.2.1
4
11
  * Add better handling for start_time and end_time params when fetching measurements
5
12
 
@@ -7,7 +14,7 @@
7
14
  * Fix bug with stale excon connections not reconnecting
8
15
  * Add custom User-Agent
9
16
  * Items added to Queue objects have their measure_time set automatically
10
- * Metric 'type' key can be string or symbol, thanks neilmock
17
+ * Metric 'type' key can be string or symbol, thanks Neil Mock
11
18
 
12
19
  ### Version 0.1.0
13
20
  * Initial release
@@ -84,7 +84,7 @@ module Librato
84
84
  end
85
85
 
86
86
  def user_agent
87
- ruby_ver = "#{RUBY_ENGINE}; #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}; #{RUBY_PLATFORM}"
87
+ ruby_ver = "#{ruby_engine}; #{RUBY_VERSION}p#{RUBY_PATCHLEVEL}; #{RUBY_PLATFORM}"
88
88
  "librato-metrics/#{Metrics::VERSION} (#{ruby_ver}) direct-excon/#{Excon::VERSION}"
89
89
  end
90
90
 
@@ -104,8 +104,13 @@ module Librato
104
104
  @persistence = nil
105
105
  end
106
106
 
107
+ def ruby_engine
108
+ return RUBY_ENGINE if Object.constants.include?(:RUBY_ENGINE)
109
+ RUBY_DESCRIPTION.split[0]
110
+ end
111
+
107
112
  end
108
113
 
109
114
  end
110
115
  end
111
- end
116
+ end
@@ -1,5 +1,5 @@
1
1
  module Librato
2
2
  module Metrics
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ module Librato
33
33
 
34
34
  it "should accept type key as string or a symbol" do
35
35
  subject.add :total_visits => {"type" => "counter", :value => 4000}
36
- expected = {:counters => [{:name => 'total_visits', :value => 4000}]}
36
+ expected = {:counters => [{:name => 'total_visits', :value => 4000, :measure_time => @time}]}
37
37
  subject.queued.should eql expected
38
38
  end
39
39
  end
metadata CHANGED
@@ -1,105 +1,78 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: librato-metrics
3
- version: !ruby/object:Gem::Version
4
- hash: 19
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 2
10
- version: 0.2.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matt Sanders
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-27 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: excon
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70249860959660 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
18
+ requirements:
26
19
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 27
29
- segments:
30
- - 0
31
- - 7
32
- - 12
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.7.12
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rake
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70249860959660
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ requirement: &70249860958680 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
48
33
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rspec
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70249860958680
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec
38
+ requirement: &70249860956780 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 23
59
- segments:
60
- - 2
61
- - 6
62
- - 0
42
+ - !ruby/object:Gem::Version
63
43
  version: 2.6.0
64
44
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: yard
68
45
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70249860956780
47
+ - !ruby/object:Gem::Dependency
48
+ name: yard
49
+ requirement: &70249860955580 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
78
55
  type: :development
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: rdiscount
82
56
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70249860955580
58
+ - !ruby/object:Gem::Dependency
59
+ name: rdiscount
60
+ requirement: &70249860954580 !ruby/object:Gem::Requirement
84
61
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
92
66
  type: :development
93
- version_requirements: *id005
67
+ prerelease: false
68
+ version_requirements: *70249860954580
94
69
  description: An easy to use ruby wrapper for Librato's Metrics API
95
70
  email: matt@librato.com
96
71
  executables: []
97
-
98
72
  extensions: []
99
-
100
- extra_rdoc_files:
73
+ extra_rdoc_files:
101
74
  - LICENSE
102
- files:
75
+ files:
103
76
  - .gitignore
104
77
  - .travis.yml
105
78
  - CHANGELOG.md
@@ -122,38 +95,30 @@ files:
122
95
  - spec/unit/metrics_spec.rb
123
96
  homepage: https://github.com/librato/librato-metrics
124
97
  licenses: []
125
-
126
98
  post_install_message:
127
- rdoc_options:
99
+ rdoc_options:
128
100
  - --charset=UTF-8
129
- require_paths:
101
+ require_paths:
130
102
  - lib
131
- required_ruby_version: !ruby/object:Gem::Requirement
103
+ required_ruby_version: !ruby/object:Gem::Requirement
132
104
  none: false
133
- requirements:
134
- - - ">="
135
- - !ruby/object:Gem::Version
136
- hash: 3
137
- segments:
138
- - 0
139
- version: "0"
140
- required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
141
110
  none: false
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- hash: 3
146
- segments:
147
- - 0
148
- version: "0"
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
149
115
  requirements: []
150
-
151
116
  rubyforge_project:
152
- rubygems_version: 1.8.10
117
+ rubygems_version: 1.8.12
153
118
  signing_key:
154
119
  specification_version: 2
155
120
  summary: Ruby wrapper for Librato's Metrics API
156
- test_files:
121
+ test_files:
157
122
  - spec/spec_helper.rb
158
123
  - spec/unit/metrics/queue_spec.rb
159
124
  - spec/unit/metrics/simple_spec.rb