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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8c8857057897b00e46c32f958bf65363f463a97a
4
- data.tar.gz: 276f72506b52623fd611587a69a742c566a8859f
2
+ SHA256:
3
+ metadata.gz: d82e5b5ee4fb4f9bedcebb024def72fcab59cdc01804600ffbd2a750e01c711b
4
+ data.tar.gz: 74cc590cf95eeadcd537b3dfbaf4edac1d76f3a23007a3bca48d812f169f90d7
5
5
  SHA512:
6
- metadata.gz: e4af246cd67dd81ff7afd01ff2ab4ba5341e914502f6f7ae466bbbf541d0fa5825e06a13bb243de58c377087934ad266737cecfaaaf44462195ba731f6cc8f61
7
- data.tar.gz: 91cfb56993cd8e86db4a2ac721966a0917501bc911f981803e7fa59e1e559b4272afe1f28141a25ae0c7b5e28da1f4eda9554f3809731efbfc911e946958eeee
6
+ metadata.gz: ff4bbc93705cba4f5c4a23308c0890003700c4772c9109899c3b31ea112c75df717153fc65f890dec8ab04b35ba4124646157a35334e94a71541b972afa4b508
7
+ data.tar.gz: d58a9bdc18dbdc3e9aaebb041db8f1a3741b94c6d47f6499677f8705d528f6f2d9effb69aadbc6793558c67b2608c5f0f0a18e085f20847630dfc9910a1591ad
data/.travis.yml CHANGED
@@ -9,6 +9,10 @@ gemfile:
9
9
  - gemfiles/Gemfile.activerecord-5.1
10
10
  - gemfiles/Gemfile.activerecord-5.2
11
11
 
12
+ services:
13
+ - mysql
14
+ - postgresql
15
+
12
16
  env:
13
17
  - DB_ADAPTER=sqlite3
14
18
  - DB_ADAPTER=mysql2
data/README.md CHANGED
@@ -129,7 +129,7 @@ be set to `nil`.
129
129
 
130
130
  #### Model
131
131
 
132
- ```
132
+ ```ruby
133
133
  class Event < ApplicationRecord
134
134
  acts_as_microscope
135
135
  end
@@ -1,3 +1,3 @@
1
1
  module Microscope
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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::NoDatabaseError
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.parse('2020-03-18 08:00:00') }
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.parse('2020-03-18 08:00:00') }
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.0
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: 2019-04-11 00:00:00.000000000 Z
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
- rubyforge_project:
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