perfect-shape
Database Cleaner
perfect-shape | Database Cleaner | |
---|---|---|
3 | 3 | |
29 | 2,914 | |
- | 0.1% | |
3.9 | 0.0 | |
5 months ago | 4 months 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.
perfect-shape
-
Glimmer DSL for LibUI 0.5.11 - Basic Shape Drag & Drop
Glimmer DSL for LibUI 0.5.11 (Fukuoka Ruby 2022 Award Winning Ruby Desktop Development GUI Library) has just been released with the following changes (courtesy of the Perfect Shape gem):
-
Glimmer DSL for LibUI 0.5.10 - Shape Listeners
Support nesting area mouse listeners underneath shapes directly given the newly added support for the include?(x, y) method, which can be used to detect if a mouse event fired for a specific shape examples/shape_coloring.rb In summary, you can now use area mouse listeners within shapes directly and Glimmer DSL for LibUI will ensure that they do not fire unless the mouse x,y coordinates land within the shape regions (it does so by leveraging the Perfect Shape gem)
-
Perfect Shape - Pure Ruby Geometric Algrithms
Perfect Shape 1.0.0 was released today, providing the Ruby community with an open-source library of Pure Ruby Geometric Algorithms that are mostly useful for GUI (Graphical User Interface) manipulation like checking viewport rectangle intersection or containment of a mouse click point in popular geometry shapes such as rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves, potentially with affine transforms applied like translation, scale, rotation, shear/skew, and inversion (including both Ray Casting Algorithm, aka Even-odd Rule, and Winding Number Algorithm, aka Nonzero Rule).
Database Cleaner
-
How a big application is usually tested regarding to its database data persistence? Also, tip on starting tests on existing codebase.
i'll introduce the gem https://github.com/DatabaseCleaner/database_cleaner.
- Como configurar ambiente de testes em Ruby on Rails com RSpec
-
10 Signs of a good Ruby on Rails Developer
If your are using gems like faker , factory_bot_rails and database_cleaner to create and clean test records then creating unnecessary records can cost you time and speed.
What are some alternatives?
Scenic - Versioned database views for Rails
PgHero - A performance dashboard for Postgres
Foreigner - Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb
Seed dump - Rails 4/5 task to dump your data to db/seeds.rb
PgDriveBackup - Simple solution to make encrypted with ccrypt PostgreSQL backups and storing on Google Drive API
Seed Fu - Advanced seed data handling for Rails, combining the best practices of several methods together.
Rails DB - Rails Database Viewer and SQL Query Runner
Squasher - Squasher - squash your old migrations in a single command
ActiveRecord Setops - Union, Intersect, and Difference set operations for ActiveRecord (also, SQL's UnionAll).
SecondBase - Seamless second database integration for Rails.
Large Hadron Migrator - Online MySQL schema migrations
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries