pulse_meter_visualizer 0.4.20 → 0.4.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,19 +60,19 @@ shared_examples_for "widget" do
60
60
 
61
61
  describe "data[interval]" do
62
62
  subject{ broken_widget.data[:interval] }
63
- it{ should == 0 }
63
+ it{ is_expected.to eq(0) }
64
64
  end
65
65
  end
66
66
 
67
- it "should contains type, title, redraw_interval, width, gchart_options, timespan attriutes" do
67
+ it "contains type, title, redraw_interval, width, gchart_options, timespan attriutes" do
68
68
  wdata = widget.data
69
- wdata[:type].should == class_name.downcase
70
- wdata[:title].should == widget_name
71
- wdata[:redraw_interval].should == redraw_interval
72
- wdata[:width].should == width
73
- wdata[:gchart_options].should == {a: 1}
74
- wdata[:timespan].should == timespan
75
- wdata[:interval].should == interval
69
+ expect(wdata[:type]).to eq(class_name.downcase)
70
+ expect(wdata[:title]).to eq(widget_name)
71
+ expect(wdata[:redraw_interval]).to eq(redraw_interval)
72
+ expect(wdata[:width]).to eq(width)
73
+ expect(wdata[:gchart_options]).to eq({a: 1})
74
+ expect(wdata[:timespan]).to eq(timespan)
75
+ expect(wdata[:interval]).to eq(interval)
76
76
  end
77
77
 
78
78
  describe "series attribute" do
@@ -89,7 +89,7 @@ shared_examples_for "widget" do
89
89
 
90
90
  it "contains valid series" do
91
91
  Timecop.freeze(@current_time) do
92
- widget.data[:series].should ==
92
+ expect(widget.data[:series]).to eq(
93
93
  {
94
94
  titles: [a_sensor.annotation, b_sensor.annotation],
95
95
  rows: [[interval_start.to_i * 1000, 12, 33]],
@@ -98,23 +98,24 @@ shared_examples_for "widget" do
98
98
  {color: b_color}
99
99
  ]
100
100
  }
101
+ )
101
102
  end
102
103
  end
103
104
 
104
105
  it "accepts custom timespan" do
105
106
  Timecop.freeze(@current_time + interval) do
106
- widget.data(timespan: timespan)[:series][:rows].size.should == 1
107
- widget.data(timespan: timespan + interval)[:series][:rows].size.should == 2
107
+ expect(widget.data(timespan: timespan)[:series][:rows].size).to eq(1)
108
+ expect(widget.data(timespan: timespan + interval)[:series][:rows].size).to eq(2)
108
109
  end
109
110
  end
110
111
 
111
112
  it "accepts start_time and end_time" do
112
113
  Timecop.freeze(@current_time + interval) do
113
- widget.data(start_time: (Time.now - timespan).to_i)[:series][:rows].size.should == 1
114
- widget.data(
114
+ expect(widget.data(start_time: (Time.now - timespan).to_i)[:series][:rows].size).to eq(1)
115
+ expect(widget.data(
115
116
  start_time: (Time.now - interval - timespan).to_i,
116
117
  end_time: Time.now.to_i
117
- )[:series][:rows].size.should == 2
118
+ )[:series][:rows].size).to eq(2)
118
119
  end
119
120
  end
120
121
 
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulse_meter_visualizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.20
4
+ version: 0.4.21
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ilya Averyanov
@@ -9,11 +10,12 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-09-08 00:00:00.000000000 Z
13
+ date: 2015-06-27 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: pulse_meter_core
16
17
  requirement: !ruby/object:Gem::Requirement
18
+ none: false
17
19
  requirements:
18
20
  - - ! '>='
19
21
  - !ruby/object:Gem::Version
@@ -21,6 +23,7 @@ dependencies:
21
23
  type: :runtime
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
@@ -28,6 +31,7 @@ dependencies:
28
31
  - !ruby/object:Gem::Dependency
29
32
  name: gon-sinatra
30
33
  requirement: !ruby/object:Gem::Requirement
34
+ none: false
31
35
  requirements:
32
36
  - - ! '>='
33
37
  - !ruby/object:Gem::Version
@@ -35,6 +39,7 @@ dependencies:
35
39
  type: :runtime
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
@@ -42,6 +47,7 @@ dependencies:
42
47
  - !ruby/object:Gem::Dependency
43
48
  name: haml
44
49
  requirement: !ruby/object:Gem::Requirement
50
+ none: false
45
51
  requirements:
46
52
  - - ! '>='
47
53
  - !ruby/object:Gem::Version
@@ -49,6 +55,7 @@ dependencies:
49
55
  type: :runtime
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
@@ -56,6 +63,7 @@ dependencies:
56
63
  - !ruby/object:Gem::Dependency
57
64
  name: sinatra
58
65
  requirement: !ruby/object:Gem::Requirement
66
+ none: false
59
67
  requirements:
60
68
  - - ! '>='
61
69
  - !ruby/object:Gem::Version
@@ -63,6 +71,7 @@ dependencies:
63
71
  type: :runtime
64
72
  prerelease: false
65
73
  version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
66
75
  requirements:
67
76
  - - ! '>='
68
77
  - !ruby/object:Gem::Version
@@ -70,6 +79,7 @@ dependencies:
70
79
  - !ruby/object:Gem::Dependency
71
80
  name: sinatra-partial
72
81
  requirement: !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
84
  - - ! '>='
75
85
  - !ruby/object:Gem::Version
@@ -77,6 +87,7 @@ dependencies:
77
87
  type: :runtime
78
88
  prerelease: false
79
89
  version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
80
91
  requirements:
81
92
  - - ! '>='
82
93
  - !ruby/object:Gem::Version
@@ -84,6 +95,7 @@ dependencies:
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: aquarium
86
97
  requirement: !ruby/object:Gem::Requirement
98
+ none: false
87
99
  requirements:
88
100
  - - ! '>='
89
101
  - !ruby/object:Gem::Version
@@ -91,6 +103,7 @@ dependencies:
91
103
  type: :development
92
104
  prerelease: false
93
105
  version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
94
107
  requirements:
95
108
  - - ! '>='
96
109
  - !ruby/object:Gem::Version
@@ -98,6 +111,7 @@ dependencies:
98
111
  - !ruby/object:Gem::Dependency
99
112
  name: coffee-script
100
113
  requirement: !ruby/object:Gem::Requirement
114
+ none: false
101
115
  requirements:
102
116
  - - ! '>='
103
117
  - !ruby/object:Gem::Version
@@ -105,6 +119,7 @@ dependencies:
105
119
  type: :development
106
120
  prerelease: false
107
121
  version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
108
123
  requirements:
109
124
  - - ! '>='
110
125
  - !ruby/object:Gem::Version
@@ -112,6 +127,7 @@ dependencies:
112
127
  - !ruby/object:Gem::Dependency
113
128
  name: foreman
114
129
  requirement: !ruby/object:Gem::Requirement
130
+ none: false
115
131
  requirements:
116
132
  - - ! '>='
117
133
  - !ruby/object:Gem::Version
@@ -119,6 +135,7 @@ dependencies:
119
135
  type: :development
120
136
  prerelease: false
121
137
  version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
122
139
  requirements:
123
140
  - - ! '>='
124
141
  - !ruby/object:Gem::Version
@@ -126,6 +143,7 @@ dependencies:
126
143
  - !ruby/object:Gem::Dependency
127
144
  name: hashie
128
145
  requirement: !ruby/object:Gem::Requirement
146
+ none: false
129
147
  requirements:
130
148
  - - ! '>='
131
149
  - !ruby/object:Gem::Version
@@ -133,6 +151,7 @@ dependencies:
133
151
  type: :development
134
152
  prerelease: false
135
153
  version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
136
155
  requirements:
137
156
  - - ! '>='
138
157
  - !ruby/object:Gem::Version
@@ -140,6 +159,7 @@ dependencies:
140
159
  - !ruby/object:Gem::Dependency
141
160
  name: listen
142
161
  requirement: !ruby/object:Gem::Requirement
162
+ none: false
143
163
  requirements:
144
164
  - - ! '>='
145
165
  - !ruby/object:Gem::Version
@@ -147,6 +167,7 @@ dependencies:
147
167
  type: :development
148
168
  prerelease: false
149
169
  version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
150
171
  requirements:
151
172
  - - ! '>='
152
173
  - !ruby/object:Gem::Version
@@ -154,6 +175,7 @@ dependencies:
154
175
  - !ruby/object:Gem::Dependency
155
176
  name: mock_redis
156
177
  requirement: !ruby/object:Gem::Requirement
178
+ none: false
157
179
  requirements:
158
180
  - - ! '>='
159
181
  - !ruby/object:Gem::Version
@@ -161,6 +183,7 @@ dependencies:
161
183
  type: :development
162
184
  prerelease: false
163
185
  version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
164
187
  requirements:
165
188
  - - ! '>='
166
189
  - !ruby/object:Gem::Version
@@ -168,6 +191,7 @@ dependencies:
168
191
  - !ruby/object:Gem::Dependency
169
192
  name: rack-test
170
193
  requirement: !ruby/object:Gem::Requirement
194
+ none: false
171
195
  requirements:
172
196
  - - ! '>='
173
197
  - !ruby/object:Gem::Version
@@ -175,6 +199,7 @@ dependencies:
175
199
  type: :development
176
200
  prerelease: false
177
201
  version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
178
203
  requirements:
179
204
  - - ! '>='
180
205
  - !ruby/object:Gem::Version
@@ -182,6 +207,7 @@ dependencies:
182
207
  - !ruby/object:Gem::Dependency
183
208
  name: rake
184
209
  requirement: !ruby/object:Gem::Requirement
210
+ none: false
185
211
  requirements:
186
212
  - - ! '>='
187
213
  - !ruby/object:Gem::Version
@@ -189,6 +215,7 @@ dependencies:
189
215
  type: :development
190
216
  prerelease: false
191
217
  version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
192
219
  requirements:
193
220
  - - ! '>='
194
221
  - !ruby/object:Gem::Version
@@ -196,6 +223,7 @@ dependencies:
196
223
  - !ruby/object:Gem::Dependency
197
224
  name: rb-fsevent
198
225
  requirement: !ruby/object:Gem::Requirement
226
+ none: false
199
227
  requirements:
200
228
  - - ! '>='
201
229
  - !ruby/object:Gem::Version
@@ -203,6 +231,7 @@ dependencies:
203
231
  type: :development
204
232
  prerelease: false
205
233
  version_requirements: !ruby/object:Gem::Requirement
234
+ none: false
206
235
  requirements:
207
236
  - - ! '>='
208
237
  - !ruby/object:Gem::Version
@@ -210,6 +239,7 @@ dependencies:
210
239
  - !ruby/object:Gem::Dependency
211
240
  name: redcarpet
212
241
  requirement: !ruby/object:Gem::Requirement
242
+ none: false
213
243
  requirements:
214
244
  - - ! '>='
215
245
  - !ruby/object:Gem::Version
@@ -217,6 +247,7 @@ dependencies:
217
247
  type: :development
218
248
  prerelease: false
219
249
  version_requirements: !ruby/object:Gem::Requirement
250
+ none: false
220
251
  requirements:
221
252
  - - ! '>='
222
253
  - !ruby/object:Gem::Version
@@ -224,20 +255,23 @@ dependencies:
224
255
  - !ruby/object:Gem::Dependency
225
256
  name: rspec
226
257
  requirement: !ruby/object:Gem::Requirement
258
+ none: false
227
259
  requirements:
228
- - - ! '>='
260
+ - - ~>
229
261
  - !ruby/object:Gem::Version
230
- version: '0'
262
+ version: '3.0'
231
263
  type: :development
232
264
  prerelease: false
233
265
  version_requirements: !ruby/object:Gem::Requirement
266
+ none: false
234
267
  requirements:
235
- - - ! '>='
268
+ - - ~>
236
269
  - !ruby/object:Gem::Version
237
- version: '0'
270
+ version: '3.0'
238
271
  - !ruby/object:Gem::Dependency
239
272
  name: simplecov
240
273
  requirement: !ruby/object:Gem::Requirement
274
+ none: false
241
275
  requirements:
242
276
  - - ! '>='
243
277
  - !ruby/object:Gem::Version
@@ -245,6 +279,7 @@ dependencies:
245
279
  type: :development
246
280
  prerelease: false
247
281
  version_requirements: !ruby/object:Gem::Requirement
282
+ none: false
248
283
  requirements:
249
284
  - - ! '>='
250
285
  - !ruby/object:Gem::Version
@@ -252,6 +287,7 @@ dependencies:
252
287
  - !ruby/object:Gem::Dependency
253
288
  name: sprockets
254
289
  requirement: !ruby/object:Gem::Requirement
290
+ none: false
255
291
  requirements:
256
292
  - - ! '>='
257
293
  - !ruby/object:Gem::Version
@@ -259,6 +295,7 @@ dependencies:
259
295
  type: :development
260
296
  prerelease: false
261
297
  version_requirements: !ruby/object:Gem::Requirement
298
+ none: false
262
299
  requirements:
263
300
  - - ! '>='
264
301
  - !ruby/object:Gem::Version
@@ -266,6 +303,7 @@ dependencies:
266
303
  - !ruby/object:Gem::Dependency
267
304
  name: timecop
268
305
  requirement: !ruby/object:Gem::Requirement
306
+ none: false
269
307
  requirements:
270
308
  - - ! '>='
271
309
  - !ruby/object:Gem::Version
@@ -273,6 +311,7 @@ dependencies:
273
311
  type: :development
274
312
  prerelease: false
275
313
  version_requirements: !ruby/object:Gem::Requirement
314
+ none: false
276
315
  requirements:
277
316
  - - ! '>='
278
317
  - !ruby/object:Gem::Version
@@ -280,6 +319,7 @@ dependencies:
280
319
  - !ruby/object:Gem::Dependency
281
320
  name: yard
282
321
  requirement: !ruby/object:Gem::Requirement
322
+ none: false
283
323
  requirements:
284
324
  - - ! '>='
285
325
  - !ruby/object:Gem::Version
@@ -287,6 +327,7 @@ dependencies:
287
327
  type: :development
288
328
  prerelease: false
289
329
  version_requirements: !ruby/object:Gem::Requirement
330
+ none: false
290
331
  requirements:
291
332
  - - ! '>='
292
333
  - !ruby/object:Gem::Version
@@ -425,26 +466,30 @@ files:
425
466
  - spec/spec_helper.rb
426
467
  homepage: https://github.com/savonarola/pulse_meter_visualizer
427
468
  licenses: []
428
- metadata: {}
429
469
  post_install_message:
430
470
  rdoc_options: []
431
471
  require_paths:
432
472
  - lib
433
473
  required_ruby_version: !ruby/object:Gem::Requirement
474
+ none: false
434
475
  requirements:
435
476
  - - ! '>='
436
477
  - !ruby/object:Gem::Version
437
478
  version: 1.9.2
438
479
  required_rubygems_version: !ruby/object:Gem::Requirement
480
+ none: false
439
481
  requirements:
440
482
  - - ! '>='
441
483
  - !ruby/object:Gem::Version
442
484
  version: '0'
485
+ segments:
486
+ - 0
487
+ hash: -1924238391703377637
443
488
  requirements: []
444
489
  rubyforge_project:
445
- rubygems_version: 2.4.1
490
+ rubygems_version: 1.8.23
446
491
  signing_key:
447
- specification_version: 4
492
+ specification_version: 3
448
493
  summary: Customizable web interface for lightweight Redis-based metrics aggregator
449
494
  and processor PulseMeter
450
495
  test_files:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDc4Mzk4NGViOWQ1MzQzNTdjYTRhYTkzNDlhMjJmZDAyM2QzNmMwNg==
5
- data.tar.gz: !binary |-
6
- N2E1YTFhYjAzZTYwMmYxZDM2YzMyYWY3ODUyZTM4ODgzYTI2NWM5NQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MTEwOWVkODMzNjY5Zjc1YmZjODExM2QyOTIzMGNlZThjMDM0NzY2NWRlOGM0
10
- YWVkNDJhZjFkYWI3M2I1NWEzYmFjZTU3YWVkM2YzMWUxZGQyZDI1YmJlMWNj
11
- ZTVjZjVlYTlhMjFhNDg2ZWE3ZGYzNGY0NGNlNmY4NGIwOTIxMmM=
12
- data.tar.gz: !binary |-
13
- OTM1ODZjZGYxMzU4NzU4OTRhMGMxOGVmMzIzOTEzMWNhMjY4NDVkMWQyMWY2
14
- NzllOTllNzhkM2E2Y2UxYTlmZTc4MGI1ZDY2NTBlYjJkZmRiNmQxMzYxODM4
15
- N2Q1OWYwZmRiOGQ1Y2YyZDM0YTk5ZDI2MDc1YjhlNDljZmY5Y2M=