wherever-positions 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -2
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/monkeypatch_for_mongoid_1.9.rb +23 -0
- data/lib/wherever.rb +4 -0
- data/wherever-positions.gemspec +5 -4
- metadata +7 -8
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
3
|
gem 'bson_ext'
|
4
|
-
gem 'mongoid'
|
4
|
+
gem 'mongoid'
|
5
5
|
|
6
6
|
group :development do
|
7
7
|
gem "rspec", "~> 2.3.0"
|
@@ -11,5 +11,4 @@ group :development do
|
|
11
11
|
gem "rcov", ">= 0"
|
12
12
|
gem 'ruby-debug'
|
13
13
|
gem 'database_cleaner'
|
14
|
-
|
15
14
|
end
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Mongoid
|
2
|
+
module Associations
|
3
|
+
class EmbedsMany
|
4
|
+
def find_or_create_by(attr)
|
5
|
+
where(attr).first || create(attr)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
module Mongoid #:nodoc:
|
12
|
+
module Attributes
|
13
|
+
module InstanceMethods
|
14
|
+
def [](field)
|
15
|
+
send(field)
|
16
|
+
end
|
17
|
+
|
18
|
+
def []=(field, value)
|
19
|
+
modify(field, send(field), value)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/wherever.rb
CHANGED
data/wherever-positions.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wherever-positions}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
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"]
|
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
"features/step_definitions/wherever_steps.rb",
|
30
30
|
"features/support/env.rb",
|
31
31
|
"features/wherever.feature",
|
32
|
+
"lib/monkeypatch_for_mongoid_1.9.rb",
|
32
33
|
"lib/wherever.rb",
|
33
34
|
"lib/wherever/configure.rb",
|
34
35
|
"lib/wherever/db_store.rb",
|
@@ -66,7 +67,7 @@ Gem::Specification.new do |s|
|
|
66
67
|
|
67
68
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
68
69
|
s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
|
69
|
-
s.add_runtime_dependency(%q<mongoid>, [">=
|
70
|
+
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
|
70
71
|
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
71
72
|
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
72
73
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -76,7 +77,7 @@ Gem::Specification.new do |s|
|
|
76
77
|
s.add_development_dependency(%q<database_cleaner>, [">= 0"])
|
77
78
|
else
|
78
79
|
s.add_dependency(%q<bson_ext>, [">= 0"])
|
79
|
-
s.add_dependency(%q<mongoid>, [">=
|
80
|
+
s.add_dependency(%q<mongoid>, [">= 0"])
|
80
81
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
81
82
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
82
83
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -87,7 +88,7 @@ Gem::Specification.new do |s|
|
|
87
88
|
end
|
88
89
|
else
|
89
90
|
s.add_dependency(%q<bson_ext>, [">= 0"])
|
90
|
-
s.add_dependency(%q<mongoid>, [">=
|
91
|
+
s.add_dependency(%q<mongoid>, [">= 0"])
|
91
92
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
92
93
|
s.add_dependency(%q<cucumber>, [">= 0"])
|
93
94
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
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: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Henry
|
@@ -39,12 +39,10 @@ dependencies:
|
|
39
39
|
requirements:
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
hash:
|
42
|
+
hash: 3
|
43
43
|
segments:
|
44
|
-
-
|
45
|
-
|
46
|
-
- 2
|
47
|
-
version: 2.3.2
|
44
|
+
- 0
|
45
|
+
version: "0"
|
48
46
|
prerelease: false
|
49
47
|
type: :runtime
|
50
48
|
requirement: *id002
|
@@ -174,6 +172,7 @@ files:
|
|
174
172
|
- features/step_definitions/wherever_steps.rb
|
175
173
|
- features/support/env.rb
|
176
174
|
- features/wherever.feature
|
175
|
+
- lib/monkeypatch_for_mongoid_1.9.rb
|
177
176
|
- lib/wherever.rb
|
178
177
|
- lib/wherever/configure.rb
|
179
178
|
- lib/wherever/db_store.rb
|