microscope 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -0
- data/README.md +1 -1
- data/lib/microscope/version.rb +1 -1
- data/lib/microscope.rb +1 -1
- data/spec/microscope/scope/date_scope_spec.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d82e5b5ee4fb4f9bedcebb024def72fcab59cdc01804600ffbd2a750e01c711b
|
4
|
+
data.tar.gz: 74cc590cf95eeadcd537b3dfbaf4edac1d76f3a23007a3bca48d812f169f90d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff4bbc93705cba4f5c4a23308c0890003700c4772c9109899c3b31ea112c75df717153fc65f890dec8ab04b35ba4124646157a35334e94a71541b972afa4b508
|
7
|
+
data.tar.gz: d58a9bdc18dbdc3e9aaebb041db8f1a3741b94c6d47f6499677f8705d528f6f2d9effb69aadbc6793558c67b2608c5f0f0a18e085f20847630dfc9910a1591ad
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/microscope/version.rb
CHANGED
data/lib/microscope.rb
CHANGED
@@ -38,7 +38,7 @@ module ActiveRecord
|
|
38
38
|
|
39
39
|
Microscope::Scope.inject_scopes(self, model_columns, options)
|
40
40
|
Microscope::InstanceMethod.inject_instance_methods(self, model_columns, options)
|
41
|
-
rescue ActiveRecord::
|
41
|
+
rescue ActiveRecord::ActiveRecordError
|
42
42
|
nil
|
43
43
|
end
|
44
44
|
end
|
@@ -35,7 +35,7 @@ describe Microscope::Scope::DateScope do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
describe 'before_or_now scope' do
|
38
|
-
let(:stubbed_date) { Date.
|
38
|
+
let(:stubbed_date) { Date.today + 1.year }
|
39
39
|
before { allow(Date).to receive(:today).and_return(stubbed_date) }
|
40
40
|
|
41
41
|
before do
|
@@ -78,7 +78,7 @@ describe Microscope::Scope::DateScope do
|
|
78
78
|
end
|
79
79
|
|
80
80
|
describe 'after_or_now scope' do
|
81
|
-
let(:stubbed_date) { Date.
|
81
|
+
let(:stubbed_date) { Date.today + 1.year }
|
82
82
|
before { allow(Date).to receive(:today).and_return(stubbed_date) }
|
83
83
|
|
84
84
|
before do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Prévost
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-02-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -178,8 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
|
-
|
182
|
-
rubygems_version: 2.5.2.3
|
181
|
+
rubygems_version: 3.0.3.1
|
183
182
|
signing_key:
|
184
183
|
specification_version: 4
|
185
184
|
summary: Microscope adds useful scopes targeting ActiveRecord boolean and datetime
|