affairs_of_state 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +25 -0
- data/README.md +1 -1
- data/affairs_of_state.gemspec +2 -2
- data/gemfiles/{activerecord-5.0.gemfile → activerecord-6.1.gemfile} +1 -1
- data/gemfiles/{activerecord-5.1.gemfile → activerecord-latest.gemfile} +1 -1
- data/lib/affairs_of_state/version.rb +1 -1
- metadata +13 -13
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2757335e832c9809fa86e7c365dda4d6fe31b49ab837665ecbd80ec2f3b27ac2
|
|
4
|
+
data.tar.gz: 18c9e1b16df324170b4af93859379540e56aafa27068490a743bd155b3a9c83a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e9b37707ae931a4a9231b4b453b075db2d0c1e16c4bddf1696f20adcf26bd5b23744e6f185602d50e036465d1cf060dd2b4951857d252d387a5c140b4a18029
|
|
7
|
+
data.tar.gz: 03c8db3940a2c167922048afecfa75d1ad4f28fcb386e16fc57bbbe6101c2f8416fece5ba12bba7af21407746149ec0252d46a7ce407b618b7db9af1f535ad7b
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on: [ push, pull_request ]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
strategy:
|
|
8
|
+
fail-fast: false
|
|
9
|
+
matrix:
|
|
10
|
+
gemfile:
|
|
11
|
+
- "activerecord-6.0.gemfile"
|
|
12
|
+
- "activerecord-6.1.gemfile"
|
|
13
|
+
- "activerecord-latest.gemfile"
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
env:
|
|
16
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v2
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: 3.0.2
|
|
22
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
23
|
+
- name: Run tests
|
|
24
|
+
run: |
|
|
25
|
+
bundle exec rspec --format doc
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Affairs of State
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
4
|
|
|
5
5
|
You have an Active Record model. It nees to have multiple states, boolean convenience methods, simple validation, but not complex rules. This gem gives you this in a single line class method.
|
|
6
6
|
|
data/affairs_of_state.gemspec
CHANGED
|
@@ -16,8 +16,8 @@ Gem::Specification.new do |gem|
|
|
|
16
16
|
gem.require_paths = ["lib"]
|
|
17
17
|
gem.version = AffairsOfState::VERSION
|
|
18
18
|
|
|
19
|
-
gem.add_dependency "activerecord", ">=
|
|
20
|
-
gem.add_dependency "activesupport", ">=
|
|
19
|
+
gem.add_dependency "activerecord", ">= 6.0"
|
|
20
|
+
gem.add_dependency "activesupport", ">= 6.0"
|
|
21
21
|
|
|
22
22
|
gem.add_development_dependency "rspec"
|
|
23
23
|
gem.add_development_dependency "sqlite3", "~> 1.4.0"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: affairs_of_state
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin McPhillips
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-12-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -16,28 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '6.0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '6.0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activesupport
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '6.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '6.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -102,17 +102,17 @@ executables: []
|
|
|
102
102
|
extensions: []
|
|
103
103
|
extra_rdoc_files: []
|
|
104
104
|
files:
|
|
105
|
+
- ".github/workflows/ci.yml"
|
|
105
106
|
- ".gitignore"
|
|
106
107
|
- ".rspec"
|
|
107
|
-
- ".travis.yml"
|
|
108
108
|
- Gemfile
|
|
109
109
|
- LICENSE
|
|
110
110
|
- README.md
|
|
111
111
|
- Rakefile
|
|
112
112
|
- affairs_of_state.gemspec
|
|
113
|
-
- gemfiles/activerecord-5.0.gemfile
|
|
114
|
-
- gemfiles/activerecord-5.1.gemfile
|
|
115
113
|
- gemfiles/activerecord-6.0.gemfile
|
|
114
|
+
- gemfiles/activerecord-6.1.gemfile
|
|
115
|
+
- gemfiles/activerecord-latest.gemfile
|
|
116
116
|
- lib/affairs_of_state.rb
|
|
117
117
|
- lib/affairs_of_state/config.rb
|
|
118
118
|
- lib/affairs_of_state/version.rb
|
|
@@ -124,7 +124,7 @@ homepage: http://github.com/kmcphillips/affairs_of_state
|
|
|
124
124
|
licenses:
|
|
125
125
|
- MIT
|
|
126
126
|
metadata: {}
|
|
127
|
-
post_install_message:
|
|
127
|
+
post_install_message:
|
|
128
128
|
rdoc_options: []
|
|
129
129
|
require_paths:
|
|
130
130
|
- lib
|
|
@@ -139,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
139
139
|
- !ruby/object:Gem::Version
|
|
140
140
|
version: '0'
|
|
141
141
|
requirements: []
|
|
142
|
-
rubygems_version: 3.
|
|
143
|
-
signing_key:
|
|
142
|
+
rubygems_version: 3.2.22
|
|
143
|
+
signing_key:
|
|
144
144
|
specification_version: 4
|
|
145
145
|
summary: You have an Active Record model. It nees to have multiple states, but not
|
|
146
146
|
complex rules. This gem gives you validation, easy check and change methods, and
|
data/.travis.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
script: bundle exec rspec
|
|
3
|
-
sudo: false
|
|
4
|
-
rvm:
|
|
5
|
-
- "2.4.9"
|
|
6
|
-
- "2.5.7"
|
|
7
|
-
- "2.6.5"
|
|
8
|
-
- "2.7.0"
|
|
9
|
-
|
|
10
|
-
gemfile:
|
|
11
|
-
- Gemfile
|
|
12
|
-
- gemfiles/activerecord-5.0.gemfile
|
|
13
|
-
- gemfiles/activerecord-5.1.gemfile
|
|
14
|
-
- gemfiles/activerecord-6.0.gemfile
|
|
15
|
-
|
|
16
|
-
matrix:
|
|
17
|
-
exclude:
|
|
18
|
-
- gemfile: gemfiles/activerecord-6.0.gemfile
|
|
19
|
-
rvm: 2.4.9
|