aether_observatory 1.0.0 → 1.1.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/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +31 -0
- data/Appraisals +11 -11
- data/Gemfile +2 -0
- data/Gemfile.lock +170 -0
- data/aether_observatory.gemspec +3 -4
- data/docs/CHANGELOG.md +11 -1
- data/docs/README.md +15 -7
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_6_0.gemfile.lock +11 -9
- data/gemfiles/rails_6_1.gemfile +4 -2
- data/gemfiles/rails_6_1.gemfile.lock +62 -53
- data/gemfiles/rails_7_0.gemfile +4 -2
- data/gemfiles/rails_7_0.gemfile.lock +61 -47
- data/gemfiles/rails_7_1.gemfile +4 -2
- data/gemfiles/rails_7_1.gemfile.lock +69 -56
- data/gemfiles/rails_7_2.gemfile +13 -0
- data/gemfiles/rails_7_2.gemfile.lock +170 -0
- data/lib/aether_observatory/backend/memory.rb +30 -0
- data/lib/aether_observatory/backend/notifications.rb +25 -0
- data/lib/aether_observatory/configuration.rb +1 -3
- data/lib/aether_observatory/event_base.rb +11 -9
- data/lib/aether_observatory/observer_base.rb +5 -5
- data/lib/aether_observatory/railtie.rb +15 -0
- data/lib/aether_observatory/rspec/event_helper.rb +49 -0
- data/lib/aether_observatory/rspec.rb +3 -0
- data/lib/aether_observatory/version.rb +1 -1
- data/lib/aether_observatory.rb +2 -0
- metadata +17 -10
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../../rubocop-powerhome
|
|
3
3
|
specs:
|
|
4
|
-
rubocop-powerhome (0.
|
|
5
|
-
rubocop (= 1.
|
|
4
|
+
rubocop-powerhome (0.6.1)
|
|
5
|
+
rubocop (= 1.82.1)
|
|
6
6
|
rubocop-performance
|
|
7
7
|
rubocop-rails
|
|
8
8
|
rubocop-rake
|
|
@@ -11,9 +11,9 @@ PATH
|
|
|
11
11
|
PATH
|
|
12
12
|
remote: ..
|
|
13
13
|
specs:
|
|
14
|
-
aether_observatory (1.
|
|
15
|
-
activemodel (>= 6.
|
|
16
|
-
activesupport (>= 6.
|
|
14
|
+
aether_observatory (1.1.0)
|
|
15
|
+
activemodel (>= 6.1)
|
|
16
|
+
activesupport (>= 6.1)
|
|
17
17
|
|
|
18
18
|
GEM
|
|
19
19
|
remote: https://rubygems.org/
|
|
@@ -29,17 +29,17 @@ GEM
|
|
|
29
29
|
bundler
|
|
30
30
|
rake
|
|
31
31
|
thor (>= 0.14.0)
|
|
32
|
-
ast (2.4.
|
|
32
|
+
ast (2.4.3)
|
|
33
33
|
byebug (11.1.3)
|
|
34
34
|
coderay (1.1.3)
|
|
35
|
-
concurrent-ruby (1.3.
|
|
36
|
-
csv (3.3.
|
|
37
|
-
diff-lcs (1.
|
|
35
|
+
concurrent-ruby (1.3.5)
|
|
36
|
+
csv (3.3.5)
|
|
37
|
+
diff-lcs (1.6.2)
|
|
38
38
|
docile (1.1.5)
|
|
39
|
-
i18n (1.14.
|
|
39
|
+
i18n (1.14.7)
|
|
40
40
|
concurrent-ruby (~> 1.0)
|
|
41
|
-
json (2.
|
|
42
|
-
language_server-protocol (3.17.0.
|
|
41
|
+
json (2.13.2)
|
|
42
|
+
language_server-protocol (3.17.0.5)
|
|
43
43
|
license_finder (7.2.1)
|
|
44
44
|
bundler
|
|
45
45
|
csv (~> 3.2)
|
|
@@ -48,12 +48,14 @@ GEM
|
|
|
48
48
|
tomlrb (>= 1.3, < 2.1)
|
|
49
49
|
with_env (= 1.1.0)
|
|
50
50
|
xml-simple (~> 1.1.9)
|
|
51
|
+
lint_roller (1.1.0)
|
|
51
52
|
method_source (1.1.0)
|
|
52
|
-
minitest (5.25.
|
|
53
|
-
parallel (1.
|
|
54
|
-
parser (3.3.
|
|
53
|
+
minitest (5.25.5)
|
|
54
|
+
parallel (1.27.0)
|
|
55
|
+
parser (3.3.9.0)
|
|
55
56
|
ast (~> 2.4.1)
|
|
56
57
|
racc
|
|
58
|
+
prism (1.4.0)
|
|
57
59
|
pry (0.14.2)
|
|
58
60
|
coderay (~> 1.1)
|
|
59
61
|
method_source (~> 1.0)
|
|
@@ -61,64 +63,74 @@ GEM
|
|
|
61
63
|
byebug (~> 11.0)
|
|
62
64
|
pry (>= 0.13, < 0.15)
|
|
63
65
|
racc (1.8.1)
|
|
64
|
-
rack (
|
|
66
|
+
rack (3.2.0)
|
|
65
67
|
rainbow (3.1.1)
|
|
66
|
-
rake (13.
|
|
67
|
-
regexp_parser (2.
|
|
68
|
-
rexml (3.4.
|
|
69
|
-
rspec (3.13.
|
|
68
|
+
rake (13.3.0)
|
|
69
|
+
regexp_parser (2.11.2)
|
|
70
|
+
rexml (3.4.1)
|
|
71
|
+
rspec (3.13.1)
|
|
70
72
|
rspec-core (~> 3.13.0)
|
|
71
73
|
rspec-expectations (~> 3.13.0)
|
|
72
74
|
rspec-mocks (~> 3.13.0)
|
|
73
|
-
rspec-core (3.13.
|
|
75
|
+
rspec-core (3.13.5)
|
|
74
76
|
rspec-support (~> 3.13.0)
|
|
75
|
-
rspec-expectations (3.13.
|
|
77
|
+
rspec-expectations (3.13.5)
|
|
76
78
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
77
79
|
rspec-support (~> 3.13.0)
|
|
78
|
-
rspec-mocks (3.13.
|
|
80
|
+
rspec-mocks (3.13.5)
|
|
79
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
80
82
|
rspec-support (~> 3.13.0)
|
|
81
|
-
rspec-support (3.13.
|
|
82
|
-
rubocop (1.
|
|
83
|
+
rspec-support (3.13.4)
|
|
84
|
+
rubocop (1.82.1)
|
|
83
85
|
json (~> 2.3)
|
|
84
|
-
language_server-protocol (
|
|
86
|
+
language_server-protocol (~> 3.17.0.2)
|
|
87
|
+
lint_roller (~> 1.1.0)
|
|
85
88
|
parallel (~> 1.10)
|
|
86
89
|
parser (>= 3.3.0.2)
|
|
87
90
|
rainbow (>= 2.2.2, < 4.0)
|
|
88
|
-
regexp_parser (>= 2.
|
|
89
|
-
rubocop-ast (>= 1.
|
|
91
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
92
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
90
93
|
ruby-progressbar (~> 1.7)
|
|
91
|
-
unicode-display_width (>= 2.4.0, <
|
|
92
|
-
rubocop-ast (1.
|
|
93
|
-
parser (>= 3.3.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
95
|
+
rubocop-ast (1.48.0)
|
|
96
|
+
parser (>= 3.3.7.2)
|
|
97
|
+
prism (~> 1.4)
|
|
98
|
+
rubocop-performance (1.24.0)
|
|
99
|
+
lint_roller (~> 1.1)
|
|
100
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
101
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
102
|
+
rubocop-rails (2.30.3)
|
|
98
103
|
activesupport (>= 4.2.0)
|
|
104
|
+
lint_roller (~> 1.1)
|
|
99
105
|
rack (>= 1.1)
|
|
100
|
-
rubocop (>= 1.
|
|
101
|
-
rubocop-ast (>= 1.
|
|
102
|
-
rubocop-rake (0.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
107
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
108
|
+
rubocop-rake (0.7.1)
|
|
109
|
+
lint_roller (~> 1.1)
|
|
110
|
+
rubocop (>= 1.72.1)
|
|
111
|
+
rubocop-rspec (3.6.0)
|
|
112
|
+
lint_roller (~> 1.1)
|
|
113
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
106
114
|
ruby-progressbar (1.13.0)
|
|
107
|
-
rubyzip (2.
|
|
115
|
+
rubyzip (2.4.1)
|
|
116
|
+
securerandom (0.3.2)
|
|
108
117
|
simplecov (0.15.1)
|
|
109
118
|
docile (~> 1.1.0)
|
|
110
119
|
json (>= 1.8, < 3)
|
|
111
120
|
simplecov-html (~> 0.10.0)
|
|
112
121
|
simplecov-html (0.10.2)
|
|
113
|
-
thor (1.
|
|
122
|
+
thor (1.4.0)
|
|
114
123
|
tomlrb (2.0.3)
|
|
115
124
|
tzinfo (2.0.6)
|
|
116
125
|
concurrent-ruby (~> 1.0)
|
|
117
|
-
unicode-display_width (
|
|
126
|
+
unicode-display_width (3.1.4)
|
|
127
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
128
|
+
unicode-emoji (4.0.4)
|
|
118
129
|
with_env (1.1.0)
|
|
119
130
|
xml-simple (1.1.9)
|
|
120
131
|
rexml
|
|
121
132
|
yard (0.9.21)
|
|
133
|
+
zeitwerk (2.6.18)
|
|
122
134
|
|
|
123
135
|
PLATFORMS
|
|
124
136
|
aarch64-linux
|
|
@@ -129,8 +141,8 @@ PLATFORMS
|
|
|
129
141
|
x86_64-linux
|
|
130
142
|
|
|
131
143
|
DEPENDENCIES
|
|
132
|
-
activemodel (~> 7.0.8)
|
|
133
|
-
activesupport (~> 7.0.8)
|
|
144
|
+
activemodel (~> 7.0.8.7)
|
|
145
|
+
activesupport (~> 7.0.8.7)
|
|
134
146
|
aether_observatory!
|
|
135
147
|
appraisal (~> 2.5.0)
|
|
136
148
|
bundler (~> 2.1)
|
|
@@ -140,8 +152,10 @@ DEPENDENCIES
|
|
|
140
152
|
rake (~> 13.0)
|
|
141
153
|
rspec (~> 3.0)
|
|
142
154
|
rubocop-powerhome!
|
|
155
|
+
securerandom (< 0.4.0)
|
|
143
156
|
simplecov (= 0.15.1)
|
|
144
157
|
yard (= 0.9.21)
|
|
158
|
+
zeitwerk (< 2.7)
|
|
145
159
|
|
|
146
160
|
BUNDLED WITH
|
|
147
|
-
2.
|
|
161
|
+
2.5.23
|
data/gemfiles/rails_7_1.gemfile
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
source "https://rubygems.org"
|
|
6
6
|
|
|
7
|
-
gem "activemodel", "~> 7.1.
|
|
8
|
-
gem "activesupport", "~> 7.1.
|
|
7
|
+
gem "activemodel", "~> 7.1.5.2"
|
|
8
|
+
gem "activesupport", "~> 7.1.5.2"
|
|
9
9
|
gem "rubocop-powerhome", path: "../../rubocop-powerhome"
|
|
10
|
+
gem "securerandom", "< 0.4.0"
|
|
11
|
+
gem "zeitwerk", "< 2.7"
|
|
10
12
|
|
|
11
13
|
gemspec path: "../"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../../rubocop-powerhome
|
|
3
3
|
specs:
|
|
4
|
-
rubocop-powerhome (0.
|
|
5
|
-
rubocop (= 1.
|
|
4
|
+
rubocop-powerhome (0.6.1)
|
|
5
|
+
rubocop (= 1.82.1)
|
|
6
6
|
rubocop-performance
|
|
7
7
|
rubocop-rails
|
|
8
8
|
rubocop-rake
|
|
@@ -11,16 +11,16 @@ PATH
|
|
|
11
11
|
PATH
|
|
12
12
|
remote: ..
|
|
13
13
|
specs:
|
|
14
|
-
aether_observatory (1.
|
|
15
|
-
activemodel (>= 6.
|
|
16
|
-
activesupport (>= 6.
|
|
14
|
+
aether_observatory (1.1.0)
|
|
15
|
+
activemodel (>= 6.1)
|
|
16
|
+
activesupport (>= 6.1)
|
|
17
17
|
|
|
18
18
|
GEM
|
|
19
19
|
remote: https://rubygems.org/
|
|
20
20
|
specs:
|
|
21
|
-
activemodel (7.1.5.
|
|
22
|
-
activesupport (= 7.1.5.
|
|
23
|
-
activesupport (7.1.5.
|
|
21
|
+
activemodel (7.1.5.2)
|
|
22
|
+
activesupport (= 7.1.5.2)
|
|
23
|
+
activesupport (7.1.5.2)
|
|
24
24
|
base64
|
|
25
25
|
benchmark (>= 0.3)
|
|
26
26
|
bigdecimal
|
|
@@ -37,22 +37,22 @@ GEM
|
|
|
37
37
|
bundler
|
|
38
38
|
rake
|
|
39
39
|
thor (>= 0.14.0)
|
|
40
|
-
ast (2.4.
|
|
41
|
-
base64 (0.
|
|
42
|
-
benchmark (0.4.
|
|
43
|
-
bigdecimal (3.
|
|
40
|
+
ast (2.4.3)
|
|
41
|
+
base64 (0.3.0)
|
|
42
|
+
benchmark (0.4.1)
|
|
43
|
+
bigdecimal (3.2.2)
|
|
44
44
|
byebug (11.1.3)
|
|
45
45
|
coderay (1.1.3)
|
|
46
|
-
concurrent-ruby (1.3.
|
|
47
|
-
connection_pool (2.
|
|
48
|
-
csv (3.3.
|
|
49
|
-
diff-lcs (1.
|
|
46
|
+
concurrent-ruby (1.3.5)
|
|
47
|
+
connection_pool (2.5.3)
|
|
48
|
+
csv (3.3.5)
|
|
49
|
+
diff-lcs (1.6.2)
|
|
50
50
|
docile (1.1.5)
|
|
51
|
-
drb (2.2.
|
|
52
|
-
i18n (1.14.
|
|
51
|
+
drb (2.2.3)
|
|
52
|
+
i18n (1.14.7)
|
|
53
53
|
concurrent-ruby (~> 1.0)
|
|
54
|
-
json (2.
|
|
55
|
-
language_server-protocol (3.17.0.
|
|
54
|
+
json (2.13.2)
|
|
55
|
+
language_server-protocol (3.17.0.5)
|
|
56
56
|
license_finder (7.2.1)
|
|
57
57
|
bundler
|
|
58
58
|
csv (~> 3.2)
|
|
@@ -61,14 +61,16 @@ GEM
|
|
|
61
61
|
tomlrb (>= 1.3, < 2.1)
|
|
62
62
|
with_env (= 1.1.0)
|
|
63
63
|
xml-simple (~> 1.1.9)
|
|
64
|
-
|
|
64
|
+
lint_roller (1.1.0)
|
|
65
|
+
logger (1.7.0)
|
|
65
66
|
method_source (1.1.0)
|
|
66
|
-
minitest (5.25.
|
|
67
|
+
minitest (5.25.5)
|
|
67
68
|
mutex_m (0.3.0)
|
|
68
|
-
parallel (1.
|
|
69
|
-
parser (3.3.
|
|
69
|
+
parallel (1.27.0)
|
|
70
|
+
parser (3.3.9.0)
|
|
70
71
|
ast (~> 2.4.1)
|
|
71
72
|
racc
|
|
73
|
+
prism (1.4.0)
|
|
72
74
|
pry (0.14.2)
|
|
73
75
|
coderay (~> 1.1)
|
|
74
76
|
method_source (~> 1.0)
|
|
@@ -76,65 +78,74 @@ GEM
|
|
|
76
78
|
byebug (~> 11.0)
|
|
77
79
|
pry (>= 0.13, < 0.15)
|
|
78
80
|
racc (1.8.1)
|
|
79
|
-
rack (3.
|
|
81
|
+
rack (3.2.0)
|
|
80
82
|
rainbow (3.1.1)
|
|
81
|
-
rake (13.
|
|
82
|
-
regexp_parser (2.
|
|
83
|
-
rexml (3.4.
|
|
84
|
-
rspec (3.13.
|
|
83
|
+
rake (13.3.0)
|
|
84
|
+
regexp_parser (2.11.2)
|
|
85
|
+
rexml (3.4.1)
|
|
86
|
+
rspec (3.13.1)
|
|
85
87
|
rspec-core (~> 3.13.0)
|
|
86
88
|
rspec-expectations (~> 3.13.0)
|
|
87
89
|
rspec-mocks (~> 3.13.0)
|
|
88
|
-
rspec-core (3.13.
|
|
90
|
+
rspec-core (3.13.5)
|
|
89
91
|
rspec-support (~> 3.13.0)
|
|
90
|
-
rspec-expectations (3.13.
|
|
92
|
+
rspec-expectations (3.13.5)
|
|
91
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
92
94
|
rspec-support (~> 3.13.0)
|
|
93
|
-
rspec-mocks (3.13.
|
|
95
|
+
rspec-mocks (3.13.5)
|
|
94
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
95
97
|
rspec-support (~> 3.13.0)
|
|
96
|
-
rspec-support (3.13.
|
|
97
|
-
rubocop (1.
|
|
98
|
+
rspec-support (3.13.4)
|
|
99
|
+
rubocop (1.82.1)
|
|
98
100
|
json (~> 2.3)
|
|
99
|
-
language_server-protocol (
|
|
101
|
+
language_server-protocol (~> 3.17.0.2)
|
|
102
|
+
lint_roller (~> 1.1.0)
|
|
100
103
|
parallel (~> 1.10)
|
|
101
104
|
parser (>= 3.3.0.2)
|
|
102
105
|
rainbow (>= 2.2.2, < 4.0)
|
|
103
|
-
regexp_parser (>= 2.
|
|
104
|
-
rubocop-ast (>= 1.
|
|
106
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
107
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
105
108
|
ruby-progressbar (~> 1.7)
|
|
106
|
-
unicode-display_width (>= 2.4.0, <
|
|
107
|
-
rubocop-ast (1.
|
|
108
|
-
parser (>= 3.3.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
110
|
+
rubocop-ast (1.48.0)
|
|
111
|
+
parser (>= 3.3.7.2)
|
|
112
|
+
prism (~> 1.4)
|
|
113
|
+
rubocop-performance (1.24.0)
|
|
114
|
+
lint_roller (~> 1.1)
|
|
115
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
116
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
117
|
+
rubocop-rails (2.30.3)
|
|
113
118
|
activesupport (>= 4.2.0)
|
|
119
|
+
lint_roller (~> 1.1)
|
|
114
120
|
rack (>= 1.1)
|
|
115
|
-
rubocop (>= 1.
|
|
116
|
-
rubocop-ast (>= 1.
|
|
117
|
-
rubocop-rake (0.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
122
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
123
|
+
rubocop-rake (0.7.1)
|
|
124
|
+
lint_roller (~> 1.1)
|
|
125
|
+
rubocop (>= 1.72.1)
|
|
126
|
+
rubocop-rspec (3.6.0)
|
|
127
|
+
lint_roller (~> 1.1)
|
|
128
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
121
129
|
ruby-progressbar (1.13.0)
|
|
122
|
-
rubyzip (2.
|
|
130
|
+
rubyzip (2.4.1)
|
|
123
131
|
securerandom (0.3.2)
|
|
124
132
|
simplecov (0.15.1)
|
|
125
133
|
docile (~> 1.1.0)
|
|
126
134
|
json (>= 1.8, < 3)
|
|
127
135
|
simplecov-html (~> 0.10.0)
|
|
128
136
|
simplecov-html (0.10.2)
|
|
129
|
-
thor (1.
|
|
137
|
+
thor (1.4.0)
|
|
130
138
|
tomlrb (2.0.3)
|
|
131
139
|
tzinfo (2.0.6)
|
|
132
140
|
concurrent-ruby (~> 1.0)
|
|
133
|
-
unicode-display_width (
|
|
141
|
+
unicode-display_width (3.1.4)
|
|
142
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
143
|
+
unicode-emoji (4.0.4)
|
|
134
144
|
with_env (1.1.0)
|
|
135
145
|
xml-simple (1.1.9)
|
|
136
146
|
rexml
|
|
137
147
|
yard (0.9.21)
|
|
148
|
+
zeitwerk (2.6.18)
|
|
138
149
|
|
|
139
150
|
PLATFORMS
|
|
140
151
|
aarch64-linux
|
|
@@ -145,8 +156,8 @@ PLATFORMS
|
|
|
145
156
|
x86_64-linux
|
|
146
157
|
|
|
147
158
|
DEPENDENCIES
|
|
148
|
-
activemodel (~> 7.1.
|
|
149
|
-
activesupport (~> 7.1.
|
|
159
|
+
activemodel (~> 7.1.5.2)
|
|
160
|
+
activesupport (~> 7.1.5.2)
|
|
150
161
|
aether_observatory!
|
|
151
162
|
appraisal (~> 2.5.0)
|
|
152
163
|
bundler (~> 2.1)
|
|
@@ -156,8 +167,10 @@ DEPENDENCIES
|
|
|
156
167
|
rake (~> 13.0)
|
|
157
168
|
rspec (~> 3.0)
|
|
158
169
|
rubocop-powerhome!
|
|
170
|
+
securerandom (< 0.4.0)
|
|
159
171
|
simplecov (= 0.15.1)
|
|
160
172
|
yard (= 0.9.21)
|
|
173
|
+
zeitwerk (< 2.7)
|
|
161
174
|
|
|
162
175
|
BUNDLED WITH
|
|
163
|
-
2.
|
|
176
|
+
2.5.23
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file was generated by Appraisal
|
|
4
|
+
|
|
5
|
+
source "https://rubygems.org"
|
|
6
|
+
|
|
7
|
+
gem "activemodel", "~> 7.2.2.2"
|
|
8
|
+
gem "activesupport", "~> 7.2.2.2"
|
|
9
|
+
gem "rubocop-powerhome", path: "../../rubocop-powerhome"
|
|
10
|
+
gem "securerandom", "< 0.4.0"
|
|
11
|
+
gem "zeitwerk", "< 2.7"
|
|
12
|
+
|
|
13
|
+
gemspec path: "../"
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ../../rubocop-powerhome
|
|
3
|
+
specs:
|
|
4
|
+
rubocop-powerhome (0.6.1)
|
|
5
|
+
rubocop (= 1.82.1)
|
|
6
|
+
rubocop-performance
|
|
7
|
+
rubocop-rails
|
|
8
|
+
rubocop-rake
|
|
9
|
+
rubocop-rspec
|
|
10
|
+
|
|
11
|
+
PATH
|
|
12
|
+
remote: ..
|
|
13
|
+
specs:
|
|
14
|
+
aether_observatory (1.1.0)
|
|
15
|
+
activemodel (>= 6.1)
|
|
16
|
+
activesupport (>= 6.1)
|
|
17
|
+
|
|
18
|
+
GEM
|
|
19
|
+
remote: https://rubygems.org/
|
|
20
|
+
specs:
|
|
21
|
+
activemodel (7.2.2.2)
|
|
22
|
+
activesupport (= 7.2.2.2)
|
|
23
|
+
activesupport (7.2.2.2)
|
|
24
|
+
base64
|
|
25
|
+
benchmark (>= 0.3)
|
|
26
|
+
bigdecimal
|
|
27
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
28
|
+
connection_pool (>= 2.2.5)
|
|
29
|
+
drb
|
|
30
|
+
i18n (>= 1.6, < 2)
|
|
31
|
+
logger (>= 1.4.2)
|
|
32
|
+
minitest (>= 5.1)
|
|
33
|
+
securerandom (>= 0.3)
|
|
34
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
35
|
+
appraisal (2.5.0)
|
|
36
|
+
bundler
|
|
37
|
+
rake
|
|
38
|
+
thor (>= 0.14.0)
|
|
39
|
+
ast (2.4.3)
|
|
40
|
+
base64 (0.3.0)
|
|
41
|
+
benchmark (0.4.1)
|
|
42
|
+
bigdecimal (3.2.2)
|
|
43
|
+
byebug (11.1.3)
|
|
44
|
+
coderay (1.1.3)
|
|
45
|
+
concurrent-ruby (1.3.5)
|
|
46
|
+
connection_pool (2.5.3)
|
|
47
|
+
csv (3.3.5)
|
|
48
|
+
diff-lcs (1.6.2)
|
|
49
|
+
docile (1.1.5)
|
|
50
|
+
drb (2.2.3)
|
|
51
|
+
i18n (1.14.7)
|
|
52
|
+
concurrent-ruby (~> 1.0)
|
|
53
|
+
json (2.13.2)
|
|
54
|
+
language_server-protocol (3.17.0.5)
|
|
55
|
+
license_finder (7.2.1)
|
|
56
|
+
bundler
|
|
57
|
+
csv (~> 3.2)
|
|
58
|
+
rubyzip (>= 1, < 3)
|
|
59
|
+
thor (~> 1.2)
|
|
60
|
+
tomlrb (>= 1.3, < 2.1)
|
|
61
|
+
with_env (= 1.1.0)
|
|
62
|
+
xml-simple (~> 1.1.9)
|
|
63
|
+
lint_roller (1.1.0)
|
|
64
|
+
logger (1.7.0)
|
|
65
|
+
method_source (1.1.0)
|
|
66
|
+
minitest (5.25.5)
|
|
67
|
+
parallel (1.27.0)
|
|
68
|
+
parser (3.3.9.0)
|
|
69
|
+
ast (~> 2.4.1)
|
|
70
|
+
racc
|
|
71
|
+
prism (1.4.0)
|
|
72
|
+
pry (0.14.2)
|
|
73
|
+
coderay (~> 1.1)
|
|
74
|
+
method_source (~> 1.0)
|
|
75
|
+
pry-byebug (3.10.1)
|
|
76
|
+
byebug (~> 11.0)
|
|
77
|
+
pry (>= 0.13, < 0.15)
|
|
78
|
+
racc (1.8.1)
|
|
79
|
+
rack (3.2.0)
|
|
80
|
+
rainbow (3.1.1)
|
|
81
|
+
rake (13.3.0)
|
|
82
|
+
regexp_parser (2.11.2)
|
|
83
|
+
rexml (3.4.1)
|
|
84
|
+
rspec (3.13.1)
|
|
85
|
+
rspec-core (~> 3.13.0)
|
|
86
|
+
rspec-expectations (~> 3.13.0)
|
|
87
|
+
rspec-mocks (~> 3.13.0)
|
|
88
|
+
rspec-core (3.13.5)
|
|
89
|
+
rspec-support (~> 3.13.0)
|
|
90
|
+
rspec-expectations (3.13.5)
|
|
91
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
92
|
+
rspec-support (~> 3.13.0)
|
|
93
|
+
rspec-mocks (3.13.5)
|
|
94
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
95
|
+
rspec-support (~> 3.13.0)
|
|
96
|
+
rspec-support (3.13.4)
|
|
97
|
+
rubocop (1.82.1)
|
|
98
|
+
json (~> 2.3)
|
|
99
|
+
language_server-protocol (~> 3.17.0.2)
|
|
100
|
+
lint_roller (~> 1.1.0)
|
|
101
|
+
parallel (~> 1.10)
|
|
102
|
+
parser (>= 3.3.0.2)
|
|
103
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
104
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
105
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
106
|
+
ruby-progressbar (~> 1.7)
|
|
107
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
108
|
+
rubocop-ast (1.48.0)
|
|
109
|
+
parser (>= 3.3.7.2)
|
|
110
|
+
prism (~> 1.4)
|
|
111
|
+
rubocop-performance (1.24.0)
|
|
112
|
+
lint_roller (~> 1.1)
|
|
113
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
114
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
115
|
+
rubocop-rails (2.30.3)
|
|
116
|
+
activesupport (>= 4.2.0)
|
|
117
|
+
lint_roller (~> 1.1)
|
|
118
|
+
rack (>= 1.1)
|
|
119
|
+
rubocop (>= 1.72.1, < 2.0)
|
|
120
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
121
|
+
rubocop-rake (0.7.1)
|
|
122
|
+
lint_roller (~> 1.1)
|
|
123
|
+
rubocop (>= 1.72.1)
|
|
124
|
+
rubocop-rspec (3.6.0)
|
|
125
|
+
lint_roller (~> 1.1)
|
|
126
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
127
|
+
ruby-progressbar (1.13.0)
|
|
128
|
+
rubyzip (2.4.1)
|
|
129
|
+
securerandom (0.3.2)
|
|
130
|
+
simplecov (0.15.1)
|
|
131
|
+
docile (~> 1.1.0)
|
|
132
|
+
json (>= 1.8, < 3)
|
|
133
|
+
simplecov-html (~> 0.10.0)
|
|
134
|
+
simplecov-html (0.10.2)
|
|
135
|
+
thor (1.4.0)
|
|
136
|
+
tomlrb (2.0.3)
|
|
137
|
+
tzinfo (2.0.6)
|
|
138
|
+
concurrent-ruby (~> 1.0)
|
|
139
|
+
unicode-display_width (3.1.4)
|
|
140
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
141
|
+
unicode-emoji (4.0.4)
|
|
142
|
+
with_env (1.1.0)
|
|
143
|
+
xml-simple (1.1.9)
|
|
144
|
+
rexml
|
|
145
|
+
yard (0.9.21)
|
|
146
|
+
zeitwerk (2.6.18)
|
|
147
|
+
|
|
148
|
+
PLATFORMS
|
|
149
|
+
arm64-darwin-24
|
|
150
|
+
ruby
|
|
151
|
+
|
|
152
|
+
DEPENDENCIES
|
|
153
|
+
activemodel (~> 7.2.2.2)
|
|
154
|
+
activesupport (~> 7.2.2.2)
|
|
155
|
+
aether_observatory!
|
|
156
|
+
appraisal (~> 2.5.0)
|
|
157
|
+
bundler (~> 2.1)
|
|
158
|
+
license_finder (~> 7.0)
|
|
159
|
+
pry (>= 0.14)
|
|
160
|
+
pry-byebug (= 3.10.1)
|
|
161
|
+
rake (~> 13.0)
|
|
162
|
+
rspec (~> 3.0)
|
|
163
|
+
rubocop-powerhome!
|
|
164
|
+
securerandom (< 0.4.0)
|
|
165
|
+
simplecov (= 0.15.1)
|
|
166
|
+
yard (= 0.9.21)
|
|
167
|
+
zeitwerk (< 2.7)
|
|
168
|
+
|
|
169
|
+
BUNDLED WITH
|
|
170
|
+
2.5.23
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module AetherObservatory
|
|
4
|
+
module Backend
|
|
5
|
+
module Memory
|
|
6
|
+
module_function
|
|
7
|
+
|
|
8
|
+
def instrumented
|
|
9
|
+
@instrumented ||= []
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def subscribed
|
|
13
|
+
@subscribed ||= {}
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def instrument(event)
|
|
17
|
+
instrumented << event
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def subscribe(topic, event)
|
|
21
|
+
subscribed[topic] ||= []
|
|
22
|
+
subscribed[topic] << event
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def unsubscribe(topic)
|
|
26
|
+
subscribed.delete(topic)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module AetherObservatory
|
|
4
|
+
module Backend
|
|
5
|
+
module Notifications
|
|
6
|
+
module_function
|
|
7
|
+
|
|
8
|
+
def instrument(event)
|
|
9
|
+
event.names.each do |event_name|
|
|
10
|
+
ActiveSupport::Notifications.instrument(event_name, event)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def subscribe(topic, event, *_args)
|
|
15
|
+
ActiveSupport::Notifications.subscribe(topic) do |*args|
|
|
16
|
+
event.name.constantize.new(ActiveSupport::Notifications::Event.new(*args)).process
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def unsubscribe(topic)
|
|
21
|
+
ActiveSupport::Notifications.unsubscribe(topic)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|