rspec-core
Rake


rspec-core | Rake | |
---|---|---|
6 | 18 | |
1,233 | 2,357 | |
- | 0.0% | |
8.6 | 7.9 | |
3 months ago | 9 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rspec-core
-
Metaprogramming in Ruby: Advanced Level
That being said, the code and documentation for rspec is generally clear and descriptive, making it a fantastic repository for learning about metaprogramming techniques. In rspec-core/lib/rspec/core/dsl.rb, for example, the implementation is spelled out in code comments.
- Relishapp is down, anyone knows what happened?
-
Anyone have any good Ruby repos that showcase best practices?
Something like that. You almost certainly want to use bundler because it's pretty much the easiest way to add 3rd party libs to your app. (Read more about bundler). Tests aren't an absolute requirement but are a generally considered to be an important part of ruby (and rails) culture. They can be difficult to learn in the beginning, but get easier with practice -- start soon and practice often! (Good rule of thumb: test any public methods of your objects that you define, at a minimum -- a guide. There's also relishapp, which seems to be down at the moment?)
-
It's legos all the way down
Take this small excerpt[9] from rspec-core of the describe public api:
-
When not to use instance variables in RSpec
From what I understand RSpec creates a class per spec (e.g. #) and it stores the instance variables (defined in the before :context DSL) on the RSpec::Core::ExampleGroup class on class level. The RSpec::Core::ExampleGroup is the parent class of the spec classes.
From the RSpec docs
Rake
-
2. Creating a Sandbox Environment
btw, I use Rake to make the setup the proper symlinks to my dotfiles repository. Maybe I'll write about that one day.
-
What’s with DevOps engineers using `make` of all things?
Some competitors - Rake (ruby) - Bake - Earthly - SCons - doit
-
An Introduction to Metaprogramming in Ruby
where every argument except the name can either be missing, single (value) or multiple (array). Sure, it has the "advantage" that it's syntactically valid Ruby code, but it then requires some 70 lines of awful code to actually parse that data into a usable construct ([1] up to L145).
[1] https://github.com/ruby/rake/blob/7b50e9dc37abc57fd365c16cb1...
-
Taskfile: A Modern Alternative to Makefile
Rake[0] is still the best ‘make-like’ build tool I’ve used for general purpose stuff. The syntax is nice and it’s just Ruby which is a delight. I briefly used Mage (similar, but Go) and it was fine too.
[0]: https://github.com/ruby/rake
-
Knit: Making a Better Make
Yup! Two well-established alternatives are "rake", in the Ruby community, and "just" in the Rust community.
Rake is fully programmable in Ruby. Just is a bit less flexible, but it doesn't require learning Ruby, and it's quite pleasant to use.
https://ruby.github.io/rake/
-
Anyone have any good Ruby repos that showcase best practices?
Rake is a great way to homogenize and declare common behaviors of your script (called "tasks"); a guide.
-
Write your own Domain Specific Language in Ruby
In Ruby there's a gem named Rake. This gem provides a DSL to create tasks to be run from the command line. A small example looks like this:
-
Ruby
I think you're referring to Rake. https://ruby.github.io/rake/
- Fastlane: iOS 和 Android 的自动化构建工具
-
What about a CMake transpiler?
We use [Rake](https://github.com/ruby/rake) instead - it's awesome.
What are some alternatives?
rspec-mocks - RSpec's 'test double' framework, with support for stubbing and mocking
Thor - Thor is a toolkit for building powerful command-line interfaces.
ex_vec - re-creating rust's `vec!` macro in elixir
Trollop - Optimist is a commandline option parser for Ruby that just gets out of your way.
factory_bot - A library for setting up Ruby objects as test data.
GLI - Make awesome command-line applications the easy way
Rustler - Safe Rust bridge for creating Erlang NIF functions
Cocaine
Devise - Flexible authentication solution for Rails with Warden.
TTY - Toolkit for developing sleek command line apps.
rspec-rails - RSpec for Rails 7+
dry-cli - General purpose Command Line Interface (CLI) framework for Ruby

