affairs_of_state 0.7.1 → 0.7.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
2
  SHA256:
3
- metadata.gz: 393e826c50c889d987390c00c48332b5f25b36dacc8977a4b6ae872b031507c0
4
- data.tar.gz: 268729f4f4e5d03616028ae9ad663e9333ec77be659c1eb17ff4ba78f9ea44f1
3
+ metadata.gz: 37d765f3c10fc68d7888ecde5f4b71736e70a85ccb77311f110f22772a5bfad3
4
+ data.tar.gz: 0b7a6965aad1f602356640b5d2c666bfcc60566e90fc54fd9c11cbd2394d92ea
5
5
  SHA512:
6
- metadata.gz: b28c839c99db9cf1a7560766f46bda687825c23e6d17c2f20b1246d239990f26a450e5a9350c10f1ea191678b929ecf88c0a389be7620d13f37e26d3d02525eb
7
- data.tar.gz: 88a2b5f1cefe5ac0017eeaa9b2c2d480895b51f31497adf049a8ce54dbd3966f3c9e8f472d1b300e9d650c644ca1cb3b67063ddcbf7067e914e21c42d96a05f6
6
+ metadata.gz: 41dc25892417048d6de1ba7e6927ea335e7ce46819e834943358f5bf03b1397dad3e6aa846ea725a5eec162f5c7bc63e2b6ef8c1812e751683eeec255f868031
7
+ data.tar.gz: f28c08bebd42bf3c3a8b0a49308cc6f01161d5ad6840774ad4fb00f391e5d02e2d4730f6090acea7d274ade88b3eaf5e60eb651218da0563f1e4d21ac688a4f3
@@ -10,6 +10,7 @@ jobs:
10
10
  gemfile:
11
11
  - "activerecord-6.0.gemfile"
12
12
  - "activerecord-6.1.gemfile"
13
+ - "activerecord-7.0.gemfile"
13
14
  - "activerecord-latest.gemfile"
14
15
  runs-on: ubuntu-latest
15
16
  env:
data/.ruby_version ADDED
@@ -0,0 +1 @@
1
+ 3.0.2
@@ -16,12 +16,10 @@ Gem::Specification.new do |gem|
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = AffairsOfState::VERSION
18
18
 
19
- gem.add_dependency "activerecord", "~> 6.0"
20
- gem.add_dependency "activesupport", "~> 6.0"
21
-
22
- gem.add_development_dependency "rspec", "~> 3.0"
23
- gem.add_development_dependency "sqlite3", "~> 1.4.0"
24
- gem.add_development_dependency "pry", "~> 0.12.0"
25
- gem.add_development_dependency "rake", "~> 12"
19
+ gem.add_dependency "activerecord", ">= 6.0"
20
+ gem.add_dependency "activesupport", ">= 6.0"
26
21
 
22
+ gem.add_development_dependency "rspec", ">= 3.0"
23
+ gem.add_development_dependency "sqlite3", ">= 1.4.0"
24
+ gem.add_development_dependency "rake", ">= 12"
27
25
  end
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'activerecord', '~> 7.0'
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module AffairsOfState
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
@@ -191,7 +191,7 @@ describe AffairsOfState do
191
191
 
192
192
  describe "invalid status name" do
193
193
  it "should raise a good warning" do
194
- expect(->{ class Pie8 < ActiveRecord::Base ; affairs_of_state :new ; end }).to raise_error(ArgumentError, "Affairs of State: 'new' is not a valid status")
194
+ expect{ class Pie8 < ActiveRecord::Base ; affairs_of_state :new ; end }.to raise_error(ArgumentError, "Affairs of State: 'new' is not a valid status")
195
195
  end
196
196
  end
197
197
 
data/spec/spec_helper.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
  require "affairs_of_state"
3
3
 
4
- require "pry"
5
4
  require "sqlite3"
6
5
 
7
6
  RSpec.configure do |config|
8
7
  config.run_all_when_everything_filtered = true
9
8
  config.filter_run_when_matching :focus
9
+ # config.raise_errors_for_deprecations!
10
10
  end
11
11
 
12
12
  # Create an AR model to test with
metadata CHANGED
@@ -1,97 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: affairs_of_state
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin McPhillips
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-13 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
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
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
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
40
  version: '6.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 1.4.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.4.0
69
- - !ruby/object:Gem::Dependency
70
- name: pry
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.12.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.12.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ">="
88
74
  - !ruby/object:Gem::Version
89
75
  version: '12'
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
- - - "~>"
80
+ - - ">="
95
81
  - !ruby/object:Gem::Version
96
82
  version: '12'
97
83
  description: Add a simple state to a gem, without all the hassle of a complex state
@@ -105,6 +91,7 @@ files:
105
91
  - ".github/workflows/ci.yml"
106
92
  - ".gitignore"
107
93
  - ".rspec"
94
+ - ".ruby_version"
108
95
  - Gemfile
109
96
  - LICENSE
110
97
  - README.md
@@ -112,6 +99,7 @@ files:
112
99
  - affairs_of_state.gemspec
113
100
  - gemfiles/activerecord-6.0.gemfile
114
101
  - gemfiles/activerecord-6.1.gemfile
102
+ - gemfiles/activerecord-7.0.gemfile
115
103
  - gemfiles/activerecord-latest.gemfile
116
104
  - lib/affairs_of_state.rb
117
105
  - lib/affairs_of_state/active_record_extension.rb