mongoid_criteria_filter 0.0.4 → 0.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: 6b9d909c8cc493adbde6ef0884ba448b31176f68
4
- data.tar.gz: d293a24bc672de73e7a8a9c0c5b552329caea4f6
3
+ metadata.gz: dca54f0bda9cba5c3e7d6e8c31cc8c742f750539
4
+ data.tar.gz: 599b8a200ae2473fa0983a377deed00361351bb9
5
5
  SHA512:
6
- metadata.gz: 825579e605d17dd27c33b64c88db995eccdaaff65b1141abbbb98d14019eee6b72603f454bb676de0f5d35bb8c3ef0ccabda24f421aaefe845294f7fc0ed25ce
7
- data.tar.gz: 74f6ca5093496ec78f00e5ba3b7407e51a1b23c55beb95a7ed92433e1b243b77744a2fc18dcf2d9248ea9fabc334eb72ca31c067ef6837a1ded292e111cdffe5
6
+ metadata.gz: 15fecb21c71090f388184dc39ec9f5b93a1cf69d43b03934d2c09b43b89ddd34aa671b8c32bf5f2f3b2a0cd3dbc3978ac9f5ff8a8de2506e5175c127e06949fb
7
+ data.tar.gz: 67b30379d430641c8f28ff72595afa362cc3a6d1d1131f096bd81a1dc1f0bd51e807009831842d10b343f5365b988c18edc3762647c43f7733426b2e7689e324
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module MongoidCriteriaFilter
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
@@ -5,9 +5,9 @@ describe Mongoid::Criteria do
5
5
  describe '#add_filter' do
6
6
 
7
7
  let!(:users) do
8
- FactoryGirl.create :user, :name => 'Name1'
9
- FactoryGirl.create :user, :name => 'Name2'
10
- FactoryGirl.create :user, :name => 'Name3'
8
+ User.create :name => 'Name1'
9
+ User.create :name => 'Name2'
10
+ User.create :name => 'Name3'
11
11
  end
12
12
 
13
13
  context 'without additional order' do
data/spec/spec_helper.rb CHANGED
@@ -5,10 +5,8 @@ MODELS = File.join(File.dirname(__FILE__), 'app/models')
5
5
  $LOAD_PATH.unshift(MODELS)
6
6
 
7
7
  require 'mongoid_criteria_filter'
8
- require 'action_controller'
9
8
  require 'rspec'
10
9
  require 'database_cleaner'
11
- require 'factory_girl_rails'
12
10
 
13
11
  ENV['MONGOID_SPEC_HOST'] ||= 'localhost'
14
12
  ENV['MONGOID_SPEC_PORT'] ||= '27017'
@@ -25,9 +23,6 @@ CONFIG = {
25
23
  }
26
24
  }
27
25
 
28
- FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
29
- FactoryGirl.reload
30
-
31
26
  Mongoid.configure do |config|
32
27
  config.load_configuration(CONFIG)
33
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_criteria_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladislav Melanitskiy
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: mongoid
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  description: It adds possibility for criteria callbacks (data filters)
@@ -36,7 +36,6 @@ files:
36
36
  - lib/mongoid_criteria_filter/origin_optional.rb
37
37
  - lib/mongoid_criteria_filter/version.rb
38
38
  - spec/app/models/user.rb
39
- - spec/factories/user.rb
40
39
  - spec/models/criteria_spec.rb
41
40
  - spec/spec_helper.rb
42
41
  homepage: https://github.com/Rademade/mongoid_criteria_filter
@@ -49,12 +48,12 @@ require_paths:
49
48
  - lib
50
49
  required_ruby_version: !ruby/object:Gem::Requirement
51
50
  requirements:
52
- - - ">="
51
+ - - '>='
53
52
  - !ruby/object:Gem::Version
54
53
  version: '0'
55
54
  required_rubygems_version: !ruby/object:Gem::Requirement
56
55
  requirements:
57
- - - ">="
56
+ - - '>='
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  requirements: []
@@ -66,5 +65,4 @@ summary: Extension for mongoid.
66
65
  test_files:
67
66
  - spec/models/criteria_spec.rb
68
67
  - spec/spec_helper.rb
69
- - spec/factories/user.rb
70
68
  - spec/app/models/user.rb
@@ -1,8 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- FactoryGirl.define do
3
-
4
- factory :user do
5
- name 'John'
6
- end
7
-
8
- end