Giter Club home page Giter Club logo

dry-system-rails's People

Contributors

arielvalentin avatar blelump avatar deepj avatar kalys avatar olleolleolle avatar skryukov avatar solnic avatar timriley 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

dry-system-rails's Issues

Weird behaviour when rake task is performed

Hi @solnic ,

just got into strange issue while running rake db:migrate and I am not sure what may cause this. Look below:

$ rake db:migrate

rake aborted!
LocalJumpError: no block given (yield)
.rvm/gems/ruby-2.2.4@isa/gems/dry-system-rails-0.0.1/lib/dry/system/rails.rb:50:in `finalize!'
.rvm/gems/ruby-2.2.4@isa/gems/railties-4.2.5/lib/rails/railtie.rb:194:in `public_send'
.rvm/gems/ruby-2.2.4@isa/gems/railties-4.2.5/lib/rails/railtie.rb:194:in `method_missing'

which is essentially caused by namespace method name.

method(:namespace).source_location
=> [".rvm/gems/ruby-2.2.4@isa/gems/rake-10.5.0/lib/rake/dsl_definition.rb", 141]

whereas being in finalize! method:

self.class.instance_methods(false)
=> [:namespace, :finalize!, :name, :container]

Do you have any ideas what may cause this? Method name change fixes it, obviously.

[feature] Hot code reloading

Because now hot code reload is missing, I discourage to use containers within Rails app, or at least using it as the app dependencies basis, because it messes up with ActionDispatch::Reloader code reloading, which ends up with various constants related issues.

I'm going to try to handle this task around 15th of Sept. If you want to join or even better, have a solution feel free to leave a PR 😄 .

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.