redpear 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redpear/persistence.rb +1 -1
- data/lib/redpear/schema/collection.rb +6 -0
- metadata +26 -26
data/lib/redpear/persistence.rb
CHANGED
@@ -24,6 +24,12 @@ class Redpear::Schema::Collection < Array
|
|
24
24
|
@lookup ||= inject({}) {|r, c| r.update c.to_s => c }
|
25
25
|
end
|
26
26
|
|
27
|
+
# @param [String] the column name
|
28
|
+
# @return [Boolean] if name is part of the collection
|
29
|
+
def include?(name)
|
30
|
+
lookup.key?(name.to_s)
|
31
|
+
end
|
32
|
+
|
27
33
|
# @param [String] the column name
|
28
34
|
# @return [Redpear::Column] the column for the given name
|
29
35
|
def [](name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redpear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
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-01-06 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: redis
|
16
|
-
requirement: &
|
16
|
+
requirement: &17175500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *17175500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &17174920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *17174920
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: bundler
|
38
|
-
requirement: &
|
38
|
+
requirement: &17173900 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *17173900
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &17172740 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *17172740
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: fakeredis
|
60
|
-
requirement: &
|
60
|
+
requirement: &17171500 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *17171500
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: shoulda-matchers
|
71
|
-
requirement: &
|
71
|
+
requirement: &17170360 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,32 +76,32 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *17170360
|
80
80
|
description: Simple, elegant & efficient ORM for Redis
|
81
81
|
email: dimitrij@blacksquaremedia.com
|
82
82
|
executables: []
|
83
83
|
extensions: []
|
84
84
|
extra_rdoc_files: []
|
85
85
|
files:
|
86
|
-
- lib/redpear
|
87
|
-
- lib/redpear/column.rb
|
88
|
-
- lib/redpear/namespace.rb
|
86
|
+
- lib/redpear.rb
|
89
87
|
- lib/redpear/connection.rb
|
90
|
-
- lib/redpear/
|
91
|
-
- lib/redpear/
|
92
|
-
- lib/redpear/index.rb
|
88
|
+
- lib/redpear/schema/collection.rb
|
89
|
+
- lib/redpear/core_ext/stringify_keys.rb
|
93
90
|
- lib/redpear/concern.rb
|
91
|
+
- lib/redpear/zmembers.rb
|
92
|
+
- lib/redpear/namespace.rb
|
94
93
|
- lib/redpear/nest.rb
|
95
94
|
- lib/redpear/finders.rb
|
96
|
-
- lib/redpear/model.rb
|
97
95
|
- lib/redpear/zindex.rb
|
98
|
-
- lib/redpear/
|
99
|
-
- lib/redpear/core_ext/stringify_keys.rb
|
100
|
-
- lib/redpear/machinist.rb
|
101
|
-
- lib/redpear/counters.rb
|
96
|
+
- lib/redpear/persistence.rb
|
102
97
|
- lib/redpear/expiration.rb
|
98
|
+
- lib/redpear/column.rb
|
99
|
+
- lib/redpear/model.rb
|
100
|
+
- lib/redpear/index.rb
|
103
101
|
- lib/redpear/members.rb
|
104
|
-
- lib/redpear.rb
|
102
|
+
- lib/redpear/schema.rb
|
103
|
+
- lib/redpear/counters.rb
|
104
|
+
- lib/redpear/machinist.rb
|
105
105
|
homepage: https://github.com/bsm/redpear
|
106
106
|
licenses: []
|
107
107
|
post_install_message:
|