We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
The Ruby/Rails modularity slack server is a new community. Make sure you check out our Code of Conduct!
The following are some principles that we hope will help allow this community to be a helpful resource for all.
These principles are not intended to be hard "rules," but rather some things to keep in mind that we hope will help the forum be more accessible and engaging for everyone.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2022 Gusto | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# typed: true | |
require 'parse_packwerk' | |
ParsePackwerk.all.each do |package| | |
new_dependencies = package.violations.select(&:dependency?).map(&:to_package_name) | |
new_dependencies = [*package.dependencies, *new_dependencies].uniq.sort | |
new_package = package.with(dependencies: new_dependencies) | |
ParsePackwerk.write_package_yml!(new_package) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# typed: true | |
require 'parse_packwerk' | |
def print_cycles(cycles) | |
cycles.each do |cycle| | |
cycle_strings = cycle.map(&:to_s) | |
cycle_strings << cycle.first.to_s | |
puts " - #{cycle_strings.join(" → ")}" | |
end |