glebtv_mongoid_userstamp 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfc7ed45cc616b40765c2b66c4d1ce80f7be3908be06232372e02a787f6b7f49
4
- data.tar.gz: 33f6c9c39b857b744d9f4b79e8bf5c61b23a75f2386a0b7be78e1c711d9d84be
3
+ metadata.gz: baa875b76008936bf0ab968862c2402cc996be50da6597460679682f768ce87d
4
+ data.tar.gz: 91b99770c94fbed0bd6ebbfab098a6d0205107d9773c825be930dde9c79c6a47
5
5
  SHA512:
6
- metadata.gz: e31583680a55184bf97b4fdc510b9910f447401b59d0d7bd810ed88cf6dd657588c97f946379b7515d80421dffb2e084891ca57954d2585b04d8245326f7326b
7
- data.tar.gz: cd11ba0255ad3faf966ddf954f7d1baa3fbcd54e2b95c094984a833e1269415608f01d820f98308b1c66761c46759a60184054b6d114217cd821083b74e44b55
6
+ metadata.gz: c88703face9dbab1c7f7db92aea3dbea7e25aa0329674ca92353154120056c37884a2998a1da02f83704b6baa30cf0951f80e93b2a1c5642255b46d47c934594
7
+ data.tar.gz: b53b23b2a8f1c44d80e1cbb9aadc0f544048b4847d3fdc48af3033dc8d0caee795bfb45bf48c76737d2f3e9d76aa42a7c6fbc4b97c84ab68a8775d1963246839
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Userstamp
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.2'
4
4
  end
5
5
  end
@@ -130,6 +130,18 @@ describe Mongoid::Userstamp do
130
130
  end
131
131
  subject { Novel.new(name: 'Ethyl the Aardvark goes Quantity Surveying') }
132
132
 
133
+ context 'when created without user' do
134
+ before do
135
+ User.current = nil
136
+ subject.save!
137
+ end
138
+
139
+ it { expect(subject.c_by_id).to eq(nil) }
140
+ it { expect(subject.c_by).to eq(nil) }
141
+ it { expect(subject.u_by_id).to eq(nil) }
142
+ it { expect(subject.u_by).to eq(nil) }
143
+ end
144
+
133
145
  context 'when created by a user' do
134
146
  before do
135
147
  User.current = user_1
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.9.0
4
+ version: 0.9.2
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: 2018-11-20 00:00:00.000000000 Z
13
+ date: 2019-05-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid
@@ -119,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.7.7
122
+ rubygems_version: 3.0.3
124
123
  signing_key:
125
124
  specification_version: 4
126
125
  summary: Userstamp for Mongoid