glebtv_mongoid_userstamp 0.6.2 → 0.7.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: 1b28446f1c0bf9c9efc53365cf4ef9ca1eba456a
4
- data.tar.gz: 29fd57fa88c84c711e51efa9fa5fc015776728a9
3
+ metadata.gz: 152b2da236735387721cf285ba0bf01b813d9842
4
+ data.tar.gz: 2b25b8ab652845e9293e837a0badddfde0f396d3
5
5
  SHA512:
6
- metadata.gz: fd1c7c06845e3f28a51342d2cdf476d8435a27a8e2905407050e9d9c330bf453e2c0458340f44cd2dbc1277a771053bb6e8b6f4a37aa9e6baa9ac92113d964aa
7
- data.tar.gz: 7903e3fc5c4f1c2e7b1d7a69acae82f8c45f231726797896b4f10f02e67604c4f3e501171d9dc3a6648587855e2613641c1e1918c63ad845dab0c0cfbbfe3132
6
+ metadata.gz: c80e3399091d3a3171dde1fabd383aa71fdce2bb011c027b519523b69caa98f11b73d418998400ec559ee16a6af8b114d97ad121bf6b70c2622701d9fb3c1fb3
7
+ data.tar.gz: 34829fda2ac7bebb7437172bb0f71dbace6293e232047d5fd93d826261c391de2050c29a3cbb0e3c519b34300d5f6511d208f2924b506c4d2dc60d2a6573931b
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Userstamp
3
- VERSION = '0.6.2'
3
+ VERSION = '0.7.0'
4
4
  end
5
5
  end
@@ -3,8 +3,8 @@ module Mongoid
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- belongs_to Userstamp.config.creator_field, class_name: Userstamp.config.user_model_name
7
- belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name
6
+ belongs_to Userstamp.config.creator_field, class_name: Userstamp.config.user_model_name, autosave: false, required: false
7
+ belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name, autosave: false, required: false
8
8
 
9
9
  before_validation :set_updater
10
10
  before_validation :set_creator
data/spec/spec_helper.rb CHANGED
@@ -23,6 +23,8 @@ Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |f|
23
23
  require f
24
24
  end
25
25
 
26
+ Mongo::Logger.logger.level = ::Logger::FATAL
27
+
26
28
  RSpec.configure do |config|
27
29
  config.mock_with :rspec
28
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv_mongoid_userstamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-23 00:00:00.000000000 Z
13
+ date: 2016-09-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid