state_machines-activemodel 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae165c9fd876896da288bb4664d82fe5ccfcbffd2f3bff6978bac49c24b85d19
4
- data.tar.gz: 94a59b091f0391a67730f8375e64e7fa7c32d1bb8a76601df05c0e46669a46d6
3
+ metadata.gz: 4451c4d642636e3d81d9bb608b8dd78cfbd01bf7340989959e12791ec2fd76e0
4
+ data.tar.gz: a7c86d2041b2e8deefdc809831802b413f1e0a8f7fec7aa867fcd54685262f9d
5
5
  SHA512:
6
- metadata.gz: 4344a12a72ad87e797c2c47887455514323d5e769ae5aa118eb732b0e73d0cb89d86fdb6517b5a067fc9dd6195ad8b2a3f033862c656b0ffaf52459ee5d393d7
7
- data.tar.gz: 7b03795219c1d78945a07fd59ab2c96624d497d21bd8e6af02307300b425bdadf77bd582e5768449406952dd9af63c55c01df288efaf2f39db2c77510e274235
6
+ metadata.gz: 2fff7546bfd98859e0a8c5e5eb6e97909a4b5d42a3ade4440c8c21bb7728d4257093532a7b63e140c8418682d0da410f657d8a78db48c1bd13cd5f90ef59ff90
7
+ data.tar.gz: 12bdad22386d96dc415f2eea856c5ca1329cb1fd7f213613102b9cfc0cfcb7da550d1548f633771491cd92b8a8491b390952ec44fb62db7e4cfa1f7e395366cc
@@ -2,68 +2,20 @@ language: ruby
2
2
  cache: bundler
3
3
 
4
4
  rvm:
5
- - 2.1
6
- - 2.2.9
7
- - 2.3.8
8
- - 2.4.6
9
- - 2.5.5
10
- - 2.6.3
5
+ - 2.5.8
6
+ - 2.6.6
7
+ - 2.7.2
11
8
  - jruby
12
9
  - rbx-2
13
10
 
14
11
  gemfile:
15
- - gemfiles/active_model_4.2.gemfile
12
+ - gemfiles/active_model_5.1.gemfile
13
+ - gemfiles/active_model_5.2.gemfile
14
+ - gemfiles/active_model_6.0.gemfile
15
+ - gemfiles/active_model_6.1.gemfile
16
+ - gemfiles/active_model_edge.gemfile
16
17
 
17
18
  matrix:
18
- include:
19
- - gemfile: gemfiles/active_model_4.1.gemfile
20
- rvm: 2.1
21
- - gemfile: gemfiles/active_model_4.1.gemfile
22
- rvm: 2.2.9
23
- - gemfile: gemfiles/active_model_4.1.gemfile
24
- rvm: 2.3.8
25
- - gemfile: gemfiles/active_model_5.0.gemfile
26
- rvm: 2.2.9
27
- - gemfile: gemfiles/active_model_5.0.gemfile
28
- rvm: 2.3.8
29
- - gemfile: gemfiles/active_model_5.0.gemfile
30
- rvm: 2.4.6
31
- - gemfile: gemfiles/active_model_5.0.gemfile
32
- rvm: 2.5.5
33
- - gemfile: gemfiles/active_model_5.0.gemfile
34
- rvm: 2.6.3
35
- - gemfile: gemfiles/active_model_5.1.gemfile
36
- rvm: 2.2.9
37
- - gemfile: gemfiles/active_model_5.1.gemfile
38
- rvm: 2.3.8
39
- - gemfile: gemfiles/active_model_5.1.gemfile
40
- rvm: 2.4.6
41
- - gemfile: gemfiles/active_model_5.1.gemfile
42
- rvm: 2.5.5
43
- - gemfile: gemfiles/active_model_5.1.gemfile
44
- rvm: 2.6.3
45
- - gemfile: gemfiles/active_model_5.2.gemfile
46
- rvm: 2.2.9
47
- - gemfile: gemfiles/active_model_5.2.gemfile
48
- rvm: 2.3.8
49
- - gemfile: gemfiles/active_model_5.2.gemfile
50
- rvm: 2.4.6
51
- - gemfile: gemfiles/active_model_5.2.gemfile
52
- rvm: 2.5.5
53
- - gemfile: gemfiles/active_model_5.2.gemfile
54
- rvm: 2.6.3
55
- - gemfile: gemfiles/active_model_6.0.gemfile
56
- rvm: 2.5.5
57
- - gemfile: gemfiles/active_model_6.0.gemfile
58
- rvm: 2.6.3
59
- - gemfile: gemfiles/active_model_edge.gemfile
60
- rvm: 2.6.3
61
- - gemfile: gemfiles/active_model_edge.gemfile
62
- rvm: 2.5.5
63
19
  allow_failures:
64
20
  - rvm: jruby
65
21
  - rvm: rbx-2
66
- - gemfile: gemfiles/active_model_edge.gemfile
67
- rvm: 2.5.5
68
- - gemfile: gemfiles/active_model_edge.gemfile
69
- rvm: 2.6.3
data/Appraisals CHANGED
@@ -1,16 +1,4 @@
1
1
  # ActiveModel integrations
2
- appraise 'active_model_4.1' do
3
- gem 'activemodel', github: 'rails/rails', branch: '4-1-stable'
4
- end
5
-
6
- appraise 'active_model_4.2' do
7
- gem 'activemodel', github: 'rails/rails', branch: '4-2-stable'
8
- end
9
-
10
- appraise 'active_model_5.0' do
11
- gem 'activemodel', github: 'rails/rails', branch: '5-0-stable'
12
- end
13
-
14
2
  appraise 'active_model_5.1' do
15
3
  gem 'activemodel', github: 'rails/rails', branch: '5-1-stable'
16
4
  end
@@ -23,6 +11,10 @@ appraise 'active_model_6.0' do
23
11
  gem 'activemodel', github: 'rails/rails', branch: '6-0-stable'
24
12
  end
25
13
 
14
+ appraise 'active_model_6.1' do
15
+ gem 'activemodel', github: 'rails/rails', branch: '6-1-stable'
16
+ end
17
+
26
18
  appraise 'active_model_edge' do
27
19
  gem 'activemodel', github: 'rails/rails', branch: 'master'
28
20
  end
@@ -1,5 +1,5 @@
1
1
  Copyright (c) 2006-2012 Aaron Pfeifer
2
- Copyright (c) 2014-2015 Abdelkader Boudih
2
+ Copyright (c) 2014-2021 Abdelkader Boudih
3
3
 
4
4
  MIT License
5
5
 
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/state-machines/state_machines-activemodel.svg?branch=master)](https://travis-ci.org/state-machines/state_machines-activemodel)
1
+ [![Build Status](https://travis-ci.com/state-machines/state_machines-activemodel.svg?branch=master)](https://travis-ci.org/state-machines/state_machines-activemodel)
2
2
  [![Code Climate](https://codeclimate.com/github/state-machines/state_machines-activemodel.svg)](https://codeclimate.com/github/state-machines/state_machines-activemodel)
3
3
 
4
4
  # StateMachines ActiveModel Integration
@@ -23,7 +23,7 @@ Or install it yourself as:
23
23
 
24
24
  ## Dependencies
25
25
 
26
- Active Model 4.1+
26
+ Active Model 5.1+
27
27
 
28
28
  ## Usage
29
29
 
@@ -2,6 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activemodel", github: "rails/rails", branch: "master"
5
+ gem "activemodel", github: "rails/rails", branch: "6-0-stable"
6
+
7
+ platforms :mri_20, :mri_21 do
8
+ gem "pry-byebug"
9
+ end
6
10
 
7
11
  gemspec path: "../"
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activemodel", :github => "rails/rails", :branch => "4-1-stable"
5
+ gem "activemodel", github: "rails/rails", branch: "6-1-stable"
6
6
 
7
7
  platforms :mri_20, :mri_21 do
8
8
  gem "pry-byebug"
9
9
  end
10
10
 
11
- gemspec :path => "../"
11
+ gemspec path: "../"
@@ -2,10 +2,10 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activemodel", :github => "rails/rails", :branch => "master"
5
+ gem "activemodel", github: "rails/rails", branch: "master"
6
6
 
7
7
  platforms :mri_20, :mri_21 do
8
8
  gem "pry-byebug"
9
9
  end
10
10
 
11
- gemspec :path => "../"
11
+ gemspec path: "../"
@@ -380,7 +380,7 @@ module StateMachines
380
380
  end
381
381
 
382
382
  default_options = default_error_message_options(object, attribute, message)
383
- object.errors.add(attribute, message, options.merge(default_options))
383
+ object.errors.add(attribute, message, **options, **default_options)
384
384
  end
385
385
  end
386
386
 
@@ -1,7 +1,7 @@
1
1
  module StateMachines
2
2
  module Integrations
3
3
  module ActiveModel
4
- VERSION = '0.7.1'
4
+ VERSION = '0.8.0'
5
5
  end
6
6
  end
7
7
  end
@@ -16,9 +16,9 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
  spec.test_files = spec.files.grep(/^test\//)
18
18
  spec.require_paths = ['lib']
19
- spec.required_ruby_version = '>= 2.0.0'
19
+ spec.required_ruby_version = '>= 2.2.2'
20
20
  spec.add_dependency 'state_machines', '>= 0.5.0'
21
- spec.add_dependency 'activemodel', '>= 4.1'
21
+ spec.add_dependency 'activemodel', '>= 5.1'
22
22
 
23
23
  spec.add_development_dependency 'bundler', '>= 1.6'
24
24
  spec.add_development_dependency 'rake', '>= 10'
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_machines-activemodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih
8
8
  - Aaron Pfeifer
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-03 00:00:00.000000000 Z
12
+ date: 2020-12-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: state_machines
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '4.1'
34
+ version: '5.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '4.1'
41
+ version: '5.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -124,12 +124,10 @@ files:
124
124
  - LICENSE.txt
125
125
  - README.md
126
126
  - Rakefile
127
- - gemfiles/active_model_4.1.gemfile
128
- - gemfiles/active_model_4.2.gemfile
129
- - gemfiles/active_model_5.0.gemfile
130
127
  - gemfiles/active_model_5.1.gemfile
131
128
  - gemfiles/active_model_5.2.gemfile
132
129
  - gemfiles/active_model_6.0.gemfile
130
+ - gemfiles/active_model_6.1.gemfile
133
131
  - gemfiles/active_model_edge.gemfile
134
132
  - lib/state_machines-activemodel.rb
135
133
  - lib/state_machines/integrations/active_model.rb
@@ -165,7 +163,7 @@ homepage: https://github.com/state-machines/state_machines-activemodel
165
163
  licenses:
166
164
  - MIT
167
165
  metadata: {}
168
- post_install_message:
166
+ post_install_message:
169
167
  rdoc_options: []
170
168
  require_paths:
171
169
  - lib
@@ -173,15 +171,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
171
  requirements:
174
172
  - - ">="
175
173
  - !ruby/object:Gem::Version
176
- version: 2.0.0
174
+ version: 2.2.2
177
175
  required_rubygems_version: !ruby/object:Gem::Requirement
178
176
  requirements:
179
177
  - - ">="
180
178
  - !ruby/object:Gem::Version
181
179
  version: '0'
182
180
  requirements: []
183
- rubygems_version: 3.0.1
184
- signing_key:
181
+ rubygems_version: 3.0.3
182
+ signing_key:
185
183
  specification_version: 4
186
184
  summary: ActiveModel integration for State Machines
187
185
  test_files:
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activemodel", :github => "rails/rails", :branch => "4-2-stable"
6
-
7
- platforms :mri_20, :mri_21 do
8
- gem "pry-byebug"
9
- end
10
-
11
- gemspec :path => "../"
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "activemodel", :github => "rails/rails", :branch => "5-0-stable"
6
-
7
- platforms :mri_20, :mri_21 do
8
- gem "pry-byebug"
9
- end
10
-
11
- gemspec :path => "../"