mongoid-userstamps 3.2.1 → 3.4.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
  SHA256:
3
- metadata.gz: abd89e19a087c09f663588c80c5007cdc781985db52dffbc9af426574c161a76
4
- data.tar.gz: fe286c80e6bf99589b02811a90eafa8026ab79d18ea39352f5144606df8236a2
3
+ metadata.gz: 3f0f08cbc0f21fda7aea5c869e39bfd3ce0d120c7707136826f3ddb315c37d04
4
+ data.tar.gz: 1c49c91a747a1bf6c64c0f525ec5e6f45ee5418afc4cbc91e19552b4da2049e6
5
5
  SHA512:
6
- metadata.gz: 7018b8e7ad31ff0f96f53a208dba6db14efd4c7e20bf4b9011a8cb66661104b7dfd9ce91038f63f810af8b47386635487d2bda7aaea5042b5f20dad0912dbd33
7
- data.tar.gz: 32145a486f3d28690d69bd1d1d4ddfdd2703f760af8d5f7e2882b84853577224aa2cfa4e6bb118261340af6b853046eefd2265dd3271ad8a30688f8182a72200
6
+ metadata.gz: 8cf702214921ee960892b710a2b302d84b074048acede727e7974b8a08069aa7c8c502f8990d0939f10ed838d5099d95ce4d84a4040efcfd6606308f3662b764
7
+ data.tar.gz: 3451e547e0596ff7ea40336deb5ece7114211afc6e75d58c3af6dcf968bfd45d7127650cd80e267d22565842c76d755c5b9e0a50b8ebfb6aa42fadde507102c7
@@ -0,0 +1,45 @@
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ # GitHub recommends pinning actions to a commit SHA.
7
+ # To get a newer version, you will need to update the SHA.
8
+ # You can also reference a tag or branch, but the action may change without warning.
9
+
10
+ name: Ruby CI
11
+
12
+ on:
13
+ push:
14
+ branches: [ master ]
15
+ pull_request:
16
+ branches: [ master ]
17
+
18
+ jobs:
19
+ test:
20
+
21
+ runs-on: ubuntu-latest
22
+
23
+ services:
24
+ mongodb:
25
+ image: mongo
26
+ ports:
27
+ - 27017:27017
28
+
29
+ strategy:
30
+ matrix:
31
+ ruby-version: ['2.6', '2.7']
32
+ mongoid-version: ['6.2.0', '6.3.0', '6.4.0', '7.0.0', '7.1.0', '8.0.0']
33
+
34
+ steps:
35
+ - uses: actions/checkout@v3
36
+ - name: Set up Ruby ${{ matrix.ruby-version }}
37
+ uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108
38
+ with:
39
+ ruby-version: ${{ matrix.ruby-version }}
40
+ - name: Setup Mongoid ENV var
41
+ run: export MONGOID_VERSION=${{ matrix.mongoid-version }}
42
+ - name: Install dependencies
43
+ run: bundle update --jobs=3 --retry=3
44
+ - name: Run tests
45
+ run: bundle exec rake
data/.rubocop.yml CHANGED
@@ -4,6 +4,3 @@ inherit_gem:
4
4
  require:
5
5
  - standard
6
6
  - rubocop-performance
7
-
8
- Style/RedundantBegin:
9
- Enabled: false
data/.travis.yml CHANGED
@@ -14,3 +14,4 @@ env:
14
14
  - "MONGOID_VERSION=6.3.0"
15
15
  - "MONGOID_VERSION=6.4.0"
16
16
  - "MONGOID_VERSION=7.0.0"
17
+ - "MONGOID_VERSION=7.1.0"
data/CHANGELOG.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Changelog
2
2
 
3
- ## 3.2.#
4
-
5
- * Syntax bugfix for Ruby 2.4 with `rescue` on blocks
6
-
7
3
  ## 3.2.0
8
4
 
9
5
  * Mongoid 7.0 support
@@ -5,10 +5,8 @@ module Mongoid
5
5
  ActiveSupport.on_load :action_controller do
6
6
  before_action do |c|
7
7
  Mongoid::Userstamps::Config.user_classes.each do |user_class|
8
- begin
9
- user_class.current = c.public_send(user_class.userstamps_user.reader)
10
- rescue
11
- end
8
+ user_class.current = c.public_send(user_class.userstamps_user.reader)
9
+ rescue
12
10
  end
13
11
  end
14
12
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Userstamps
3
- VERSION = "3.2.1"
3
+ VERSION = "3.4.0"
4
4
  end
5
5
  end
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.name = "mongoid-userstamps"
7
7
  s.version = Mongoid::Userstamps::VERSION
8
8
  s.authors = ["Geoffroy Planquart", "Thomas Boerger", "Johnny Shields", "Bharat Gupta"]
9
- s.homepage = "https://github.com/tbpro/mongoid_userstamp"
9
+ s.homepage = "https://github.com/CreaLettres/mongoid_userstamp"
10
10
  s.license = "MIT"
11
11
  s.summary = "Userstamps for Mongoid"
12
12
  s.description = "Userstamps for creator and updater fields using Mongoid"
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
19
19
 
20
20
  s.post_install_message = File.read("UPGRADING") if File.exist?("UPGRADING")
21
21
 
22
- s.add_dependency "mongoid", ">= 5.0.0", "< 7.1.0"
23
- s.add_dependency "activesupport", ">= 4.2.0", "< 5.2.0"
22
+ s.add_dependency "mongoid", ">= 5.0.0", "<= 8.0"
23
+ s.add_dependency "activesupport", ">= 4.2.0", "<= 7.1"
24
24
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-userstamps
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Planquart
8
8
  - Thomas Boerger
9
9
  - Johnny Shields
10
10
  - Bharat Gupta
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-11-26 00:00:00.000000000 Z
14
+ date: 2022-11-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: mongoid
@@ -20,9 +20,9 @@ dependencies:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: 5.0.0
23
- - - "<"
23
+ - - "<="
24
24
  - !ruby/object:Gem::Version
25
- version: 7.1.0
25
+ version: '8.0'
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,9 +30,9 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 5.0.0
33
- - - "<"
33
+ - - "<="
34
34
  - !ruby/object:Gem::Version
35
- version: 7.1.0
35
+ version: '8.0'
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
38
  requirement: !ruby/object:Gem::Requirement
@@ -40,9 +40,9 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: 4.2.0
43
- - - "<"
43
+ - - "<="
44
44
  - !ruby/object:Gem::Version
45
- version: 5.2.0
45
+ version: '7.1'
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,9 +50,9 @@ dependencies:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
52
  version: 4.2.0
53
- - - "<"
53
+ - - "<="
54
54
  - !ruby/object:Gem::Version
55
- version: 5.2.0
55
+ version: '7.1'
56
56
  description: Userstamps for creator and updater fields using Mongoid
57
57
  email:
58
58
  - geoffroy@planquart.fr
@@ -61,6 +61,7 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
+ - ".github/workflows/main.yml"
64
65
  - ".gitignore"
65
66
  - ".rubocop.yml"
66
67
  - ".travis.yml"
@@ -105,11 +106,11 @@ files:
105
106
  - test/paranoia_test.rb
106
107
  - test/test_helper.rb
107
108
  - test/user_test.rb
108
- homepage: https://github.com/tbpro/mongoid_userstamp
109
+ homepage: https://github.com/CreaLettres/mongoid_userstamp
109
110
  licenses:
110
111
  - MIT
111
112
  metadata: {}
112
- post_install_message:
113
+ post_install_message:
113
114
  rdoc_options: []
114
115
  require_paths:
115
116
  - lib
@@ -124,8 +125,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
125
  - !ruby/object:Gem::Version
125
126
  version: '0'
126
127
  requirements: []
127
- rubygems_version: 3.0.4
128
- signing_key:
128
+ rubygems_version: 3.1.6
129
+ signing_key:
129
130
  specification_version: 4
130
131
  summary: Userstamps for Mongoid
131
132
  test_files: