mongoid-history 0.8.3 → 0.9.0

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: 7f7558f1c6033e5350cdeb3732e385d483c7abfa71ffc7f89acfbba22befff97
4
- data.tar.gz: 71c5f5ab67e1bd040e14b040211b1acc5532449f048919c83adcb4e875f7eac4
3
+ metadata.gz: 6c399a08313f9f4e251ae699a6fa70d39567d59e470549ab8027d26458e558fb
4
+ data.tar.gz: 9f7dcd2100eae22caf54150d6841ab3a279c223ac552296cfee9b4eab4aaa27c
5
5
  SHA512:
6
- metadata.gz: f528411205ca81444296803927b54c1bd1ef570611b2b4a9bb79f6e4165fb038c5b13ad5fb79c8adde96c62eaefa1142bf5f4c6b5f44d72a80743f38a0aa5d48
7
- data.tar.gz: 4149122d3f6c474f5f0105772fa64a9fe237d299005e97ad021e887f42687d1a81ede778c589070231319704b9c71e2f99a5e660d04c2581a078178e965b0425
6
+ metadata.gz: 0c1a652bf3e510712faa0083217c2ed84d98b0247c76aa7f1cf8a2e2b4acbd74a985118fcd7aee4625c4ac1bec713d604d9b125f880188fe16d17c44cb7d9a24
7
+ data.tar.gz: 80ab4e6428a119d8f814dc1d4a254da13e2fc38ba006ea1707cd77fc2e08c1a3b472f6d94574ca44fbeceee47bc1063f30ee3a59bfd072142acd7b49836366b6
@@ -0,0 +1,11 @@
1
+ name: Danger Comment
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: [Danger]
6
+ types: [completed]
7
+
8
+ jobs:
9
+ comment:
10
+ uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
11
+ secrets: inherit
@@ -0,0 +1,13 @@
1
+ name: Danger
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened, reopened, edited, synchronize]
6
+
7
+ jobs:
8
+ danger:
9
+ uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.1.0
10
+ secrets: inherit
11
+ with:
12
+ ruby-version: '3.4'
13
+ bundler-cache: true
@@ -0,0 +1,49 @@
1
+ name: CI RSpec Test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ name: test (ruby=${{ matrix.ruby }}, mongoid=${{ matrix.mongoid }}, mongodb=${{ matrix.mongodb }})
8
+ runs-on: ubuntu-22.04
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ include:
13
+ - { ruby: '2.3', mongoid: '3', mongodb: '4.4' }
14
+ - { ruby: '2.4', mongoid: '4', mongodb: '4.4' }
15
+ - { ruby: '2.5', mongoid: '5', mongodb: '4.4' }
16
+ - { ruby: '2.6', mongoid: '6', mongodb: '4.4' }
17
+ - { ruby: '2.5', mongoid: '7', mongodb: '4.4' }
18
+ - { ruby: '2.6', mongoid: '7', mongodb: '4.4' }
19
+ - { ruby: '2.7', mongoid: '7.0', mongodb: '4.4' }
20
+ - { ruby: '2.7', mongoid: '7.1', mongodb: '4.4' }
21
+ - { ruby: '2.7', mongoid: '7.2', mongodb: '4.4' }
22
+ - { ruby: '2.7', mongoid: '7.3', mongodb: '4.4' }
23
+ - { ruby: '3.0', mongoid: '7', mongodb: '4.4' }
24
+ - { ruby: 'jruby-9.4', mongoid: '7', mongodb: '4.4' }
25
+ - { ruby: '3.2', mongoid: '8', mongodb: '6.0' }
26
+ - { ruby: '3.3', mongoid: '9', mongodb: '7.0' }
27
+ - { ruby: '3.4', mongoid: '9', mongodb: '8.0' }
28
+ - { ruby: '4.0', mongoid: '9', mongodb: '8.0' }
29
+ services:
30
+ mongodb:
31
+ image: mongo:${{ matrix.mongodb }}
32
+ ports: ['27017:27017']
33
+ options: >-
34
+ --health-cmd "mongosh --quiet --eval 'db.adminCommand({ping: 1})' || mongo --quiet --eval 'db.adminCommand({ping: 1})'"
35
+ --health-interval 10s
36
+ --health-timeout 5s
37
+ --health-retries 10
38
+ env:
39
+ MONGOID_VERSION: ${{ matrix.mongoid }}
40
+ steps:
41
+ - uses: actions/checkout@v7
42
+ - uses: ruby/setup-ruby@v1
43
+ with:
44
+ ruby-version: ${{ matrix.ruby }}
45
+ bundler-cache: true
46
+ cache-version: psych-compatible
47
+ - name: Run tests
48
+ timeout-minutes: 10
49
+ run: bundle exec rspec
data/.rubocop_todo.yml CHANGED
@@ -1,68 +1,102 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-04-10 17:25:32 -0500 using RuboCop version 0.48.1.
3
+ # on 2025-12-31 23:05:04 UTC using RuboCop version 1.82.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 7
10
- # Configuration parameters: Include.
11
- # Include: **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem:
9
+ # Offense count: 1
10
+ Gemspec/RequiredRubyVersion:
13
11
  Exclude:
14
- - 'Gemfile'
12
+ - 'mongoid-history.gemspec'
15
13
 
16
- # Offense count: 3
17
- Lint/HandleExceptions:
14
+ # Offense count: 1
15
+ # This cop supports safe autocorrection (--autocorrect).
16
+ # Configuration parameters: EnforcedStyleAlignWith.
17
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
18
+ Layout/BlockAlignment:
18
19
  Exclude:
19
- - 'spec/unit/trackable_spec.rb'
20
+ - 'lib/mongoid/history/tracker.rb'
20
21
 
21
- # Offense count: 3
22
- Lint/ParenthesesAsGroupedExpression:
22
+ # Offense count: 170
23
+ # Configuration parameters: AllowedMethods.
24
+ # AllowedMethods: enums
25
+ Lint/ConstantDefinitionInBlock:
26
+ Enabled: false
27
+
28
+ # Offense count: 1
29
+ # This cop supports unsafe autocorrection (--autocorrect-all).
30
+ Lint/NonDeterministicRequireOrder:
23
31
  Exclude:
24
- - 'spec/integration/integration_spec.rb'
25
- - 'spec/integration/nested_embedded_polymorphic_documents_spec.rb'
32
+ - 'spec/spec_helper.rb'
26
33
 
27
- # Offense count: 22
34
+ # Offense count: 21
35
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
28
36
  Metrics/AbcSize:
29
- Max: 52
37
+ Max: 51
30
38
 
31
- # Offense count: 122
32
- # Configuration parameters: CountComments, ExcludedMethods.
39
+ # Offense count: 129
40
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
41
+ # AllowedMethods: refine
33
42
  Metrics/BlockLength:
34
- Max: 837
43
+ Max: 874
35
44
 
36
45
  # Offense count: 1
37
- # Configuration parameters: CountComments.
46
+ # Configuration parameters: CountComments, CountAsOne.
38
47
  Metrics/ClassLength:
39
- Max: 120
48
+ Max: 127
40
49
 
41
- # Offense count: 6
50
+ # Offense count: 10
51
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
42
52
  Metrics/CyclomaticComplexity:
43
- Max: 13
44
-
45
- # Offense count: 412
46
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
47
- # URISchemes: http, https
48
- Metrics/LineLength:
49
- Max: 688
53
+ Max: 15
50
54
 
51
- # Offense count: 17
52
- # Configuration parameters: CountComments.
55
+ # Offense count: 18
56
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
53
57
  Metrics/MethodLength:
54
- Max: 23
58
+ Max: 24
55
59
 
56
60
  # Offense count: 2
57
- # Configuration parameters: CountComments.
61
+ # Configuration parameters: CountComments, CountAsOne.
58
62
  Metrics/ModuleLength:
59
- Max: 191
63
+ Max: 199
60
64
 
61
- # Offense count: 6
65
+ # Offense count: 9
66
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
62
67
  Metrics/PerceivedComplexity:
63
- Max: 15
68
+ Max: 16
69
+
70
+ # Offense count: 1
71
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
72
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
73
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
74
+ Naming/FileName:
75
+ Exclude:
76
+ - 'Rakefile.rb'
77
+ - 'lib/mongoid-history.rb'
78
+
79
+ # Offense count: 3
80
+ # Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
81
+ # SupportedStyles: snake_case, normalcase, non_integer
82
+ # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
83
+ Naming/VariableNumber:
84
+ Exclude:
85
+ - 'spec/unit/my_instance_methods_spec.rb'
86
+ - 'spec/unit/tracker_spec.rb'
87
+
88
+ # Offense count: 6
89
+ # This cop supports unsafe autocorrection (--autocorrect-all).
90
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
91
+ # AllowedMethods: ==, equal?, eql?
92
+ Style/ClassEqualityComparison:
93
+ Exclude:
94
+ - 'lib/mongoid/history/attributes/base.rb'
95
+ - 'lib/mongoid/history/options.rb'
96
+ - 'perf/benchmark_modified_attributes_for_create.rb'
64
97
 
65
98
  # Offense count: 15
99
+ # Configuration parameters: AllowedConstants.
66
100
  Style/Documentation:
67
101
  Exclude:
68
102
  - 'spec/**/*'
@@ -78,22 +112,58 @@ Style/Documentation:
78
112
  - 'perf/benchmark_modified_attributes_for_create.rb'
79
113
  - 'perf/gc_suite.rb'
80
114
 
81
- # Offense count: 3
82
- # Cop supports --auto-correct.
83
- Style/EachWithObject:
115
+ # Offense count: 44
116
+ # This cop supports unsafe autocorrection (--autocorrect-all).
117
+ # Configuration parameters: EnforcedStyle.
118
+ # SupportedStyles: always, always_true, never
119
+ Style/FrozenStringLiteralComment:
120
+ Enabled: false
121
+
122
+ # Offense count: 1
123
+ # This cop supports unsafe autocorrection (--autocorrect-all).
124
+ # Configuration parameters: AllowedReceivers.
125
+ # AllowedReceivers: Thread.current
126
+ Style/HashEachMethods:
84
127
  Exclude:
85
- - 'lib/mongoid/history/trackable.rb'
86
128
  - 'lib/mongoid/history/tracker.rb'
87
129
 
88
- # Offense count: 2
89
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
90
- # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
91
- Style/FileName:
130
+ # Offense count: 1
131
+ # This cop supports unsafe autocorrection (--autocorrect-all).
132
+ Style/HashTransformValues:
92
133
  Exclude:
93
- - 'Dangerfile'
94
- - 'lib/mongoid-history.rb'
134
+ - 'perf/benchmark_modified_attributes_for_create.rb'
95
135
 
96
- # Offense count: 1
136
+ # Offense count: 4
137
+ # This cop supports safe autocorrection (--autocorrect).
138
+ Style/IfUnlessModifier:
139
+ Exclude:
140
+ - 'lib/mongoid/history/trackable.rb'
141
+
142
+ # Offense count: 2
97
143
  Style/MultilineBlockChain:
98
144
  Exclude:
99
145
  - 'lib/mongoid/history/tracker.rb'
146
+ - 'perf/benchmark_modified_attributes_for_create.rb'
147
+
148
+ # Offense count: 2
149
+ # This cop supports unsafe autocorrection (--autocorrect-all).
150
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
151
+ # AllowedMethods: present?, blank?, presence, try, try!
152
+ Style/SafeNavigation:
153
+ Exclude:
154
+ - 'lib/mongoid/history/trackable.rb'
155
+
156
+ # Offense count: 2
157
+ # This cop supports unsafe autocorrection (--autocorrect-all).
158
+ # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
159
+ # AllowedMethods: define_method
160
+ Style/SymbolProc:
161
+ Exclude:
162
+ - 'spec/unit/callback_options_spec.rb'
163
+
164
+ # Offense count: 9
165
+ # This cop supports safe autocorrection (--autocorrect).
166
+ # Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
167
+ # URISchemes: http, https
168
+ Layout/LineLength:
169
+ Max: 688
data/CHANGELOG.md CHANGED
@@ -1,4 +1,16 @@
1
- ### 0.8.3 (2020/05/17)
1
+ ### 0.9.0 (2026/10/14)
2
+
3
+ * [#260](https://github.com/mongoid/mongoid-history/pull/260): Modernize CI through Ruby 4.0, Mongoid 9 and MongoDB 8 while retaining legacy boundary coverage; fix modern dependency and embedded callback compatibility - [@dblock](https://github.com/dblock).
4
+ * [#259](https://github.com/mongoid/mongoid-history/pull/259): Migrate Danger to danger-pr-comment workflow - [@dblock](https://github.com/dblock).
5
+ * [#257](https://github.com/mongoid/mongoid-history/pull/257): Add track_blank_changes option - [@BrianLMatthews](https://github.com/BrianLMatthews).
6
+
7
+ ### 0.8.5 (2021/09/18)
8
+
9
+ * [#250](https://github.com/mongoid/mongoid-history/pull/250): Migrate to Github actions - [@johnnyshields](https://github.com/johnnyshields).
10
+ * [#249](https://github.com/mongoid/mongoid-history/pull/249): Don't update version on embedded documents if the document itself is being destroyed - [@getaroom](https://github.com/getaroom).
11
+ * [#248](https://github.com/mongoid/mongoid-history/pull/248): Don't update version on embedded documents if an ancestor is being destroyed in the same operation - [@getaroom](https://github.com/getaroom).
12
+
13
+ ### 0.8.3 (2020/06/17)
2
14
 
3
15
  * [#236](https://github.com/mongoid/mongoid-history/pull/236): Fix Ruby 2.7 keyword argument warnings - [@vasilysn](https://github.com/vasilysn).
4
16
  * [#237](https://github.com/mongoid/mongoid-history/pull/237): Fix tracking subclasses with additional fields - [@getaroom](https://github.com/getaroom).
data/CONTRIBUTING.md CHANGED
@@ -1,9 +1,8 @@
1
- Contributing to Mongoid-History
2
- ===============================
1
+ # Contributing to Mongoid-History
3
2
 
4
3
  Mongoid-History is work of [many of contributors](https://github.com/mongoid/mongoid-history/graphs/contributors). You're encouraged to submit [pull requests](https://github.com/mongoid/mongoid-history/pulls), [propose features, ask questions and discuss issues](https://github.com/mongoid/mongoid-history/issues).
5
4
 
6
- #### Fork the Project
5
+ ### Fork the Project
7
6
 
8
7
  Fork the [project on Github](https://github.com/mongoid/mongoid-history) and check out your copy.
9
8
 
@@ -13,7 +12,7 @@ cd mongoid-history
13
12
  git remote add upstream https://github.com/mongoid/mongoid-history.git
14
13
  ```
15
14
 
16
- #### Create a Topic Branch
15
+ ### Create a Topic Branch
17
16
 
18
17
  Make sure your fork is up-to-date and create a topic branch for your feature or bug fix.
19
18
 
@@ -23,7 +22,7 @@ git pull upstream master
23
22
  git checkout -b my-feature-branch
24
23
  ```
25
24
 
26
- #### Bundle Install and Test
25
+ ### Bundle Install and Test
27
26
 
28
27
  Ensure that you can build the project and run tests.
29
28
 
@@ -32,13 +31,13 @@ bundle install
32
31
  bundle exec rake
33
32
  ```
34
33
 
35
- #### Write Tests
34
+ ### Write Tests
36
35
 
37
36
  Try to write a test that reproduces the problem you're trying to fix or describes a feature that you want to build. Add to [spec/mongoid-history](spec/mongoid-history).
38
37
 
39
38
  We definitely appreciate pull requests that highlight or reproduce a problem, even without a fix.
40
39
 
41
- #### Write Code
40
+ ### Write Code
42
41
 
43
42
  Implement your feature or bug fix.
44
43
 
@@ -46,15 +45,15 @@ Ruby style is enforced with [Rubocop](https://github.com/bbatsov/rubocop), run `
46
45
 
47
46
  Make sure that `bundle exec rake` completes without errors.
48
47
 
49
- #### Write Documentation
48
+ ### Write Documentation
50
49
 
51
50
  Document any external behavior in the [README](README.md).
52
51
 
53
- #### Update Changelog
52
+ ### Update Changelog
54
53
 
55
54
  Add a line to [CHANGELOG](CHANGELOG.md) under *Next Release*. Make it look like every other line, including your name and link to your Github account.
56
55
 
57
- #### Commit Changes
56
+ ### Commit Changes
58
57
 
59
58
  Make sure git knows your name and email address:
60
59
 
@@ -70,17 +69,17 @@ git add ...
70
69
  git commit
71
70
  ```
72
71
 
73
- #### Push
72
+ ### Push
74
73
 
75
74
  ```
76
75
  git push origin my-feature-branch
77
76
  ```
78
77
 
79
- #### Make a Pull Request
78
+ ### Make a Pull Request
80
79
 
81
80
  Go to https://github.com/contributor/mongoid-history and select your feature branch. Click the 'Pull Request' button and fill out the form. Pull requests are usually reviewed within a few days.
82
81
 
83
- #### Rebase
82
+ ### Rebase
84
83
 
85
84
  If you've been working on a change for a while, rebase with upstream/master.
86
85
 
@@ -90,7 +89,7 @@ git rebase upstream/master
90
89
  git push origin my-feature-branch -f
91
90
  ```
92
91
 
93
- #### Update CHANGELOG Again
92
+ ### Update CHANGELOG Again
94
93
 
95
94
  Update the [CHANGELOG](CHANGELOG.md) with the pull request number. A typical entry looks as follows.
96
95
 
@@ -105,14 +104,14 @@ git commit --amend
105
104
  git push origin my-feature-branch -f
106
105
  ```
107
106
 
108
- #### Check on Your Pull Request
107
+ ### Check on Your Pull Request
109
108
 
110
109
  Go back to your pull request after a few minutes and see whether it passed muster with Travis-CI. Everything should look green, otherwise fix issues and amend your commit as described above.
111
110
 
112
- #### Be Patient
111
+ ### Be Patient
113
112
 
114
113
  It's likely that your change will not be merged and that the nitpicky maintainers will ask you to do more, or fix seemingly benign problems. Hang on there!
115
114
 
116
- #### Thank You
115
+ ### Thank You
117
116
 
118
117
  Please do know that we really appreciate and value your time and work. We love you, really.
data/Dangerfile CHANGED
@@ -1 +1,3 @@
1
- danger.import_dangerfile(gem: 'mongoid-danger')
1
+ danger.import_dangerfile(gem: 'danger-pr-comment')
2
+
3
+ changelog.check!
data/Gemfile CHANGED
@@ -2,39 +2,68 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- case version = ENV['MONGOID_VERSION'] || '~> 7.0.0'
5
+ case version = ENV['MONGOID_VERSION'] || '9'
6
6
  when 'HEAD'
7
7
  gem 'mongoid', github: 'mongodb/mongoid'
8
- when /\b7/
8
+ when '9'
9
+ gem 'mongoid', '~> 9.0'
10
+ when '8'
11
+ gem 'mongoid', '~> 8.0'
12
+ when '7'
13
+ gem 'mongoid', '~> 7.3'
14
+ when '7.3'
15
+ gem 'mongoid', '~> 7.3.0'
16
+ when '7.2'
17
+ gem 'mongoid', '~> 7.2.0'
18
+ when '7.1'
19
+ gem 'mongoid', '~> 7.1.0'
20
+ when '7.0'
9
21
  gem 'mongoid', '~> 7.0.0'
10
- when /\b6/
11
- gem 'mongoid', '~> 6.0.0'
12
- when /\b5/
22
+ when '6'
23
+ gem 'mongoid', '~> 6.0'
24
+ when '5'
13
25
  gem 'mongoid', '~> 5.0'
14
- gem 'mongoid-observers', '~> 0.2.0'
15
- when /\b4/
26
+ gem 'mongoid-observers', '~> 0.2'
27
+ when '4'
16
28
  gem 'mongoid', '~> 4.0'
17
- gem 'mongoid-observers', '~> 0.2.0'
18
- when /\b3/
19
- gem 'mongoid', '~> 3.1.7'
29
+ gem 'mongoid-observers', '~> 0.2'
30
+ when '3'
31
+ gem 'mongoid', '~> 3.1'
20
32
  else
21
33
  gem 'mongoid', version
22
34
  end
35
+
23
36
  gem 'mongoid-compatibility'
37
+ gem 'psych', Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6') ? '< 4.0' : '< 5.0'
24
38
 
25
39
  group :development, :test do
26
40
  gem 'bundler'
27
41
  gem 'pry'
28
- gem 'rake', '< 11.0'
42
+ gem 'rake'
29
43
  end
30
44
 
31
45
  group :test do
46
+ gem 'base64'
47
+ gem 'benchmark'
48
+ if %w[3 4 5].include?(ENV['MONGOID_VERSION']) && RUBY_ENGINE == 'ruby'
49
+ gem 'bigdecimal', '~> 1.3.5'
50
+ else
51
+ gem 'bigdecimal'
52
+ end
32
53
  gem 'benchmark-ips', require: false
33
- gem 'coveralls'
54
+ if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
55
+ gem 'danger'
56
+ gem 'danger-changelog'
57
+ gem 'danger-pr-comment'
58
+ end
59
+ gem 'simplecov', Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5') ? '>= 0.16' : '>= 0.22', require: false
34
60
  gem 'gem-release'
35
- gem 'mongoid-danger', '~> 0.1.0', require: false
61
+ gem 'racc'
36
62
  gem 'request_store'
63
+ gem 'logger'
64
+ gem 'mutex_m'
37
65
  gem 'rspec', '~> 3.1'
38
- gem 'rubocop', '0.48.1'
66
+ gem 'rubocop', Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6') ? '~> 0.49.0' : '~> 1.28'
67
+ gem 'term-ansicolor', '~> 1.3.0'
39
68
  gem 'yard'
40
69
  end
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011-2018 Aaron Qian & Contributors
1
+ Copyright (c) 2011-2020 Aaron Qian & Contributors
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the