dm-redis-adapter 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +2 -1
- data/bin/autospec +16 -0
- data/bin/edit_json.rb +16 -0
- data/bin/jeweler +16 -0
- data/bin/minitar +16 -0
- data/bin/prettify_json.rb +16 -0
- data/bin/rake +16 -0
- data/bin/rdebug +16 -0
- data/bin/rubyforge +16 -0
- data/bin/spec +16 -0
- data/lib/dm-redis-adapter/adapter.rb +2 -0
- metadata +43 -16
data/README.textile
CHANGED
@@ -15,6 +15,7 @@ Please note that as of version 0.5.3 of the gem, the key names that are used for
|
|
15
15
|
h1. Changelog
|
16
16
|
|
17
17
|
|
18
|
+
* v0.6.3 Fixes a problem with non-index, non-key queries (thanks @thecurator!)
|
18
19
|
* v0.6.2 Fixes a problem with 'destroyed' objects (thanks @snovotny!)
|
19
20
|
* v0.6.1 Fixes a problem with deleting an object and not having it deleted from an assosciation (thanks @sheur!)
|
20
21
|
* v0.6.0 Refactor and change to the way that model names are stored in redis
|
@@ -110,4 +111,4 @@ h1. Badass contributors
|
|
110
111
|
* <a href="http://github.com/sfeu">Sebastian Feuerstack (sfeu)</a> Fixes to support inheritance
|
111
112
|
* <a href="http://github.com/sheur">Stephen Heuer (@sheur)</a> Fixes to deleted assosciations
|
112
113
|
* <a href="http://github.com/sheur">Steve Novotny (@snovotny)</a> Fixing a bug with 'destroyed' objects
|
113
|
-
|
114
|
+
* <a href="http://github.com/sheur">Andrew Janssen (@thecurator)</a> Fixing a bug with non-index, non-key queries
|
data/bin/autospec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'autospec' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rspec', 'autospec')
|
data/bin/edit_json.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'edit_json.rb' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('json_pure', 'edit_json.rb')
|
data/bin/jeweler
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'jeweler' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('jeweler', 'jeweler')
|
data/bin/minitar
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'minitar' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('archive-tar-minitar', 'minitar')
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'prettify_json.rb' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('json_pure', 'prettify_json.rb')
|
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rake', 'rake')
|
data/bin/rdebug
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rdebug' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('ruby-debug19', 'rdebug')
|
data/bin/rubyforge
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rubyforge' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rubyforge', 'rubyforge')
|
data/bin/spec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'spec' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rspec', 'spec')
|
@@ -245,6 +245,8 @@ module DataMapper
|
|
245
245
|
find_indexed_matches(subject, value).each do |k|
|
246
246
|
matched_records << {redis_key_for(query.model) => k, "#{subject.name}" => value}
|
247
247
|
end
|
248
|
+
else # worst case here, loop through all members, typecast and match
|
249
|
+
search_all_resources(query, operand, subject, matched_records)
|
248
250
|
end
|
249
251
|
else # worst case here, loop through all members, typecast and match
|
250
252
|
search_all_resources(query, operand, subject, matched_records)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-redis-adapter
|
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: 2012-
|
12
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dm-core
|
16
|
-
requirement: &
|
16
|
+
requirement: &70101009291360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70101009291360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: dm-types
|
27
|
-
requirement: &
|
27
|
+
requirement: &70101009290320 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70101009290320
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: hiredis
|
38
|
-
requirement: &
|
38
|
+
requirement: &70101009289200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.3.0
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70101009289200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: redis
|
49
|
-
requirement: &
|
49
|
+
requirement: &70101009288200 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,19 @@ dependencies:
|
|
54
54
|
version: '2.2'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70101009288200
|
58
58
|
description: DataMapper adapter for the Redis key-value database
|
59
59
|
email: whoahbot@gmail.com
|
60
|
-
executables:
|
60
|
+
executables:
|
61
|
+
- autospec
|
62
|
+
- edit_json.rb
|
63
|
+
- jeweler
|
64
|
+
- minitar
|
65
|
+
- prettify_json.rb
|
66
|
+
- rake
|
67
|
+
- rdebug
|
68
|
+
- rubyforge
|
69
|
+
- spec
|
61
70
|
extensions: []
|
62
71
|
extra_rdoc_files:
|
63
72
|
- MIT-LICENSE
|
@@ -76,12 +85,27 @@ files:
|
|
76
85
|
- spec/self_referential_spec.rb
|
77
86
|
- spec/spec_helper.rb
|
78
87
|
- spec/textual_keys_spec.rb
|
88
|
+
- !binary |-
|
89
|
+
YmluL2F1dG9zcGVj
|
90
|
+
- !binary |-
|
91
|
+
YmluL2VkaXRfanNvbi5yYg==
|
92
|
+
- !binary |-
|
93
|
+
YmluL2pld2VsZXI=
|
94
|
+
- !binary |-
|
95
|
+
YmluL21pbml0YXI=
|
96
|
+
- !binary |-
|
97
|
+
YmluL3ByZXR0aWZ5X2pzb24ucmI=
|
98
|
+
- !binary |-
|
99
|
+
YmluL3Jha2U=
|
100
|
+
- !binary |-
|
101
|
+
YmluL3JkZWJ1Zw==
|
102
|
+
- !binary |-
|
103
|
+
YmluL3J1Ynlmb3JnZQ==
|
104
|
+
- !binary |-
|
105
|
+
YmluL3NwZWM=
|
79
106
|
homepage: http://github.com/whoahbot/dm-redis-adapter
|
80
107
|
licenses: []
|
81
|
-
post_install_message:
|
82
|
-
\ * IMPORTANT *\n This version of dm-redis changes the key names for data in Redis.\n
|
83
|
-
\ If you have been using dm-redis-adapter in the past, using this gem will not allow
|
84
|
-
you to\n retreive your data!\n\n***********************************************************************************************\n"
|
108
|
+
post_install_message:
|
85
109
|
rdoc_options:
|
86
110
|
- --charset=UTF-8
|
87
111
|
require_paths:
|
@@ -92,6 +116,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
116
|
- - ! '>='
|
93
117
|
- !ruby/object:Gem::Version
|
94
118
|
version: '0'
|
119
|
+
segments:
|
120
|
+
- 0
|
121
|
+
hash: -1017019862077447019
|
95
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
123
|
none: false
|
97
124
|
requirements:
|
@@ -100,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
127
|
version: '0'
|
101
128
|
requirements: []
|
102
129
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.8.
|
130
|
+
rubygems_version: 1.8.11
|
104
131
|
signing_key:
|
105
132
|
specification_version: 3
|
106
133
|
summary: DataMapper adapter for the Redis key-value database
|