state_machines-audit_trail 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 910c5966818f43a7d324e6a5eac81b25b210f839
4
- data.tar.gz: e483e8e528177cb4e83594866ea9d0420121f49e
2
+ SHA256:
3
+ metadata.gz: fa9c1aad624d9dad005c50ab44eb5522908b1790490f6e8b1eacc1b05261a7e3
4
+ data.tar.gz: 9bcb723941ab88d56534181ad6be0c147de7262ee408c2a5607a77bd146b94e2
5
5
  SHA512:
6
- metadata.gz: 4a41c3d8e214d72c68e944b0cb644d7ea94d9056251ee5271ad42d8df0554830d94bd3f810c04fdcb2d45fec1a86257f5043217d284c51798c094fea950458dc
7
- data.tar.gz: 3172241850a389b30c8e529bb74d77605cd09d907cdb081530326f2d25dcf5cadc0f4369ecc2810a45d751a86d523c266f86982c47e637017ed4a50130ef3563
6
+ metadata.gz: ffaacbb29036d844d7a25d72da512906bee8d7a646e63b42b68f3f99bfcd7ff572e33177b84cf85ef079cb284dc2667611ce22b40835d524f065fdfb76f7926f
7
+ data.tar.gz: 15cf000aea32b80c3f0cf675fe9cad34574ce127d4328c3faea9f70b62e7d35550b67ef62ed9209000bf46c84e949ccec27821ba2d90861cfb075c43ae616a76
@@ -1,20 +1,43 @@
1
1
  language: ruby
2
- sudo: false
3
2
  cache: bundler
4
3
 
5
4
  script: "bundle exec rake"
6
5
 
7
6
  services: mongodb
8
7
  rvm:
9
- - 2.2.2
10
- - 2.3.1
8
+ - 2.2
9
+ - 2.3
10
+ - 2.4
11
+ - 2.5
12
+ - 2.6
13
+ - 2.7
14
+ - ruby-head
15
+ - jruby-head
11
16
  - jruby
12
17
  - rbx-2
13
18
  gemfile:
14
19
  - gemfiles/rails_5.0.gemfile
15
20
  - gemfiles/rails_5.1.gemfile
21
+ - gemfiles/rails_5.2.gemfile
22
+ - gemfiles/rails_6.0.gemfile
16
23
  - gemfiles/rails_edge.gemfile
17
24
  matrix:
25
+ exclude:
26
+ - rvm: 2.2
27
+ gemfile: gemfiles/rails_6.0.gemfile
28
+ - rvm: 2.3
29
+ gemfile: gemfiles/rails_6.0.gemfile
30
+ - rvm: 2.4
31
+ gemfile: gemfiles/rails_6.0.gemfile
32
+ - rvm: 2.2
33
+ gemfile: gemfiles/rails_edge.gemfile
34
+ - rvm: 2.3
35
+ gemfile: gemfiles/rails_edge.gemfile
36
+ - rvm: 2.4
37
+ gemfile: gemfiles/rails_edge.gemfile
18
38
  allow_failures:
19
39
  - rvm: rbx-2
20
- - rvm: jruby
40
+ - rvm: ruby-head
41
+ - rvm: jruby-head
42
+ - gemfile: gemfiles/rails_edge.gemfile
43
+
data/Appraisals CHANGED
@@ -9,6 +9,7 @@ appraise 'rails_5.1' do
9
9
  end
10
10
 
11
11
  appraise 'rails_edge' do
12
+ gem 'rails', github: 'rails/rails', branch: 'master'
12
13
  gem 'activerecord', github: 'rails/rails', branch: 'master'
13
14
  gem 'activemodel', github: 'rails/rails', branch: 'master'
14
15
  gem 'arel', github: 'rails/arel', branch: 'master'
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Build Status](https://travis-ci.org/state-machines/state_machines-audit_trail.svg?branch=master)](https://travis-ci.org/state-machines/state_machines-audit_trail)
2
- [![Code Climate](https://codeclimate.com/github/state-machines/state_machines-audit_trail.png)](https://codeclimate.com/github/state-machines/state_machines-audit_trail)
2
+ [![Code Climate](https://codeclimate.com/github/state-machines/state_machines-audit_trail.svg)](https://codeclimate.com/github/state-machines/state_machines-audit_trail)
3
3
 
4
4
  # state_machines-audit_trail
5
5
  Log transitions on a [state_machines gem](https://github.com/state-machines/state_machines) to support auditing and business process analytics.
@@ -12,7 +12,7 @@ for any state machine. Having an audit trail gives you a complete history of the
12
12
  to investigate incidents or perform analytics, like: _"How long does it take on average to go from state a to state b?"_,
13
13
  or _"What percentage of cases goes from state a to b via state c?"_
14
14
 
15
- For more information read [Why developers should be force-fed state machines](http://www.shopify.com/technology/3383012-why-developers-should-be-force-fed-state-machines).
15
+ For more information read [Why developers should be force-fed state machines](https://engineering.shopify.com/blogs/engineering/17488160-why-developers-should-be-force-fed-state-machines).
16
16
 
17
17
  ## ORM support
18
18
 
@@ -2,7 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.0"
6
- gem "activemodel", "~> 5.0"
5
+ gem "activerecord", "~> 5.0.0"
6
+ gem "activemodel", "~> 5.0.0"
7
+ gem "sqlite3", "~> 1.3.6"
7
8
 
8
9
  gemspec path: "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 5.1"
6
- gem "activemodel", "~> 5.1"
5
+ gem "activerecord", "~> 5.1.0"
6
+ gem "activemodel", "~> 5.1.0"
7
7
 
8
8
  gemspec path: "../"
@@ -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 "activemodel", "~> 5.2.0"
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 "activemodel", "~> 6.0.0"
7
+
8
+ gemspec path: "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ gem "rails", github: "rails/rails", branch: "master"
5
6
  gem "activerecord", github: "rails/rails", branch: "master"
6
7
  gem "activemodel", github: "rails/rails", branch: "master"
7
8
  gem "arel", github: "rails/arel", branch: "master"
@@ -5,7 +5,7 @@ class StateMachines::AuditTrail::Backend::ActiveRecord < StateMachines::AuditTra
5
5
  super
6
6
  @association = transition_class.to_s.tableize.split('/').last.to_sym
7
7
  assoc_options = {class_name: transition_class.to_s}.merge(options.slice(:as))
8
- owner_class.has_many(@association, assoc_options) unless owner_class.reflect_on_association(@association)
8
+ owner_class.has_many(@association, **assoc_options) unless owner_class.reflect_on_association(@association)
9
9
  end
10
10
 
11
11
  def persist(object, fields)
@@ -1,5 +1,5 @@
1
1
  module StateMachines
2
2
  module AuditTrail
3
- VERSION = '2.0.1'
3
+ VERSION = '2.0.2'
4
4
  end
5
5
  end
@@ -23,9 +23,13 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency('rake')
24
24
  s.add_development_dependency('rspec', '>= 3.0.0')
25
25
  s.add_development_dependency('activerecord', '>= 5.0.0')
26
- s.add_development_dependency('sqlite3')
26
+ if(defined?(JRUBY_VERSION))
27
+ s.add_development_dependency('activerecord-jdbcsqlite3-adapter')
28
+ else
29
+ s.add_development_dependency('sqlite3')
30
+ end
27
31
  s.add_development_dependency('mongoid', '>= 6.0.0.beta')
28
- s.add_development_dependency('bson_ext')
32
+ s.add_development_dependency('bson')
29
33
  s.add_development_dependency('generator_spec')
30
34
  s.add_development_dependency('rails', '>= 5.0.0')
31
35
  s.add_development_dependency('appraisal', '~> 2.2.0')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines-audit_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-06 00:00:00.000000000 Z
13
+ date: 2020-06-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: state_machines
@@ -125,7 +125,7 @@ dependencies:
125
125
  - !ruby/object:Gem::Version
126
126
  version: 6.0.0.beta
127
127
  - !ruby/object:Gem::Dependency
128
- name: bson_ext
128
+ name: bson
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - ">="
@@ -202,6 +202,8 @@ files:
202
202
  - Rakefile
203
203
  - gemfiles/rails_5.0.gemfile
204
204
  - gemfiles/rails_5.1.gemfile
205
+ - gemfiles/rails_5.2.gemfile
206
+ - gemfiles/rails_6.0.gemfile
205
207
  - gemfiles/rails_edge.gemfile
206
208
  - lib/state_machines-audit_trail.rb
207
209
  - lib/state_machines/audit_trail.rb
@@ -240,8 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
242
  - !ruby/object:Gem::Version
241
243
  version: '0'
242
244
  requirements: []
243
- rubyforge_project:
244
- rubygems_version: 2.6.7
245
+ rubygems_version: 3.0.3
245
246
  signing_key:
246
247
  specification_version: 4
247
248
  summary: Log transitions on a state_machines to support auditing and business process