Skip to content

Instantly share code, notes, and snippets.

View alexevanczuk's full-sized avatar

Alex Evanczuk alexevanczuk

  • Bridge
  • Vermont
View GitHub Profile
@alexevanczuk
alexevanczuk / ruby_modularity_slack_server_code_of_conduct.md
Last active May 14, 2022 22:27
Ruby/Rails Modularity Slack Server (https://rubymod.slack.com) Code of Conduct

Contributor Covenant Code of Conduct

Our Pledge

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.

@alexevanczuk
alexevanczuk / ruby_modularity_slack_server_community_guidelines.md
Created May 14, 2022 22:37
Ruby/Rails Modularity Slack Server (https://rubymod.slack.com) Community Guidelines

Community Guidelines

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.

Concrete over theoretical

@alexevanczuk
alexevanczuk / LICENSE
Last active February 8, 2024 21:51
Code for conditional builds
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:
# 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
@alexevanczuk
alexevanczuk / script.rb
Created May 10, 2023 16:59
Add packwerk dependencies that do not produce cycles
# 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