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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 674296ce964cf7c332e4b0df9f031e03de3a7c96
4
- data.tar.gz: 2a4f53cdaeb84e8d01d815ba2351479e8cc0f7cc
3
+ metadata.gz: c80f26bf11be13b46e864e09329c32fe8cb7e476
4
+ data.tar.gz: 60dcd3a7d475da80ad66ad98fadb9d4de39a8805
5
5
  SHA512:
6
- metadata.gz: 55cb9a8d059a1428b1a775c22397a81240bc3eece865cfcac9d492891bd5e5ab55a11ae5519c45859b4e2093f4f9af9e560d258c84bc5f4dfa21ffc47c487988
7
- data.tar.gz: e30b83d5c30291882c0359bbf8814671f8d46092b0b0a7e1c95189cdae5cdcc9d2c40d5ca0ced5b9963c38e53676ca8404878723d27c447ba2da7a3aeb6b7034
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
@@ -2,6 +2,6 @@ module Cucumber
2
2
  module PickleMongoDB
3
3
  NAME = "pickle-mongodb"
4
4
  FOLDER = "cucumber/pickle_mongodb"
5
- VERSION = "0.3"
5
+ VERSION = "0.5"
6
6
  end
7
- end
7
+ 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.3'
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: 2013-12-18 00:00:00.000000000 Z
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
- - nicholas.jackson@marks-and-spencer.com
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.1.11
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