honey_badger 0.0.1

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 2011 YOURNAME
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.markdown ADDED
@@ -0,0 +1,49 @@
1
+ # HoneyBadger
2
+
3
+ Get a nice, clean badge displaying your Rails Environment or other helpful info. Want to display last deploy date? Or maybe the status of some app wide settings? Throw it in HoneyBadger! He just doesn't care!
4
+
5
+ # Usage (requires Rails 3.1)
6
+
7
+ Add to your Gemfile:
8
+
9
+ gem "honey_badger", :group => [:development, :test, :staging]
10
+
11
+ In your application view somewhere, just render the honey_badger helper:
12
+
13
+ = honey_badger
14
+
15
+ If you want to display something other than the current environment name, just pass it in:
16
+
17
+ = honey_badger "Don't Care!"
18
+
19
+ Or pass in an array to display more than one interesting fact in your badge (each will be displayed on its own line):
20
+
21
+ = honey_badger ["eats larva", "skin is loose"]
22
+
23
+ In your stylesheet (using Rails 3.1 sprockets awesomeness):
24
+
25
+ /*
26
+ *= require honey_badger
27
+ */
28
+
29
+ Make sure to put the `honey_badger` *above* your own SCSS requires, or else the honey badger might get *nasty.* It'll just *take what it wants.*
30
+
31
+ # Customization
32
+
33
+ You can customize colors and add custom environment names by importing `honey_badger` into your SCSS file. Let's say you like the color orange and your `Rails.env` is `staging`:
34
+
35
+ @import 'honey_badger';
36
+
37
+ .honey-badger.staging {
38
+ @include corner-banner(#f90);
39
+ }
40
+
41
+ To see what else you can customize, take a look at `honey_badger.css.scss`.
42
+
43
+ # Authors
44
+
45
+ * Rob Sanheim
46
+ * Jamie Kite
47
+
48
+
49
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'HoneyBadger'
18
+ rdoc.options << '--line-numbers' << '--inline-source'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+ require 'rake/testtask'
27
+
28
+ Rake::TestTask.new(:test) do |t|
29
+ t.libs << 'lib'
30
+ t.libs << 'test'
31
+ t.pattern = 'test/**/*_test.rb'
32
+ t.verbose = false
33
+ end
34
+
35
+
36
+ task :default => :test
@@ -0,0 +1,5 @@
1
+ module HoneyBadger
2
+ class Engine < Rails::Engine
3
+ # isolate_namespace HoneyBadger
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ require "honey_badger/engine"
2
+
3
+ module HoneyBadger
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :honey_badger do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,62 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: honey_badger
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Rob Sanheim
9
+ - Jamie Kite
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+
14
+ date: 2011-07-22 00:00:00 -04:00
15
+ default_executable:
16
+ dependencies: []
17
+
18
+ description: Get a nice, clean badge displaying your Rails Environment or other helpful info. Want to display last deploy date? Or maybe the status of some app wide settings? Throw it in HoneyBadger! He just doesn't care!
19
+ email: opensource@thinkrelevance.com
20
+ executables: []
21
+
22
+ extensions: []
23
+
24
+ extra_rdoc_files: []
25
+
26
+ files:
27
+ - lib/honey_badger/engine.rb
28
+ - lib/honey_badger.rb
29
+ - lib/tasks/honey_badger_tasks.rake
30
+ - MIT-LICENSE
31
+ - Rakefile
32
+ - README.markdown
33
+ has_rdoc: true
34
+ homepage: http://github.com/rsanheim/honey_badger
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options: []
39
+
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: "0"
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ requirements: []
55
+
56
+ rubyforge_project:
57
+ rubygems_version: 1.6.2
58
+ signing_key:
59
+ specification_version: 3
60
+ summary: Descriptive badges for your app.
61
+ test_files: []
62
+