These are chat archives for dry-rb/chat

16th
Mar 2016
Piotr Solnica
@solnic
Mar 16 2016 09:42

:tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada:

https://rubygems.org/gems/dry-validation/versions/0.7.0
https://rubygems.org/gems/dry-types/versions/0.6.0

:tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada: :tada:

Oskar Szrajer
@gotar
Mar 16 2016 09:42
:heart:
Tim Riley
@timriley
Mar 16 2016 09:42
YAYYYYY
Piotr Solnica
@solnic
Mar 16 2016 09:42
it’s happened, ZOMG :)
Jérémie Horhant
@Titinux
Mar 16 2016 09:43
Toutes mes félicitations :tada:
Piotr Solnica
@solnic
Mar 16 2016 09:44
merci <3
Fran Worley
@fran-worley
Mar 16 2016 09:46
:sparkles: Yey FYI page being updated now. Also creating an example app with 2 branches one for AR and the other for Dry-Validation
Michał Pietrus
@blelump
Mar 16 2016 09:48
thanks @solnic for all your work ! :clap:
Alexander Chernik
@achernik
Mar 16 2016 10:00
hooray :tada:
Piotr Solnica
@solnic
Mar 16 2016 10:36
@fran-worley oh that’s pretty cool, thanks!
@blelump @achernik :dancers: :)
Fran Worley
@fran-worley
Mar 16 2016 10:40
@solnic Any ideas why middleman wont start? I appreciate that I'm probably missing something obvious but I keep getting this:
$ rake watch

== The Middleman is loading
/Users/francesworley/.rvm/gems/ruby-2.2.1/gems/middleman-blog-4.0.0/lib/middleman-blog/blog_data.rb:170: warning: duplicated key at line 170 ignored: :lang
== Executing: `./node_modules/webpack/bin/webpack.js --watch -d`
== External: Command failed with message: No such file or directory - ./node_modules/webpack/bin/webpack.js
Piotr Solnica
@solnic
Mar 16 2016 10:41
@fran-worley first, run npm install
then start the server with be middleman s
be == bundle exec
Fran Worley
@fran-worley
Mar 16 2016 10:43
@solnic thanks.
not used middleman before
Piotr Solnica
@solnic
Mar 16 2016 10:43
@AMHOL btw it’s very likely that will work for you too ^ I’m not sure if rake tasks are still suppose to work...
Michał Pietrus
@blelump
Mar 16 2016 12:04

@solnic am I doing it right for nested collection?

schema = Dry::Validation.Schema do
  key(:nested).schema do
    each do
      key(:name).required
      key(:age).required
    end
  end
end

p schema.({nested: [{ name: 'Jane', age: 21 }, { name: 'Joe', age: nil }]}).messages
 # => {:nested=>["must be a hash"]}

it's fine when array is one level up, like here

Andy Holland
@AMHOL
Mar 16 2016 12:06
@solnic there must be some problem processing the scss for me, I get un-styled content
Piotr Solnica
@solnic
Mar 16 2016 12:26
@blelump this is not correct. Schema implies the value is expected to be a hash. Just do key(:nested).each do ... end
Michał Pietrus
@blelump
Mar 16 2016 13:56
@solnic , thanks, however I think I've got a bug
if you'll remove eg key(:age).required from the above schema and leave exactly one key, it'll crash
with dry-types-0.6.0/lib/dry/types/compiler.rb:17:in visit': undefined method visit_n' because of for some reason dry/types/compiler.rb#visit node is a string
and in this case it looks for visit_n, because of :name
Piotr Solnica
@solnic
Mar 16 2016 14:27
@blelump pls report
Michał Pietrus
@blelump
Mar 16 2016 14:36
sure :-)
Michał Pietrus
@blelump
Mar 16 2016 15:39
got into another one, also for collections – reported
Piotr Solnica
@solnic
Mar 16 2016 15:48
@blelump this is very weird, because I fixed both issues yesterday
@blelump are you sure you’re running on released version?
oh wait, I fixed issues with hash? not each, but it looks similar. nevermind
Michał Pietrus
@blelump
Mar 16 2016 15:50
:-) , I've just double checked – using newest version from ruby gems
Piotr Solnica
@solnic
Mar 16 2016 15:51
yep, I could reproduce
Piotr Solnica
@solnic
Mar 16 2016 16:11
@blelump dry-rb/dry-validation#76 seems like a bug in dry-logic, error ast structure looks wrong
but dry-rb/dry-validation#75 is defo a bug in dry-v, I actually know what it is, I fixed it yesterday for hash? do .. end and it’s the same issue with each. I’ll fix that tomorrow though, I’ve run out of time today
Michał Pietrus
@blelump
Mar 16 2016 16:13
sure
thanks :heart:
Piotr Solnica
@solnic
Mar 16 2016 16:58
@/all hey there :) I’m happy to share this great news with you today: http://dry-rb.org/news/2016/03/16/announcing-dry-rb/
Andy Holland
@AMHOL
Mar 16 2016 16:59
<3
James Hamilton
@wjdhamilton
Mar 16 2016 17:00
:smile:
Anton Paisov
@antonpaisov
Mar 16 2016 17:01
🎉🎈❤️
pls RT :)
Oskar Szrajer
@gotar
Mar 16 2016 17:06
done
pls :up: vote :D
Andy Holland
@AMHOL
Mar 16 2016 17:19
Done & Done
Benjamin Klotz
@tak1n
Mar 16 2016 17:29
@solnic congrats :sparkles: :)
retweeted, upvoted and hopefully soon trying it out :D
James Hamilton
@wjdhamilton
Mar 16 2016 17:29
done! To all 10 of my followers...
Wojciech Wnętrzak
@morgoth
Mar 16 2016 17:45
hey, how to make assets work on middleman for dry homepage? I wanted to improve RSS support
I installed gems and npm modules, but I got 404 when fetching css and js
Piotr Solnica
@solnic
Mar 16 2016 17:47
@morgoth hey, how do you run the server?
Wojciech Wnętrzak
@morgoth
Mar 16 2016 17:47
bundle exec middleman server
Piotr Solnica
@solnic
Mar 16 2016 17:48
any errors in the server output?
Wojciech Wnętrzak
@morgoth
Mar 16 2016 17:48
not really:
 middleman server
== The Middleman is loading
/home/wojtek/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/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`
WARN: tilt autoloading 'less' in a non thread-safe way; explicit require 'less' suggested.
WARN: tilt autoloading 'csv' in a non thread-safe way; explicit require 'csv' suggested.
WARN: tilt autoloading 'nokogiri' in a non thread-safe way; explicit require 'nokogiri' suggested.
WARN: tilt autoloading 'markaby' in a non thread-safe way; explicit require 'markaby' suggested.
WARN: tilt autoloading 'liquid' in a non thread-safe way; explicit require 'liquid' suggested.
WARN: tilt autoloading 'radius' in a non thread-safe way; explicit require 'radius' suggested.
WARN: tilt autoloading 'redcloth' in a non thread-safe way; explicit require 'redcloth' suggested.
WARN: tilt autoloading 'rdoc' in a non thread-safe way; explicit require 'rdoc' suggested.
WARN: tilt autoloading 'rdoc/markup' in a non thread-safe way; explicit require 'rdoc/markup' suggested.
WARN: tilt autoloading 'rdoc/markup/to_html' in a non thread-safe way; explicit require 'rdoc/markup/to_html' suggested.
WARN: tilt autoloading 'wikicloth' in a non thread-safe way; explicit require 'wikicloth' suggested.
WARN: tilt autoloading 'creole' in a non thread-safe way; explicit require 'creole' suggested.
WARN: tilt autoloading 'creole' in a non thread-safe way; explicit require 'creole' suggested.
WARN: tilt autoloading 'wikicloth' in a non thread-safe way; explicit require 'wikicloth' suggested.
WARN: tilt autoloading 'wikicloth' in a non thread-safe way; explicit require 'wikicloth' suggested.
WARN: tilt autoloading 'yajl' in a non thread-safe way; explicit require 'yajl' suggested.
WARN: tilt autoloading 'asciidoctor' in a non thread-safe way; explicit require 'asciidoctor' suggested.
WARN: tilt autoloading 'asciidoctor' in a non thread-safe way; explicit require 'asciidoctor' suggested.
WARN: tilt autoloading 'asciidoctor' in a non thread-safe way; explicit require 'asciidoctor' suggested.
clean-webpack-plugin: /home/wojtek/Projects/dry-rb.org/.tmp has been removed.
== Blog Sources: /news/{year}-{month}-{day}.html (:prefix + :sources)
== LiveReload accepting connections from ws://tp:35729
== External: Hash: 5135667a9bdf2c224088
== External: Version: webpack 1.12.14
== External: Time: 996ms
== External:                           Asset       Size  Chunks             Chunk Names
== External:      assets/javascripts/site.js    2.16 kB       0  [emitted]  main
== External:     assets/stylesheets/site.css    28.5 kB       0  [emitted]  main
== External:  assets/javascripts/site.js.map    1.71 kB       0  [emitted]  main
== External: assets/stylesheets/site.css.map  104 bytes       0  [emitted]  main
== External:    [0] multi main 40 bytes {0} [built]
== External:     + 2 hidden modules
== External: Child extract-text-webpack-plugin:
== External:         + 2 hidden modules
== View your site at "http://localhost:4567", "http://127.0.0.1:4567"
== Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"
Piotr Solnica
@solnic
Mar 16 2016 17:49
(you’re talking to a guy who used webpack for the first time in his life last Saturday, you have been warned lol)
I’ve no idea how to debug this, sorry :(
Wojciech Wnętrzak
@morgoth
Mar 16 2016 17:50
I can just send PR with my changes :) - they won't touch js/css
Piotr Solnica
@solnic
Mar 16 2016 17:50
please do that
Wojciech Wnętrzak
@morgoth
Mar 16 2016 18:02
done
Piotr Solnica
@solnic
Mar 16 2016 20:12
somebody posted news on lobste.rs too: https://lobste.rs/s/gmwxmd/announcing_dry-rb
Hunter Madison
@hmadison
Mar 16 2016 20:28
got to post it before pushcx got to it
Piotr Solnica
@solnic
Mar 16 2016 20:30
hah :)
Hunter Madison
@hmadison
Mar 16 2016 20:30
dude is like 90% of lobste.rs or something
but congratulations still, your stuff is one of the few reasons why i keep doing personal projects in ruby
Piotr Solnica
@solnic
Mar 16 2016 20:31
I think he invited me there :)
@hmadison hah thanks, glad to hear that
Hunter Madison
@hmadison
Mar 16 2016 20:32
now all i need is for merb to exist again and i would be happy
Piotr Solnica
@solnic
Mar 16 2016 20:33
@hmadison did you give rodakase a shot?
Hunter Madison
@hmadison
Mar 16 2016 20:33
I have
Piotr Solnica
@solnic
Mar 16 2016 20:34
too crazy?
Hunter Madison
@hmadison
Mar 16 2016 20:35
No, I'm not the biggest of of cuba/roda's tree style.
Piotr Solnica
@solnic
Mar 16 2016 20:35
ah right, we talked about this
sorry I forgot!
Hunter Madison
@hmadison
Mar 16 2016 20:35
yeah
Piotr Solnica
@solnic
Mar 16 2016 20:36
well, then you might be interested in the fact I’ll be extracting rodakase into dry-web with pluggable routing front-ends
Hunter Madison
@hmadison
Mar 16 2016 20:36
oh, that would be sweet
let me know if you need help with docs/sample apps
Piotr Solnica
@solnic
Mar 16 2016 20:36
we’ll probably end up with dry-web-roda dry-web-lotus and dry-web-rails, just for the trolling purposes
thanks, this type of help is always needed
Tim Riley
@timriley
Mar 16 2016 20:37
That also saves us from having to pick a nice “marketing name” ;)
Piotr Solnica
@solnic
Mar 16 2016 20:37
@timriley dry all the things