We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a6e64f + 3329e13 commit 85adf0dCopy full SHA for 85adf0d
script/report_code_statistics
@@ -1,11 +1,12 @@
1
#!/bin/sh
2
echo
3
+bin/rails stats
4
+# Compute the direct dependencies from Gemfile.lock by counting
5
+# ONLY non-empty lines between "DEPENDENCIES" and "RUBY VERSION":
6
direct=$(sed -e '1,/^DEPENDENCIES/d' -e '/^RUBY VERSION/,$d' \
7
-e '/^$/d' Gemfile.lock | wc -l)
-indirect=$(bundle list | tail -n +2 | wc -l)
8
+indirect=$(bundle list | grep -c '^ *\* ')
9
echo "Number of gems (direct dependencies only) = $direct"
10
echo "Number of gems (including indirect dependencies) = $indirect"
11
-bin/rails stats
-echo
12
true
0 commit comments