Skip to content

Commit

Permalink
[ci skip] Bump 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Aug 29, 2018
1 parent 9d72ff6 commit 731dda9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ AllCops:
- 'bench/**/*'
- 'Rakefile'
- 'Gemfile'
- 'CHANGELOG.md'
- '*.gemspec'
DisplayCopNames: true
StyleGuideCopsOnly: false
Expand Down
24 changes: 13 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,28 @@

## master

## 0.7.0 (2018-08-29)

- [Fixes [#75](https://github.com/palkan/logidze/issues/70)] Fix association versioning with an optional belongs to ([@ankursethi-uscis][])

- [PR [#79](https://github.com/palkan/logidze/pull/13)] Allow adding meta information to versions using `with_meta` (addressed [Issue [#60]](https://github.com/palkan/logidze/issues/60)). ([@DmitryTsepelev][])

Usage:
Usage:

```ruby
Logidze.with_meta(ip: request.ip) { post.save }
puts post.meta # => { 'ip' => '95.66.157.226' }
```
```ruby
Logidze.with_meta(ip: request.ip) { post.save }
puts post.meta # => { 'ip' => '95.66.157.226' }
```

Upgrading:
How to upgrade.

Please run `rails generate logidze:install --update` to regenerate stored functions.
Please run `rails generate logidze:install --update` to regenerate stored functions.

This feature replaces the implementation of `with_responsible`, now `responsible_id` is stored inside of the meta hash with the key `_r`.
There is fallback to the old data structure (`{ 'r' => 42 }` opposed to `{ 'm' => { '_r' => 42 } }` in the current implementation), so
`responsible_id` should work as usual for the existing data.
This feature replaces the implementation of `with_responsible`, now `responsible_id` is stored inside of the meta hash with the key `_r`.

If you've accessed the value manually (e.g. `post.log_data.current_version.data['r']`), you'll have to add the fallback too.
There is fallback to the old data structure (`{ 'r' => 42 }` opposed to `{ 'm' => { '_r' => 42 } }` in the current implementation), so `responsible_id` should work as usual for the existing data.

If you've accessed the value manually (e.g. `post.log_data.current_version.data['r']`), you'll have to add the fallback too.

## 0.6.5 (2018-08-08)

Expand Down
2 changes: 1 addition & 1 deletion lib/logidze/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true
module Logidze
VERSION = "0.6.5"
VERSION = "0.7.0"
end

0 comments on commit 731dda9

Please sign in to comment.