tonksthebear / classy-yaml Goto Github PK
View Code? Open in Web Editor NEWRails helper to allow yaml configurations for utility css frameworks
License: MIT License
Rails helper to allow yaml configurations for utility css frameworks
License: MIT License
When using a helper that calls yass, the current implementation of using caller.first
fails to accurately fine the yaml file due to the caller being the helper class
Hey there! Congrats on your first gem! I stumbled across this gem on Twitter and thought I’d provide you a little feedback.
Having rails
as a dependency is not great for a gem. Generally, it’s suggested to only include the specific parts of Rails that you actually use.
Just skimming your codebase, it seems like you only need activesupport, actionpack, and railties.
By adding rails as a whole as a dependency, you’re requiring apps to include ActiveRecord, ActionMailer, ActionMailbox, ActiveJob, ActionCable, etc as a dependency. This isn’t ideal because some apps try to cut down on their dependencies by avoiding parts of Rails that they don’t use.
Here’s an example of a Basecamp gem that extends the rails query logs to include info about the current action. Instead of requiring rails, it requires actionpack and activerecord. https://github.com/basecamp/marginalia/blob/master/marginalia.gemspec
$ ./bin/test
produces
/Users/joemasilotti/.rbenv/versions/2.7.1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': cannot load such file -- rails/plugin/test (LoadError)
$ rake
produces
/Users/joemasilotti/workspace/forks/classy-yaml/test/dummy/config/application.rb:7:in `<top (required)>': uninitialized constant Bundler (NameError)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.