paul_revere 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,101 @@
1
+ Paul Revere
2
+ ===========
3
+
4
+ Simple announcement plugin to include "one off" style announcements in Rails web apps.
5
+
6
+ Install
7
+ -------
8
+
9
+ Install as normal in your Gemfile:
10
+
11
+ gem 'paul_revere'
12
+
13
+ Run the generator to create the migration and copy the javascript file into public:
14
+
15
+ rails generate paul_revere
16
+
17
+ Beastie Boys Lyrics
18
+ -------------------
19
+
20
+ Now here's a little story I've got to tell
21
+ About three bad brothers you know so well
22
+ It started way back in history
23
+ With Adrock, M.C.A., and me - Mike D.
24
+ Been had a little horsy named Paul Revere
25
+ Just me and my horsy and a quart of beer
26
+ Riding across the land, kicking up sand
27
+ Sheriff's posse on my tail cause I'm in demand
28
+ One lonely Beastie I be
29
+ All by myself without nobody
30
+ The sun is beating down on my baseball hat
31
+ The air is gettin' hot the beer is getting flat
32
+ Lookin' for a girl I ran into a guy
33
+ His name is M.C.A., I said, "Howdy" he said, "Hi"
34
+
35
+ He told a little story that sounded well rehearsed
36
+ Four days on the run and that he's dying of thirst
37
+ The brew was in my hand and he was on my tip
38
+ His voice was hoarse, his throat was dry he asked me for a sip
39
+ He said, "Can I get some?"
40
+ I said, "You can't get none!"
41
+ Had a chance to run
42
+ He pulled out his shotgun
43
+ He was quick on the draw I thought I'd be dead
44
+ He put the gun to my head and this is what he said,
45
+
46
+ "Now my name is M.C.A. I've got a license to kill
47
+ I think you know what time it is it's time to get ill
48
+ Now what do we have here an outlaw and his beer
49
+ I run this land, you understand I make myself clear."
50
+ We stepped into the wind he had a gun, I had a grin
51
+ You think this story's over but it's ready to begin
52
+
53
+ "Now I got the gun you got the brew
54
+ You got two choices of what you can do
55
+ It's not a tough decision as you can see
56
+ I can blow you away or you can ride with me"
57
+ I said, I'll ride with you if you can get me to the border
58
+ The sheriff's after me for what I did to his daughter
59
+ I did it like this, I did it like that
60
+ I did it with a whiffleball bat
61
+ So I'm on the run the cop's got my gun
62
+ And right about now it's time to have some fun
63
+ The King Adrock that is my name
64
+ And I know the fly spot where they got the champagne."
65
+ We rode for six hours then we hit the spot
66
+ The beat was a bumping and the girlies was hot
67
+ This dude was staring like he knows who we are
68
+ We took the empty spot next to him at the bar
69
+ M.C.A. said, "Yo, you know this kid?"
70
+ I said, "I didn't." but I know he did
71
+ The kid said, "Get ready cause this ain't funny
72
+ My name's Mike D. and I'm about to get money."
73
+ Pulled out the jammy aimed it at the sky
74
+ He yelled, "Stick 'em up!" and let two fly
75
+ Hands went up and people hit the floor
76
+ He wasted two kids that ran for the door
77
+ "I'm Mike D. and I get respect
78
+ Your cash and your jewelry is what I expect"
79
+ M.C.A. was with it and he's my ace
80
+ So I grabbed the piano player and I punched him in the face
81
+ The piano player's out the music stopped
82
+ His boy had beef and he got dropped
83
+ Mike D. grabbed the money M.C.A. snatched the gold
84
+ I grabbed two girlies and a beer that's cold.
85
+
86
+
87
+ Credits
88
+ -------
89
+
90
+ ![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
91
+
92
+ Paul Revere is maintained and funded by [thoughtbot, inc](http://thoughtbot.com/community)
93
+
94
+ Thank you to all [the contributors](https://github.com/thoughtbot/paul_revere/contributors)!
95
+
96
+ The names and logos for thoughtbot are trademarks of thoughtbot, inc.
97
+
98
+ License
99
+ -------
100
+
101
+ Paul Revere is Copyright © 2009-2011 thoughtbot. It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
@@ -1,10 +1,14 @@
1
- class PaulRevereGenerator < Rails::Generator::Base
1
+ require 'rails/generators/active_record/migration'
2
+
3
+ class PaulRevereGenerator < Rails::Generators::Base
4
+ include Rails::Generators::Migration
5
+ extend ActiveRecord::Generators::Migration
6
+
2
7
  desc "Put the javascript and migration in place"
3
8
  source_root File.join(File.dirname(__FILE__), "templates")
4
9
 
5
10
  def install
6
- directory "public/javascripts"
7
- file "announcements.js", "public/javascripts/announcements.js"
11
+ copy_file "announcements.js", "public/javascripts/announcements.js"
8
12
  migration_template "migration.rb", "db/migrate/create_announcements.rb"
9
13
  end
10
14
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paul_revere
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 5
10
- version: 0.1.5
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thoughtbot
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-16 00:00:00 -04:00
18
+ date: 2011-05-11 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -83,12 +83,12 @@ executables: []
83
83
  extensions: []
84
84
 
85
85
  extra_rdoc_files:
86
- - README.textile
86
+ - README.md
87
87
  files:
88
88
  - init.rb
89
89
  - MIT-LICENSE
90
90
  - Rakefile
91
- - README.textile
91
+ - README.md
92
92
  - lib/generators/paul_revere/paul_revere_generator.rb
93
93
  - lib/generators/paul_revere/templates/announcements.js
94
94
  - lib/generators/paul_revere/templates/migration.rb
@@ -106,7 +106,7 @@ licenses: []
106
106
  post_install_message:
107
107
  rdoc_options:
108
108
  - --main
109
- - README.textile
109
+ - README.md
110
110
  require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements: []
131
131
 
132
132
  rubyforge_project:
133
- rubygems_version: 1.3.7
133
+ rubygems_version: 1.6.2
134
134
  signing_key:
135
135
  specification_version: 3
136
136
  summary: Simple announcement plugin to include 'one off' style announcements in Rails web apps.
data/README.textile DELETED
@@ -1,88 +0,0 @@
1
- h1. Paul Revere
2
-
3
- Simple announcement plugin to include "one off" style announcements in Rails web apps.
4
-
5
- h2. Install
6
-
7
- Install the engine as normal, in your Gemfile:
8
-
9
- @gem 'paul_revere'@
10
-
11
- or...
12
-
13
- @rails plugin install git://github.com/thoughtbot/paul_revere.git@
14
-
15
- Run the generator to create the migration and copy the javascript file into public:
16
-
17
- @rails generate paul_revere@
18
-
19
- h2. Beastie Boys Lyrics
20
-
21
- Now here's a little story I've got to tell
22
- About three bad brothers you know so well
23
- It started way back in history
24
- With Adrock, M.C.A., and me - Mike D.
25
- Been had a little horsy named Paul Revere
26
- Just me and my horsy and a quart of beer
27
- Riding across the land, kicking up sand
28
- Sheriff's posse on my tail cause I'm in demand
29
- One lonely Beastie I be
30
- All by myself without nobody
31
- The sun is beating down on my baseball hat
32
- The air is gettin' hot the beer is getting flat
33
- Lookin' for a girl I ran into a guy
34
- His name is M.C.A., I said, "Howdy" he said, "Hi"
35
-
36
- He told a little story that sounded well rehearsed
37
- Four days on the run and that he's dying of thirst
38
- The brew was in my hand and he was on my tip
39
- His voice was hoarse, his throat was dry he asked me for a sip
40
- He said, "Can I get some?"
41
- I said, "You can't get none!"
42
- Had a chance to run
43
- He pulled out his shotgun
44
- He was quick on the draw I thought I'd be dead
45
- He put the gun to my head and this is what he said,
46
-
47
- "Now my name is M.C.A. I've got a license to kill
48
- I think you know what time it is it's time to get ill
49
- Now what do we have here an outlaw and his beer
50
- I run this land, you understand I make myself clear."
51
- We stepped into the wind he had a gun, I had a grin
52
- You think this story's over but it's ready to begin
53
-
54
- "Now I got the gun you got the brew
55
- You got two choices of what you can do
56
- It's not a tough decision as you can see
57
- I can blow you away or you can ride with me" I said, I'll ride with you if you can get me to the border
58
- The sheriff's after me for what I did to his daughter
59
- I did it like this, I did it like that
60
- I did it with a whiffleball bat
61
- So I'm on the run the cop's got my gun
62
- And right about now it's time to have some fun
63
- The King Adrock that is my name
64
- And I know the fly spot where they got the champagne."
65
- We rode for six hours then we hit the spot
66
- The beat was a bumping and the girlies was hot
67
- This dude was staring like he knows who we are
68
- We took the empty spot next to him at the bar
69
- M.C.A. said, "Yo, you know this kid?"
70
- I said, "I didn't." but I know he did
71
- The kid said, "Get ready cause this ain't funny
72
- My name's Mike D. and I'm about to get money."
73
- Pulled out the jammy aimed it at the sky
74
- He yelled, "Stick 'em up!" and let two fly
75
- Hands went up and people hit the floor
76
- He wasted two kids that ran for the door
77
- "I'm Mike D. and I get respect
78
- Your cash and your jewelry is what I expect"
79
- M.C.A. was with it and he's my ace
80
- So I grabbed the piano player and I punched him in the face
81
- The piano player's out the music stopped
82
- His boy had beef and he got dropped
83
- Mike D. grabbed the money M.C.A. snatched the gold
84
- I grabbed two girlies and a beer that's cold.
85
-
86
- h2. License
87
-
88
- Copyright (c) 2009-2010 Thoughtbot, released under the MIT license