paul_revere 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 thoughtbot, inc
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.textile ADDED
@@ -0,0 +1,84 @@
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:
8
+
9
+ @script/plugin install git://github.com/thoughtbot/paul_revere.git@
10
+
11
+ Run the generator to create the migration and copy the javascript file into public:
12
+
13
+ @./script/generate paul_revere@
14
+
15
+ h2. Beastie Boys Lyrics
16
+
17
+ Now here's a little story I've got to tell
18
+ About three bad brothers you know so well
19
+ It started way back in history
20
+ With Adrock, M.C.A., and me - Mike D.
21
+ Been had a little horsy named Paul Revere
22
+ Just me and my horsy and a quart of beer
23
+ Riding across the land, kicking up sand
24
+ Sheriff's posse on my tail cause I'm in demand
25
+ One lonely Beastie I be
26
+ All by myself without nobody
27
+ The sun is beating down on my baseball hat
28
+ The air is gettin' hot the beer is getting flat
29
+ Lookin' for a girl I ran into a guy
30
+ His name is M.C.A., I said, "Howdy" he said, "Hi"
31
+
32
+ He told a little story that sounded well rehearsed
33
+ Four days on the run and that he's dying of thirst
34
+ The brew was in my hand and he was on my tip
35
+ His voice was hoarse, his throat was dry he asked me for a sip
36
+ He said, "Can I get some?"
37
+ I said, "You can't get none!"
38
+ Had a chance to run
39
+ He pulled out his shotgun
40
+ He was quick on the draw I thought I'd be dead
41
+ He put the gun to my head and this is what he said,
42
+
43
+ "Now my name is M.C.A. I've got a license to kill
44
+ I think you know what time it is it's time to get ill
45
+ Now what do we have here an outlaw and his beer
46
+ I run this land, you understand I make myself clear."
47
+ We stepped into the wind he had a gun, I had a grin
48
+ You think this story's over but it's ready to begin
49
+
50
+ "Now I got the gun you got the brew
51
+ You got two choices of what you can do
52
+ It's not a tough decision as you can see
53
+ 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
54
+ The sheriff's after me for what I did to his daughter
55
+ I did it like this, I did it like that
56
+ I did it with a whiffleball bat
57
+ So I'm on the run the cop's got my gun
58
+ And right about now it's time to have some fun
59
+ The King Adrock that is my name
60
+ And I know the fly spot where they got the champagne."
61
+ We rode for six hours then we hit the spot
62
+ The beat was a bumping and the girlies was hot
63
+ This dude was staring like he knows who we are
64
+ We took the empty spot next to him at the bar
65
+ M.C.A. said, "Yo, you know this kid?"
66
+ I said, "I didn't." but I know he did
67
+ The kid said, "Get ready cause this ain't funny
68
+ My name's Mike D. and I'm about to get money."
69
+ Pulled out the jammy aimed it at the sky
70
+ He yelled, "Stick 'em up!" and let two fly
71
+ Hands went up and people hit the floor
72
+ He wasted two kids that ran for the door
73
+ "I'm Mike D. and I get respect
74
+ Your cash and your jewelry is what I expect"
75
+ M.C.A. was with it and he's my ace
76
+ So I grabbed the piano player and I punched him in the face
77
+ The piano player's out the music stopped
78
+ His boy had beef and he got dropped
79
+ Mike D. grabbed the money M.C.A. snatched the gold
80
+ I grabbed two girlies and a beer that's cold.
81
+
82
+ h2. License
83
+
84
+ Copyright (c) 2009-2010 Thoughtbot, released under the MIT license
data/Rakefile ADDED
@@ -0,0 +1,57 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+ require "rake/gempackagetask"
5
+
6
+ desc 'Default: run unit tests.'
7
+ task :default => :test
8
+
9
+ desc 'Test the paul revere plugin.'
10
+ Rake::TestTask.new(:test) do |t|
11
+ t.libs << 'lib'
12
+ t.libs << 'test'
13
+ t.pattern = 'test/**/*_test.rb'
14
+ t.verbose = true
15
+ end
16
+
17
+ desc 'Generate documentation for the paul revere plugin.'
18
+ Rake::RDocTask.new(:rdoc) do |rdoc|
19
+ rdoc.rdoc_dir = 'rdoc'
20
+ rdoc.title = 'PaulRevere'
21
+ rdoc.options << '--line-numbers' << '--inline-source'
22
+ rdoc.rdoc_files.include('README')
23
+ rdoc.rdoc_files.include('lib/**/*.rb')
24
+ end
25
+
26
+ spec = Gem::Specification.new do |s|
27
+ s.name = "paul_revere"
28
+ s.version = "0.1.0"
29
+ s.summary = "Simple announcement plugin to include 'one off' style announcements in Rails web apps."
30
+ s.author = "Thoughtbot"
31
+ s.email = "support@thoughtbot.com"
32
+ s.homepage = "http://thoughtbot.com/community"
33
+
34
+ s.has_rdoc = true
35
+ s.extra_rdoc_files = %w(README.textile)
36
+ s.rdoc_options = %w(--main README.textile)
37
+
38
+ s.files = %w(init.rb install.rb MIT-LICENSE Rakefile README.textile uninstall.rb) + Dir.glob("{test,lib/**/*}")
39
+ s.require_paths = ["lib"]
40
+
41
+ s.add_dependency("rails", "~> 3.0.0")
42
+ s.add_development_dependency("bourne")
43
+ s.add_development_dependency("shoulda")
44
+ s.add_development_dependency("redgreen")
45
+ end
46
+
47
+ Rake::GemPackageTask.new(spec) do |pkg|
48
+ pkg.gem_spec = spec
49
+ end
50
+
51
+ desc "Build the gemspec file #{spec.name}.gemspec"
52
+ task :gemspec do
53
+ file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
54
+ File.open(file, "w") {|f| f << spec.to_ruby }
55
+ end
56
+
57
+ task :package => :gemspec
data/init.rb ADDED
@@ -0,0 +1,2 @@
1
+ # Include hook code here
2
+
data/install.rb ADDED
File without changes
@@ -0,0 +1 @@
1
+ # PaulRevere
data/uninstall.rb ADDED
@@ -0,0 +1 @@
1
+ # Uninstall hook code here
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: paul_revere
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Thoughtbot
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-12 00:00:00 -04:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rails
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 0
34
+ version: 3.0.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: bourne
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
48
+ version: "0"
49
+ type: :development
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: shoulda
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :development
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: redgreen
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :development
78
+ version_requirements: *id004
79
+ description:
80
+ email: support@thoughtbot.com
81
+ executables: []
82
+
83
+ extensions: []
84
+
85
+ extra_rdoc_files:
86
+ - README.textile
87
+ files:
88
+ - init.rb
89
+ - install.rb
90
+ - MIT-LICENSE
91
+ - Rakefile
92
+ - README.textile
93
+ - uninstall.rb
94
+ - lib/paul_revere.rb
95
+ has_rdoc: true
96
+ homepage: http://thoughtbot.com/community
97
+ licenses: []
98
+
99
+ post_install_message:
100
+ rdoc_options:
101
+ - --main
102
+ - README.textile
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ hash: 3
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ none: false
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ hash: 3
120
+ segments:
121
+ - 0
122
+ version: "0"
123
+ requirements: []
124
+
125
+ rubyforge_project:
126
+ rubygems_version: 1.3.7
127
+ signing_key:
128
+ specification_version: 3
129
+ summary: Simple announcement plugin to include 'one off' style announcements in Rails web apps.
130
+ test_files: []
131
+