rails_stats 2.0.1 → 2.2.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/test.yml +23 -15
- data/CHANGELOG.md +18 -3
- data/Gemfile +2 -2
- data/README.md +224 -232
- data/bin/rails-stats +27 -0
- data/lib/rails_stats/all.rb +8 -0
- data/lib/rails_stats/app_statistics.rb +1 -1
- data/lib/rails_stats/code_statistics_calculator.rb +18 -0
- data/lib/rails_stats/console_formatter.rb +60 -12
- data/lib/rails_stats/cucumber_statistics.rb +1 -1
- data/lib/rails_stats/gem_statistics.rb +1 -1
- data/lib/rails_stats/json_formatter.rb +59 -6
- data/lib/rails_stats/pack_finder.rb +67 -0
- data/lib/rails_stats/root_statistics.rb +1 -1
- data/lib/rails_stats/spec_statistics.rb +1 -1
- data/lib/rails_stats/stats_calculator.rb +135 -5
- data/lib/rails_stats/stats_formatter.rb +1 -0
- data/lib/rails_stats/tasks.rb +4 -1
- data/lib/rails_stats/test_statistics.rb +1 -1
- data/lib/rails_stats/util.rb +10 -2
- data/lib/rails_stats/version.rb +1 -1
- data/rails_stats.gemspec +4 -3
- data/test/dummy/app/javascript/dummy.jsx +1 -0
- data/test/dummy/app/javascript/dummy.tsx +0 -0
- data/test/dummy/app/javascript/index.ts +0 -0
- data/test/dummy/app/models/comment.rb +3 -0
- data/test/dummy/app/models/pet.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/db/schema.rb +10 -0
- data/test/fixtures/console-output.txt +8 -24
- data/test/fixtures/packwerk_app/app/controllers/core_controller.rb +4 -0
- data/test/fixtures/packwerk_app/app/models/core_model.rb +5 -0
- data/test/fixtures/packwerk_app/components/billing/app/models/billing_model.rb +4 -0
- data/test/fixtures/packwerk_app/components/billing/lib/billing.rb +2 -0
- data/test/fixtures/packwerk_app/lib/core_lib.rb +3 -0
- data/test/fixtures/packwerk_app/package.yml +1 -0
- data/test/fixtures/packwerk_app/packs/pack1/app/controllers/pack1_controller.rb +4 -0
- data/test/fixtures/packwerk_app/packs/pack1/app/models/pack1_model.rb +6 -0
- data/test/fixtures/packwerk_app/packs/pack1/lib/pack1_lib.rb +2 -0
- data/test/fixtures/packwerk_app/packs/pack1/package.yml +3 -0
- data/test/fixtures/packwerk_app/packs/pack1/spec/models/pack1_model_spec.rb +4 -0
- data/test/fixtures/packwerk_app/packs/pack2/app/models/pack2_model.rb +4 -0
- data/test/fixtures/packwerk_app/packs/pack2/test/models/pack2_model_test.rb +4 -0
- data/test/lib/rails_stats/code_statistics_test.rb +5 -5
- data/test/lib/rails_stats/console_formatter_test.rb +48 -0
- data/test/lib/rails_stats/json_formatter_test.rb +70 -127
- data/test/lib/rails_stats/pack_finder_test.rb +29 -0
- data/test/lib/rails_stats/stats_calculator_test.rb +64 -0
- data/test/lib/rails_stats/util_test.rb +49 -0
- metadata +56 -3
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_stats
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 2.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Leonard
|
|
8
|
+
- Ernesto Tagwerker
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2026-07-12 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: rake
|
|
@@ -41,7 +42,9 @@ dependencies:
|
|
|
41
42
|
description: Point it to a directory and see stuff about the app
|
|
42
43
|
email:
|
|
43
44
|
- brian@bleonard.com
|
|
44
|
-
|
|
45
|
+
- ernesto@ombulabs.com
|
|
46
|
+
executables:
|
|
47
|
+
- rails-stats
|
|
45
48
|
extensions: []
|
|
46
49
|
extra_rdoc_files: []
|
|
47
50
|
files:
|
|
@@ -53,6 +56,7 @@ files:
|
|
|
53
56
|
- LICENSE.txt
|
|
54
57
|
- README.md
|
|
55
58
|
- Rakefile
|
|
59
|
+
- bin/rails-stats
|
|
56
60
|
- codecov.yml
|
|
57
61
|
- lib/rails_stats.rb
|
|
58
62
|
- lib/rails_stats/all.rb
|
|
@@ -64,6 +68,7 @@ files:
|
|
|
64
68
|
- lib/rails_stats/gem_statistics.rb
|
|
65
69
|
- lib/rails_stats/inflector.rb
|
|
66
70
|
- lib/rails_stats/json_formatter.rb
|
|
71
|
+
- lib/rails_stats/pack_finder.rb
|
|
67
72
|
- lib/rails_stats/root_statistics.rb
|
|
68
73
|
- lib/rails_stats/spec_statistics.rb
|
|
69
74
|
- lib/rails_stats/stats_calculator.rb
|
|
@@ -86,11 +91,17 @@ files:
|
|
|
86
91
|
- test/dummy/app/helpers/application_helper.rb
|
|
87
92
|
- test/dummy/app/javascript/channels/consumer.js
|
|
88
93
|
- test/dummy/app/javascript/channels/index.js
|
|
94
|
+
- test/dummy/app/javascript/dummy.jsx
|
|
95
|
+
- test/dummy/app/javascript/dummy.tsx
|
|
96
|
+
- test/dummy/app/javascript/index.ts
|
|
89
97
|
- test/dummy/app/javascript/packs/application.js
|
|
90
98
|
- test/dummy/app/jobs/application_job.rb
|
|
91
99
|
- test/dummy/app/mailers/application_mailer.rb
|
|
92
100
|
- test/dummy/app/models/application_record.rb
|
|
101
|
+
- test/dummy/app/models/comment.rb
|
|
93
102
|
- test/dummy/app/models/concerns/.keep
|
|
103
|
+
- test/dummy/app/models/pet.rb
|
|
104
|
+
- test/dummy/app/models/user.rb
|
|
94
105
|
- test/dummy/app/views/layouts/application.html.erb
|
|
95
106
|
- test/dummy/app/views/layouts/mailer.html.erb
|
|
96
107
|
- test/dummy/app/views/layouts/mailer.text.erb
|
|
@@ -124,6 +135,7 @@ files:
|
|
|
124
135
|
- test/dummy/config/routes.rb
|
|
125
136
|
- test/dummy/config/spring.rb
|
|
126
137
|
- test/dummy/config/storage.yml
|
|
138
|
+
- test/dummy/db/schema.rb
|
|
127
139
|
- test/dummy/lib/monkeypatches.rb
|
|
128
140
|
- test/dummy/package.json
|
|
129
141
|
- test/dummy/spec/models/user_spec.rb
|
|
@@ -131,8 +143,25 @@ files:
|
|
|
131
143
|
- test/dummy/test/models/user_test.rb
|
|
132
144
|
- test/dummy/test/support/test_helper.rb
|
|
133
145
|
- test/fixtures/console-output.txt
|
|
146
|
+
- test/fixtures/packwerk_app/app/controllers/core_controller.rb
|
|
147
|
+
- test/fixtures/packwerk_app/app/models/core_model.rb
|
|
148
|
+
- test/fixtures/packwerk_app/components/billing/app/models/billing_model.rb
|
|
149
|
+
- test/fixtures/packwerk_app/components/billing/lib/billing.rb
|
|
150
|
+
- test/fixtures/packwerk_app/lib/core_lib.rb
|
|
151
|
+
- test/fixtures/packwerk_app/package.yml
|
|
152
|
+
- test/fixtures/packwerk_app/packs/pack1/app/controllers/pack1_controller.rb
|
|
153
|
+
- test/fixtures/packwerk_app/packs/pack1/app/models/pack1_model.rb
|
|
154
|
+
- test/fixtures/packwerk_app/packs/pack1/lib/pack1_lib.rb
|
|
155
|
+
- test/fixtures/packwerk_app/packs/pack1/package.yml
|
|
156
|
+
- test/fixtures/packwerk_app/packs/pack1/spec/models/pack1_model_spec.rb
|
|
157
|
+
- test/fixtures/packwerk_app/packs/pack2/app/models/pack2_model.rb
|
|
158
|
+
- test/fixtures/packwerk_app/packs/pack2/test/models/pack2_model_test.rb
|
|
134
159
|
- test/lib/rails_stats/code_statistics_test.rb
|
|
160
|
+
- test/lib/rails_stats/console_formatter_test.rb
|
|
135
161
|
- test/lib/rails_stats/json_formatter_test.rb
|
|
162
|
+
- test/lib/rails_stats/pack_finder_test.rb
|
|
163
|
+
- test/lib/rails_stats/stats_calculator_test.rb
|
|
164
|
+
- test/lib/rails_stats/util_test.rb
|
|
136
165
|
- test/test_helper.rb
|
|
137
166
|
homepage: https://github.com/fastruby/rails_stats
|
|
138
167
|
licenses:
|
|
@@ -170,11 +199,17 @@ test_files:
|
|
|
170
199
|
- test/dummy/app/helpers/application_helper.rb
|
|
171
200
|
- test/dummy/app/javascript/channels/consumer.js
|
|
172
201
|
- test/dummy/app/javascript/channels/index.js
|
|
202
|
+
- test/dummy/app/javascript/dummy.jsx
|
|
203
|
+
- test/dummy/app/javascript/dummy.tsx
|
|
204
|
+
- test/dummy/app/javascript/index.ts
|
|
173
205
|
- test/dummy/app/javascript/packs/application.js
|
|
174
206
|
- test/dummy/app/jobs/application_job.rb
|
|
175
207
|
- test/dummy/app/mailers/application_mailer.rb
|
|
176
208
|
- test/dummy/app/models/application_record.rb
|
|
209
|
+
- test/dummy/app/models/comment.rb
|
|
177
210
|
- test/dummy/app/models/concerns/.keep
|
|
211
|
+
- test/dummy/app/models/pet.rb
|
|
212
|
+
- test/dummy/app/models/user.rb
|
|
178
213
|
- test/dummy/app/views/layouts/application.html.erb
|
|
179
214
|
- test/dummy/app/views/layouts/mailer.html.erb
|
|
180
215
|
- test/dummy/app/views/layouts/mailer.text.erb
|
|
@@ -208,6 +243,7 @@ test_files:
|
|
|
208
243
|
- test/dummy/config/routes.rb
|
|
209
244
|
- test/dummy/config/spring.rb
|
|
210
245
|
- test/dummy/config/storage.yml
|
|
246
|
+
- test/dummy/db/schema.rb
|
|
211
247
|
- test/dummy/lib/monkeypatches.rb
|
|
212
248
|
- test/dummy/package.json
|
|
213
249
|
- test/dummy/spec/models/user_spec.rb
|
|
@@ -215,6 +251,23 @@ test_files:
|
|
|
215
251
|
- test/dummy/test/models/user_test.rb
|
|
216
252
|
- test/dummy/test/support/test_helper.rb
|
|
217
253
|
- test/fixtures/console-output.txt
|
|
254
|
+
- test/fixtures/packwerk_app/app/controllers/core_controller.rb
|
|
255
|
+
- test/fixtures/packwerk_app/app/models/core_model.rb
|
|
256
|
+
- test/fixtures/packwerk_app/components/billing/app/models/billing_model.rb
|
|
257
|
+
- test/fixtures/packwerk_app/components/billing/lib/billing.rb
|
|
258
|
+
- test/fixtures/packwerk_app/lib/core_lib.rb
|
|
259
|
+
- test/fixtures/packwerk_app/package.yml
|
|
260
|
+
- test/fixtures/packwerk_app/packs/pack1/app/controllers/pack1_controller.rb
|
|
261
|
+
- test/fixtures/packwerk_app/packs/pack1/app/models/pack1_model.rb
|
|
262
|
+
- test/fixtures/packwerk_app/packs/pack1/lib/pack1_lib.rb
|
|
263
|
+
- test/fixtures/packwerk_app/packs/pack1/package.yml
|
|
264
|
+
- test/fixtures/packwerk_app/packs/pack1/spec/models/pack1_model_spec.rb
|
|
265
|
+
- test/fixtures/packwerk_app/packs/pack2/app/models/pack2_model.rb
|
|
266
|
+
- test/fixtures/packwerk_app/packs/pack2/test/models/pack2_model_test.rb
|
|
218
267
|
- test/lib/rails_stats/code_statistics_test.rb
|
|
268
|
+
- test/lib/rails_stats/console_formatter_test.rb
|
|
219
269
|
- test/lib/rails_stats/json_formatter_test.rb
|
|
270
|
+
- test/lib/rails_stats/pack_finder_test.rb
|
|
271
|
+
- test/lib/rails_stats/stats_calculator_test.rb
|
|
272
|
+
- test/lib/rails_stats/util_test.rb
|
|
220
273
|
- test/test_helper.rb
|