redistat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +26 -0
- data/Gemfile +2 -7
- data/Gemfile.lock +14 -10
- data/Rakefile +23 -28
- data/lib/redistat/version.rb +3 -0
- data/redistat.gemspec +27 -0
- metadata +34 -220
- data/VERSION +0 -1
data/.gitignore
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## PROJECT::GENERAL
|
17
|
+
coverage
|
18
|
+
rdoc
|
19
|
+
pkg/*
|
20
|
+
*.gem
|
21
|
+
.bundle
|
22
|
+
|
23
|
+
## PROJECT::SPECIFIC
|
24
|
+
.yardoc/*
|
25
|
+
spec/db/*
|
26
|
+
doc/*
|
data/Gemfile
CHANGED
@@ -1,14 +1,9 @@
|
|
1
1
|
source 'http://rubygems.org/'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
gem 'redis', '>= 2.1.1'
|
6
|
-
gem 'system_timer', '>= 1.0.0'
|
7
|
-
gem 'time_ext', '>= 0.2.6'
|
3
|
+
# Specify your gem's dependencies in redistat.gemspec
|
4
|
+
gemspec
|
8
5
|
|
9
6
|
group :development do
|
10
|
-
gem 'jeweler', '>= 1.5.1'
|
11
7
|
gem 'rspec', '>= 2.1.0'
|
12
8
|
gem 'yard', '>= 0.6.3'
|
13
|
-
gem 'i18n'
|
14
9
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,20 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
redistat (0.0.4)
|
5
|
+
activesupport (>= 2.3.0)
|
6
|
+
json (>= 1.4.6)
|
7
|
+
redis (>= 2.1.1)
|
8
|
+
system_timer (>= 1.0.0)
|
9
|
+
time_ext (>= 0.2.8)
|
10
|
+
|
1
11
|
GEM
|
2
12
|
remote: http://rubygems.org/
|
3
13
|
specs:
|
4
14
|
activesupport (3.0.3)
|
5
15
|
diff-lcs (1.1.2)
|
6
|
-
git (1.2.5)
|
7
16
|
i18n (0.4.2)
|
8
|
-
jeweler (1.5.1)
|
9
|
-
bundler (~> 1.0.0)
|
10
|
-
git (>= 1.2.5)
|
11
|
-
rake
|
12
17
|
json (1.4.6)
|
13
|
-
rake (0.8.7)
|
14
18
|
redis (2.1.1)
|
15
19
|
rspec (2.1.0)
|
16
20
|
rspec-core (~> 2.1.0)
|
@@ -21,8 +25,9 @@ GEM
|
|
21
25
|
diff-lcs (~> 1.1.2)
|
22
26
|
rspec-mocks (2.1.0)
|
23
27
|
system_timer (1.0)
|
24
|
-
time_ext (0.2.
|
28
|
+
time_ext (0.2.8)
|
25
29
|
activesupport (>= 2.3.0)
|
30
|
+
i18n (>= 0.4.2)
|
26
31
|
yard (0.6.3)
|
27
32
|
|
28
33
|
PLATFORMS
|
@@ -30,11 +35,10 @@ PLATFORMS
|
|
30
35
|
|
31
36
|
DEPENDENCIES
|
32
37
|
activesupport (>= 2.3.0)
|
33
|
-
i18n
|
34
|
-
jeweler (>= 1.5.1)
|
35
38
|
json (>= 1.4.6)
|
36
39
|
redis (>= 2.1.1)
|
40
|
+
redistat!
|
37
41
|
rspec (>= 2.1.0)
|
38
42
|
system_timer (>= 1.0.0)
|
39
|
-
time_ext (>= 0.2.
|
43
|
+
time_ext (>= 0.2.8)
|
40
44
|
yard (>= 0.6.3)
|
data/Rakefile
CHANGED
@@ -1,31 +1,11 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = 'redistat'
|
8
|
-
gem.summary = 'A Redis-backed statistics storage and querying library written in Ruby.'
|
9
|
-
gem.description = 'A Redis-backed statistics storage and querying library written in Ruby.'
|
10
|
-
gem.email = 'contact@jimeh.me'
|
11
|
-
gem.homepage = 'http://github.com/jimeh/redistat'
|
12
|
-
gem.authors = ['Jim Myhrberg']
|
13
|
-
gem.add_dependency 'activesupport', '>= 2.3.0'
|
14
|
-
gem.add_dependency 'json', '>= 1.4.6'
|
15
|
-
gem.add_dependency 'redis', '>= 2.1.1'
|
16
|
-
gem.add_dependency 'system_timer', '>= 1.0.0'
|
17
|
-
gem.add_dependency 'time_ext', '>= 0.2.6'
|
18
|
-
gem.add_development_dependency 'jeweler', '>= 1.5.1'
|
19
|
-
gem.add_development_dependency 'rspec', '>= 2.1.0'
|
20
|
-
gem.add_development_dependency 'yard', '>= 0.6.1'
|
21
|
-
end
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
25
|
-
end
|
1
|
+
require 'bundler'
|
2
|
+
Bundler::GemHelper.install_tasks
|
26
3
|
|
27
4
|
|
5
|
+
#
|
28
6
|
# Rspec
|
7
|
+
#
|
8
|
+
|
29
9
|
require 'rspec/core/rake_task'
|
30
10
|
RSpec::Core::RakeTask.new(:spec) do |spec|
|
31
11
|
spec.pattern = 'spec/**/*_spec.rb'
|
@@ -36,12 +16,13 @@ RSpec::Core::RakeTask.new(:rcov) do |spec|
|
|
36
16
|
spec.rcov = true
|
37
17
|
end
|
38
18
|
|
39
|
-
task :spec => :check_dependencies
|
40
|
-
|
41
19
|
task :default => [:start, :spec, :stop]
|
42
20
|
|
43
21
|
|
22
|
+
#
|
44
23
|
# Start/stop Redis test server
|
24
|
+
#
|
25
|
+
|
45
26
|
REDIS_DIR = File.expand_path(File.join("..", "spec"), __FILE__)
|
46
27
|
REDIS_CNF = File.join(REDIS_DIR, "redis-test.conf")
|
47
28
|
REDIS_PID = File.join(REDIS_DIR, "db", "redis.pid")
|
@@ -62,7 +43,10 @@ task :stop do
|
|
62
43
|
end
|
63
44
|
|
64
45
|
|
65
|
-
#
|
46
|
+
#
|
47
|
+
# Yard
|
48
|
+
#
|
49
|
+
|
66
50
|
begin
|
67
51
|
require 'yard'
|
68
52
|
YARD::Rake::YardocTask.new
|
@@ -71,3 +55,14 @@ rescue LoadError
|
|
71
55
|
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
|
72
56
|
end
|
73
57
|
end
|
58
|
+
|
59
|
+
|
60
|
+
#
|
61
|
+
# Misc.
|
62
|
+
#
|
63
|
+
|
64
|
+
desc "Start an irb console with Redistat pre-loaded."
|
65
|
+
task :console do
|
66
|
+
exec "irb -r spec/spec_helper"
|
67
|
+
end
|
68
|
+
task :c => :console
|
data/redistat.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "redistat/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "redistat"
|
7
|
+
s.version = Redistat::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Jim Myhrberg"]
|
10
|
+
s.email = ["contact@jimeh.me"]
|
11
|
+
s.homepage = "http://github.com/jimeh/redistat"
|
12
|
+
s.summary = %q{A Redis-backed statistics storage and querying library written in Ruby.}
|
13
|
+
s.description = %q{A Redis-backed statistics storage and querying library written in Ruby.}
|
14
|
+
|
15
|
+
s.rubyforge_project = "redistat"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_runtime_dependency 'activesupport', '>= 2.3.0'
|
23
|
+
s.add_runtime_dependency 'json', '>= 1.4.6'
|
24
|
+
s.add_runtime_dependency 'redis', '>= 2.1.1'
|
25
|
+
s.add_runtime_dependency 'system_timer', '>= 1.0.0'
|
26
|
+
s.add_runtime_dependency 'time_ext', '>= 0.2.8'
|
27
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redistat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jim Myhrberg
|
@@ -19,10 +19,9 @@ date: 2010-11-24 00:00:00 +00:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
prerelease: false
|
23
|
-
type: :runtime
|
24
22
|
name: activesupport
|
25
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
25
|
none: false
|
27
26
|
requirements:
|
28
27
|
- - ">="
|
@@ -33,12 +32,12 @@ dependencies:
|
|
33
32
|
- 3
|
34
33
|
- 0
|
35
34
|
version: 2.3.0
|
36
|
-
requirement: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
prerelease: false
|
39
35
|
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
40
38
|
name: json
|
41
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
41
|
none: false
|
43
42
|
requirements:
|
44
43
|
- - ">="
|
@@ -49,12 +48,12 @@ dependencies:
|
|
49
48
|
- 4
|
50
49
|
- 6
|
51
50
|
version: 1.4.6
|
52
|
-
requirement: *id002
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
prerelease: false
|
55
51
|
type: :runtime
|
52
|
+
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
56
54
|
name: redis
|
57
|
-
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
57
|
none: false
|
59
58
|
requirements:
|
60
59
|
- - ">="
|
@@ -65,12 +64,12 @@ dependencies:
|
|
65
64
|
- 1
|
66
65
|
- 1
|
67
66
|
version: 2.1.1
|
68
|
-
requirement: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
prerelease: false
|
71
67
|
type: :runtime
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
72
70
|
name: system_timer
|
73
|
-
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
74
73
|
none: false
|
75
74
|
requirements:
|
76
75
|
- - ">="
|
@@ -81,231 +80,42 @@ dependencies:
|
|
81
80
|
- 0
|
82
81
|
- 0
|
83
82
|
version: 1.0.0
|
84
|
-
requirement: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
prerelease: false
|
87
83
|
type: :runtime
|
88
|
-
|
89
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
|
-
requirements:
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
hash: 27
|
95
|
-
segments:
|
96
|
-
- 0
|
97
|
-
- 2
|
98
|
-
- 6
|
99
|
-
version: 0.2.6
|
100
|
-
requirement: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
prerelease: false
|
103
|
-
type: :development
|
104
|
-
name: jeweler
|
105
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
hash: 1
|
111
|
-
segments:
|
112
|
-
- 1
|
113
|
-
- 5
|
114
|
-
- 1
|
115
|
-
version: 1.5.1
|
116
|
-
requirement: *id006
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
prerelease: false
|
119
|
-
type: :development
|
120
|
-
name: rspec
|
121
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
|
-
requirements:
|
124
|
-
- - ">="
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
hash: 11
|
127
|
-
segments:
|
128
|
-
- 2
|
129
|
-
- 1
|
130
|
-
- 0
|
131
|
-
version: 2.1.0
|
132
|
-
requirement: *id007
|
133
|
-
- !ruby/object:Gem::Dependency
|
134
|
-
prerelease: false
|
135
|
-
type: :development
|
136
|
-
name: yard
|
137
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
138
|
-
none: false
|
139
|
-
requirements:
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
hash: 1
|
143
|
-
segments:
|
144
|
-
- 0
|
145
|
-
- 6
|
146
|
-
- 3
|
147
|
-
version: 0.6.3
|
148
|
-
requirement: *id008
|
84
|
+
version_requirements: *id004
|
149
85
|
- !ruby/object:Gem::Dependency
|
86
|
+
name: time_ext
|
150
87
|
prerelease: false
|
151
|
-
|
152
|
-
name: i18n
|
153
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
88
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
154
89
|
none: false
|
155
90
|
requirements:
|
156
91
|
- - ">="
|
157
92
|
- !ruby/object:Gem::Version
|
158
|
-
hash:
|
93
|
+
hash: 7
|
159
94
|
segments:
|
160
95
|
- 0
|
161
|
-
version: "0"
|
162
|
-
requirement: *id009
|
163
|
-
- !ruby/object:Gem::Dependency
|
164
|
-
prerelease: false
|
165
|
-
type: :runtime
|
166
|
-
name: activesupport
|
167
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
168
|
-
none: false
|
169
|
-
requirements:
|
170
|
-
- - ">="
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
hash: 3
|
173
|
-
segments:
|
174
96
|
- 2
|
175
|
-
-
|
176
|
-
|
177
|
-
version: 2.3.0
|
178
|
-
requirement: *id010
|
179
|
-
- !ruby/object:Gem::Dependency
|
180
|
-
prerelease: false
|
97
|
+
- 8
|
98
|
+
version: 0.2.8
|
181
99
|
type: :runtime
|
182
|
-
|
183
|
-
version_requirements: &id011 !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
hash: 11
|
189
|
-
segments:
|
190
|
-
- 1
|
191
|
-
- 4
|
192
|
-
- 6
|
193
|
-
version: 1.4.6
|
194
|
-
requirement: *id011
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
prerelease: false
|
197
|
-
type: :runtime
|
198
|
-
name: redis
|
199
|
-
version_requirements: &id012 !ruby/object:Gem::Requirement
|
200
|
-
none: false
|
201
|
-
requirements:
|
202
|
-
- - ">="
|
203
|
-
- !ruby/object:Gem::Version
|
204
|
-
hash: 9
|
205
|
-
segments:
|
206
|
-
- 2
|
207
|
-
- 1
|
208
|
-
- 1
|
209
|
-
version: 2.1.1
|
210
|
-
requirement: *id012
|
211
|
-
- !ruby/object:Gem::Dependency
|
212
|
-
prerelease: false
|
213
|
-
type: :runtime
|
214
|
-
name: system_timer
|
215
|
-
version_requirements: &id013 !ruby/object:Gem::Requirement
|
216
|
-
none: false
|
217
|
-
requirements:
|
218
|
-
- - ">="
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
hash: 23
|
221
|
-
segments:
|
222
|
-
- 1
|
223
|
-
- 0
|
224
|
-
- 0
|
225
|
-
version: 1.0.0
|
226
|
-
requirement: *id013
|
227
|
-
- !ruby/object:Gem::Dependency
|
228
|
-
prerelease: false
|
229
|
-
type: :runtime
|
230
|
-
name: time_ext
|
231
|
-
version_requirements: &id014 !ruby/object:Gem::Requirement
|
232
|
-
none: false
|
233
|
-
requirements:
|
234
|
-
- - ">="
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
hash: 27
|
237
|
-
segments:
|
238
|
-
- 0
|
239
|
-
- 2
|
240
|
-
- 6
|
241
|
-
version: 0.2.6
|
242
|
-
requirement: *id014
|
243
|
-
- !ruby/object:Gem::Dependency
|
244
|
-
prerelease: false
|
245
|
-
type: :development
|
246
|
-
name: jeweler
|
247
|
-
version_requirements: &id015 !ruby/object:Gem::Requirement
|
248
|
-
none: false
|
249
|
-
requirements:
|
250
|
-
- - ">="
|
251
|
-
- !ruby/object:Gem::Version
|
252
|
-
hash: 1
|
253
|
-
segments:
|
254
|
-
- 1
|
255
|
-
- 5
|
256
|
-
- 1
|
257
|
-
version: 1.5.1
|
258
|
-
requirement: *id015
|
259
|
-
- !ruby/object:Gem::Dependency
|
260
|
-
prerelease: false
|
261
|
-
type: :development
|
262
|
-
name: rspec
|
263
|
-
version_requirements: &id016 !ruby/object:Gem::Requirement
|
264
|
-
none: false
|
265
|
-
requirements:
|
266
|
-
- - ">="
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
hash: 11
|
269
|
-
segments:
|
270
|
-
- 2
|
271
|
-
- 1
|
272
|
-
- 0
|
273
|
-
version: 2.1.0
|
274
|
-
requirement: *id016
|
275
|
-
- !ruby/object:Gem::Dependency
|
276
|
-
prerelease: false
|
277
|
-
type: :development
|
278
|
-
name: yard
|
279
|
-
version_requirements: &id017 !ruby/object:Gem::Requirement
|
280
|
-
none: false
|
281
|
-
requirements:
|
282
|
-
- - ">="
|
283
|
-
- !ruby/object:Gem::Version
|
284
|
-
hash: 5
|
285
|
-
segments:
|
286
|
-
- 0
|
287
|
-
- 6
|
288
|
-
- 1
|
289
|
-
version: 0.6.1
|
290
|
-
requirement: *id017
|
100
|
+
version_requirements: *id005
|
291
101
|
description: A Redis-backed statistics storage and querying library written in Ruby.
|
292
|
-
email:
|
102
|
+
email:
|
103
|
+
- contact@jimeh.me
|
293
104
|
executables: []
|
294
105
|
|
295
106
|
extensions: []
|
296
107
|
|
297
|
-
extra_rdoc_files:
|
298
|
-
|
299
|
-
- README.md
|
108
|
+
extra_rdoc_files: []
|
109
|
+
|
300
110
|
files:
|
301
111
|
- .document
|
112
|
+
- .gitignore
|
302
113
|
- .rspec
|
303
114
|
- Gemfile
|
304
115
|
- Gemfile.lock
|
305
116
|
- LICENSE
|
306
117
|
- README.md
|
307
118
|
- Rakefile
|
308
|
-
- VERSION
|
309
119
|
- lib/redistat.rb
|
310
120
|
- lib/redistat/collection.rb
|
311
121
|
- lib/redistat/core_ext/date.rb
|
@@ -322,6 +132,8 @@ files:
|
|
322
132
|
- lib/redistat/result.rb
|
323
133
|
- lib/redistat/scope.rb
|
324
134
|
- lib/redistat/summary.rb
|
135
|
+
- lib/redistat/version.rb
|
136
|
+
- redistat.gemspec
|
325
137
|
- spec/_redistat_spec.rb
|
326
138
|
- spec/collection_spec.rb
|
327
139
|
- spec/date_spec.rb
|
@@ -367,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
179
|
version: "0"
|
368
180
|
requirements: []
|
369
181
|
|
370
|
-
rubyforge_project:
|
182
|
+
rubyforge_project: redistat
|
371
183
|
rubygems_version: 1.3.7
|
372
184
|
signing_key:
|
373
185
|
specification_version: 3
|
@@ -376,6 +188,7 @@ test_files:
|
|
376
188
|
- spec/_redistat_spec.rb
|
377
189
|
- spec/collection_spec.rb
|
378
190
|
- spec/date_spec.rb
|
191
|
+
- spec/db/.emptydir
|
379
192
|
- spec/event_spec.rb
|
380
193
|
- spec/finder/date_set_spec.rb
|
381
194
|
- spec/finder_spec.rb
|
@@ -383,6 +196,7 @@ test_files:
|
|
383
196
|
- spec/label_spec.rb
|
384
197
|
- spec/model_helper.rb
|
385
198
|
- spec/model_spec.rb
|
199
|
+
- spec/redis-test.conf
|
386
200
|
- spec/result_spec.rb
|
387
201
|
- spec/scope_spec.rb
|
388
202
|
- spec/spec_helper.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.3
|