内容简介:Inspired by Samuel Williams`I’ll summarize my work between September 2019 and February 2020. Overall these were extremely productive 5 months. Apart from the regular maintainance (PR reviews, handling releases, providing user support etc.) I focused mostly
Inspired by Samuel Williams` “Open Source Progress Report” I decided to start doing the same thing and so this is the first Open Source Status Update from me. I hope to make this a habit and who knows maybe I’ll even start blogging on a regular basis again
I’ll summarize my work between September 2019 and February 2020. Overall these were extremely productive 5 months. Apart from the regular maintainance (PR reviews, handling releases, providing user support etc.) I focused mostly on improving documentation infrastructure for dry-rb and rom-rb projects, as well as spent a lot of time on building tools to automate certain parts of the maintenance work.
This is organized per-topic rather than per-month because describing things chronologically would be too chaotic. It’s easier to focus on a particular piece of work that I’ve done, even though it may have spanned multiple months (including some breaks).
OK let’s go.
middleman-docsite
In September 2019 I upgraded rom-rb.org website to the latest Middleman 5.0.0.rc1 (there’s still no final release but it seems to work fine for us). When working on this upgrade I extracted a reusable piece that I called middleman-docsite . This project provides various convenient APIs that are used by both rom-rb.org and dry-rb.org website projects. Its primarly feature though is support for importing documentation pages from external repositories . It does it by cloning and managing external repositories and it was literally the simplest thing that could possibly work. Initially I planned to use Antora but after closer evaluation it turned out it will be quicker and simpler to build a custom solution and reuse it in rom-rb.org and dry-rb.org.
Overall it took me few months to wrap it all up, mostly because I was on a sick leave in late October and throughout the whole November. Eventually I finished upgrading dry-rb.org on October 4th and rom-rb.org, which was much more challenging, was upgraded on January 25th. I’m very happy with the results – we have documentation for individual gems properly versioned and living in individual repositories. This makes updating documentation much simpler and more natural, ie whenever you open a PR with a new feature, you can (and should) add docs for it too. Another nice improvement is that we have documentation generated from master branches too, so it’s easy to see what’s coming next.
dry-transformer
In December I finished porting transproc to dry-transformer . I used this as an opportunity to clean it up a bit too. This project is almost identical as Transproc and it will be used in ROM 6.0.0 instead of Transproc. You should expect various internal improvements, bug fixes and general polishing before dry-transformer hits 1.0.0. There’s no strict roadmap yet so if you’ve been using Transproc and you have some ideas on how things could be improvements – now is a perfect time to tell me.
GitHub Actions and Automation
If you follow me on Twitter you probably know how excited I am about GitHub Actions. I started adopting them in dry-rb and then rom-rb organizations on GitHub as soon as we got access. I started working on adding workflows to dry-rb in early October and since then things progressed quickly!
Right now both dry-rb and rom-rb use GitHub Actions to automate the following things:
-
Continues Integration – the most common thing as you may expect. We moved from TravisCI which served us well for many years to GitHub Actions. There’s a central
ci.yml
workflow configuration that’s shared between all the repositories with the ability to override certain parts . It’s got a couple of limitations now (ie it’s not possible to define a custom list of rubies for a project without overriding the whole configuration) but everything can be eventually improved. Switching to GitHub Actions to run our tests have been a great success – our builds are multiple times faster than before which is crucial if you take into consideration the limited time people have to work on OSS. -
Common files – semi-static common files like
LICENSE
,CONTRIBUTING
orCODE_OF_CONDUCT
but also shared test-related files or GitHub issue/PR templates – all of that is now centralized, distributed and kept up-to-date across 40+ repositories thanks to GitHub Actions. This is a major time-safer! - Semi-common files – there are other types of files that have the same structure but different content. For example a gemspec or a Gemfile – these are also centralized via templates that are rendered per repositories and kept up-to-date automatically through a GA workflow
-
CHANGELOGs – these are now rendered using a template + a data file called
changelog.yml
. As a bonus I added a way to update `CHANGELOG.md` via commit messages. When you merge a PR and provide a special[changelog]
section in your commit message, then the changelog will be updated with your entry. - Pushing to RubyGems.org – that’s right. We now have a workflow that will push a new version of a gem automatically whenever a signed tag is created by a user with proper permissions. In the near future creating a release on GitHub will trigger the release process too. This means we’ll be able to push a release via GitHub exslusively without the need to open a terminal.
It was a lot of work and luckily Nikita started helping me out and together we managed to build all those workflows. It was worth the effort and I’m very happy with the result. You can check out our dry-bot or rom-bot accounts to see how busy they are :grinning:
dry-rails and dry-configurable rewrite
In February I started a new project called dry-rails
which is the official dry-rb railtie for Rails. Its core is based on dry-system-rails and it builds on top of that core by providing built-in components like ApplicationContract
or controller helpers for defining type-safe param schemas. More features will include monadic operations which will be a great place to put your business logic in and proper support for test environment. This project has not been released yet as I kinda got stuck with Rails 6 + Zeitwerk support but I will figure it out and release the first version of dry-rails in March.
While working on dry-rails I hit a couple of limitations in dry-configurable which is used under the hood. Trying to remove these limitations from the existing codebase turned out to be too hard so I decided to rewrite the library from scratch. It took me ~30 hours to trully finish this rewrite even though initially I thought it will go much faster (I know, I know). Unfortunatelly this library handles all the things that are damn hard to deal with – global state, mutability and inheritance (what can possibly go wrong :joy:). I think it was worth the effort though as it’s going to be simpler now to polish the API, make some smaller adjustments and finally release 1.0.0 – reminder that dry-configurable is the first dry-rb library!
Working on dry-schema 1.5.0
I’m not sure how it happened but I found myself working on dry-schema 1.5.0. I guess one thing led to another and I just thought it’s a good moment to have a bigger release now.
There are many pretty substantial new features and improvements coming up in this release including this:
There are 5 outstanding issues in the 1.5.0 milestone at the moment, I’m planning to address them all and we’ll have a nice release ready.
Summary
As you can see, I’ve been busy, but it was the good type of busy. If you have any suggestions about the format and/or content in this series of articles please do let me know!
以上所述就是小编给大家介绍的《Open Source Status Update》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Open Data Structures
Pat Morin / AU Press / 2013-6 / USD 29.66
Offered as an introduction to the field of data structures and algorithms, Open Data Structures covers the implementation and analysis of data structures for sequences (lists), queues, priority queues......一起来看看 《Open Data Structures》 这本书的介绍吧!
Base64 编码/解码
Base64 编码/解码
HSV CMYK 转换工具
HSV CMYK互换工具