stance 0.5.2 → 0.7.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: '0094c269ae824b6cf2ecf9c2684dc3ef421b0517eb200771811e50e22d2cb329'
4
- data.tar.gz: b49537957c9cc39e52e779d0205ad05057355a513327a852cdd9de68fc3b472e
3
+ metadata.gz: b5c5e32182840703a7fd87799e835b4227de0d7c79967573359d71baa41531ee
4
+ data.tar.gz: f572eaa1014020ff06816056a1bc41f37304a0fba26c6b991cd0d37458fa678b
5
5
  SHA512:
6
- metadata.gz: c4031fcd0b7366810a4787570d8e351957bbdf7f720a3df10a8c9d7d477e78911fbec1e5e9375ee8bd61e612bdf60dc98a955f661a0621cef4c9c05f4282d219
7
- data.tar.gz: 22fb2da87d3c7b90a022ba34f33104fbf4cf47931e4f14268f0e50b50181e07344a370ed5a7798b312792858f0f40bc287fffb2996c8fa8bff721d4651a25c0c
6
+ metadata.gz: 12cd7a6cd36aa7460d683085717b544fa3af4b1ffbf497f3db743ef0beb839dd14fc07a8209935371cecd11dc7129ae74bb5d608a111624822f678690969153e
7
+ data.tar.gz: 5dad82f9ab70dcb3637d9f0e00b40b31ff64b1e42eadfccb6c9561c8f7a55e15507469016d889cae9124ef06d7a3c599ba104a2c1d813daefe107f70a82cadf0
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /test/internal/db/*.sqlite
10
+ .DS_Store
data/Gemfile.lock CHANGED
@@ -1,56 +1,56 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stance (0.5.1)
5
- activerecord (>= 5)
4
+ stance (0.6.0)
5
+ activerecord (>= 6)
6
6
  multi_json
7
- railties (>= 5)
7
+ railties (>= 6)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.1.4)
13
- actionview (= 6.1.4)
14
- activesupport (= 6.1.4)
15
- rack (~> 2.0, >= 2.0.9)
12
+ actionpack (7.0.3)
13
+ actionview (= 7.0.3)
14
+ activesupport (= 7.0.3)
15
+ rack (~> 2.0, >= 2.2.0)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.1.4)
20
- activesupport (= 6.1.4)
19
+ actionview (7.0.3)
20
+ activesupport (= 7.0.3)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- activemodel (6.1.4)
26
- activesupport (= 6.1.4)
27
- activerecord (6.1.4)
28
- activemodel (= 6.1.4)
29
- activesupport (= 6.1.4)
30
- activesupport (6.1.4)
25
+ activemodel (7.0.3)
26
+ activesupport (= 7.0.3)
27
+ activerecord (7.0.3)
28
+ activemodel (= 7.0.3)
29
+ activesupport (= 7.0.3)
30
+ activesupport (7.0.3)
31
31
  concurrent-ruby (~> 1.0, >= 1.0.2)
32
32
  i18n (>= 1.6, < 2)
33
33
  minitest (>= 5.1)
34
34
  tzinfo (~> 2.0)
35
- zeitwerk (~> 2.3)
36
35
  ast (2.4.2)
37
36
  autotest-suffix (1.1.0)
38
37
  builder (3.2.4)
39
- combustion (1.3.1)
38
+ combustion (1.3.7)
40
39
  activesupport (>= 3.0.0)
41
40
  railties (>= 3.0.0)
42
41
  thor (>= 0.14.6)
43
- concurrent-ruby (1.1.9)
42
+ concurrent-ruby (1.1.10)
44
43
  crass (1.0.6)
45
44
  erubi (1.10.0)
46
- i18n (1.8.10)
45
+ i18n (1.10.0)
47
46
  concurrent-ruby (~> 1.0)
48
- loofah (2.10.0)
47
+ json (2.6.2)
48
+ loofah (2.18.0)
49
49
  crass (~> 1.0.2)
50
50
  nokogiri (>= 1.5.9)
51
51
  method_source (1.0.0)
52
- mini_portile2 (2.5.3)
53
- minitest (5.14.4)
52
+ mini_portile2 (2.8.0)
53
+ minitest (5.16.2)
54
54
  minitest-autotest (1.1.1)
55
55
  minitest-server (~> 1.0)
56
56
  path_expander (~> 1.0)
@@ -58,56 +58,58 @@ GEM
58
58
  minitest (>= 4, < 6)
59
59
  minitest-server (1.0.6)
60
60
  minitest (~> 5.0)
61
- mocha (1.13.0)
61
+ mocha (1.14.0)
62
62
  multi_json (1.15.0)
63
- nokogiri (1.11.7)
64
- mini_portile2 (~> 2.5.0)
63
+ nokogiri (1.13.6)
64
+ mini_portile2 (~> 2.8.0)
65
65
  racc (~> 1.4)
66
- parallel (1.20.1)
67
- parser (3.0.2.0)
66
+ parallel (1.22.1)
67
+ parser (3.1.2.0)
68
68
  ast (~> 2.4.1)
69
- path_expander (1.1.0)
70
- racc (1.5.2)
71
- rack (2.2.3)
72
- rack-test (1.1.0)
73
- rack (>= 1.0, < 3)
69
+ path_expander (1.1.1)
70
+ racc (1.6.0)
71
+ rack (2.2.4)
72
+ rack-test (2.0.2)
73
+ rack (>= 1.3)
74
74
  rails-dom-testing (2.0.3)
75
75
  activesupport (>= 4.2.0)
76
76
  nokogiri (>= 1.6)
77
- rails-html-sanitizer (1.3.0)
77
+ rails-html-sanitizer (1.4.3)
78
78
  loofah (~> 2.3)
79
- railties (6.1.4)
80
- actionpack (= 6.1.4)
81
- activesupport (= 6.1.4)
79
+ railties (7.0.3)
80
+ actionpack (= 7.0.3)
81
+ activesupport (= 7.0.3)
82
82
  method_source
83
- rake (>= 0.13)
83
+ rake (>= 12.2)
84
84
  thor (~> 1.0)
85
- rainbow (3.0.0)
85
+ zeitwerk (~> 2.5)
86
+ rainbow (3.1.1)
86
87
  rake (13.0.6)
87
- regexp_parser (2.1.1)
88
+ regexp_parser (2.5.0)
88
89
  rexml (3.2.5)
89
- rubocop (1.18.3)
90
+ rubocop (1.31.1)
91
+ json (~> 2.3)
90
92
  parallel (~> 1.10)
91
- parser (>= 3.0.0.0)
93
+ parser (>= 3.1.0.0)
92
94
  rainbow (>= 2.2.2, < 4.0)
93
95
  regexp_parser (>= 1.8, < 3.0)
94
- rexml
95
- rubocop-ast (>= 1.7.0, < 2.0)
96
+ rexml (>= 3.2.5, < 4.0)
97
+ rubocop-ast (>= 1.18.0, < 2.0)
96
98
  ruby-progressbar (~> 1.7)
97
99
  unicode-display_width (>= 1.4.0, < 3.0)
98
- rubocop-ast (1.8.0)
99
- parser (>= 3.0.1.1)
100
- rubocop-minitest (0.14.0)
100
+ rubocop-ast (1.18.0)
101
+ parser (>= 3.1.1.0)
102
+ rubocop-minitest (0.20.1)
101
103
  rubocop (>= 0.90, < 2.0)
102
104
  rubocop-rake (0.6.0)
103
105
  rubocop (~> 1.0)
104
106
  ruby-progressbar (1.11.0)
105
- sqlite3 (1.4.2)
106
- thor (1.1.0)
107
+ sqlite3 (1.4.4)
108
+ thor (1.2.1)
107
109
  tzinfo (2.0.4)
108
110
  concurrent-ruby (~> 1.0)
109
- unicode-display_width (2.0.0)
110
- zeitwerk (2.4.2)
111
+ unicode-display_width (2.2.0)
112
+ zeitwerk (2.6.0)
111
113
 
112
114
  PLATFORMS
113
115
  ruby
@@ -127,4 +129,4 @@ DEPENDENCIES
127
129
  stance!
128
130
 
129
131
  BUNDLED WITH
130
- 2.2.18
132
+ 2.3.17
data/lib/stance/event.rb CHANGED
@@ -34,12 +34,12 @@ module Stance
34
34
  def create
35
35
  return self if singleton_exists?
36
36
 
37
- Rails.logger.info "Event: #{full_name}"
38
-
39
37
  Stance::EventRecord.transaction do
40
38
  run_callbacks :create do
41
39
  # Call each public method of the Event class if a custom class.
42
40
  if self.class.name != 'Stance::Event'
41
+ Rails.logger.info "Event: #{full_name}"
42
+
43
43
  (public_methods(false) - Stance::Event.instance_methods(false)).each do |method|
44
44
  send method
45
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stance
4
- VERSION = '0.5.2'
4
+ VERSION = '0.7.0'
5
5
  end
data/stance.gemspec CHANGED
@@ -24,7 +24,8 @@ Gem::Specification.new do |spec|
24
24
  end
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'activerecord', '>= 5'
27
+ spec.add_dependency 'activerecord', '>= 6'
28
28
  spec.add_dependency 'multi_json'
29
- spec.add_dependency 'railties', '>= 5'
29
+ spec.add_dependency 'railties', '>= 6'
30
+ spec.metadata['rubygems_mfa_required'] = 'true'
30
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5'
19
+ version: '6'
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: '5'
26
+ version: '6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multi_json
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '5'
47
+ version: '6'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '5'
54
+ version: '6'
55
55
  description:
56
56
  email:
57
57
  - joel@developwithstyle.com
@@ -89,6 +89,7 @@ metadata:
89
89
  homepage_uri: https://github.com/joelmoss/stance
90
90
  source_code_uri: https://github.com/joelmoss/stance
91
91
  changelog_uri: https://github.com/joelmoss/stance/releases
92
+ rubygems_mfa_required: 'true'
92
93
  post_install_message:
93
94
  rdoc_options: []
94
95
  require_paths:
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  - !ruby/object:Gem::Version
105
106
  version: '0'
106
107
  requirements: []
107
- rubygems_version: 3.2.15
108
+ rubygems_version: 3.3.7
108
109
  signing_key:
109
110
  specification_version: 4
110
111
  summary: Event System for Rails