restful_metrics 0.5.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.4
1
+ 1.0.0
@@ -25,6 +25,9 @@ module RestfulMetrics
25
25
  end
26
26
 
27
27
  def async=(async_flag)
28
+ # DelayedJob integration
29
+ require 'delayed_job' if async_flag
30
+
28
31
  @@async = async_flag && (defined?(Delayed) != nil)
29
32
  @@connection.async = @@async if @@connection
30
33
  end
@@ -26,10 +26,3 @@ module RestfulMetrics
26
26
  class NoConnectionEstablished < RestfulMetricsError; end
27
27
 
28
28
  end
29
-
30
- # DelayedJob integration
31
- begin
32
- require 'delayed_job'
33
- rescue LoadError
34
- RestfulMetrics::LogTools.logger 'Running in synchronous mode.'
35
- end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_metrics
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 23
4
5
  prerelease:
5
- version: 0.5.4
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
6
11
  platform: ruby
7
12
  authors:
8
13
  - Mauricio Gomes
@@ -14,180 +19,250 @@ date: 2011-06-29 00:00:00 -04:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
- name: yajl-ruby
22
+ prerelease: false
23
+ type: :runtime
18
24
  requirement: &id001 !ruby/object:Gem::Requirement
19
25
  none: false
20
26
  requirements:
21
27
  - - ~>
22
28
  - !ruby/object:Gem::Version
29
+ hash: 61
30
+ segments:
31
+ - 0
32
+ - 8
33
+ - 1
23
34
  version: 0.8.1
24
- type: :runtime
25
- prerelease: false
35
+ name: yajl-ruby
26
36
  version_requirements: *id001
27
37
  - !ruby/object:Gem::Dependency
28
- name: rest-client
38
+ prerelease: false
39
+ type: :runtime
29
40
  requirement: &id002 !ruby/object:Gem::Requirement
30
41
  none: false
31
42
  requirements:
32
43
  - - ~>
33
44
  - !ruby/object:Gem::Version
45
+ hash: 15
46
+ segments:
47
+ - 1
48
+ - 6
49
+ - 0
34
50
  version: 1.6.0
35
- type: :runtime
36
- prerelease: false
51
+ name: rest-client
37
52
  version_requirements: *id002
38
53
  - !ruby/object:Gem::Dependency
39
- name: jeweler
54
+ prerelease: false
55
+ type: :development
40
56
  requirement: &id003 !ruby/object:Gem::Requirement
41
57
  none: false
42
58
  requirements:
43
59
  - - ">="
44
60
  - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 0
45
64
  version: "0"
46
- type: :development
47
- prerelease: false
65
+ name: jeweler
48
66
  version_requirements: *id003
49
67
  - !ruby/object:Gem::Dependency
50
- name: i18n
68
+ prerelease: false
69
+ type: :development
51
70
  requirement: &id004 !ruby/object:Gem::Requirement
52
71
  none: false
53
72
  requirements:
54
73
  - - ">="
55
74
  - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
56
78
  version: "0"
57
- type: :development
58
- prerelease: false
79
+ name: i18n
59
80
  version_requirements: *id004
60
81
  - !ruby/object:Gem::Dependency
61
- name: actionpack
82
+ prerelease: false
83
+ type: :development
62
84
  requirement: &id005 !ruby/object:Gem::Requirement
63
85
  none: false
64
86
  requirements:
65
87
  - - ">="
66
88
  - !ruby/object:Gem::Version
89
+ hash: 17
90
+ segments:
91
+ - 2
92
+ - 3
93
+ - 9
67
94
  version: 2.3.9
68
- type: :development
69
- prerelease: false
95
+ name: actionpack
70
96
  version_requirements: *id005
71
97
  - !ruby/object:Gem::Dependency
72
- name: activesupport
98
+ prerelease: false
99
+ type: :development
73
100
  requirement: &id006 !ruby/object:Gem::Requirement
74
101
  none: false
75
102
  requirements:
76
103
  - - ">="
77
104
  - !ruby/object:Gem::Version
105
+ hash: 17
106
+ segments:
107
+ - 2
108
+ - 3
109
+ - 9
78
110
  version: 2.3.9
79
- type: :development
80
- prerelease: false
111
+ name: activesupport
81
112
  version_requirements: *id006
82
113
  - !ruby/object:Gem::Dependency
83
- name: delayed_job
114
+ prerelease: false
115
+ type: :development
84
116
  requirement: &id007 !ruby/object:Gem::Requirement
85
117
  none: false
86
118
  requirements:
87
119
  - - ~>
88
120
  - !ruby/object:Gem::Version
121
+ hash: 15
122
+ segments:
123
+ - 2
124
+ - 0
125
+ - 0
89
126
  version: 2.0.0
90
- type: :development
91
- prerelease: false
127
+ name: delayed_job
92
128
  version_requirements: *id007
93
129
  - !ruby/object:Gem::Dependency
94
- name: rspec
130
+ prerelease: false
131
+ type: :development
95
132
  requirement: &id008 !ruby/object:Gem::Requirement
96
133
  none: false
97
134
  requirements:
98
135
  - - ~>
99
136
  - !ruby/object:Gem::Version
137
+ hash: 27
138
+ segments:
139
+ - 2
140
+ - 5
141
+ - 0
100
142
  version: 2.5.0
101
- type: :development
102
- prerelease: false
143
+ name: rspec
103
144
  version_requirements: *id008
104
145
  - !ruby/object:Gem::Dependency
105
- name: mocha
146
+ prerelease: false
147
+ type: :development
106
148
  requirement: &id009 !ruby/object:Gem::Requirement
107
149
  none: false
108
150
  requirements:
109
151
  - - ">="
110
152
  - !ruby/object:Gem::Version
153
+ hash: 3
154
+ segments:
155
+ - 0
111
156
  version: "0"
112
- type: :development
113
- prerelease: false
157
+ name: mocha
114
158
  version_requirements: *id009
115
159
  - !ruby/object:Gem::Dependency
116
- name: yajl-ruby
160
+ prerelease: false
161
+ type: :runtime
117
162
  requirement: &id010 !ruby/object:Gem::Requirement
118
163
  none: false
119
164
  requirements:
120
165
  - - ~>
121
166
  - !ruby/object:Gem::Version
167
+ hash: 59
168
+ segments:
169
+ - 0
170
+ - 8
171
+ - 2
122
172
  version: 0.8.2
123
- type: :runtime
124
- prerelease: false
173
+ name: yajl-ruby
125
174
  version_requirements: *id010
126
175
  - !ruby/object:Gem::Dependency
127
- name: rest-client
176
+ prerelease: false
177
+ type: :runtime
128
178
  requirement: &id011 !ruby/object:Gem::Requirement
129
179
  none: false
130
180
  requirements:
131
181
  - - ~>
132
182
  - !ruby/object:Gem::Version
183
+ hash: 15
184
+ segments:
185
+ - 1
186
+ - 6
187
+ - 0
133
188
  version: 1.6.0
134
- type: :runtime
135
- prerelease: false
189
+ name: rest-client
136
190
  version_requirements: *id011
137
191
  - !ruby/object:Gem::Dependency
138
- name: rack
192
+ prerelease: false
193
+ type: :development
139
194
  requirement: &id012 !ruby/object:Gem::Requirement
140
195
  none: false
141
196
  requirements:
142
197
  - - ">"
143
198
  - !ruby/object:Gem::Version
199
+ hash: 23
200
+ segments:
201
+ - 1
202
+ - 0
203
+ - 0
144
204
  version: 1.0.0
145
- type: :development
146
- prerelease: false
205
+ name: rack
147
206
  version_requirements: *id012
148
207
  - !ruby/object:Gem::Dependency
149
- name: i18n
208
+ prerelease: false
209
+ type: :development
150
210
  requirement: &id013 !ruby/object:Gem::Requirement
151
211
  none: false
152
212
  requirements:
153
213
  - - ">="
154
214
  - !ruby/object:Gem::Version
215
+ hash: 3
216
+ segments:
217
+ - 0
155
218
  version: "0"
156
- type: :development
157
- prerelease: false
219
+ name: i18n
158
220
  version_requirements: *id013
159
221
  - !ruby/object:Gem::Dependency
160
- name: activesupport
222
+ prerelease: false
223
+ type: :development
161
224
  requirement: &id014 !ruby/object:Gem::Requirement
162
225
  none: false
163
226
  requirements:
164
227
  - - ">="
165
228
  - !ruby/object:Gem::Version
229
+ hash: 3
230
+ segments:
231
+ - 0
166
232
  version: "0"
167
- type: :development
168
- prerelease: false
233
+ name: activesupport
169
234
  version_requirements: *id014
170
235
  - !ruby/object:Gem::Dependency
171
- name: delayed_job
236
+ prerelease: false
237
+ type: :development
172
238
  requirement: &id015 !ruby/object:Gem::Requirement
173
239
  none: false
174
240
  requirements:
175
241
  - - <
176
242
  - !ruby/object:Gem::Version
243
+ hash: 11
244
+ segments:
245
+ - 2
246
+ - 1
247
+ - 0
177
248
  version: 2.1.0
178
- type: :development
179
- prerelease: false
249
+ name: delayed_job
180
250
  version_requirements: *id015
181
251
  - !ruby/object:Gem::Dependency
182
- name: rspec
252
+ prerelease: false
253
+ type: :development
183
254
  requirement: &id016 !ruby/object:Gem::Requirement
184
255
  none: false
185
256
  requirements:
186
257
  - - <
187
258
  - !ruby/object:Gem::Version
259
+ hash: 15
260
+ segments:
261
+ - 2
262
+ - 0
263
+ - 0
188
264
  version: 2.0.0
189
- type: :development
190
- prerelease: false
265
+ name: rspec
191
266
  version_requirements: *id016
192
267
  description: Ruby client for the Restful Metrics service.
193
268
  email: mgomes@geminisbs.com
@@ -227,7 +302,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
302
  requirements:
228
303
  - - ">="
229
304
  - !ruby/object:Gem::Version
230
- hash: 3952159022912865892
305
+ hash: 3
231
306
  segments:
232
307
  - 0
233
308
  version: "0"
@@ -236,11 +311,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
311
  requirements:
237
312
  - - ">="
238
313
  - !ruby/object:Gem::Version
314
+ hash: 3
315
+ segments:
316
+ - 0
239
317
  version: "0"
240
318
  requirements: []
241
319
 
242
320
  rubyforge_project:
243
- rubygems_version: 1.5.2
321
+ rubygems_version: 1.6.2
244
322
  signing_key:
245
323
  specification_version: 3
246
324
  summary: Ruby client for Restful Metrics