wherever-positions 0.3.1 → 0.3.2

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/Gemfile CHANGED
@@ -1,6 +1,8 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  gem 'bson_ext'
4
+ #gem 'mongoid', "=2.3.2"
5
+ #gem 'mongoid', "=1.9.5"
4
6
  gem 'mongoid'
5
7
 
6
8
  group :development do
data/Gemfile.lock CHANGED
@@ -1,13 +1,8 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.1.1)
5
- activesupport (= 3.1.1)
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.1)
34
- bson (= 1.4.1)
35
- mongoid (2.3.2)
36
- activemodel (~> 3.1)
37
- mongo (~> 1.4)
38
- tzinfo (~> 0.3.22)
39
- multi_json (1.0.3)
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
- tzinfo (0.3.30)
53
+ will_paginate (2.3.16)
58
54
 
59
55
  PLATFORMS
60
56
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -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 do
25
- include "DbStore::#{db_type.to_s.titlecase}Config".constantize
26
- store_in :"#{marker}_#{keys.join('_')}_#{db_type}"
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
 
@@ -9,6 +9,7 @@ module DbStore
9
9
  def self.included(base)
10
10
  base.send :include, Mongoid::Document
11
11
  base.send :include, DbStore::RecordMatcher
12
+
12
13
  base.field :values, :type => Hash, :default => Hash.new(0)
13
14
  end
14
15
 
@@ -2,7 +2,7 @@ module DbStore
2
2
  class Identifier
3
3
  include Mongoid::Document
4
4
  include DbStore::RecordMatcher
5
- field :_id, :type => Integer
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wherever-positions}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Henry"]
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Henry