From 8f8f5587e92477c2da89d865fc41ab25c7f0004d Mon Sep 17 00:00:00 2001 From: Anton Rieder Date: Wed, 9 May 2018 13:25:56 +0200 Subject: [PATCH] Change URLs to paper-trail-gem --- .github/CONTRIBUTING.md | 2 +- .github/ISSUE_TEMPLATE.md | 4 +- .rubocop.yml | 2 +- Appraisals | 2 +- CHANGELOG.md | 376 +++++++++--------- README.md | 56 +-- doc/triage.md | 8 +- .../paper_trail/install_generator.rb | 2 +- lib/paper_trail/config.rb | 4 +- lib/paper_trail/record_trail.rb | 10 +- lib/paper_trail/reifiers/has_one.rb | 2 +- lib/paper_trail/serializers/json.rb | 2 +- lib/paper_trail/serializers/yaml.rb | 2 +- paper_trail.gemspec | 2 +- spec/dummy_app/app/versions/joined_version.rb | 2 +- spec/models/person_spec.rb | 2 +- 16 files changed, 239 insertions(+), 239 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index af6e90ed..a4b1b462 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -164,4 +164,4 @@ markdown-toc -i --maxdepth 3 --bullets='-' README.md 1. gem build paper_trail.gemspec 1. gem push paper_trail-5.0.0.gem -[1]: https://github.com/airblade/paper_trail/blob/master/doc/bug_report_template.rb +[1]: https://github.com/paper-trail-gem/paper_trail/blob/master/doc/bug_report_template.rb diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 86620fc3..90a5f4ed 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -5,9 +5,9 @@ Please ask *usage questions* on StackOverflow: https://stackoverflow.com/tags/paper-trail-gem Bug reports must use this template: -https://github.com/airblade/paper_trail/blob/master/doc/bug_report_template.rb +https://github.com/paper-trail-gem/paper_trail/blob/master/doc/bug_report_template.rb For other questions, please see our contributing guide: -https://github.com/airblade/paper_trail/blob/master/.github/CONTRIBUTING.md +https://github.com/paper-trail-gem/paper_trail/blob/master/.github/CONTRIBUTING.md Thanks for your contribution! diff --git a/.rubocop.yml b/.rubocop.yml index 6b46e71f..cd2d2962 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -142,7 +142,7 @@ Style/IfUnlessModifier: # Using `module_function` instead of `extend self` would make the instance # methods in these modules private. That would be a breaking change, so these # modules are excluded. See discussion in: -# - https://github.com/airblade/paper_trail/pull/756 +# - https://github.com/paper-trail-gem/paper_trail/pull/756 # - https://github.com/bbatsov/ruby-style-guide/issues/556 Style/ModuleFunction: Exclude: diff --git a/Appraisals b/Appraisals index e3c78b24..8aab1c30 100644 --- a/Appraisals +++ b/Appraisals @@ -29,7 +29,7 @@ appraise "ar-5.2" do gem "rails-controller-testing" # bundler does not handle rc versions well - # https://github.com/airblade/paper_trail/pull/1067 + # https://github.com/paper-trail-gem/paper_trail/pull/1067 # so we specify activesupport, actionpack, and railties, which we # would not normally do, as you can see with other rails versions above. gem "activesupport", "~> 5.2.0.rc2" diff --git a/CHANGELOG.md b/CHANGELOG.md index 79669b64..c21b8ef1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,10 +25,10 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Added -- [#1076](https://github.com/airblade/paper_trail/issues/1076) +- [#1076](https://github.com/paper-trail-gem/paper_trail/issues/1076) Add `save_with_version`, a replacement for deprecated method `touch_with_version`. Not exactly the same, it's a save, not a touch. -- [#1074](https://github.com/airblade/paper_trail/pull/1074) +- [#1074](https://github.com/paper-trail-gem/paper_trail/pull/1074) `PaperTrail.request do ... end` now returns the value the given block. ### Fixed @@ -39,7 +39,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Breaking Changes, Major -- [#1063](https://github.com/airblade/paper_trail/pull/1063) - `touch` will now +- [#1063](https://github.com/paper-trail-gem/paper_trail/pull/1063) - `touch` will now create a version. This can be configured with the `:on` option. See documentation section 2.a. "Choosing Lifecycle Events To Monitor". - Drop support for ruby 2.2, [whose EoL is the end of March, @@ -60,21 +60,21 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Deprecated -- [#1063](https://github.com/airblade/paper_trail/pull/1063) - +- [#1063](https://github.com/paper-trail-gem/paper_trail/pull/1063) - `paper_trail.touch_with_version` is deprecated in favor of `touch`. -- [#1033](https://github.com/airblade/paper_trail/pull/1033) - Request variables +- [#1033](https://github.com/paper-trail-gem/paper_trail/pull/1033) - Request variables are now set using eg. `PaperTrail.request.whodunnit=` and the old way, `PaperTrail.whodunnit=` is deprecated. ### Added -- [#1067](https://github.com/airblade/paper_trail/pull/1033) - +- [#1067](https://github.com/paper-trail-gem/paper_trail/pull/1033) - Add support to Rails 5.2. -- [#1033](https://github.com/airblade/paper_trail/pull/1033) - +- [#1033](https://github.com/paper-trail-gem/paper_trail/pull/1033) - Set request variables temporarily using a block, eg. `PaperTrail.request(whodunnit: 'Jared') do .. end` -- [#1037](https://github.com/airblade/paper_trail/pull/1037) Add `paper_trail.update_columns` -- [#961](https://github.com/airblade/paper_trail/issues/961) - Instead of +- [#1037](https://github.com/paper-trail-gem/paper_trail/pull/1037) Add `paper_trail.update_columns` +- [#961](https://github.com/paper-trail-gem/paper_trail/issues/961) - Instead of crashing when misconfigured Custom Version Classes are used, an error will be raised earlier, with a much more helpful message. - Failing to set PaperTrail.config.track_associations will no longer produce @@ -82,14 +82,14 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#1051](https://github.com/airblade/paper_trail/issues/1051) - `touch_with_version` +- [#1051](https://github.com/paper-trail-gem/paper_trail/issues/1051) - `touch_with_version` should always create a version, regardles of the `:only` option -- [#1047](https://github.com/airblade/paper_trail/issues/1047) - A rare issue +- [#1047](https://github.com/paper-trail-gem/paper_trail/issues/1047) - A rare issue where `touch_with_version` saved less data than expected, but only when the update callback was not installed, eg. `has_paper_trail(on: [])` -- [#1042](https://github.com/airblade/paper_trail/issues/1042) - A rare issue +- [#1042](https://github.com/paper-trail-gem/paper_trail/issues/1042) - A rare issue with load order when using PT outside of rails -- [#594](https://github.com/airblade/paper_trail/issues/594) - Improved the +- [#594](https://github.com/paper-trail-gem/paper_trail/issues/594) - Improved the error message for a very rare issue in the experimental association tracking feature involving two has_one associations, referencing STI models with the same base class, and the same foreign_key. @@ -106,7 +106,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#1028](https://github.com/airblade/paper_trail/pull/1028) Reifying +- [#1028](https://github.com/paper-trail-gem/paper_trail/pull/1028) Reifying associations will now use `base_class` name instead of class name to reify STI models corrrectly. @@ -122,7 +122,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#1018](https://github.com/airblade/paper_trail/pull/1018) +- [#1018](https://github.com/paper-trail-gem/paper_trail/pull/1018) Serializing postgres arrays ## 8.1.0 (2017-11-30) @@ -133,12 +133,12 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Added -- [#997](https://github.com/airblade/paper_trail/pull/997) +- [#997](https://github.com/paper-trail-gem/paper_trail/pull/997) Deprecate `where_object_changes` when reading YAML from a text column ### Fixed -- [#1009](https://github.com/airblade/paper_trail/pull/1009) +- [#1009](https://github.com/paper-trail-gem/paper_trail/pull/1009) End generated `config/initializers/paper_trail.rb` with newline. ## 8.0.1 (2017-10-25) @@ -153,7 +153,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#1003](https://github.com/airblade/paper_trail/pull/1003) - Warn when PT +- [#1003](https://github.com/paper-trail-gem/paper_trail/pull/1003) - Warn when PT cannot be loaded because rails is not loaded yet. ## 8.0.0 (2017-10-04) @@ -163,7 +163,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). - Drop support for rails 4.0 and 4.1, whose EoL was [2016-06-30](http://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/) - Drop support for ruby 2.1, whose EoL was [2017-04-01](http://bit.ly/2ppWDYa) -- [#803](https://github.com/airblade/paper_trail/issues/803) - +- [#803](https://github.com/paper-trail-gem/paper_trail/issues/803) - where_object_changes no longer supports reading json from a text column ### Added @@ -172,7 +172,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#996](https://github.com/airblade/paper_trail/pull/996) - Incorrect +- [#996](https://github.com/paper-trail-gem/paper_trail/pull/996) - Incorrect item_type in association reification query ## 7.1.3 (2017-09-19) @@ -187,7 +187,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#988](https://github.com/airblade/paper_trail/pull/988) - Fix ActiveRecord +- [#988](https://github.com/paper-trail-gem/paper_trail/pull/988) - Fix ActiveRecord version check in `VersionConcern` for Rails 4.0 ## 7.1.2 (2017-08-30) @@ -202,7 +202,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#985](https://github.com/airblade/paper_trail/pull/985) - Fix RecordInvalid +- [#985](https://github.com/paper-trail-gem/paper_trail/pull/985) - Fix RecordInvalid error on nil item association when belongs_to_required_by_default is enabled. ## 7.1.1 (2017-08-18) @@ -218,7 +218,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). - Stop including unnecessary files in released gem. Reduces .gem file size from 100K to 30K. -- [#984](https://github.com/airblade/paper_trail/pull/984) - Fix NameError +- [#984](https://github.com/paper-trail-gem/paper_trail/pull/984) - Fix NameError suspected to be caused by autoload race condition. ## 7.1.0 (2017-07-09) @@ -229,9 +229,9 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Added -- [#803](https://github.com/airblade/paper_trail/issues/803) +- [#803](https://github.com/paper-trail-gem/paper_trail/issues/803) Deprecate `where_object_changes` when reading json from a text column -- [#976](https://github.com/airblade/paper_trail/pull/976) +- [#976](https://github.com/paper-trail-gem/paper_trail/pull/976) `PaperTrail.whodunnit` accepts a `Proc` ### Fixed @@ -250,7 +250,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#959](https://github.com/airblade/paper_trail/pull/959) - +- [#959](https://github.com/paper-trail-gem/paper_trail/pull/959) - Add migration version (eg. `[5.1]`) to all migration generators. ## 7.0.2 (2017-04-26) @@ -261,12 +261,12 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Added -- [#932](https://github.com/airblade/paper_trail/pull/932) - +- [#932](https://github.com/paper-trail-gem/paper_trail/pull/932) - `PaperTrail.whodunnit` now accepts a block. ### Fixed -- [#956](https://github.com/airblade/paper_trail/pull/956) - +- [#956](https://github.com/paper-trail-gem/paper_trail/pull/956) - Fix ActiveRecord >= 5.1 version check ## 7.0.1 (2017-04-10) @@ -281,7 +281,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#949](https://github.com/airblade/paper_trail/issues/949) - Inherit from the +- [#949](https://github.com/paper-trail-gem/paper_trail/issues/949) - Inherit from the new versioned migration class, e.g. `ActiveRecord::Migration[5.1]` ## 7.0.0 (2017-04-01) @@ -303,13 +303,13 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). ### Fixed -- [#925](https://github.com/airblade/paper_trail/pull/925) - Update RSpec +- [#925](https://github.com/paper-trail-gem/paper_trail/pull/925) - Update RSpec matchers to work with custom version association names -- [#929](https://github.com/airblade/paper_trail/pull/929) - +- [#929](https://github.com/paper-trail-gem/paper_trail/pull/929) - Fix error calling private method in rails 4.0 -- [#938](https://github.com/airblade/paper_trail/pull/938) - Fix bug where +- [#938](https://github.com/paper-trail-gem/paper_trail/pull/938) - Fix bug where non-standard foreign key names broke belongs_to associations -- [#940](https://github.com/airblade/paper_trail/pull/940) - When destroying +- [#940](https://github.com/paper-trail-gem/paper_trail/pull/940) - When destroying versions to stay under version_limit, don't rely on the database to implicitly return the versions in the right order @@ -327,7 +327,7 @@ recommendations of [keepachangelog.com](http://keepachangelog.com/). - `88e513f` - Surprise argument modification bug in `where_object_changes` - `c7efd62` - Column type-detection bug in `where_object_changes` -- [#905](https://github.com/airblade/paper_trail/pull/905) - Only invoke +- [#905](https://github.com/paper-trail-gem/paper_trail/pull/905) - Only invoke `logger.warn` if `logger` instance exists ### Code Quality @@ -358,11 +358,11 @@ name conflict with your methods. ### Breaking Changes -- [#898](https://github.com/airblade/paper_trail/pull/898) - Dropped support +- [#898](https://github.com/paper-trail-gem/paper_trail/pull/898) - Dropped support for rails 3 -- [#864](https://github.com/airblade/paper_trail/pull/864) - The model methods +- [#864](https://github.com/paper-trail-gem/paper_trail/pull/864) - The model methods deprecated in 5.2.0 have been removed. Use `paper_trail.x` instead of `x`. -- [#861](https://github.com/airblade/paper_trail/pull/861) - `timestamp_field=` +- [#861](https://github.com/paper-trail-gem/paper_trail/pull/861) - `timestamp_field=` removed without replacement. It is no longer configurable. The timestamp field in the `versions` table must now be named `created_at`. @@ -372,9 +372,9 @@ name conflict with your methods. ### Added -- [#900](https://github.com/airblade/paper_trail/pull/900/files) - +- [#900](https://github.com/paper-trail-gem/paper_trail/pull/900/files) - Support for rails 5.1 -- [#881](https://github.com/airblade/paper_trail/pull/881) - Add RSpec matcher +- [#881](https://github.com/paper-trail-gem/paper_trail/pull/881) - Add RSpec matcher `have_a_version_with_changes` for easier testing. ### Fixed @@ -397,9 +397,9 @@ name conflict with your methods. ### Fixed -- [#889](https://github.com/airblade/paper_trail/pull/889) - +- [#889](https://github.com/paper-trail-gem/paper_trail/pull/889) - Fix warning message in instances when a version can't be persisted due to validation errors. -- [#868](https://github.com/airblade/paper_trail/pull/868) +- [#868](https://github.com/paper-trail-gem/paper_trail/pull/868) Fix usage of find_by_id when primary key is not id, affecting reifying certain records. @@ -411,9 +411,9 @@ name conflict with your methods. ### Deprecated -- [#863](https://github.com/airblade/paper_trail/pull/863) - +- [#863](https://github.com/paper-trail-gem/paper_trail/pull/863) - PaperTrail.timestamp_field= deprecated without replacement. - See [#861](https://github.com/airblade/paper_trail/pull/861) for discussion. + See [#861](https://github.com/paper-trail-gem/paper_trail/pull/861) for discussion. ### Added @@ -439,9 +439,9 @@ name conflict with your methods. ### Fixed -- [#857](https://github.com/airblade/paper_trail/pull/857) - +- [#857](https://github.com/paper-trail-gem/paper_trail/pull/857) - Fix deserialization of enums written by PT 4. -- [#798](https://github.com/airblade/paper_trail/issues/798) - +- [#798](https://github.com/paper-trail-gem/paper_trail/issues/798) - Fix a rare bug with serialization of enums in rails 4.2 only when using `touch_with_version`. @@ -453,7 +453,7 @@ name conflict with your methods. ### Deprecated -- [#719](https://github.com/airblade/paper_trail/pull/719) - +- [#719](https://github.com/paper-trail-gem/paper_trail/pull/719) - The majority of model methods. Use paper_trail.x instead of x. Why? Your models are a crowded namespace, and we want to get out of your way! @@ -477,9 +477,9 @@ name conflict with your methods. ### Fixed -- [#813](https://github.com/airblade/paper_trail/pull/813) - +- [#813](https://github.com/paper-trail-gem/paper_trail/pull/813) - Warning for paper_trail_on_destroy(:after) for pre-releases of AR 5 -- [#651](https://github.com/airblade/paper_trail/issues/651) - +- [#651](https://github.com/paper-trail-gem/paper_trail/issues/651) - Bug with installing PT on MySQL <= 5.6 ## 5.1.0 (2016-05-20) @@ -490,14 +490,14 @@ name conflict with your methods. ### Added -- [#809](https://github.com/airblade/paper_trail/pull/809) - +- [#809](https://github.com/paper-trail-gem/paper_trail/pull/809) - Print warning if version cannot be saved. ### Fixed -- [#812](https://github.com/airblade/paper_trail/pull/812) - +- [#812](https://github.com/paper-trail-gem/paper_trail/pull/812) - Issue with saving HABTM associated objects using accepts_nested_attributes_for -- [#811](https://github.com/airblade/paper_trail/pull/811) - +- [#811](https://github.com/paper-trail-gem/paper_trail/pull/811) - Avoid unnecessary query in #record_destroy - Improvements to documentation @@ -513,9 +513,9 @@ name conflict with your methods. ### Fixed -- [#791](https://github.com/airblade/paper_trail/issues/791) - +- [#791](https://github.com/paper-trail-gem/paper_trail/issues/791) - A rare issue in applications that override `warn`. -- [#789](https://github.com/airblade/paper_trail/issues/789) - +- [#789](https://github.com/paper-trail-gem/paper_trail/issues/789) - A potentially common issue, in applications with initializers that use versioned models. @@ -523,56 +523,56 @@ name conflict with your methods. ### Breaking Changes -- [#758](https://github.com/airblade/paper_trail/pull/758) - +- [#758](https://github.com/paper-trail-gem/paper_trail/pull/758) - `PaperTrail.config.track_associations` getter method removed, use `track_associations?` instead. -- [#740](https://github.com/airblade/paper_trail/issues/740) - +- [#740](https://github.com/paper-trail-gem/paper_trail/issues/740) - `PaperTrail.config.track_associations?` now defaults to false -- [#723](https://github.com/airblade/paper_trail/pull/723) - +- [#723](https://github.com/paper-trail-gem/paper_trail/pull/723) - `PaperTrail.enabled=` now affects all threads -- [#556](https://github.com/airblade/paper_trail/pull/556) / - [#301](https://github.com/airblade/paper_trail/issues/301) - +- [#556](https://github.com/paper-trail-gem/paper_trail/pull/556) / + [#301](https://github.com/paper-trail-gem/paper_trail/issues/301) - If you are tracking who is responsible for changes with `whodunnit`, be aware that PaperTrail no longer adds the `set_paper_trail_whodunnit` before_action for you. Please add this before_action to your ApplicationController to continue recording whodunnit. See the readme for an example. -- [#683](https://github.com/airblade/paper_trail/pull/683) / - [#682](https://github.com/airblade/paper_trail/issues/682) - +- [#683](https://github.com/paper-trail-gem/paper_trail/pull/683) / + [#682](https://github.com/paper-trail-gem/paper_trail/issues/682) - Destroy callback default changed to :before to accommodate ActiveRecord 5 option `belongs_to_required_by_default` and new Rails 5 default. ### Added -- [#771](https://github.com/airblade/paper_trail/pull/771) - +- [#771](https://github.com/paper-trail-gem/paper_trail/pull/771) - Added support for has_and_belongs_to_many associations -- [#741](https://github.com/airblade/paper_trail/issues/741) / - [#681](https://github.com/airblade/paper_trail/pull/681) +- [#741](https://github.com/paper-trail-gem/paper_trail/issues/741) / + [#681](https://github.com/paper-trail-gem/paper_trail/pull/681) MySQL unicode support in migration generator -- [#689](https://github.com/airblade/paper_trail/pull/689) - +- [#689](https://github.com/paper-trail-gem/paper_trail/pull/689) - Rails 5 compatibility - Added a rails config option: `config.paper_trail.enabled` -- [#503](https://github.com/airblade/paper_trail/pull/730) - +- [#503](https://github.com/paper-trail-gem/paper_trail/pull/730) - Support for reifying belongs_to associations. ### Fixed -- [#777](https://github.com/airblade/paper_trail/issues/777) - +- [#777](https://github.com/paper-trail-gem/paper_trail/issues/777) - Support HMT associations with `:source` option. -- [#738](https://github.com/airblade/paper_trail/issues/738) - +- [#738](https://github.com/paper-trail-gem/paper_trail/issues/738) - Rare bug where a non-versioned STI parent caused `changeset` to return an empty hash. -- [#731](https://github.com/airblade/paper_trail/pull/731) - +- [#731](https://github.com/paper-trail-gem/paper_trail/pull/731) - Map enums to database values before storing in `object_changes` column. -- [#715](https://github.com/airblade/paper_trail/issues/715) - +- [#715](https://github.com/paper-trail-gem/paper_trail/issues/715) - Optimize post-rollback association reset. -- [#701](https://github.com/airblade/paper_trail/pull/701) / - [#699](https://github.com/airblade/paper_trail/issues/699) - +- [#701](https://github.com/paper-trail-gem/paper_trail/pull/701) / + [#699](https://github.com/paper-trail-gem/paper_trail/issues/699) - Cleaning old versions explicitly preserves the most recent versions instead of relying on database result ordering. -- [#635](https://github.com/airblade/paper_trail/issues/635) - +- [#635](https://github.com/paper-trail-gem/paper_trail/issues/635) - A bug where it was not possible to disable PT when using a multi-threaded webserver. -- [#584](https://github.com/airblade/paper_trail/issues/584) - +- [#584](https://github.com/paper-trail-gem/paper_trail/issues/584) - Fixed deprecation warning for Active Record after_callback / after_commit ## 4.2.0 (2016-05-31) @@ -583,7 +583,7 @@ name conflict with your methods. ### Added -- [#808](https://github.com/airblade/paper_trail/pull/808) - +- [#808](https://github.com/paper-trail-gem/paper_trail/pull/808) - Warn when destroy callback is set to :after with ActiveRecord 5 option `belongs_to_required_by_default` set to `true`. @@ -595,7 +595,7 @@ name conflict with your methods. ### Known Issues -- Version changesets now store ENUM values incorrectly (as nulls). Previously the values were stored as strings. This only affects Rails 4, not Rails 5. See [#926](https://github.com/airblade/paper_trail/pull/926) +- Version changesets now store ENUM values incorrectly (as nulls). Previously the values were stored as strings. This only affects Rails 4, not Rails 5. See [#926](https://github.com/paper-trail-gem/paper_trail/pull/926) ### Breaking Changes @@ -604,9 +604,9 @@ name conflict with your methods. ### Added - A way to control the order of AR callbacks. - [#614](https://github.com/airblade/paper_trail/pull/614) + [#614](https://github.com/paper-trail-gem/paper_trail/pull/614) - Added `unversioned_attributes` option to `reify`. - [#579](https://github.com/airblade/paper_trail/pull/579) + [#579](https://github.com/paper-trail-gem/paper_trail/pull/579) ### Fixed @@ -624,8 +624,8 @@ name conflict with your methods. ### Fixed -- [#696](https://github.com/airblade/paper_trail/issues/696) / - [#697](https://github.com/airblade/paper_trail/pull/697) +- [#696](https://github.com/paper-trail-gem/paper_trail/issues/696) / + [#697](https://github.com/paper-trail-gem/paper_trail/pull/697) Bind JSON query parameters in `where_object` and `where_object_changes`. ## 4.0.1 (2015-12-14) @@ -640,10 +640,10 @@ name conflict with your methods. ### Fixed -- [#636](https://github.com/airblade/paper_trail/issues/636) - +- [#636](https://github.com/paper-trail-gem/paper_trail/issues/636) - Should compile assets without a db connection -- [#589](https://github.com/airblade/paper_trail/pull/589) / - [#588](https://github.com/airblade/paper_trail/issues/588) - +- [#589](https://github.com/paper-trail-gem/paper_trail/pull/589) / + [#588](https://github.com/paper-trail-gem/paper_trail/issues/588) - Fixes timestamp for "create" versions ## 4.0.0 (2015-07-30) @@ -657,23 +657,23 @@ candidates. - Using a Rails initializer to reopen PaperTrail::Version or otherwise extend PaperTrail is no longer recommended. An alternative is described in the - readme. See https://github.com/airblade/paper_trail/pull/557 and - https://github.com/airblade/paper_trail/pull/492. + readme. See https://github.com/paper-trail-gem/paper_trail/pull/557 and + https://github.com/paper-trail-gem/paper_trail/pull/492. - If you depend on the `RSpec` or `Cucumber` helpers, you must - [require them in your test helper](https://github.com/airblade/paper_trail#testing). -- [#566](https://github.com/airblade/paper_trail/pull/566) - Removed deprecated + [require them in your test helper](https://github.com/paper-trail-gem/paper_trail#testing). +- [#566](https://github.com/paper-trail-gem/paper_trail/pull/566) - Removed deprecated methods `paper_trail_on` and `paper_trail_off`. Use `paper_trail_on!` and `paper_trail_off!` instead. -- [#458](https://github.com/airblade/paper_trail/pull/458) - Version metadata +- [#458](https://github.com/paper-trail-gem/paper_trail/pull/458) - Version metadata (the `:meta` option) from AR attributes for `create` events will now save the current value instead of `nil`. -- [#391](https://github.com/airblade/paper_trail/issues/391) - `object_changes` +- [#391](https://github.com/paper-trail-gem/paper_trail/issues/391) - `object_changes` value should dump to `YAML` as a normal `Hash` instead of an `ActiveSupport::HashWithIndifferentAccess`. -- [#375](https://github.com/airblade/paper_trail/pull/375) / - [#374](https://github.com/airblade/paper_trail/issues/374) / - [#354](https://github.com/airblade/paper_trail/issues/354) / - [#131](https://github.com/airblade/paper_trail/issues/131) - +- [#375](https://github.com/paper-trail-gem/paper_trail/pull/375) / + [#374](https://github.com/paper-trail-gem/paper_trail/issues/374) / + [#354](https://github.com/paper-trail-gem/paper_trail/issues/354) / + [#131](https://github.com/paper-trail-gem/paper_trail/issues/131) - Versions are now saved with an `after_` callback, instead of a `before_` callback. This ensures that the timestamp field for a version matches the corresponding timestamp in the model. @@ -683,92 +683,92 @@ candidates. ### Added -- [#525](https://github.com/airblade/paper_trail/issues/525) / - [#512](https://github.com/airblade/paper_trail/pull/512) - +- [#525](https://github.com/paper-trail-gem/paper_trail/issues/525) / + [#512](https://github.com/paper-trail-gem/paper_trail/pull/512) - Support for virtual accessors and redefined setter and getter methods. -- [#518](https://github.com/airblade/paper_trail/pull/518) - Support for +- [#518](https://github.com/paper-trail-gem/paper_trail/pull/518) - Support for querying against PostgreSQL's [`JSON` and `JSONB` column types](http://www.postgresql.org/docs/9.4/static/datatype-json.html) via `PaperTrail::VersionConcern#where_object` and `PaperTrail::VersionConcern#where_object_changes` -- [#507](https://github.com/airblade/paper_trail/pull/507) - +- [#507](https://github.com/paper-trail-gem/paper_trail/pull/507) - New option: `:save_changes` controls whether or not to save changes to the `object_changes` column (if it exists). -- [#500](https://github.com/airblade/paper_trail/pull/500) - Support for +- [#500](https://github.com/paper-trail-gem/paper_trail/pull/500) - Support for passing an empty array to the `on` option (`on: []`) to disable all automatic versioning. -- [#494](https://github.com/airblade/paper_trail/issues/494) - The install +- [#494](https://github.com/paper-trail-gem/paper_trail/issues/494) - The install generator will warn the user if the migration they are attempting to generate already exists. -- [#484](https://github.com/airblade/paper_trail/pull/484) - Support for +- [#484](https://github.com/paper-trail-gem/paper_trail/pull/484) - Support for [PostgreSQL's `JSONB` Type](http://www.postgresql.org/docs/9.4/static/datatype-json.html) for storing `object` and `object_changes`. -- [#439](https://github.com/airblade/paper_trail/pull/439) / - [#12](https://github.com/airblade/paper_trail/issues/12) - +- [#439](https://github.com/paper-trail-gem/paper_trail/pull/439) / + [#12](https://github.com/paper-trail-gem/paper_trail/issues/12) - Support for versioning associations (has many, has one, etc.) one level deep. -- [#420](https://github.com/airblade/paper_trail/issues/420) - Add +- [#420](https://github.com/paper-trail-gem/paper_trail/issues/420) - Add `VersionConcern#where_object_changes` instance method; acts as a helper for querying against the `object_changes` column in versions table. -- [#416](https://github.com/airblade/paper_trail/issues/416) - Added a +- [#416](https://github.com/paper-trail-gem/paper_trail/issues/416) - Added a `config` option for enabling/disabling utilization of `serialized_attributes` for `ActiveRecord`, necessary because `serialized_attributes` has been deprecated in `ActiveRecord` version `4.2` and will be removed in version `5.0` -- [#399](https://github.com/airblade/paper_trail/pull/399) - Add `:dup` +- [#399](https://github.com/paper-trail-gem/paper_trail/pull/399) - Add `:dup` argument for options hash to `reify` which forces a new model instance. -- [#394](https://github.com/airblade/paper_trail/pull/394) - Add RSpec matcher +- [#394](https://github.com/paper-trail-gem/paper_trail/pull/394) - Add RSpec matcher `have_a_version_with` for easier testing. -- [#347](https://github.com/airblade/paper_trail/pull/347) - Autoload +- [#347](https://github.com/paper-trail-gem/paper_trail/pull/347) - Autoload `ActiveRecord` models in via a `Rails::Engine` when the gem is used with `Rails`. ### Fixed -- [#563](https://github.com/airblade/paper_trail/pull/563) - Fixed a bug in +- [#563](https://github.com/paper-trail-gem/paper_trail/pull/563) - Fixed a bug in `touch_with_version` so that it will still create a version even when the `on` option is, e.g. `[:create]`. -- [#541](https://github.com/airblade/paper_trail/pull/541) - +- [#541](https://github.com/paper-trail-gem/paper_trail/pull/541) - `PaperTrail.config.enabled` should be Thread Safe -- [#451](https://github.com/airblade/paper_trail/issues/451) - Fix `reify` +- [#451](https://github.com/paper-trail-gem/paper_trail/issues/451) - Fix `reify` method in context of model where the base class has a default scope, and the live instance is not scoped within that default scope. -- [#440](https://github.com/airblade/paper_trail/pull/440) - `versions` +- [#440](https://github.com/paper-trail-gem/paper_trail/pull/440) - `versions` association should clear/reload after a transaction rollback. -- [#438](https://github.com/airblade/paper_trail/issues/438) - +- [#438](https://github.com/paper-trail-gem/paper_trail/issues/438) - `ModelKlass.paper_trail_enabled_for_model?` should return `false` if `has_paper_trail` has not been declared on the class. -- [#404](https://github.com/airblade/paper_trail/issues/404) / - [#428](https://github.com/airblade/paper_trail/issues/428) - +- [#404](https://github.com/paper-trail-gem/paper_trail/issues/404) / + [#428](https://github.com/paper-trail-gem/paper_trail/issues/428) - `model_instance.dup` does not need to be invoked when examining what the instance looked like before changes were persisted, which avoids issues if a 3rd party has overriden the `dup` behavior. Also fixes errors occuring when a user attempts to update the inheritance column on an STI model instance in `ActiveRecord` 4.1.x -- [#427](https://github.com/airblade/paper_trail/pull/427) - Fix `reify` +- [#427](https://github.com/paper-trail-gem/paper_trail/pull/427) - Fix `reify` method in context of model where a column has been removed. -- [#414](https://github.com/airblade/paper_trail/issues/414) - Fix +- [#414](https://github.com/paper-trail-gem/paper_trail/issues/414) - Fix functionality `ignore` argument to `has_paper_trail` in `ActiveRecord` 4. -- [#413](https://github.com/airblade/paper_trail/issues/413) - Utilize +- [#413](https://github.com/paper-trail-gem/paper_trail/issues/413) - Utilize [RequestStore](https://github.com/steveklabnik/request_store) to ensure that the `PaperTrail.whodunnit` is set in a thread safe manner within Rails and Sinatra. -- [#381](https://github.com/airblade/paper_trail/issues/381) - Fix `irb` +- [#381](https://github.com/paper-trail-gem/paper_trail/issues/381) - Fix `irb` warning: `can't alias context from irb_context`. `Rspec` and `Cucumber` helpers should not be loaded by default, regardless of whether those libraries are loaded. -- [#248](https://github.com/airblade/paper_trail/issues/248) - In MySQL, to +- [#248](https://github.com/paper-trail-gem/paper_trail/issues/248) - In MySQL, to prevent truncation, generated migrations now use `longtext` instead of `text`. - Methods handling serialized attributes should fallback to the currently set Serializer instead of always falling back to `PaperTrail::Serializers::YAML`. ### Deprecated -- [#479](https://github.com/airblade/paper_trail/issues/479) - Deprecated +- [#479](https://github.com/paper-trail-gem/paper_trail/issues/479) - Deprecated `originator` method, use `paper_trail_originator`. ## 3.0.9 - - [#479](https://github.com/airblade/paper_trail/issues/479) - Deprecated + - [#479](https://github.com/paper-trail-gem/paper_trail/issues/479) - Deprecated `originator` method in favor of `paper_trail_originator` Deprecation warning informs users that the `originator` of the methods will be removed in version `4.0`. (Backported from v4) @@ -778,53 +778,53 @@ candidates. ## 3.0.8 - - [#525](https://github.com/airblade/paper_trail/issues/525) / [#512](https://github.com/airblade/paper_trail/pull/512) - + - [#525](https://github.com/paper-trail-gem/paper_trail/issues/525) / [#512](https://github.com/paper-trail-gem/paper_trail/pull/512) - Support for virtual accessors and redefined setter and getter methods. ## 3.0.7 - - [#404](https://github.com/airblade/paper_trail/issues/404) / [#428](https://github.com/airblade/paper_trail/issues/428) - + - [#404](https://github.com/paper-trail-gem/paper_trail/issues/404) / [#428](https://github.com/paper-trail-gem/paper_trail/issues/428) - Fix errors occuring when a user attempts to update the inheritance column on an STI model instance in `ActiveRecord` 4.1.x ## 3.0.6 - - [#414](https://github.com/airblade/paper_trail/issues/414) - Backport fix for `ignore` argument to `has_paper_trail` in + - [#414](https://github.com/paper-trail-gem/paper_trail/issues/414) - Backport fix for `ignore` argument to `has_paper_trail` in `ActiveRecord` 4. ## 3.0.5 - - [#401](https://github.com/airblade/paper_trail/issues/401) / [#406](https://github.com/airblade/paper_trail/issues/406) - + - [#401](https://github.com/paper-trail-gem/paper_trail/issues/401) / [#406](https://github.com/paper-trail-gem/paper_trail/issues/406) - `PaperTrail::Version` class is not loaded via a `Rails::Engine`, even when the gem is used within Rails. This feature has will be re-introduced in version `4.0`. - - [#398](https://github.com/airblade/paper_trail/pull/398) - Only require the `RSpec` helper if `RSpec::Core` is required. + - [#398](https://github.com/paper-trail-gem/paper_trail/pull/398) - Only require the `RSpec` helper if `RSpec::Core` is required. ## 3.0.3 *This version was yanked from RubyGems and has been replaced by version `3.0.5`, which is almost identical, but does not eager load in the `PaperTrail::Version` class through a `Rails::Engine` when the gem is used on Rails since it was causing issues for some users.* - - [#386](https://github.com/airblade/paper_trail/issues/386) - Fix eager loading of `versions` association with custom class name + - [#386](https://github.com/paper-trail-gem/paper_trail/issues/386) - Fix eager loading of `versions` association with custom class name in `ActiveRecord` 4.1. - - [#384](https://github.com/airblade/paper_trail/issues/384) - Fix `VersionConcern#originator` instance method. - - [#383](https://github.com/airblade/paper_trail/pull/383) - Make gem compatible with `ActiveRecord::Enum` (available in `ActiveRecord` 4.1+). - - [#380](https://github.com/airblade/paper_trail/pull/380) / [#377](https://github.com/airblade/paper_trail/issues/377) - + - [#384](https://github.com/paper-trail-gem/paper_trail/issues/384) - Fix `VersionConcern#originator` instance method. + - [#383](https://github.com/paper-trail-gem/paper_trail/pull/383) - Make gem compatible with `ActiveRecord::Enum` (available in `ActiveRecord` 4.1+). + - [#380](https://github.com/paper-trail-gem/paper_trail/pull/380) / [#377](https://github.com/paper-trail-gem/paper_trail/issues/377) - Add `VersionConcern#where_object` instance method; acts as a helper for querying against the `object` column in versions table. - - [#373](https://github.com/airblade/paper_trail/pull/373) - Fix default sort order for the `versions` association in `ActiveRecord` 4.1. - - [#372](https://github.com/airblade/paper_trail/pull/372) - Use [Arel](https://github.com/rails/arel) for SQL construction. - - [#365](https://github.com/airblade/paper_trail/issues/365) - `VersionConcern#version_at` should return `nil` when receiving a timestamp + - [#373](https://github.com/paper-trail-gem/paper_trail/pull/373) - Fix default sort order for the `versions` association in `ActiveRecord` 4.1. + - [#372](https://github.com/paper-trail-gem/paper_trail/pull/372) - Use [Arel](https://github.com/rails/arel) for SQL construction. + - [#365](https://github.com/paper-trail-gem/paper_trail/issues/365) - `VersionConcern#version_at` should return `nil` when receiving a timestamp that occured after the object was destroyed. - Expand `PaperTrail::VERSION` into a module, mimicking the form used by Rails to give it some additional modularity & versatility. - Fixed `VersionConcern#index` instance method so that it conforms to using the primary key for ordering when possible. ## 3.0.2 - - [#357](https://github.com/airblade/paper_trail/issues/357) - If a `Version` instance is reified and then persisted at that state, + - [#357](https://github.com/paper-trail-gem/paper_trail/issues/357) - If a `Version` instance is reified and then persisted at that state, it's timestamp attributes for update should still get `touch`ed. - - [#351](https://github.com/airblade/paper_trail/pull/351) / [#352](https://github.com/airblade/paper_trail/pull/352) - + - [#351](https://github.com/paper-trail-gem/paper_trail/pull/351) / [#352](https://github.com/paper-trail-gem/paper_trail/pull/352) - `PaperTrail::Rails::Controller` should hook into all controller types, and should not get loaded unless `ActionController` is. - - [#346](https://github.com/airblade/paper_trail/pull/346) - `user_for_paper_trail` method should accommodate different types + - [#346](https://github.com/paper-trail-gem/paper_trail/pull/346) - `user_for_paper_trail` method should accommodate different types for return values from `current_user` method. - - [#344](https://github.com/airblade/paper_trail/pull/344) - Gem is now tested against `MySQL` and `PostgreSQL` in addition to `SQLite`. - - [#317](https://github.com/airblade/paper_trail/issues/317) / [#314](https://github.com/airblade/paper_trail/issues/314) - + - [#344](https://github.com/paper-trail-gem/paper_trail/pull/344) - Gem is now tested against `MySQL` and `PostgreSQL` in addition to `SQLite`. + - [#317](https://github.com/paper-trail-gem/paper_trail/issues/317) / [#314](https://github.com/paper-trail-gem/paper_trail/issues/314) - `versions` should default to ordering via the primary key if it is an integer to avoid timestamp comparison issues. - `PaperTrail::Cleaner.clean_versions!` should group versions by `PaperTrail.timestamp_field` when deciding which ones to keep / destroy, instead of always grouping by the `created_at` field. @@ -836,19 +836,19 @@ in the `PaperTrail::Version` class through a `Rails::Engine` when the gem is use ## 3.0.1 - - [#340](https://github.com/airblade/paper_trail/issues/340) - Prevent potential error encountered when using the `InstallGenerator` + - [#340](https://github.com/paper-trail-gem/paper_trail/issues/340) - Prevent potential error encountered when using the `InstallGenerator` with Rails `4.1.0.rc1`. - - [#334](https://github.com/airblade/paper_trail/pull/334) - Add small-scope `whodunnit` method to `PaperTrail::Model::InstanceMethods`. - - [#329](https://github.com/airblade/paper_trail/issues/329) - Add `touch_with_version` method to `PaperTrail::Model::InstanceMethods`, + - [#334](https://github.com/paper-trail-gem/paper_trail/pull/334) - Add small-scope `whodunnit` method to `PaperTrail::Model::InstanceMethods`. + - [#329](https://github.com/paper-trail-gem/paper_trail/issues/329) - Add `touch_with_version` method to `PaperTrail::Model::InstanceMethods`, to allow for generating a version while `touch`ing a model. - - [#328](https://github.com/airblade/paper_trail/pull/328) / [#326](https://github.com/airblade/paper_trail/issues/326) / - [#307](https://github.com/airblade/paper_trail/issues/307) - `Model.paper_trail_enabled_for_model?` and + - [#328](https://github.com/paper-trail-gem/paper_trail/pull/328) / [#326](https://github.com/paper-trail-gem/paper_trail/issues/326) / + [#307](https://github.com/paper-trail-gem/paper_trail/issues/307) - `Model.paper_trail_enabled_for_model?` and `model_instance.without_versioning` is now thread-safe. - - [#316](https://github.com/airblade/paper_trail/issues/316) - `user_for_paper_trail` should default to `current_user.try(:id)` + - [#316](https://github.com/paper-trail-gem/paper_trail/issues/316) - `user_for_paper_trail` should default to `current_user.try(:id)` instead of `current_user` (if `current_user` is defined). - - [#313](https://github.com/airblade/paper_trail/pull/313) - Make the `Rails::Controller` helper compatible with + - [#313](https://github.com/paper-trail-gem/paper_trail/pull/313) - Make the `Rails::Controller` helper compatible with `ActionController::API` for compatibility with the [`rails-api`](https://github.com/rails-api/rails-api) gem. - - [#312](https://github.com/airblade/paper_trail/issues/312) - Fix RSpec `with_versioning` class level helper method. + - [#312](https://github.com/paper-trail-gem/paper_trail/issues/312) - Fix RSpec `with_versioning` class level helper method. - `model_instance.without_versioning` now yields the `model_instance`, enabling syntax like this: `model_instance.without_versioning { |obj| obj.update_attributes(:name => 'value') }`. - Deprecated `Model.paper_trail_on` and `Model.paper_trail_off` in favor of bang versions of the methods. @@ -856,88 +856,88 @@ in the `PaperTrail::Version` class through a `Rails::Engine` when the gem is use ## 3.0.0 - - [#305](https://github.com/airblade/paper_trail/pull/305) - `PaperTrail::VERSION` should be loaded at runtime. - - [#295](https://github.com/airblade/paper_trail/issues/295) - Explicitly specify table name for version class when + - [#305](https://github.com/paper-trail-gem/paper_trail/pull/305) - `PaperTrail::VERSION` should be loaded at runtime. + - [#295](https://github.com/paper-trail-gem/paper_trail/issues/295) - Explicitly specify table name for version class when querying attributes. Prevents `AmbiguousColumn` errors on certain `JOIN` statements. - - [#289](https://github.com/airblade/paper_trail/pull/289) - Use `ActiveSupport::Concern` for implementation of base functionality on + - [#289](https://github.com/paper-trail-gem/paper_trail/pull/289) - Use `ActiveSupport::Concern` for implementation of base functionality on `PaperTrail::Version` class. Increases flexibility and makes it easier to use custom version classes with multiple `ActiveRecord` connections. - - [#288](https://github.com/airblade/paper_trail/issues/288) - Change all scope declarations to class methods on the `PaperTrail::Version` + - [#288](https://github.com/paper-trail-gem/paper_trail/issues/288) - Change all scope declarations to class methods on the `PaperTrail::Version` class. Fixes usability when `PaperTrail::Version.abstract_class? == true`. - - [#287](https://github.com/airblade/paper_trail/issues/287) - Support for + - [#287](https://github.com/paper-trail-gem/paper_trail/issues/287) - Support for [PostgreSQL's JSON Type](http://www.postgresql.org/docs/9.2/static/datatype-json.html) for storing `object` and `object_changes`. - - [#281](https://github.com/airblade/paper_trail/issues/281) - `Rails::Controller` helper will return `false` for the + - [#281](https://github.com/paper-trail-gem/paper_trail/issues/281) - `Rails::Controller` helper will return `false` for the `paper_trail_enabled_for_controller` method if `PaperTrail.enabled? == false`. - - [#280](https://github.com/airblade/paper_trail/pull/280) - Don't track virtual timestamp attributes. - - [#278](https://github.com/airblade/paper_trail/issues/278) / [#272](https://github.com/airblade/paper_trail/issues/272) - + - [#280](https://github.com/paper-trail-gem/paper_trail/pull/280) - Don't track virtual timestamp attributes. + - [#278](https://github.com/paper-trail-gem/paper_trail/issues/278) / [#272](https://github.com/paper-trail-gem/paper_trail/issues/272) - Make RSpec and Cucumber helpers usable with [Spork](https://github.com/sporkrb/spork) and [Zeus](https://github.com/burke/zeus). - - [#273](https://github.com/airblade/paper_trail/pull/273) - Make the `only` and `ignore` options accept `Hash` arguments; + - [#273](https://github.com/paper-trail-gem/paper_trail/pull/273) - Make the `only` and `ignore` options accept `Hash` arguments; allows for conditional tracking. - - [#264](https://github.com/airblade/paper_trail/pull/264) - Allow unwrapped symbol to be passed in to the `on` option. - - [#224](https://github.com/airblade/paper_trail/issues/224)/[#236](https://github.com/airblade/paper_trail/pull/236) - + - [#264](https://github.com/paper-trail-gem/paper_trail/pull/264) - Allow unwrapped symbol to be passed in to the `on` option. + - [#224](https://github.com/paper-trail-gem/paper_trail/issues/224)/[#236](https://github.com/paper-trail-gem/paper_trail/pull/236) - Fixed compatibility with [ActsAsTaggableOn](https://github.com/mbleigh/acts-as-taggable-on). - - [#235](https://github.com/airblade/paper_trail/pull/235) - Dropped unnecessary secondary sort on `versions` association. - - [#216](https://github.com/airblade/paper_trail/pull/216) - Added helper & extension for [RSpec](https://github.com/rspec/rspec), + - [#235](https://github.com/paper-trail-gem/paper_trail/pull/235) - Dropped unnecessary secondary sort on `versions` association. + - [#216](https://github.com/paper-trail-gem/paper_trail/pull/216) - Added helper & extension for [RSpec](https://github.com/rspec/rspec), and helper for [Cucumber](http://cukes.info). - - [#212](https://github.com/airblade/paper_trail/pull/212) - Added `PaperTrail::Cleaner` module, useful for discarding draft versions. - - [#207](https://github.com/airblade/paper_trail/issues/207) - Versions for `'create'` events are now created with `create!` instead of + - [#212](https://github.com/paper-trail-gem/paper_trail/pull/212) - Added `PaperTrail::Cleaner` module, useful for discarding draft versions. + - [#207](https://github.com/paper-trail-gem/paper_trail/issues/207) - Versions for `'create'` events are now created with `create!` instead of `create` so that an exception gets raised if it is appropriate to do so. - - [#199](https://github.com/airblade/paper_trail/pull/199) - Rails 4 compatibility. - - [#165](https://github.com/airblade/paper_trail/pull/165) - Namespaced the `Version` class under the `PaperTrail` module. - - [#119](https://github.com/airblade/paper_trail/issues/119) - Support for [Sinatra](http://www.sinatrarb.com/); decoupled gem from `Rails`. + - [#199](https://github.com/paper-trail-gem/paper_trail/pull/199) - Rails 4 compatibility. + - [#165](https://github.com/paper-trail-gem/paper_trail/pull/165) - Namespaced the `Version` class under the `PaperTrail` module. + - [#119](https://github.com/paper-trail-gem/paper_trail/issues/119) - Support for [Sinatra](http://www.sinatrarb.com/); decoupled gem from `Rails`. - Renamed the default serializers from `PaperTrail::Serializers::Yaml` and `PaperTrail::Serializers::Json` to the capitalized forms, `PaperTrail::Serializers::YAML` and `PaperTrail::Serializers::JSON`. - Removed deprecated `set_whodunnit` method from Rails Controller scope. ## 2.7.2 - - [#228](https://github.com/airblade/paper_trail/issues/228) - Refactored default `user_for_paper_trail` method implementation + - [#228](https://github.com/paper-trail-gem/paper_trail/issues/228) - Refactored default `user_for_paper_trail` method implementation so that `current_user` only gets invoked if it is defined. - - [#219](https://github.com/airblade/paper_trail/pull/219) - Fixed issue where attributes stored with `nil` value might not get + - [#219](https://github.com/paper-trail-gem/paper_trail/pull/219) - Fixed issue where attributes stored with `nil` value might not get reified properly depending on the way the serializer worked. - - [#213](https://github.com/airblade/paper_trail/issues/213) - Added a `version_limit` option to the `PaperTrail::Config` options + - [#213](https://github.com/paper-trail-gem/paper_trail/issues/213) - Added a `version_limit` option to the `PaperTrail::Config` options that can be used to restrict the number of versions PaperTrail will store per object instance. - - [#187](https://github.com/airblade/paper_trail/pull/187) - Confirmed JRuby support. - - [#174](https://github.com/airblade/paper_trail/pull/174) - The `event` field on the versions table can now be customized. + - [#187](https://github.com/paper-trail-gem/paper_trail/pull/187) - Confirmed JRuby support. + - [#174](https://github.com/paper-trail-gem/paper_trail/pull/174) - The `event` field on the versions table can now be customized. ## 2.7.1 - - [#206](https://github.com/airblade/paper_trail/issues/206) - Fixed Ruby 1.8.7 compatibility for tracking `object_changes`. - - [#200](https://github.com/airblade/paper_trail/issues/200) - Fixed `next_version` method so that it returns the live model + - [#206](https://github.com/paper-trail-gem/paper_trail/issues/206) - Fixed Ruby 1.8.7 compatibility for tracking `object_changes`. + - [#200](https://github.com/paper-trail-gem/paper_trail/issues/200) - Fixed `next_version` method so that it returns the live model when called on latest reified version of a model prior to the live model. - - [#197](https://github.com/airblade/paper_trail/issues/197) - PaperTrail now falls back on using YAML for serialization of + - [#197](https://github.com/paper-trail-gem/paper_trail/issues/197) - PaperTrail now falls back on using YAML for serialization of serialized model attributes for storage in the `object` and `object_changes` columns in the `Version` table. This fixes compatibility for `Rails 3.0.x` for projects that employ the `serialize` declaration on a model. - - [#194](https://github.com/airblade/paper_trail/issues/194) - A JSON serializer is now included in the gem. - - [#192](https://github.com/airblade/paper_trail/pull/192) - `object_changes` should store serialized representation of serialized + - [#194](https://github.com/paper-trail-gem/paper_trail/issues/194) - A JSON serializer is now included in the gem. + - [#192](https://github.com/paper-trail-gem/paper_trail/pull/192) - `object_changes` should store serialized representation of serialized attributes for `create` actions (in addition to `update` actions, which had already been patched by - [#180](https://github.com/airblade/paper_trail/pull/180)). - - [#190](https://github.com/airblade/paper_trail/pull/190) - Fixed compatibility with + [#180](https://github.com/paper-trail-gem/paper_trail/pull/180)). + - [#190](https://github.com/paper-trail-gem/paper_trail/pull/190) - Fixed compatibility with [SerializedAttributes](https://github.com/technoweenie/serialized_attributes) gem. - - [#189](https://github.com/airblade/paper_trail/pull/189) - Provided support for a `configure` block initializer. + - [#189](https://github.com/paper-trail-gem/paper_trail/pull/189) - Provided support for a `configure` block initializer. - Added `setter` method for the `serializer` config option. ## 2.7.0 - - [#183](https://github.com/airblade/paper_trail/pull/183) - Fully qualify the `Version` class to help prevent + - [#183](https://github.com/paper-trail-gem/paper_trail/pull/183) - Fully qualify the `Version` class to help prevent namespace resolution errors within other gems / plugins. - - [#180](https://github.com/airblade/paper_trail/pull/180) - Store serialized representation of serialized attributes + - [#180](https://github.com/paper-trail-gem/paper_trail/pull/180) - Store serialized representation of serialized attributes on the `object` and `object_changes` columns in the `Version` table. - - [#164](https://github.com/airblade/paper_trail/pull/164) - Allow usage of custom serializer for storage of object attributes. + - [#164](https://github.com/paper-trail-gem/paper_trail/pull/164) - Allow usage of custom serializer for storage of object attributes. ## 2.6.4 - - [#181](https://github.com/airblade/paper_trail/issues/181)/[#182](https://github.com/airblade/paper_trail/pull/182) - + - [#181](https://github.com/paper-trail-gem/paper_trail/issues/181)/[#182](https://github.com/paper-trail-gem/paper_trail/pull/182) - Controller metadata methods should only be evaluated when `paper_trail_enabled_for_controller == true`. - - [#177](https://github.com/airblade/paper_trail/issues/177)/[#178](https://github.com/airblade/paper_trail/pull/178) - + - [#177](https://github.com/paper-trail-gem/paper_trail/issues/177)/[#178](https://github.com/paper-trail-gem/paper_trail/pull/178) - Factored out `version_key` into it's own method to prevent `ConnectionNotEstablished` error from getting thrown in instances where `has_paper_trail` is declared on class prior to ActiveRecord establishing a connection. - - [#176](https://github.com/airblade/paper_trail/pull/176) - Force metadata calls for attributes to use current value + - [#176](https://github.com/paper-trail-gem/paper_trail/pull/176) - Force metadata calls for attributes to use current value if attribute value is changing. - - [#173](https://github.com/airblade/paper_trail/pull/173) - Update link to [diff-lcs](https://github.com/halostatue/diff-lcs). - - [#172](https://github.com/airblade/paper_trail/pull/172) - Save `object_changes` on creation. - - [#168](https://github.com/airblade/paper_trail/pull/168) - Respect conditional `:if` or `:unless` arguments to the + - [#173](https://github.com/paper-trail-gem/paper_trail/pull/173) - Update link to [diff-lcs](https://github.com/halostatue/diff-lcs). + - [#172](https://github.com/paper-trail-gem/paper_trail/pull/172) - Save `object_changes` on creation. + - [#168](https://github.com/paper-trail-gem/paper_trail/pull/168) - Respect conditional `:if` or `:unless` arguments to the `has_paper_trail` method for `destroy` events. - - [#167](https://github.com/airblade/paper_trail/pull/167) - Fix `originator` method so that it works with subclasses and STI. - - [#160](https://github.com/airblade/paper_trail/pull/160) - Fixed failing tests and resolved out of date dependency issues. - - [#157](https://github.com/airblade/paper_trail/pull/157) - Refactored `class_attribute` names on the `ClassMethods` module + - [#167](https://github.com/paper-trail-gem/paper_trail/pull/167) - Fix `originator` method so that it works with subclasses and STI. + - [#160](https://github.com/paper-trail-gem/paper_trail/pull/160) - Fixed failing tests and resolved out of date dependency issues. + - [#157](https://github.com/paper-trail-gem/paper_trail/pull/157) - Refactored `class_attribute` names on the `ClassMethods` module for names that are not obviously pertaining to PaperTrail to prevent method name collision. diff --git a/README.md b/README.md index 6923ed7d..ea7fce7e 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,16 @@ has been destroyed. | Version | Documentation | | -------------- | ------------- | -| Unreleased | https://github.com/airblade/paper_trail/blob/master/README.md | -| 9.0.1 | https://github.com/airblade/paper_trail/blob/v9.0.1/README.md | -| 8.1.2 | https://github.com/airblade/paper_trail/blob/v8.1.2/README.md | -| 7.1.3 | https://github.com/airblade/paper_trail/blob/v7.1.3/README.md | -| 6.0.2 | https://github.com/airblade/paper_trail/blob/v6.0.2/README.md | -| 5.2.3 | https://github.com/airblade/paper_trail/blob/v5.2.3/README.md | -| 4.2.0 | https://github.com/airblade/paper_trail/blob/v4.2.0/README.md | -| 3.0.9 | https://github.com/airblade/paper_trail/blob/v3.0.9/README.md | -| 2.7.2 | https://github.com/airblade/paper_trail/blob/v2.7.2/README.md | -| 1.6.5 | https://github.com/airblade/paper_trail/blob/v1.6.5/README.md | +| Unreleased | https://github.com/paper-trail-gem/paper_trail/blob/master/README.md | +| 9.0.1 | https://github.com/paper-trail-gem/paper_trail/blob/v9.0.1/README.md | +| 8.1.2 | https://github.com/paper-trail-gem/paper_trail/blob/v8.1.2/README.md | +| 7.1.3 | https://github.com/paper-trail-gem/paper_trail/blob/v7.1.3/README.md | +| 6.0.2 | https://github.com/paper-trail-gem/paper_trail/blob/v6.0.2/README.md | +| 5.2.3 | https://github.com/paper-trail-gem/paper_trail/blob/v5.2.3/README.md | +| 4.2.0 | https://github.com/paper-trail-gem/paper_trail/blob/v4.2.0/README.md | +| 3.0.9 | https://github.com/paper-trail-gem/paper_trail/blob/v3.0.9/README.md | +| 2.7.2 | https://github.com/paper-trail-gem/paper_trail/blob/v2.7.2/README.md | +| 1.6.5 | https://github.com/paper-trail-gem/paper_trail/blob/v1.6.5/README.md | ## Table of Contents @@ -327,7 +327,7 @@ end The `paper_trail.on_destroy` method can be further configured to happen `:before` or `:after` the destroy event. In PaperTrail 4, the default is `:after`. In PaperTrail 5, the default will be `:before`, to support -ActiveRecord 5. (see https://github.com/airblade/paper_trail/pull/683) +ActiveRecord 5. (see https://github.com/paper-trail-gem/paper_trail/pull/683) ### 2.b. Choosing When To Save New Versions @@ -950,7 +950,7 @@ issues, in order of descending importance. 1. PaperTrail only reifies the first level of associations. 1. Does not fully support STI (For example, see `spec/models/person_spec.rb` and `PaperTrail::Reifiers::HasOne::FoundMoreThanOne` error) -1. [#542](https://github.com/airblade/paper_trail/issues/542) - +1. [#542](https://github.com/paper-trail-gem/paper_trail/issues/542) - Not compatible with [transactional tests][34], aka. transactional fixtures. 1. Requires database timestamp columns with fractional second precision. - Sqlite and postgres timestamps have fractional second precision by default. @@ -1116,7 +1116,7 @@ end ``` However, there is a known issue when reifying [associations](#associations), -see https://github.com/airblade/paper_trail/issues/594 +see https://github.com/paper-trail-gem/paper_trail/issues/594 ### 5.b. Configuring the `versions` Association @@ -1521,7 +1521,7 @@ end ``` For more examples of the RSpec matchers, see the -[Widget spec](https://github.com/airblade/paper_trail/blob/master/spec/models/widget_spec.rb) +[Widget spec](https://github.com/paper-trail-gem/paper_trail/blob/master/spec/models/widget_spec.rb) ### 7.c. Cucumber @@ -1629,14 +1629,14 @@ require 'paper_trail/frameworks/rspec' ## Problems -Please use GitHub's [issue tracker](http://github.com/airblade/paper_trail/issues). +Please use GitHub's [issue tracker](https://github.com/paper-trail-gem/paper_trail/issues). ## Contributors Created by Andy Stewart in 2010, maintained since 2012 by Ben Atkins, since 2015 by Jared Beck, with contributions by over 150 people. -https://github.com/airblade/paper_trail/graphs/contributors +https://github.com/paper-trail-gem/paper_trail/graphs/contributors ## Contributing @@ -1653,15 +1653,15 @@ Copyright (c) 2011 Andy Stewart (boss@airbladesoftware.com). Released under the MIT licence. [1]: http://api.rubyonrails.org/classes/ActiveRecord/Locking/Optimistic.html -[2]: https://github.com/airblade/paper_trail/issues/163 +[2]: https://github.com/paper-trail-gem/paper_trail/issues/163 [3]: http://railscasts.com/episodes/255-undo-with-paper-trail -[4]: https://api.travis-ci.org/airblade/paper_trail.svg?branch=master -[5]: https://travis-ci.org/airblade/paper_trail -[9]: https://github.com/airblade/paper_trail/tree/3.0-stable -[10]: https://github.com/airblade/paper_trail/tree/2.7-stable -[11]: https://github.com/airblade/paper_trail/tree/rails2 -[14]: https://raw.github.com/airblade/paper_trail/master/lib/generators/paper_trail/templates/create_versions.rb -[16]: https://github.com/airblade/paper_trail/issues/113 +[4]: https://api.travis-ci.org/paper-trail-gem/paper_trail.svg?branch=master +[5]: https://travis-ci.org/paper-trail-gem/paper_trail +[9]: https://github.com/paper-trail-gem/paper_trail/tree/3.0-stable +[10]: https://github.com/paper-trail-gem/paper_trail/tree/2.7-stable +[11]: https://github.com/paper-trail-gem/paper_trail/tree/rails2 +[14]: https://raw.github.com/paper-trail-gem/paper_trail/master/lib/generators/paper_trail/templates/create_versions.rb +[16]: https://github.com/paper-trail-gem/paper_trail/issues/113 [17]: https://github.com/rails/protected_attributes [18]: https://github.com/rails/strong_parameters [19]: http://github.com/myobie/htmldiff @@ -1669,8 +1669,8 @@ Released under the MIT licence. [21]: https://github.com/halostatue/diff-lcs [22]: http://github.com/jeremyw/paper_trail/blob/master/lib/paper_trail/has_paper_trail.rb#L151-156 [23]: http://github.com/tim/activerecord-diff -[24]: https://github.com/airblade/paper_trail/blob/master/lib/paper_trail/serializers/yaml.rb -[25]: https://github.com/airblade/paper_trail/blob/master/lib/paper_trail/serializers/json.rb +[24]: https://github.com/paper-trail-gem/paper_trail/blob/master/lib/paper_trail/serializers/yaml.rb +[25]: https://github.com/paper-trail-gem/paper_trail/blob/master/lib/paper_trail/serializers/json.rb [26]: http://www.postgresql.org/docs/9.4/static/datatype-json.html [27]: https://github.com/rspec/rspec [28]: http://cukes.info @@ -1678,7 +1678,7 @@ Released under the MIT licence. [30]: https://github.com/burke/zeus [31]: https://github.com/rails/spring [32]: http://api.rubyonrails.org/classes/ActiveRecord/AutosaveAssociation.html#method-i-mark_for_destruction -[33]: https://github.com/airblade/paper_trail/wiki/Setting-whodunnit-in-the-rails-console +[33]: https://github.com/paper-trail-gem/paper_trail/wiki/Setting-whodunnit-in-the-rails-console [34]: https://github.com/rails/rails/blob/591a0bb87fff7583e01156696fbbf929d48d3e54/activerecord/lib/active_record/fixtures.rb#L142 [35]: https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html [36]: http://www.postgresql.org/docs/9.4/interactive/ddl.html @@ -1688,7 +1688,7 @@ Released under the MIT licence. [40]: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#module-ActiveRecord::Associations::ClassMethods-label-Polymorphic+Associations [41]: https://github.com/jaredbeck/paper_trail-sinatra [42]: https://github.com/activeadmin/activeadmin/wiki/Auditing-via-paper_trail-%28change-history%29 -[43]: https://github.com/airblade/paper_trail/blob/master/.github/CONTRIBUTING.md +[43]: https://github.com/paper-trail-gem/paper_trail/blob/master/.github/CONTRIBUTING.md [44]: https://github.com/globalize/globalize-versioning [45]: https://github.com/globalize/globalize [46]: https://github.com/fusion94/paper_trail_manager diff --git a/doc/triage.md b/doc/triage.md index a8c96e45..5c4e3cb5 100644 --- a/doc/triage.md +++ b/doc/triage.md @@ -11,9 +11,9 @@ Once you create a question on StackOverflow, please feel free to comment here wi For instructions on how to file a bug report, please see our [issue template][3]. -[1]: https://github.com/airblade/paper_trail/blob/master/.github/CONTRIBUTING.md +[1]: https://github.com/paper-trail-gem/paper_trail/blob/master/.github/CONTRIBUTING.md [2]: https://stackoverflow.com/tags/paper-trail-gem -[3]: https://github.com/airblade/paper_trail/blob/master/.github/ISSUE_TEMPLATE.md +[3]: https://github.com/paper-trail-gem/paper_trail/blob/master/.github/ISSUE_TEMPLATE.md ``` ## Responses to Common Problems @@ -22,6 +22,6 @@ For instructions on how to file a bug report, please see our [issue template][3] Thanks for the bug report. Per our [contributing guide][1] please use our [bug report template][2]. -[1]: https://github.com/airblade/paper_trail/blob/master/.github/CONTRIBUTING.md -[2]: https://github.com/airblade/paper_trail/blob/master/doc/bug_report_template.rb +[1]: https://github.com/paper-trail-gem/paper_trail/blob/master/.github/CONTRIBUTING.md +[2]: https://github.com/paper-trail-gem/paper_trail/blob/master/doc/bug_report_template.rb ``` diff --git a/lib/generators/paper_trail/install_generator.rb b/lib/generators/paper_trail/install_generator.rb index 296f6e80..001e5e20 100644 --- a/lib/generators/paper_trail/install_generator.rb +++ b/lib/generators/paper_trail/install_generator.rb @@ -73,7 +73,7 @@ module PaperTrail private # MySQL 5.6 utf8mb4 limit is 191 chars for keys used in indexes. - # See https://github.com/airblade/paper_trail/issues/651 + # See https://github.com/paper-trail-gem/paper_trail/issues/651 def item_type_options opt = { null: false } opt[:limit] = 191 if mysql? diff --git a/lib/paper_trail/config.rb b/lib/paper_trail/config.rb index 1c41c2ee..ad4f565a 100644 --- a/lib/paper_trail/config.rb +++ b/lib/paper_trail/config.rb @@ -11,13 +11,13 @@ module PaperTrail Association tracking is an endangered feature. For the past three or four years it has been an experimental feature, not recommended for production. It has a long list of known issues - (https://github.com/airblade/paper_trail#4b1-known-issues) and has no + (https://github.com/paper-trail-gem/paper_trail#4b1-known-issues) and has no regular volunteers caring for it. If you don't use this feature, I strongly recommend disabling it. If you do use this feature, please head over to - https://github.com/airblade/paper_trail/issues/1070 and volunteer to work + https://github.com/paper-trail-gem/paper_trail/issues/1070 and volunteer to work on the known issues. If we can't make a serious dent in the list of known issues over the next diff --git a/lib/paper_trail/record_trail.rb b/lib/paper_trail/record_trail.rb index f0f71a7c..0e6e0cec 100644 --- a/lib/paper_trail/record_trail.rb +++ b/lib/paper_trail/record_trail.rb @@ -56,7 +56,7 @@ module PaperTrail # > something) from running. By also stubbing out persisted? we can # > actually prevent those. A more stable option might be to use suppress # > instead, similar to the other branch in reify_has_one. - # > -Sean Griffin (https://github.com/airblade/paper_trail/pull/899) + # > -Sean Griffin (https://github.com/paper-trail-gem/paper_trail/pull/899) # # @api private def appear_as_new_record @@ -603,7 +603,7 @@ module PaperTrail end # Rails 5.1 changed the API of `ActiveRecord::Dirty`. See - # https://github.com/airblade/paper_trail/pull/899 + # https://github.com/paper-trail-gem/paper_trail/pull/899 # # @api private def attribute_changed_in_latest_version?(attr_name) @@ -615,7 +615,7 @@ module PaperTrail end # Rails 5.1 changed the API of `ActiveRecord::Dirty`. See - # https://github.com/airblade/paper_trail/pull/899 + # https://github.com/paper-trail-gem/paper_trail/pull/899 # # Event can be any of the three (create, update, destroy). # @@ -635,7 +635,7 @@ module PaperTrail end # Rails 5.1 changed the API of `ActiveRecord::Dirty`. See - # https://github.com/airblade/paper_trail/pull/899 + # https://github.com/paper-trail-gem/paper_trail/pull/899 # # @api private def changed_in_latest_version @@ -647,7 +647,7 @@ module PaperTrail end # Rails 5.1 changed the API of `ActiveRecord::Dirty`. See - # https://github.com/airblade/paper_trail/pull/899 + # https://github.com/paper-trail-gem/paper_trail/pull/899 # # @api private def changes_in_latest_version diff --git a/lib/paper_trail/reifiers/has_one.rb b/lib/paper_trail/reifiers/has_one.rb index 6f9dc62b..ec3c8906 100644 --- a/lib/paper_trail/reifiers/has_one.rb +++ b/lib/paper_trail/reifiers/has_one.rb @@ -23,7 +23,7 @@ module PaperTrail and Bicycle are both Vehicles and the FK for both is owner_id) If you'd like to help fix this error, please read - https://github.com/airblade/paper_trail/issues/594 + https://github.com/paper-trail-gem/paper_trail/issues/594 and see spec/models/person_spec.rb STR diff --git a/lib/paper_trail/serializers/json.rb b/lib/paper_trail/serializers/json.rb index 9b37d4fd..5395445e 100644 --- a/lib/paper_trail/serializers/json.rb +++ b/lib/paper_trail/serializers/json.rb @@ -38,7 +38,7 @@ module PaperTrail column. The old implementation was inaccurate, returning more records than you wanted. This feature was deprecated in 7.1.0 and removed in 8.0.0. The json and jsonb datatypes are still supported. See the - discussion at https://github.com/airblade/paper_trail/issues/803 + discussion at https://github.com/paper-trail-gem/paper_trail/issues/803 STR end end diff --git a/lib/paper_trail/serializers/yaml.rb b/lib/paper_trail/serializers/yaml.rb index eaaa32ae..6c528a4d 100644 --- a/lib/paper_trail/serializers/yaml.rb +++ b/lib/paper_trail/serializers/yaml.rb @@ -30,7 +30,7 @@ module PaperTrail column. The old implementation was inaccurate, returning more records than you wanted. This feature was deprecated in 8.1.0 and removed in 9.0.0. The json and jsonb datatypes are still supported. See - discussion at https://github.com/airblade/paper_trail/pull/997 + discussion at https://github.com/paper-trail-gem/paper_trail/pull/997 STR end end diff --git a/paper_trail.gemspec b/paper_trail.gemspec index 9bb49967..f47172f5 100644 --- a/paper_trail.gemspec +++ b/paper_trail.gemspec @@ -13,7 +13,7 @@ Track changes to your models, for auditing or versioning. See how a model looked at any stage in its lifecycle, revert it to any version, or restore it after it has been destroyed. EOS - s.homepage = "https://github.com/airblade/paper_trail" + s.homepage = "https://github.com/paper-trail-gem/paper_trail" s.authors = ["Andy Stewart", "Ben Atkins", "Jared Beck"] s.email = "jared@jaredbeck.com" s.license = "MIT" diff --git a/spec/dummy_app/app/versions/joined_version.rb b/spec/dummy_app/app/versions/joined_version.rb index 95f8881f..19b4bb24 100644 --- a/spec/dummy_app/app/versions/joined_version.rb +++ b/spec/dummy_app/app/versions/joined_version.rb @@ -2,7 +2,7 @@ # The purpose of this custom version class is to test the scope methods on the # VersionConcern::ClassMethods module. See -# https://github.com/airblade/paper_trail/issues/295 for more details. +# https://github.com/paper-trail-gem/paper_trail/issues/295 for more details. class JoinedVersion < PaperTrail::Version default_scope { joins("INNER JOIN widgets ON widgets.id = versions.item_id") } end diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index 07f2d3a5..852aaab8 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -23,7 +23,7 @@ RSpec.describe Person, type: :model, versioning: true do expect(person.reload.versions.length).to(eq(3)) - # See https://github.com/airblade/paper_trail/issues/594 + # See https://github.com/paper-trail-gem/paper_trail/issues/594 expect { person.reload.versions.second.reify(has_one: true) }.to(