groundhog 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +8 -2
- data/lib/groundhog.rb +2 -0
- metadata +1 -1
data/README.md
CHANGED
@@ -4,9 +4,15 @@
|
|
4
4
|
|
5
5
|
A nice, little loop for rails console to keep your destructive changes in a transaction.
|
6
6
|
|
7
|
-
|
7
|
+
### Get it
|
8
|
+
|
9
|
+
gem install groundhog
|
10
|
+
|
11
|
+
Or add <code>gem 'groundhog'</code> to your Gemfile.
|
12
|
+
|
13
|
+
### Use it
|
8
14
|
|
9
15
|
1. In a console, type <code>Groundhog.day</code> to start the loop.
|
10
16
|
2. Go nuts! There are _literally_ no consequences to your actions.
|
11
|
-
3. Press <code>^D</code> to end it all wake up in your comfy bed.
|
17
|
+
3. Press <code>^D</code> to end it all and wake up in your comfy bed.
|
12
18
|
4. Quickly press <code>^D ^C</code> to get out of Punxsutawney and back to your normal life.
|
data/lib/groundhog.rb
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
# 3. Press ^D to end it all wake up in your comfy bed.
|
8
8
|
# 4. Quickly press ^D ^C to get out of Punxsutawney and back to your normal life.
|
9
9
|
|
10
|
+
require 'pry'
|
11
|
+
|
10
12
|
class Groundhog
|
11
13
|
def self.day
|
12
14
|
puts "\nOkay, campers, rise and shine, and don't forget your booties 'cause it's cooooold out there today!"
|