redness 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Rakefile +17 -0
- data/lib/version.rb +1 -1
- data/redness.gemspec +9 -9
- data/spec/redis_runner.rb +2 -2
- metadata +19 -24
data/.gitignore
CHANGED
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rake'
|
5
|
+
require 'rspec/core'
|
6
|
+
require 'rspec/core/rake_task'
|
7
|
+
|
8
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
9
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
10
|
+
end
|
11
|
+
|
12
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
13
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
14
|
+
spec.rcov = true
|
15
|
+
end
|
16
|
+
|
17
|
+
task :default => :spec
|
data/lib/version.rb
CHANGED
data/redness.gemspec
CHANGED
@@ -4,14 +4,14 @@ require "version"
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "redness"
|
6
6
|
s.version = Redness::VERSION
|
7
|
-
s.authors =
|
8
|
-
Baldur Gudbjornsson
|
9
|
-
Matt Vermaak
|
10
|
-
Bryan Woods
|
11
|
-
Kenneth Lay
|
12
|
-
Marco Carag
|
13
|
-
Conner Peirce
|
14
|
-
|
7
|
+
s.authors = [
|
8
|
+
"Baldur Gudbjornsson",
|
9
|
+
"Matt Vermaak",
|
10
|
+
"Bryan Woods",
|
11
|
+
"Kenneth Lay",
|
12
|
+
"Marco Carag",
|
13
|
+
"Conner Peirce"
|
14
|
+
]
|
15
15
|
s.email = "dev@howaboutwe.com"
|
16
16
|
s.summary = "Helpful Ruby classes for improved Redis data structures"
|
17
17
|
s.description = "Helpful Ruby classes for improved Redis data structures"
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.add_dependency "rspec"
|
22
22
|
s.add_dependency "redis", "~> 2.2.2"
|
23
|
-
s.add_dependency "
|
23
|
+
s.add_dependency "activesupport"
|
24
24
|
s.add_dependency "timecop"
|
25
25
|
s.require_paths = ["lib"]
|
26
26
|
end
|
data/spec/redis_runner.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class RedisRunner
|
2
2
|
def self.start
|
3
3
|
fork do
|
4
|
-
`cd tmp && echo port #{port} | redis-server -`
|
4
|
+
`mkdir -p tmp && cd tmp && echo port #{port} | redis-server -`
|
5
5
|
at_exit { exit! }
|
6
6
|
end
|
7
7
|
end
|
@@ -13,7 +13,7 @@ class RedisRunner
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def self.up?
|
16
|
-
system("redis-cli -h #{host} -p #{port} 'INFO' 2&>
|
16
|
+
system("redis-cli -h #{host} -p #{port} 'INFO' 2&> /dev/null")
|
17
17
|
$? == 0
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,30 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Baldur
|
9
|
-
-
|
10
|
-
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
14
|
-
- Kenneth
|
15
|
-
- Lay
|
16
|
-
- Marco
|
17
|
-
- Carag
|
18
|
-
- Conner
|
19
|
-
- Peirce
|
8
|
+
- Baldur Gudbjornsson
|
9
|
+
- Matt Vermaak
|
10
|
+
- Bryan Woods
|
11
|
+
- Kenneth Lay
|
12
|
+
- Marco Carag
|
13
|
+
- Conner Peirce
|
20
14
|
autorequire:
|
21
15
|
bindir: bin
|
22
16
|
cert_chain: []
|
23
|
-
date: 2012-04-
|
17
|
+
date: 2012-04-20 00:00:00.000000000Z
|
24
18
|
dependencies:
|
25
19
|
- !ruby/object:Gem::Dependency
|
26
20
|
name: rspec
|
27
|
-
requirement: &
|
21
|
+
requirement: &70145297776720 !ruby/object:Gem::Requirement
|
28
22
|
none: false
|
29
23
|
requirements:
|
30
24
|
- - ! '>='
|
@@ -32,10 +26,10 @@ dependencies:
|
|
32
26
|
version: '0'
|
33
27
|
type: :runtime
|
34
28
|
prerelease: false
|
35
|
-
version_requirements: *
|
29
|
+
version_requirements: *70145297776720
|
36
30
|
- !ruby/object:Gem::Dependency
|
37
31
|
name: redis
|
38
|
-
requirement: &
|
32
|
+
requirement: &70145297776220 !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
34
|
requirements:
|
41
35
|
- - ~>
|
@@ -43,10 +37,10 @@ dependencies:
|
|
43
37
|
version: 2.2.2
|
44
38
|
type: :runtime
|
45
39
|
prerelease: false
|
46
|
-
version_requirements: *
|
40
|
+
version_requirements: *70145297776220
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
49
|
-
requirement: &
|
42
|
+
name: activesupport
|
43
|
+
requirement: &70145297775800 !ruby/object:Gem::Requirement
|
50
44
|
none: false
|
51
45
|
requirements:
|
52
46
|
- - ! '>='
|
@@ -54,10 +48,10 @@ dependencies:
|
|
54
48
|
version: '0'
|
55
49
|
type: :runtime
|
56
50
|
prerelease: false
|
57
|
-
version_requirements: *
|
51
|
+
version_requirements: *70145297775800
|
58
52
|
- !ruby/object:Gem::Dependency
|
59
53
|
name: timecop
|
60
|
-
requirement: &
|
54
|
+
requirement: &70145297775340 !ruby/object:Gem::Requirement
|
61
55
|
none: false
|
62
56
|
requirements:
|
63
57
|
- - ! '>='
|
@@ -65,7 +59,7 @@ dependencies:
|
|
65
59
|
version: '0'
|
66
60
|
type: :runtime
|
67
61
|
prerelease: false
|
68
|
-
version_requirements: *
|
62
|
+
version_requirements: *70145297775340
|
69
63
|
description: Helpful Ruby classes for improved Redis data structures
|
70
64
|
email: dev@howaboutwe.com
|
71
65
|
executables: []
|
@@ -76,6 +70,7 @@ files:
|
|
76
70
|
- LICENSE.txt
|
77
71
|
- RAKEFILE
|
78
72
|
- README.rdoc
|
73
|
+
- Rakefile
|
79
74
|
- lib/redness.rb
|
80
75
|
- lib/redness/red.rb
|
81
76
|
- lib/redness/red_capped_list.rb
|
@@ -122,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
117
|
version: '0'
|
123
118
|
requirements: []
|
124
119
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.8.
|
120
|
+
rubygems_version: 1.8.15
|
126
121
|
signing_key:
|
127
122
|
specification_version: 3
|
128
123
|
summary: Helpful Ruby classes for improved Redis data structures
|