All Projects → nikolalsvk → Ordinare

nikolalsvk / Ordinare

Licence: mit
Ordinare sorts gems in your Gemfile alphabetically

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Ordinare

Rails sortable
Easy drag & drop sorting with persisting the arranged order for rails
Stars: ✭ 127 (-16.99%)
Mutual labels:  sort, rails, gem
Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-49.67%)
Mutual labels:  rails, gem
Spina
Spina CMS
Stars: ✭ 1,926 (+1158.82%)
Mutual labels:  rails, gem
Validates formatting of
Common Rails validations wrapped in a gem.
Stars: ✭ 91 (-40.52%)
Mutual labels:  rails, gem
Adminpanel
This gem has the goal to act as the administration panel for your resources, so you can focus only on the public part of your app
Stars: ✭ 7 (-95.42%)
Mutual labels:  rails, gem
Administrate Field Belongs to search
Plugin that adds search capabilities to belongs_to associations for Administrate
Stars: ✭ 29 (-81.05%)
Mutual labels:  rails, gem
Pager Api
Easy API pagination for Rails
Stars: ✭ 86 (-43.79%)
Mutual labels:  rails, gem
Materialize Sass
Materializecss rubygem for Rails Asset Pipeline / Sprockets
Stars: ✭ 785 (+413.07%)
Mutual labels:  rails, gem
Instagram api gem
A Ruby wrapper for the Instagram API
Stars: ✭ 100 (-34.64%)
Mutual labels:  rails, gem
Graphql devise
GraphQL interface on top devise_token_auth
Stars: ✭ 100 (-34.64%)
Mutual labels:  rails, gem
Premailer Rails
CSS styled emails without the hassle.
Stars: ✭ 1,382 (+803.27%)
Mutual labels:  rails, gem
Datagrid
Gem to create tables grids with sortable columns and filters
Stars: ✭ 921 (+501.96%)
Mutual labels:  rails, gem
Bh
Bootstrap Helpers for Ruby
Stars: ✭ 834 (+445.1%)
Mutual labels:  rails, gem
Render async
render_async lets you include pages asynchronously with AJAX
Stars: ✭ 974 (+536.6%)
Mutual labels:  rails, gem
Octicons
A scalable set of icons handcrafted with <3 by GitHub
Stars: ✭ 7,039 (+4500.65%)
Mutual labels:  rails, gem
Bhf
Rails-Engine-Gem that offers an admin interface for trusted user
Stars: ✭ 81 (-47.06%)
Mutual labels:  rails, gem
Motion
Reactive frontend UI components for Rails in pure Ruby
Stars: ✭ 498 (+225.49%)
Mutual labels:  rails, gem
Yt
The reliable YouTube API Ruby client
Stars: ✭ 674 (+340.52%)
Mutual labels:  rails, gem
Lol dba
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
Stars: ✭ 1,363 (+790.85%)
Mutual labels:  rails, gem
Counter culture
Turbo-charged counter caches for your Rails app.
Stars: ✭ 1,397 (+813.07%)
Mutual labels:  rails, gem

ordinare

Build Status Gem Version codecov PRs Welcome FOSSA Status Open Source Helpers

Ordinare sorts gems in your Gemfile alphabetically

ordinare GIF

In order to install the gem, do:

$ gem install ordinare

Usage ⛏

Position yourself inside Rails project with Gemfile and do:

$ ordinare

And that's it! Ordinare will sort your Gemfile and overwrite your current Gemfile.

If you don't want ordinare to overwrite your Gemfile, see Don't overwrite Gemfile.

NOTE: be sure to do $ bundle install after ordinare sorts your Gemfile just to make sure everything is OK.

Love for the gem groups ❤️

If you're using something along these lines in your Gemfile:

...

group :test do
  gem "webmock"
  gem "cucumber-rails"
end

group :development do
  gem "byebug"
  gem "spring"
do

...

ordinare will consider groups inside your Gemfile and will sort gems inside those groups, not messing them up.

Love for the comment groups 💚

If you're organizing your gems using comments in similar fashion:

...

# Auth
gem "devise"
gem "oauth2"

# Assets
gem "sprockets"
gem "sprockets-es6"
gem "pusher"

...

ordinare will sort gems below your comments, treating them as groups (e.g. "Auth" group and "Assets" group).

Advanced usage ⚒

Pass in path to Gemfile

You can pass in path to your gemfile:

$ ordinare --path my_awesome_project/Gemfile

And that's it! You can find your ordered Gemfile at my_awesome_project/Gemfile.

Don't overwrite Gemfile

Ordinare has an option that will make Gemfile.ordinare instead of overwriting your original Gemfile.

Just call ordinare like this:

$ ordinare --no-overwrite

And that's it! You can find your ordered Gemfile at Gemfile.ordinare.

Check if Gemfile is sorted

There is an option to check your Gemfile to see if it's sorted. This will not overwrite nor create a new sorted Gemfile.

Call ordinare like this:

ordinare --check

And that's it, ordinare will inform your whether your Gemfile is sorted properly or not. This can be useful on some CI server where you check if Gemfile is sorted.

Contributing ✍️

Any suggestions and improvements are more than welcome 🙇.

If you'd like to contribute, you can check CONTRIBUTING.md

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].