Git Product home page Git Product logo

classy-yaml's People

Contributors

feipinghuang avatar joemasilotti avatar tonksthebear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

classy-yaml's Issues

Require minimum amount of gems possible

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

How do I run the tests?

$ ./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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.