These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
npm installbut I get an error if I try to do
bundle exec rake watch
== The Middleman is loading /Users/johnbackus/.gem/ruby/2.3.1/gems/middleman-blog-4.0.0/lib/middleman-blog/blog_data.rb:170: warning: key :lang is duplicated and overwritten on line 170 == Executing: `./node_modules/webpack/bin/webpack.js --watch -d` /Users/johnbackus/Projects/dry-rb/website/config.rb:65:in `gethostbyname': getaddrinfo: nodename nor servname provided, or not known (SocketError) from /Users/johnbackus/Projects/dry-rb/website/config.rb:65:in `evaluate_configuration!'
backus(my last name) so maybe it is an os x thing that this is the host name that pops up?
Note that it is not guaranteed to be able to convert to IP address using gethostbyname, getaddrinfo, etc.
activate :livereload, host: Socket.gethostbyname(Socket.gethostname).first
Make sure that livereload uses the host FQDN so we can use it across network
127.0.0.1) but I know very very little about networking
gethostname(3)on my machine returns
backuseven though the resolvable hostname would be
scutil --set HostName 'backus.local'fixes the issue for me
Op.(params, user_repo: ...), so one positional, and the rest kw args. will that work with auto_inject/initialize?
Op.()semantics everywhere (cells, trailblazer, soon reform, etc)
(runtime parameters, kw: args, for: dependency, injection: true)
#initialize(which is done by subclasses here), you’d just define
.call(foo, bar)effectively goes
.new(something_here_maybe).call(foo, bar)or something?
.call(foo, bar)would do
.new(foo, bar).call(foo, bar)i guess
new, the polymorphic builder is called and the programmer might need arbitrary data to decide what to build
barin call, you're very right
params:and then just go kwargs for everything
paramswould be in that case a “dependency” that must always be provided manually, rather than looked up by any auto-injection system