mongoid-rspec 2.2.0 → 3.0.0

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: 699ec1b87e5b320dcbaf578f80eafe007efd931a
4
- data.tar.gz: 3d2c164d79f3bf55fe230acc7dbe1d79e8368dfc
3
+ metadata.gz: b504e1e16799457c84312c3adc8eb0087c4f73a5
4
+ data.tar.gz: 8e7b3f190ccae6c7176e060058361b12ef9ba419
5
5
  SHA512:
6
- metadata.gz: 46af8cab737f63a787aab8896a0e89ba59cbf71e842bfe4e36474d596e30a6c56b99ea5650f72ddd086fdbecd25af8f44842ac4d83dbd0cd49dbac2706d15fa9
7
- data.tar.gz: 7fe2a140a8fe81af936df050101600d0adf56d406b25207cd8f7b65397b7a1f63109b71b6cdd9136c0f3eded554ecaa5a82005224e994b88971eca0edbc6160c
6
+ metadata.gz: 80b798e3c37139a718d8d5ee53dabdfddfe5936e3aebc5ab2cf844533761f038fb87c1be831ccbf2f3cb13a2748090890069273250b9046e9951404b6e10f3ff
7
+ data.tar.gz: 67ef37f44c29b2484157fa048de71365af86e2aad025a064e72167303ebfc0fd2e786832c04652a193f00a05dc4e816559095ef19476920fa53eb345910cabf7
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.3
@@ -2,8 +2,8 @@ services: mongodb
2
2
  language: ruby
3
3
  rvm:
4
4
  - 1.9.3
5
- - 2.1.3
6
- - 2.2.0
5
+ - 2.1.7
6
+ - 2.2.3
7
7
  - jruby-19mode
8
8
 
9
9
  gemfile:
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in mongoid-rspec.gemspec
3
+ # Specify your gem's dependencies in `mongoid-rspec.gemspec`.
4
4
  gemspec
data/README.md CHANGED
@@ -1,13 +1,19 @@
1
- # mongoid-rspec
1
+ # [mongoid-rspec]
2
2
 
3
3
  [![Build Status][travis_badge]][travis]
4
4
  [![Gem Version][rubygems_badge]][rubygems]
5
5
  [![Code Climate][codeclimate_badge]][codeclimate]
6
6
 
7
- mongoid-rspec provides a collection of RSpec-compatible matchers that help to test mongoid documents.
7
+ mongoid-rspec provides a collection of RSpec-compatible matchers that help to test Mongoid documents.
8
8
 
9
9
  ## Installation
10
10
 
11
+ ### With Mongoid 5.x
12
+
13
+ Use mongoid-rspec [3.0.0][mongoid5]
14
+
15
+ gem 'mongoid-rspec', '3.0.0'
16
+
11
17
  ### With Mongoid 4.x
12
18
 
13
19
  Use mongoid-rspec [2.1.0][mongoid4]
@@ -221,10 +227,13 @@ Thanks to [Durran Jordan][durran] for providing the changes necessary to make
221
227
  this compatible with mongoid 2.0.0.rc, and for other [contributors](https://github.com/mongoid-rspec/mongoid-rspec/contributors)
222
228
  to this project.
223
229
 
230
+ [mongoid-rspec]: https://github.com/mongoid-rspec/mongoid-rspec "A collection of RSpec-compatible matchers that help to test Mongoid documents."
231
+
224
232
  [durran]: https://github.com/durran
225
- [mongoid2]: http://rubygems.org/gems/mongoid-rspec/versions/1.4.5
226
- [mongoid3]: http://rubygems.org/gems/mongoid-rspec/versions/1.13.0
227
- [mongoid4]: http://rubygems.org/gems/mongoid-rspec/versions/2.0.0
233
+ [mongoid2]: https://rubygems.org/gems/mongoid-rspec/versions/1.4.5
234
+ [mongoid3]: https://rubygems.org/gems/mongoid-rspec/versions/1.13.0
235
+ [mongoid4]: https://rubygems.org/gems/mongoid-rspec/versions/2.1.0
236
+ [mongoid5]: https://rubygems.org/gems/mongoid-rspec/versions/3.0.0
228
237
 
229
238
  [travis_badge]: http://img.shields.io/travis/mongoid-rspec/mongoid-rspec.svg?style=flat
230
239
  [travis]: https://travis-ci.org/mongoid-rspec/mongoid-rspec
@@ -1,33 +1 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
-
3
- require 'mongoid'
4
- require 'rspec/core'
5
- require 'rspec/expectations'
6
- require 'rspec/mocks'
7
- require "active_model"
8
- require 'matchers/document'
9
- require 'matchers/associations'
10
- require 'matchers/collections'
11
- require 'matchers/indexes'
12
- require 'matchers/allow_mass_assignment'
13
- require 'matchers/accept_nested_attributes'
14
- require 'matchers/validations'
15
- require 'matchers/validations/with_message'
16
- require 'matchers/validations/associated'
17
- require 'matchers/validations/confirmation_of'
18
- require 'matchers/validations/exclusion_of'
19
- require 'matchers/validations/format_of'
20
- require 'matchers/validations/inclusion_of'
21
- require 'matchers/validations/length_of'
22
- require 'matchers/validations/numericality_of'
23
- require 'matchers/validations/presence_of'
24
- require 'matchers/validations/uniqueness_of'
25
- require 'matchers/validations/acceptance_of'
26
- require 'matchers/validations/custom_validation_of'
27
-
28
- module Mongoid
29
- module Matchers
30
- include Mongoid::Matchers::Associations
31
- include Mongoid::Matchers::Validations
32
- end
33
- end
1
+ require 'mongoid/rspec'
@@ -0,0 +1,33 @@
1
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+
3
+ require 'mongoid'
4
+ require 'rspec/core'
5
+ require 'rspec/expectations'
6
+ require 'rspec/mocks'
7
+ require "active_model"
8
+ require 'matchers/document'
9
+ require 'matchers/associations'
10
+ require 'matchers/collections'
11
+ require 'matchers/indexes'
12
+ require 'matchers/allow_mass_assignment'
13
+ require 'matchers/accept_nested_attributes'
14
+ require 'matchers/validations'
15
+ require 'matchers/validations/with_message'
16
+ require 'matchers/validations/associated'
17
+ require 'matchers/validations/confirmation_of'
18
+ require 'matchers/validations/exclusion_of'
19
+ require 'matchers/validations/format_of'
20
+ require 'matchers/validations/inclusion_of'
21
+ require 'matchers/validations/length_of'
22
+ require 'matchers/validations/numericality_of'
23
+ require 'matchers/validations/presence_of'
24
+ require 'matchers/validations/uniqueness_of'
25
+ require 'matchers/validations/acceptance_of'
26
+ require 'matchers/validations/custom_validation_of'
27
+
28
+ module Mongoid
29
+ module Matchers
30
+ include Mongoid::Matchers::Associations
31
+ include Mongoid::Matchers::Validations
32
+ end
33
+ end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Rspec
3
- VERSION = "2.2.0"
3
+ VERSION = '3.0.0'
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "mongoid-rspec/version"
3
+
4
+ require 'mongoid/rspec/version'
4
5
 
5
6
  Gem::Specification.new do |s|
6
7
  s.name = "mongoid-rspec"
@@ -20,6 +21,6 @@ Gem::Specification.new do |s|
20
21
  s.require_paths = ["lib"]
21
22
 
22
23
  s.add_dependency 'rake'
23
- s.add_dependency 'mongoid', '~> 4.0.0'
24
- s.add_dependency 'rspec', '~> 3.1'
24
+ s.add_dependency 'mongoid', '~> 5.0'
25
+ s.add_dependency 'rspec', '~> 3.3'
25
26
  end
@@ -29,5 +29,8 @@ RSpec.configure do |config|
29
29
  config.after :all do
30
30
  Mongoid::Config.purge!
31
31
  end
32
+ config.after :suite do
33
+ print "\n# Mongoid v#{Mongoid::VERSION}"
34
+ end
32
35
  config.disable_monkey_patching!
33
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Sagge
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-10 00:00:00.000000000 Z
12
+ date: 2015-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -31,28 +31,28 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 4.0.0
34
+ version: '5.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 4.0.0
41
+ version: '5.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '3.1'
48
+ version: '3.3'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '3.1'
55
+ version: '3.3'
56
56
  description: RSpec matches for Mongoid models, including association and validation
57
57
  matchers
58
58
  email: evansagge@gmail.com contato@rodrigopinto.me
@@ -60,7 +60,6 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - ".bundle/config"
64
63
  - ".document"
65
64
  - ".gitignore"
66
65
  - ".ruby-gemset"
@@ -90,7 +89,8 @@ files:
90
89
  - lib/matchers/validations/uniqueness_of.rb
91
90
  - lib/matchers/validations/with_message.rb
92
91
  - lib/mongoid-rspec.rb
93
- - lib/mongoid-rspec/version.rb
92
+ - lib/mongoid/rspec.rb
93
+ - lib/mongoid/rspec/version.rb
94
94
  - mongoid-rspec.gemspec
95
95
  - spec/models/article.rb
96
96
  - spec/models/comment.rb
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project: mongoid-rspec
132
- rubygems_version: 2.4.5
132
+ rubygems_version: 2.4.5.1
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: RSpec matchers for Mongoid