pickle-mongodb 0.3 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber/pickle_mongodb/finders.rb +6 -2
- data/lib/cucumber/pickle_mongodb/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c80f26bf11be13b46e864e09329c32fe8cb7e476
|
4
|
+
data.tar.gz: 60dcd3a7d475da80ad66ad98fadb9d4de39a8805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eff6050b16c1f00ba81184c1c4b195dbff7802ce603b3d2c324637d9520aedad40d29664dd9a2bcf5f1398d4014678e9f682a8155464d1f1ad1273769a54199
|
7
|
+
data.tar.gz: 24cc8e6588fdeebbe8379c0edc5a3d027b1e10c710651a1d58d9c72067fe5839557eca5a2957a5e87718ba9ec6644e0339c7c79638e7f0fdbc203c8d003f4494
|
@@ -5,8 +5,12 @@ require 'mongoid'
|
|
5
5
|
module Mongoid
|
6
6
|
module Finders
|
7
7
|
extend Origin::Forwardable
|
8
|
-
def first(fields)
|
8
|
+
def first(fields)
|
9
9
|
find_by(fields[:conditions]) #returns the first instance matching given criteria
|
10
10
|
end
|
11
|
+
|
12
|
+
def all(fields)
|
13
|
+
where(fields[:conditions]) #returns the first instance matching given criteria
|
14
|
+
end
|
11
15
|
end
|
12
|
-
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pickle-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nic Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -83,7 +83,7 @@ dependencies:
|
|
83
83
|
description: Pickle MongoDB allows you to write BDD steps to interact with your MongoDB
|
84
84
|
database, you can create and interrogate the database using the handy built in steps
|
85
85
|
email:
|
86
|
-
-
|
86
|
+
- jackson.nic@gmail.com
|
87
87
|
executables: []
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.2.2
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Cucumber steps to easily integrate pickle with MongoDB
|