operator_recordable 0.2.0 → 1.1.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: 3e05ee5e40a24819f5628847408a64657df213e1f96bf7060b87b9b86f45d6aa
4
- data.tar.gz: 6491c0178099e81c2b423e5344e018b76de979e76009d7ef21df9d3bb0bfdec6
3
+ metadata.gz: 7a738b794ff45332a5df918bcec227d8c22683cefca6505b4127d53ca664ae78
4
+ data.tar.gz: 2d895a62c309fc3b45d5b1dc8c9c31eeadf43e580e0fbea8ccb1b565beb50887
5
5
  SHA512:
6
- metadata.gz: d24f2ffdcb2a74658cf298da772d5b5945c56c5283b0087fb0f52c4d07afb56a144265a26633df7fb5c5399d4aed38e43f1a4700f489d5741bccca24867748f1
7
- data.tar.gz: a4803ce15c437240371fb6e32433880e2862d2598fe8616f5681fda4d21647550ad017dd5471578d95a9ea4e1b070103b39a729f16ab83526d8a698de7950555
6
+ metadata.gz: df72ca9f3c177e9f237bd8af23bbb9ac03df004dfc46a4db268cae137a91a9a80cbcc04c564406d04cb3ae92e51c050ba92ca94d8ebf6ebb7be38e52b03ea4c3
7
+ data.tar.gz: cb82594ea68b88414faf85d8ab556f6e58b44ee971b9886d1d34617c0618c290163761309b5e279fd8f4e589f8a7acca0397ef566215f391ea5697d0de94bf32
@@ -0,0 +1,94 @@
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
+ # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
+ # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
+
8
+ name: Build
9
+
10
+ on: [push, pull_request]
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ strategy:
16
+ matrix:
17
+ ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
18
+ activerecord: ['5.2', '6.0', '6.1', '7.0']
19
+ plugin: ['', '_with_request_store']
20
+ experimental: [false]
21
+ exclude:
22
+ - ruby: '2.5'
23
+ activerecord: '7.0'
24
+ plugin: ''
25
+ experimental: false
26
+ - ruby: '2.5'
27
+ activerecord: '7.0'
28
+ plugin: '_with_request_store'
29
+ experimental: false
30
+ - ruby: '2.6'
31
+ activerecord: '7.0'
32
+ plugin: ''
33
+ experimental: false
34
+ - ruby: '2.6'
35
+ activerecord: '7.0'
36
+ plugin: '_with_request_store'
37
+ experimental: false
38
+ - ruby: '2.7'
39
+ activerecord: '5.2'
40
+ plugin: ''
41
+ experimental: false
42
+ - ruby: '2.7'
43
+ activerecord: '5.2'
44
+ plugin: '_with_request_store'
45
+ experimental: false
46
+ - ruby: '3.0'
47
+ activerecord: '5.2'
48
+ plugin: ''
49
+ experimental: false
50
+ - ruby: '3.0'
51
+ activerecord: '5.2'
52
+ plugin: '_with_request_store'
53
+ experimental: false
54
+ - ruby: '3.1'
55
+ activerecord: '5.2'
56
+ plugin: ''
57
+ experimental: false
58
+ - ruby: '3.1'
59
+ activerecord: '5.2'
60
+ plugin: '_with_request_store'
61
+ experimental: false
62
+ # Rails 7.0.1 will start supporting Ruby 3.1, but Rails 7.0.1 has not been released yet
63
+ - ruby: '3.1'
64
+ activerecord: '7.0'
65
+ plugin: ''
66
+ experimental: false
67
+ - ruby: '3.1'
68
+ activerecord: '7.0'
69
+ plugin: '_with_request_store'
70
+ experimental: false
71
+ include:
72
+ - ruby: '2.7'
73
+ activerecord: '5.2'
74
+ plugin: ''
75
+ experimental: true
76
+ - ruby: '2.7'
77
+ activerecord: '5.2'
78
+ plugin: '_with_request_store'
79
+ experimental: true
80
+ continue-on-error: ${{ matrix.experimental }}
81
+ env:
82
+ APPRAISAL: activerecord_${{ matrix.activerecord }}${{ matrix.plugin }}
83
+ steps:
84
+ - uses: actions/checkout@v2
85
+ - name: Set up Ruby
86
+ uses: ruby/setup-ruby@v1
87
+ with:
88
+ ruby-version: ${{ matrix.ruby }}
89
+ - name: Install dependencies
90
+ run: |
91
+ bundle install
92
+ bundle exec appraisal $APPRAISAL bundle install
93
+ - name: Run tests
94
+ run: bundle exec appraisal $APPRAISAL rake
data/.gitignore CHANGED
@@ -4,6 +4,8 @@
4
4
  /Gemfile.lock
5
5
  /coverage/
6
6
  /doc/
7
+ /gemfiles/.bundle/
8
+ /gemfiles/*.gemfile.lock
7
9
  /pkg/
8
10
  /spec/reports/
9
11
  /tmp/
data/.rspec CHANGED
File without changes
data/.rubocop.yml ADDED
@@ -0,0 +1,32 @@
1
+ AllCops:
2
+ Exclude:
3
+ - gemfiles/**/*
4
+ TargetRubyVersion: 2.5
5
+
6
+ Style/AsciiComments:
7
+ Enabled: false
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+
12
+ Style/RedundantSelf:
13
+ Enabled: false
14
+
15
+ Style/StringLiterals:
16
+ Enabled: true
17
+ EnforcedStyle: double_quotes
18
+
19
+ Layout/EndOfLine:
20
+ Enabled: true
21
+ EnforcedStyle: lf
22
+
23
+ Layout/LineLength:
24
+ Max: 128
25
+
26
+ Metrics/BlockLength:
27
+ Exclude:
28
+ - spec/**/*
29
+
30
+ Metrics/MethodLength:
31
+ Exclude:
32
+ - spec/**/*
data/Appraisals ADDED
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise "activerecord_5.2" do
4
+ gem "activerecord", "~> 5.2.0"
5
+ end
6
+
7
+ appraise "activerecord_5.2_with_request_store" do
8
+ gem "activerecord", "~> 5.2.0"
9
+ gem "request_store"
10
+ end
11
+
12
+ appraise "activerecord_6.0" do
13
+ gem "activerecord", "~> 6.0.0"
14
+ gem "sqlite3", "~> 1.4"
15
+ end
16
+
17
+ appraise "activerecord_6.0_with_request_store" do
18
+ gem "activerecord", "~> 6.0.0"
19
+ gem "request_store"
20
+ gem "sqlite3", "~> 1.4"
21
+ end
22
+
23
+ appraise "activerecord_6.1" do
24
+ gem "activerecord", "~> 6.1.0"
25
+ gem "sqlite3", "~> 1.4"
26
+ end
27
+
28
+ appraise "activerecord_6.1_with_request_store" do
29
+ gem "activerecord", "~> 6.1.0"
30
+ gem "request_store"
31
+ gem "sqlite3", "~> 1.4"
32
+ end
33
+
34
+ appraise "activerecord_7.0" do
35
+ gem "activerecord", "~> 7.0.0"
36
+ gem "sqlite3", "~> 1.4"
37
+ end
38
+
39
+ appraise "activerecord_7.0_with_request_store" do
40
+ gem "activerecord", "~> 7.0.0"
41
+ gem "request_store"
42
+ gem "sqlite3", "~> 1.4"
43
+ end
data/CHANGELOG.md CHANGED
@@ -1,9 +1,50 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 1.1.0 (2022-01-07)
4
+
5
+ ### Changes
6
+
7
+ * Add gem metadata
8
+ * Drop Ruby 2.4 support
9
+ * Drop ActiveRecord 5.0 and 5.1 support
10
+
11
+ ### Misc
12
+
13
+ * Introduce Appraisal
14
+ * CI against for ActiveRecord 6.1 and 7.0
15
+ * Use GitHub Actions and stop using Travis CI
16
+ * CI against for Ruby 3.0 and 3.1
17
+ * Require MFA to release gem
18
+
19
+
20
+ ## 1.0.0 (2020-10-16)
21
+
22
+ ### Changes
23
+
24
+ * Support Ruby 2.7
25
+
26
+
27
+ ## 0.4.0 (2019-08-22)
28
+
29
+ ### Changes
30
+
31
+ * Support ActiveRecord 6.0.0
32
+
33
+ ### Misc
34
+
35
+ * Improve rspec and CI
36
+
37
+
38
+ ## 0.3.0 (2018-10-05)
39
+
40
+ ### Breaking changes
41
+
42
+ * Change mixin module from `OperatorRecordable` to `OperatorRecordable::Extension`
43
+
3
44
 
4
45
  ## 0.2.0 (2018-09-27)
5
46
 
6
- ### Cbanges
47
+ ### Changes
7
48
 
8
49
  * Add association name options
9
50
  * Modify not to define unnecessary class methods for ActiveRecord model
data/Gemfile CHANGED
File without changes
data/LICENSE.txt CHANGED
File without changes
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # OperatorRecordable
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/operator_recordable.svg)](https://badge.fury.io/rb/operator_recordable)
4
- [![Build Status](https://travis-ci.org/yujideveloper/operator_recordable.svg?branch=master)](https://travis-ci.org/yujideveloper/operator_recordable)
4
+ [![Build](https://github.com/yujideveloper/operator_recordable/workflows/Build/badge.svg)](https://github.com/yujideveloper/operator_recordable/actions?query=workflow%3ABuild)
5
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/aaa0fcd567da9232a847/maintainability)](https://codeclimate.com/github/yujideveloper/operator_recordable/maintainability)
6
6
 
7
7
  OperatorRecordable is a Rails plugin gem that makes your ActiveRecord models to be saved or logically deleted with automatically set `created_by`, `updated_by`, and `deleted_by`.
@@ -60,7 +60,7 @@ OperatorRecordable.config = {
60
60
  | `deleter_association_name` | String | association name of deleter. | `"deleter"` |
61
61
  | `operator_association_options` | Hash | options of operator associations. e.g. `{ optional: true }` | `{}` |
62
62
  | `operator_association_scope` | Proc | The scope of operator associations. e.g. `-> { with_deleted }` | `nil` |
63
- | `store` | Enum | operator store. any value of `:thread_store`, `:request_store` or `current_attributes_store` | `:thread_store` |
63
+ | `store` | Enum | operator store. any value of `:thread_store`, `:request_store` or `:current_attributes_store` | `:thread_store` |
64
64
 
65
65
  #### Include `OperatorRecordable` in your model
66
66
 
@@ -68,7 +68,7 @@ OperatorRecordable.config = {
68
68
  class ApplicationRecord < ActiveRecord::Base
69
69
  self.abstract_class = true
70
70
 
71
- include OperatorRecordable
71
+ include OperatorRecordable::Extension
72
72
  end
73
73
  ```
74
74
 
@@ -120,7 +120,7 @@ require "operator_recordable/store/request_store"
120
120
  #### `:current_attributes_store`
121
121
 
122
122
  This store is implemented by using [`ActiveSupport::CurrentAttributes`](https://api.rubyonrails.org/v5.2.0/classes/ActiveSupport/CurrentAttributes.html).
123
- So, this requires ActivgeSupport 5.2 or later.
123
+ So, this requires ActiveSupport 5.2 or later.
124
124
 
125
125
 
126
126
  ## Development
data/Rakefile CHANGED
File without changes
@@ -1,6 +1,6 @@
1
- # frozen_string_literal: true
1
+ # This file was generated by Appraisal
2
2
 
3
- source "https://rubygems.org/"
3
+ source "https://rubygems.org"
4
4
 
5
5
  gem "activerecord", "~> 5.2.0"
6
6
 
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.2.0"
6
+ gem "request_store"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.0.0"
6
+ gem "sqlite3", "~> 1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.0.0"
6
+ gem "request_store"
7
+ gem "sqlite3", "~> 1.4"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.1.0"
6
+ gem "sqlite3", "~> 1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 6.1.0"
6
+ gem "request_store"
7
+ gem "sqlite3", "~> 1.4"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7.0.0"
6
+ gem "sqlite3", "~> 1.4"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 7.0.0"
6
+ gem "request_store"
7
+ gem "sqlite3", "~> 1.4"
8
+
9
+ gemspec path: "../"
@@ -31,7 +31,7 @@ module OperatorRecordable
31
31
 
32
32
  attr_reader :config
33
33
 
34
- def initialize_config(config)
34
+ def initialize_config(config) # rubocop:disable Metrics/MethodLength
35
35
  {
36
36
  operator_class_name: "Operator",
37
37
  creator_column_name: "created_by",
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "operator_recordable/recorder"
4
+
5
+ module OperatorRecordable
6
+ module Extension
7
+ def self.included(class_or_module)
8
+ class_or_module.extend Recorder.new(OperatorRecordable.config)
9
+ end
10
+ private_class_method :included
11
+ end
12
+ end
@@ -10,10 +10,10 @@ module OperatorRecordable
10
10
 
11
11
  private
12
12
 
13
- def define_activate_method(config)
13
+ def define_activate_method(config) # rubocop:disable Metrics/MethodLength
14
14
  m = self
15
15
 
16
- define_method :record_operator_on do |*actions|
16
+ define_method :record_operator_on do |*actions| # rubocop:disable Metrics/MethodLength
17
17
  c = Configuration::Model.new(actions)
18
18
 
19
19
  if c.record_creator?
@@ -51,8 +51,8 @@ module OperatorRecordable
51
51
  def run_add_association_dsl(type, klass, config)
52
52
  klass.belongs_to config.association_name_for(type).to_sym,
53
53
  config.operator_association_scope,
54
- { foreign_key: config.column_name_for(type),
55
- class_name: config.operator_class_name }.merge(config.operator_association_options)
54
+ **{ foreign_key: config.column_name_for(type),
55
+ class_name: config.operator_class_name }.merge(config.operator_association_options)
56
56
  end
57
57
 
58
58
  def define_creator_instance_methods(klass, config)
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OperatorRecordable
4
- VERSION = "0.2.0"
4
+ VERSION = "1.1.0"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "operator_recordable/version"
4
4
  require "operator_recordable/configuration"
5
- require "operator_recordable/recorder"
5
+ require "operator_recordable/extension"
6
6
 
7
7
  module OperatorRecordable
8
8
  def self.config
@@ -22,11 +22,6 @@ module OperatorRecordable
22
22
  config.store[operator_store_key] = operator
23
23
  end
24
24
 
25
- def self.included(class_or_module)
26
- class_or_module.extend Recorder.new(config)
27
- end
28
- private_class_method :included
29
-
30
25
  def self.operator_store_key
31
26
  :operator_recordable_operator
32
27
  end
@@ -4,17 +4,34 @@ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require "operator_recordable/version"
6
6
 
7
- Gem::Specification.new do |spec|
7
+ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
8
8
  spec.name = "operator_recordable"
9
9
  spec.version = OperatorRecordable::VERSION
10
10
  spec.authors = ["Yuji Hanamura"]
11
11
  spec.email = ["yuji.developer@gmail.com"]
12
12
 
13
- spec.summary = "OperatorRecordable is a Rails plugin to set created_by, updated_by, and deleted_by to ActiveRecord objects."
14
- spec.description = "OperatorRecordable is a Rails plugin that makes your ActiveRecord models to be saved or logically deleted with automatically set created_by, updated_by, and deleted_by. Also it makes creator, updater, deleter belongs_to association if a class has created_by, updated_by, or deleted_by."
13
+ spec.summary = <<~SUMMARY.tr("\n", " ")
14
+ OperatorRecordable is a Rails plugin to set created_by, updated_by, and
15
+ deleted_by to ActiveRecord objects.
16
+ SUMMARY
17
+ spec.description = <<~DESC.tr("\n", " ") # rubocop:disable Layout/ExtraSpacing, Layout/SpaceAroundOperators
18
+ OperatorRecordable is a Rails plugin that makes your ActiveRecord models
19
+ to be saved or logically deleted with automatically set created_by,
20
+ updated_by, and deleted_by. Also it makes creator, updater, deleter
21
+ belongs_to association if a class has created_by, updated_by, or
22
+ deleted_by.
23
+ DESC
15
24
  spec.homepage = "https://github.com/yujideveloper/operator_recordable"
16
25
  spec.license = "MIT"
17
26
 
27
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
28
+
29
+ spec.metadata["homepage_uri"] = spec.homepage
30
+ spec.metadata["source_code_uri"] = spec.homepage
31
+ spec.metadata["changelog_uri"] = "https://github.com/yujideveloper/operator_recordable/tree/master/CHANGELOG.md"
32
+
33
+ spec.metadata["rubygems_mfa_required"] = "true"
34
+
18
35
  # Specify which files should be added to the gem when it is released.
19
36
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
37
  spec.files = Dir.chdir(__dir__) do
@@ -24,11 +41,14 @@ Gem::Specification.new do |spec|
24
41
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
42
  spec.require_paths = ["lib"]
26
43
 
27
- spec.add_dependency "activerecord", "~> 5.0"
28
- spec.add_development_dependency "bundler", "~> 1.16"
44
+ spec.required_ruby_version = ">= 2.5"
45
+
46
+ spec.add_dependency "activerecord", ">= 5.2"
47
+ spec.add_development_dependency "appraisal", ">= 2.3.0"
48
+ spec.add_development_dependency "bundler", ">= 1.16"
29
49
  spec.add_development_dependency "pry", ">= 0.10.0"
30
- spec.add_development_dependency "rake", "~> 10.0"
31
- spec.add_development_dependency "request_store"
50
+ spec.add_development_dependency "rake", ">= 10.0"
32
51
  spec.add_development_dependency "rspec", "~> 3.7"
33
- spec.add_development_dependency "sqlite3", "~> 1.0"
52
+ spec.add_development_dependency "rubocop", ">= 0.78.0"
53
+ spec.add_development_dependency "sqlite3", ">= 1.3.13"
34
54
  end
metadata CHANGED
@@ -1,41 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: operator_recordable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuji Hanamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2022-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '5.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: appraisal
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.3.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - "~>"
45
+ - - ">="
32
46
  - !ruby/object:Gem::Version
33
47
  version: '1.16'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - "~>"
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '1.16'
41
55
  - !ruby/object:Gem::Dependency
@@ -56,71 +70,73 @@ dependencies:
56
70
  name: rake
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - "~>"
73
+ - - ">="
60
74
  - !ruby/object:Gem::Version
61
75
  version: '10.0'
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - "~>"
80
+ - - ">="
67
81
  - !ruby/object:Gem::Version
68
82
  version: '10.0'
69
83
  - !ruby/object:Gem::Dependency
70
- name: request_store
84
+ name: rspec
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: '3.7'
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: '3.7'
83
97
  - !ruby/object:Gem::Dependency
84
- name: rspec
98
+ name: rubocop
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
- - - "~>"
101
+ - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '3.7'
103
+ version: 0.78.0
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
- - - "~>"
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '3.7'
110
+ version: 0.78.0
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: sqlite3
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: '1.0'
117
+ version: 1.3.13
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: '1.0'
111
- description: OperatorRecordable is a Rails plugin that makes your ActiveRecord models
124
+ version: 1.3.13
125
+ description: 'OperatorRecordable is a Rails plugin that makes your ActiveRecord models
112
126
  to be saved or logically deleted with automatically set created_by, updated_by,
113
127
  and deleted_by. Also it makes creator, updater, deleter belongs_to association if
114
- a class has created_by, updated_by, or deleted_by.
128
+ a class has created_by, updated_by, or deleted_by. '
115
129
  email:
116
130
  - yuji.developer@gmail.com
117
131
  executables: []
118
132
  extensions: []
119
133
  extra_rdoc_files: []
120
134
  files:
135
+ - ".github/workflows/ruby.yml"
121
136
  - ".gitignore"
122
137
  - ".rspec"
123
- - ".travis.yml"
138
+ - ".rubocop.yml"
139
+ - Appraisals
124
140
  - CHANGELOG.md
125
141
  - Gemfile
126
142
  - LICENSE.txt
@@ -128,11 +144,17 @@ files:
128
144
  - Rakefile
129
145
  - bin/console
130
146
  - bin/setup
131
- - gemfiles/activerecord_5.0.gemfile
132
- - gemfiles/activerecord_5.1.gemfile
133
147
  - gemfiles/activerecord_5.2.gemfile
148
+ - gemfiles/activerecord_5.2_with_request_store.gemfile
149
+ - gemfiles/activerecord_6.0.gemfile
150
+ - gemfiles/activerecord_6.0_with_request_store.gemfile
151
+ - gemfiles/activerecord_6.1.gemfile
152
+ - gemfiles/activerecord_6.1_with_request_store.gemfile
153
+ - gemfiles/activerecord_7.0.gemfile
154
+ - gemfiles/activerecord_7.0_with_request_store.gemfile
134
155
  - lib/operator_recordable.rb
135
156
  - lib/operator_recordable/configuration.rb
157
+ - lib/operator_recordable/extension.rb
136
158
  - lib/operator_recordable/recorder.rb
137
159
  - lib/operator_recordable/store.rb
138
160
  - lib/operator_recordable/store/current_attributes_store.rb
@@ -143,7 +165,12 @@ files:
143
165
  homepage: https://github.com/yujideveloper/operator_recordable
144
166
  licenses:
145
167
  - MIT
146
- metadata: {}
168
+ metadata:
169
+ allowed_push_host: https://rubygems.org
170
+ homepage_uri: https://github.com/yujideveloper/operator_recordable
171
+ source_code_uri: https://github.com/yujideveloper/operator_recordable
172
+ changelog_uri: https://github.com/yujideveloper/operator_recordable/tree/master/CHANGELOG.md
173
+ rubygems_mfa_required: 'true'
147
174
  post_install_message:
148
175
  rdoc_options: []
149
176
  require_paths:
@@ -152,15 +179,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
179
  requirements:
153
180
  - - ">="
154
181
  - !ruby/object:Gem::Version
155
- version: '0'
182
+ version: '2.5'
156
183
  required_rubygems_version: !ruby/object:Gem::Requirement
157
184
  requirements:
158
185
  - - ">="
159
186
  - !ruby/object:Gem::Version
160
187
  version: '0'
161
188
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.6
189
+ rubygems_version: 3.2.21
164
190
  signing_key:
165
191
  specification_version: 4
166
192
  summary: OperatorRecordable is a Rails plugin to set created_by, updated_by, and deleted_by
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.4.4
7
- - 2.5.1
8
- gemfile:
9
- - gemfiles/activerecord_5.0.gemfile
10
- - gemfiles/activerecord_5.1.gemfile
11
- - gemfiles/activerecord_5.2.gemfile
12
- before_install: gem install bundler -v 1.16.4
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org/"
4
-
5
- gem "activerecord", "~> 5.0.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org/"
4
-
5
- gem "activerecord", "~> 5.1.0"
6
-
7
- gemspec path: "../"