redis-classy 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +2 -8
- data/{LICENSE.txt → LICENSE} +4 -2
- data/README.md +2 -0
- data/Rakefile +8 -28
- data/lib/redis-classy.rb +2 -4
- data/lib/redis/classy/version.rb +5 -0
- data/redis-classy.gemspec +16 -56
- data/spec/spec_helper.rb +3 -6
- metadata +30 -29
- data/.document +0 -5
- data/Gemfile.lock +0 -30
- data/VERSION +0 -1
data/.gitignore
ADDED
data/Gemfile
CHANGED
data/{LICENSE.txt → LICENSE}
RENAMED
@@ -1,4 +1,6 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2012 Kenn Ejima
|
2
|
+
|
3
|
+
MIT License
|
2
4
|
|
3
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
6
|
a copy of this software and associated documentation files (the
|
@@ -17,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,34 +1,14 @@
|
|
1
|
-
|
2
|
-
require
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
$stderr.puts e.message
|
7
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
require 'rake/file_utils'
|
11
|
-
include FileUtils
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
require "bundler/gem_tasks"
|
12
3
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
gem.license = "MIT"
|
18
|
-
gem.summary = "Class-style namespace prefixing for Redis"
|
19
|
-
gem.description = "Class-style namespace prefixing for Redis"
|
20
|
-
gem.email = "kenn.ejima@gmail.com"
|
21
|
-
gem.authors = ["Kenn Ejima"]
|
22
|
-
end
|
23
|
-
Jeweler::RubygemsDotOrgTasks.new
|
4
|
+
# RSpec
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
RSpec::Core::RakeTask.new('spec')
|
7
|
+
task :default => :spec
|
24
8
|
|
25
|
-
|
9
|
+
# Custom Tasks
|
10
|
+
desc 'Flush the test database'
|
26
11
|
task :flushdb do
|
27
12
|
require 'redis'
|
28
13
|
Redis.new(:db => 15).flushdb
|
29
14
|
end
|
30
|
-
|
31
|
-
task :default => :spec
|
32
|
-
task :spec do
|
33
|
-
exec "rspec spec"
|
34
|
-
end
|
data/lib/redis-classy.rb
CHANGED
data/redis-classy.gemspec
CHANGED
@@ -1,61 +1,21 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/redis/classy/version', __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Kenn Ejima"]
|
6
|
+
gem.email = ["kenn.ejima@gmail.com"]
|
7
|
+
gem.description = %q{Class-style namespace prefixing for Redis}
|
8
|
+
gem.summary = %q{Class-style namespace prefixing for Redis}
|
9
|
+
gem.homepage = "http://github.com/kenn/redis-classy"
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
"Gemfile",
|
23
|
-
"Gemfile.lock",
|
24
|
-
"LICENSE.txt",
|
25
|
-
"README.md",
|
26
|
-
"Rakefile",
|
27
|
-
"VERSION",
|
28
|
-
"lib/redis-classy.rb",
|
29
|
-
"lib/redis/classy.rb",
|
30
|
-
"redis-classy.gemspec",
|
31
|
-
"spec/redis_classy_spec.rb",
|
32
|
-
"spec/spec_helper.rb"
|
33
|
-
]
|
34
|
-
s.homepage = "http://github.com/kenn/redis-classy"
|
35
|
-
s.licenses = ["MIT"]
|
36
|
-
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = "1.8.10"
|
38
|
-
s.summary = "Class-style namespace prefixing for Redis"
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "redis-classy"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Redis::Classy::VERSION
|
39
17
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
-
s.add_runtime_dependency(%q<redis-namespace>, ["~> 1.0"])
|
45
|
-
s.add_development_dependency(%q<rspec>, [">= 0"])
|
46
|
-
s.add_development_dependency(%q<bundler>, [">= 0"])
|
47
|
-
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
48
|
-
else
|
49
|
-
s.add_dependency(%q<redis-namespace>, ["~> 1.0"])
|
50
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
51
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
52
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
53
|
-
end
|
54
|
-
else
|
55
|
-
s.add_dependency(%q<redis-namespace>, ["~> 1.0"])
|
56
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
57
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
58
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
59
|
-
end
|
18
|
+
gem.add_runtime_dependency "redis-namespace", "~> 1.0"
|
19
|
+
gem.add_development_dependency "rspec"
|
20
|
+
gem.add_development_dependency "bundler"
|
60
21
|
end
|
61
|
-
|
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
3
4
|
require 'rspec'
|
4
5
|
require 'redis-classy'
|
5
6
|
|
6
|
-
# Requires supporting files with custom matchers and macros, etc,
|
7
|
-
# in ./support/ and its subdirectories.
|
8
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
-
|
10
7
|
RSpec.configure do |config|
|
11
8
|
# Use database 15 for testing so we don't accidentally step on you real data.
|
12
9
|
Redis::Classy.db = Redis.new(:db => 15)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-classy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-05-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis-namespace
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rspec
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: bundler
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,42 +53,33 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: jeweler
|
49
|
-
requirement: &2158301360 !ruby/object:Gem::Requirement
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
57
|
none: false
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *2158301360
|
58
62
|
description: Class-style namespace prefixing for Redis
|
59
|
-
email:
|
63
|
+
email:
|
64
|
+
- kenn.ejima@gmail.com
|
60
65
|
executables: []
|
61
66
|
extensions: []
|
62
|
-
extra_rdoc_files:
|
63
|
-
- LICENSE.txt
|
64
|
-
- README.md
|
67
|
+
extra_rdoc_files: []
|
65
68
|
files:
|
66
|
-
- .
|
69
|
+
- .gitignore
|
67
70
|
- .rspec
|
68
71
|
- Gemfile
|
69
|
-
-
|
70
|
-
- LICENSE.txt
|
72
|
+
- LICENSE
|
71
73
|
- README.md
|
72
74
|
- Rakefile
|
73
|
-
- VERSION
|
74
75
|
- lib/redis-classy.rb
|
75
76
|
- lib/redis/classy.rb
|
77
|
+
- lib/redis/classy/version.rb
|
76
78
|
- redis-classy.gemspec
|
77
79
|
- spec/redis_classy_spec.rb
|
78
80
|
- spec/spec_helper.rb
|
79
81
|
homepage: http://github.com/kenn/redis-classy
|
80
|
-
licenses:
|
81
|
-
- MIT
|
82
|
+
licenses: []
|
82
83
|
post_install_message:
|
83
84
|
rdoc_options: []
|
84
85
|
require_paths:
|
@@ -89,9 +90,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
90
|
- - ! '>='
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '0'
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
hash: 2229584726006491915
|
95
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
94
|
none: false
|
97
95
|
requirements:
|
@@ -100,8 +98,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
98
|
version: '0'
|
101
99
|
requirements: []
|
102
100
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.8.
|
101
|
+
rubygems_version: 1.8.19
|
104
102
|
signing_key:
|
105
103
|
specification_version: 3
|
106
104
|
summary: Class-style namespace prefixing for Redis
|
107
|
-
test_files:
|
105
|
+
test_files:
|
106
|
+
- spec/redis_classy_spec.rb
|
107
|
+
- spec/spec_helper.rb
|
108
|
+
has_rdoc:
|
data/.document
DELETED
data/Gemfile.lock
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
diff-lcs (1.1.3)
|
5
|
-
git (1.2.5)
|
6
|
-
jeweler (1.6.4)
|
7
|
-
bundler (~> 1.0)
|
8
|
-
git (>= 1.2.5)
|
9
|
-
rake
|
10
|
-
rake (0.9.2.2)
|
11
|
-
redis (2.2.2)
|
12
|
-
redis-namespace (1.1.0)
|
13
|
-
redis (< 3.0.0)
|
14
|
-
rspec (2.7.0)
|
15
|
-
rspec-core (~> 2.7.0)
|
16
|
-
rspec-expectations (~> 2.7.0)
|
17
|
-
rspec-mocks (~> 2.7.0)
|
18
|
-
rspec-core (2.7.1)
|
19
|
-
rspec-expectations (2.7.0)
|
20
|
-
diff-lcs (~> 1.1.2)
|
21
|
-
rspec-mocks (2.7.0)
|
22
|
-
|
23
|
-
PLATFORMS
|
24
|
-
ruby
|
25
|
-
|
26
|
-
DEPENDENCIES
|
27
|
-
bundler
|
28
|
-
jeweler
|
29
|
-
redis-namespace (~> 1.0)
|
30
|
-
rspec
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.2
|