wherever-positions 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/Gemfile.lock +12 -16
- data/VERSION +1 -1
- data/lib/wherever/db_store.rb +3 -5
- data/lib/wherever/db_store/dataset.rb +1 -0
- data/lib/wherever/db_store/identifier.rb +1 -2
- data/wherever-positions.gemspec +1 -1
- metadata +3 -3
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
6
|
-
builder (~> 3.0.0)
|
7
|
-
i18n (~> 0.6)
|
8
|
-
activesupport (3.1.1)
|
9
|
-
multi_json (~> 1.0)
|
10
|
-
bson (1.4.1)
|
4
|
+
activesupport (2.3.14)
|
5
|
+
bson (1.2.4)
|
11
6
|
bson_ext (1.4.1)
|
12
7
|
builder (3.0.0)
|
13
8
|
columnize (0.3.4)
|
@@ -19,10 +14,10 @@ GEM
|
|
19
14
|
term-ansicolor (>= 1.0.6)
|
20
15
|
database_cleaner (0.6.7)
|
21
16
|
diff-lcs (1.1.3)
|
17
|
+
durran-validatable (2.0.1)
|
22
18
|
gherkin (2.5.4)
|
23
19
|
json (>= 1.4.6)
|
24
20
|
git (1.2.5)
|
25
|
-
i18n (0.6.0)
|
26
21
|
jeweler (1.6.4)
|
27
22
|
bundler (~> 1.0)
|
28
23
|
git (>= 1.2.5)
|
@@ -30,13 +25,14 @@ GEM
|
|
30
25
|
json (1.6.1)
|
31
26
|
linecache (0.46)
|
32
27
|
rbx-require-relative (> 0.0.4)
|
33
|
-
mongo (1.4
|
34
|
-
bson (
|
35
|
-
mongoid (
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
28
|
+
mongo (1.2.4)
|
29
|
+
bson (>= 1.2.4)
|
30
|
+
mongoid (1.9.5)
|
31
|
+
activesupport (< 3.0.0)
|
32
|
+
bson (~> 1.2.1)
|
33
|
+
durran-validatable (>= 2.0.1)
|
34
|
+
mongo (~> 1.2.1)
|
35
|
+
will_paginate (< 2.9)
|
40
36
|
rake (0.9.2.2)
|
41
37
|
rbx-require-relative (0.0.5)
|
42
38
|
rcov (0.9.11)
|
@@ -54,7 +50,7 @@ GEM
|
|
54
50
|
ruby-debug-base (0.10.4)
|
55
51
|
linecache (>= 0.3)
|
56
52
|
term-ansicolor (1.0.7)
|
57
|
-
|
53
|
+
will_paginate (2.3.16)
|
58
54
|
|
59
55
|
PLATFORMS
|
60
56
|
ruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/wherever/db_store.rb
CHANGED
@@ -21,11 +21,9 @@ module DbStore
|
|
21
21
|
def get_store(marker, keys, db_type)
|
22
22
|
name = "#{marker.upcase}_#{keys.map(&:upcase).join('_')}_#{db_type.to_s.upcase}"
|
23
23
|
return "DbStore::#{name}".constantize if DbStore.constants.include?(name)
|
24
|
-
klass = Class.new
|
25
|
-
|
26
|
-
|
27
|
-
end
|
28
|
-
eval("DbStore::#{name}=klass")
|
24
|
+
klass = DbStore.const_set(name, Class.new)
|
25
|
+
klass.send :include, "DbStore::#{db_type.to_s.titlecase}Config".constantize
|
26
|
+
klass.send :store_in, :"#{marker}_#{keys.join('_')}_#{db_type}"
|
29
27
|
klass
|
30
28
|
end
|
31
29
|
|
@@ -2,7 +2,7 @@ module DbStore
|
|
2
2
|
class Identifier
|
3
3
|
include Mongoid::Document
|
4
4
|
include DbStore::RecordMatcher
|
5
|
-
|
5
|
+
|
6
6
|
field :version, :type => Integer
|
7
7
|
end
|
8
8
|
|
@@ -11,7 +11,6 @@ module DbStore
|
|
11
11
|
base.send :include, Mongoid::Document
|
12
12
|
base.send :include, DbStore::RecordMatcher
|
13
13
|
|
14
|
-
base.field :_id, :type => Integer
|
15
14
|
base.field :version, :type => Integer
|
16
15
|
end
|
17
16
|
end
|
data/wherever-positions.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wherever-positions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Henry
|