• This repository has been archived on 08/Jun/2019
  • Stars
    star
    232
  • Rank 172,815 (Top 4 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 16 years ago
  • Updated almost 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of useful rake tasks.

Limerick Rake

A collection of useful rake tasks.

To use in a Rails app, in your Gemfile:

gem 'limerick_rake'

DEPRECATED

We no longer use limerick_rake, and as such no longer maintain it. If you wish to take over the project please email [email protected].

Database

Read tasks/database.rake for details for configuration.

rake db:bootstrap:load      # Load initial database fixtures (in db/bootstrap/*.yml) into the current environment's database. Load specific fixtures using FIXTURES=x,y
rake db:indexes:missing     # Prints a list of unindexed foreign keys so you can index them.
rake db:shell               # Launches the database shell using the values defined in config/database.yml.
rake db:validate_models     # Run model validations on all model records in database.
rake db:recreate            # Recreate database with seeds (drop, create, migrate and seed)

Git

rake git:push:staging       # Merge a branch into the origin/staging branch.
rake git:push:production    # Merge the staging branch into origin/production for launch.
rake git:diff:staging       # Show the difference between current branch and origin/staging.
rake git:diff:production    # Show the difference between origin/staging and origin/production.
rake git:pull:suspenders    # Pull updates from suspenders, the thoughtbot rails template.
rake git:branch:production  #Branch origin/production into BRANCH locally.

Backup

rake backup:db      # Backup the current database. Timestamped file is created as :rails_root/../db-name-timestamp.sql
rake backup:assets  # Backup all assets under public/system. File is created as :rails_root/../system.tgz

Haml & Sass

rake sass:all_css2sass    # Convert all CSS files in public/stylesheets to Sass.
rake sass:all_sass2css    # Convert all Sass files to CSS.
rake haml:all_html2haml   # Convert all HTML files to Haml.

Rails 2+

rake rails_two:rename_views   # Renames all .rhtml views to .html.erb, .rjs to .js.rjs, .rxml to .xml.builder and .haml to .html.haml.

Subversion

rake svn:add                    # Adds all files with an svn status flag of '?'
rake svn:delete                 # Deletes all files with an svn status flag of '!'
rake svn:log                    # Writes the log file to doc/svn_log.txt
rake svn:update\_svn\_ignore    # Updates svn:ignore from .svnignore

Test Coverage

Install rcov from http://github.com/mergulhao/rcov

rake test:coverage  # Uses rcov to provide reports about test coverage of your application. 

Mass Assignment

From "mhartl":http://github.com/mhartl/find_mass_assignment

rake find_mass_assignment

The Limerick Rake

Traditional Irish song. YouTube

I am a young fellow that's easy and bold,
In Castletown conners I'm very well known.
In Newcastle West I spent many a note,
With Kitty and Judy and Mary.

My father rebuked me for being such a rake,
And spending me time in such frolicsome ways,
But I ne'er could forget the good nature of Jane,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

My parents had reared me to shake and to mow,
To plough and to harrow, to reap and to sow.
But my heart being airy to drop it so low,
I set out on high speculation.

On paper and parchment they taught me to write,
In Euclid and grammar they opened my eyes,
And in multiplication in truth I was bright,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

If I chance for to go to the town of Rathkeale,
The girls all round me do flock on the square.
Some give me a bottle and others sweet cakes,
To treat me unknown to their parents.

There is one from Askeaton and one from the Pike,
Another from Arda, my heart was beguiled,
Tho' being from the mountains her stockings are white,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

To quarrel for riches I ne'er was inclined,
For the greatest of misers that must leave all behind.
I'll purchase a cow that will never run dry,
And I'll milk her by twisting her horn.

John Damer of Shronel had plenty of gold,
And Lord Devonshire's treasures are twenty times more,
But he's laid on his back among nettles and stones,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

The old cow could be milked without clover or grass,
She'd be pampered with corn, good barley and hops.
She's warm and stout, and she's free in the paps,
And she'll milk without spancil or halter.

The man that will drink it will cock his caubeen,
And if anyone laughs there'd be wigs on the green,
And the feeble old hag will get supple and free,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

There's some say I'm foolish and more say I'm wise,
But being fond of the women I think is no crime,
For the son of King David had ten hundred wives,
And his wisdom was highly regarded.

I'll take a good garden and live at my ease,
And each woman and child can partake of the same,
If there'd be war in the cabin, themselves they'd be to blame,
Agus fΓ‘gaimΓ­d siΓΊd mar atΓ‘ sΓ©.

And now for the future I mean to be wise,
And I'll send for the women that acted so kind,
I'd marry them all on the morrow by and by,
If the clergy agree to the bargain.

And when I'd be old and my soul is at peace,
These women will crowd for to cry at my wake,
And their sons and their daughters will offer their prayer,
To the Lord for the soul of their father.

Credits

thoughtbot

Limerick Rake is maintained and funded by thoughtbot, inc

Thank you to all the contributors!

The names and logos for thoughtbot are trademarks of thoughtbot, inc.

License

Limerick Rake is Copyright Β© 2008-2011 thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

More Repositories

1

guides

A guide for programming in style.
Ruby
9,327
star
2

bourbon

A Lightweight Sass Tool Set
Ruby
9,100
star
3

paperclip

Easy file attachment management for ActiveRecord
Ruby
9,055
star
4

laptop

A shell script to set up a macOS laptop for web and mobile development.
Shell
8,416
star
5

dotfiles

A set of vim, zsh, git, and tmux configuration files.
Shell
7,942
star
6

factory_bot

A library for setting up Ruby objects as test data.
Ruby
7,826
star
7

administrate

A Rails engine that helps you put together a super-flexible admin dashboard.
JavaScript
5,867
star
8

neat

A fluid and flexible grid Sass framework
Ruby
4,444
star
9

suspenders

A Rails template with our standard defaults, ready to deploy to Heroku.
Ruby
3,922
star
10

til

Today I Learned
3,903
star
11

clearance

Rails authentication with email & password.
Ruby
3,629
star
12

shoulda-matchers

Simple one-liner tests for common Rails functionality
Ruby
3,513
star
13

Argo

Functional JSON parsing library for Swift
Swift
3,487
star
14

high_voltage

Easily include static pages in your Rails app.
Ruby
3,141
star
15

rcm

rc file (dotfile) management
Perl
2,990
star
16

factory_bot_rails

Factory Bot β™₯ Rails
Ruby
2,972
star
17

shoulda

Makes tests easy on the fingers and the eyes
Ruby
2,196
star
18

expandable-recycler-view

Custom Android RecyclerViewAdapters that collapse and expand
Java
2,073
star
19

capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
Ruby
1,969
star
20

gitsh

An interactive shell for git
Ruby
1,957
star
21

Tropos

Weather and Forecasts for Humans
Swift
1,518
star
22

refills

[no longer maintained]
CSS
1,513
star
23

design-sprint

Product Design Sprint Material
1,415
star
24

bitters

Add a dash of pre-defined style to your Bourbon.
HTML
1,398
star
25

griddler

Simplify receiving email in Rails (deprecated)
Ruby
1,376
star
26

trail-map

Trails to help designers and developers learn various topics.
1,219
star
27

appraisal

A Ruby library for testing your library against different versions of dependencies.
Ruby
1,194
star
28

hotwire-example-template

A collection of branches that transmit HTML over the wire.
Ruby
1,033
star
29

parity

Shell commands for development, staging, and production parity for Heroku apps
Ruby
890
star
30

Runes

Infix operators for monadic functions in Swift
Swift
830
star
31

cocaine

A small library for doing (command) lines.
Ruby
788
star
32

fishery

A library for setting up JavaScript objects as test data
TypeScript
759
star
33

flutie

View helpers for Rails applications
Ruby
730
star
34

TBAnnotationClustering

Example App: How To Efficiently Display Large Amounts of Data on iOS Maps
Objective-C
728
star
35

vim-rspec

Run Rspec specs from Vim
Vim Script
650
star
36

climate_control

Modify your ENV
Ruby
512
star
37

constable

Better company announcements
Elixir
511
star
38

carnival

An unobtrusive, developer-friendly way to add comments
Haskell
501
star
39

ruby-science

The reference for writing fantastic Rails applications
Ruby
494
star
40

Curry

Swift implementations for function currying
Swift
494
star
41

pacecar

Generated scopes for ActiveRecord classes
Ruby
437
star
42

hoptoad_notifier

Reports exceptions to Hoptoad
Ruby
408
star
43

fake_stripe

A Stripe fake so that you can avoid hitting Stripe servers in tests.
Ruby
393
star
44

json_matchers

Validate your JSON APIs
Ruby
384
star
45

Swish

Nothing but Net(working)
Swift
363
star
46

superglue

A productive library for Classic Rails, React and Redux
JavaScript
361
star
47

paul_revere

A library for "one off" announcements in Rails apps.
Ruby
298
star
48

stencil

Android library, written exclusively in kotlin, for animating the path created from text
Kotlin
282
star
49

Perform

Easy dependency injection for storyboard segues
Swift
280
star
50

upcase

Sharpen your programming skills.
Ruby
275
star
51

testing-rails

Source code for the Testing Rails book
HTML
269
star
52

proteus

[no longer maintained]
Ruby
254
star
53

Delta

Managing state is hard. Delta aims to make it simple.
Swift
246
star
54

foundry

Providing a new generation of vector assets and infinite possibility for the interactive web and mobile applications
CSS
233
star
55

shoulda-context

Shoulda Context makes it easy to write understandable and maintainable tests under Minitest and Test::Unit within Rails projects or plain Ruby projects.
Ruby
231
star
56

backbone-support

lumbar support
JavaScript
227
star
57

terrapin

Run shell commands safely, even with user-supplied values
Ruby
216
star
58

Superb

Pluggable HTTP authentication for Swift.
Swift
203
star
59

jack_up

[DEPRECATED] Easy AJAX file uploading in Rails
Ruby
202
star
60

fistface

DIY @font-face web service.
Ruby
182
star
61

squirrel

Natural-looking Finder Queries for ActiveRecord
Ruby
178
star
62

sortable_table

Sort HTML tables in your Rails app.
Ruby
157
star
63

write-yourself-a-roguelike

Write Yourself A Roguelike: Ruby Edition
Ruby
155
star
64

pester

Automatically ask for a PR review
Ruby
147
star
65

jester

REST in Javascript
JavaScript
146
star
66

complexity

A command line tool to identify complex code
Rust
142
star
67

kumade

Heroku deploy tasks with test coverage (DEPRECATED, NO LONGER BEING DEVELOPED)
Ruby
137
star
68

proteus-middleman

[no longer maintained]
CSS
133
star
69

FunctionalJSON-swift

Swift
133
star
70

capybara_discoball

Spin up an external server just for Capybara
Ruby
128
star
71

tropos-android

Weather and Forecasts for Humans
Kotlin
128
star
72

ModalPresentationView

Remove the boilerplate of modal presentations in SwiftUI
Swift
125
star
73

react-native-typescript-styles-example

A template react native project for ergonomic styling structure and patterns.
TypeScript
123
star
74

vimulator

A JavaScript Vim simulator for demonstrations
JavaScript
119
star
75

bourne

[DEPRECATED] Adds test spies to mocha.
Ruby
114
star
76

formulator

A form library for Phoenix
Elixir
106
star
77

poppins

Gifs!
Objective-C
106
star
78

tailwindcss-aria-attributes

TailwindCSS variants for aria-* attributes
JavaScript
100
star
79

ghost-theme-template

A project scaffold for building ghost themes using gulp, node-sass, & autoprefixer
HTML
91
star
80

paperclip_demo

Paperclip demo application
Ruby
87
star
81

middleman-template

The base Middleman application used at thoughtbot, ready to deploy to Netlify.
CSS
86
star
82

proteus-jekyll

[no longer maintained]
CSS
84
star
83

report_card

metrics and CI are for A students.
Ruby
77
star
84

ios-sample-blender

Sample code for the Blending Modes blog post
Objective-C
76
star
85

yuri-ita

Create powerful interfaces for filtering, searching, and sorting collections of items.
Ruby
76
star
86

baccano

[no longer maintained]
HTML
74
star
87

goal-oriented-git

A practical book about using Git
HTML
73
star
88

ios-on-rails

A guide to building a Rails API and iOS app
HTML
72
star
89

art_vandelay

Art Vandelay is an importer/exporter for Rails 6.0 and higher.
Ruby
71
star
90

maybe_haskell

Programming without Null
HTML
71
star
91

redbird

A Redis adapter for Plug.Session
Elixir
70
star
92

maintaining-open-source-projects

A successful open source project is not only one that is original, solves a particular problem well, or has pristine code quality. Those are but the tip of the iceberg, which we'll thoroughly dissect with this book.
Shell
67
star
93

templates

Documentation templates for open source projects.
64
star
94

FOMObot

A slack bot to help with FOMO.
Haskell
61
star
95

BotKit

BotKit is a Cocoa Touch static library for use in iOS projects. It includes a number of helpful classes and categories that are useful during the development of an iOS application.
Objective-C
61
star
96

react-native-template

Template React Native project to be used with Cookiecutter
JavaScript
60
star
97

CombineViewModel

An implementation of the Model-View-ViewModel (MVVM) pattern using Combine.
Swift
59
star
98

flightdeck

Terraform modules for rapidly building production-grade Kubernetes clusters following SRE practices
HCL
55
star
99

design-for-developers-starter-kit

A starter project for design for developer students
CSS
54
star
100

mile_marker

Mark off HTML implementation expectations with clear signage
Ruby
53
star