honey_badger 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,15 +2,17 @@
2
2
 
3
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
4
 
5
+ ![HoneyBadger Demo](https://img.skitch.com/20110723-h8iabtcdpb4i64xkgbrwy5kjs.jpg "HoneyBadger Demo")
6
+
5
7
  # Usage (requires Rails 3.1)
6
8
 
7
9
  Add to your Gemfile:
8
10
 
9
- gem "honey_badger", :group => [:development, :test, :staging]
11
+ gem "honey_badger"
10
12
 
11
- In your application view somewhere, just render the honey_badger helper:
13
+ In your application layout somewhere, probably just below your body tag, render the honey_badger helper:
12
14
 
13
- <%= honey_badger %>
15
+ <%= honey_badger unless Rails.env.production? %>
14
16
 
15
17
  If you want to display something other than the current environment name, just pass it in:
16
18
 
@@ -20,7 +22,7 @@ Or pass in an array to display more than one interesting fact in your badge (eac
20
22
 
21
23
  <%= honey_badger ["eats larva", "skin is loose"] %>
22
24
 
23
- In your stylesheet (using Rails 3.1 sprockets awesomeness):
25
+ Add the require for the css in your application.css (using Rails 3.1 sprockets awesomeness):
24
26
 
25
27
  /*
26
28
  *= require honey_badger
@@ -1,39 +1,41 @@
1
1
  @mixin corner-banner($color: #333) {
2
- &.corner-banner.honey-badger {
3
- position: absolute;
4
- left: -55px;
5
- top: 30px;
6
- display: block;
7
- width: 200px;
8
- background: $color;
9
- background: -moz-linear-gradient(top, $color 0%, darken($color, 20) 100%);
10
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $color), color-stop(100%, darken($color, 20)));
11
- text-align:center;
12
- font-size:11px;
13
- line-height:13px;
14
- padding:4px 3px 4px 3px;
15
- text-shadow: darken($color, 20) 1px 1px 0;
16
- -webkit-transform: rotate(-45deg);
17
- -moz-transform: rotate(-45deg);
18
- transform: rotate(-45deg);
19
- box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
20
- -moz-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
21
- -webkit-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
2
+ .corner-banner.honey-badger {
3
+ position: absolute;
4
+ left: -52px;
5
+ top: 30px;
6
+ display: block;
7
+ width: 200px;
8
+ background: $color;
9
+ background: -moz-linear-gradient(top, $color 0%, darken($color, 20) 100%);
10
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $color), color-stop(100%, darken($color, 20)));
11
+ text-align:center;
12
+ font-size:11px;
13
+ line-height:13px;
14
+ padding:4px 3px 4px 3px;
15
+ text-shadow: darken($color, 20) 1px 1px 0;
16
+ -webkit-transform: rotate(-45deg); /* Saf3.1+, Chrome */
17
+ -moz-transform: rotate(-45deg); /* FF3.5+ */
18
+ -ms-transform: rotate(-45deg); /* IE9 */
19
+ -o-transform: rotate(-45deg); /* Opera 10.5 */
20
+ transform: rotate(-45deg);
21
+ box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
22
+ -moz-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
23
+ -webkit-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
22
24
  z-index: 1000;
23
- letter-spacing:1px;
24
- font-style:normal;
25
- font-size:8px !important;
26
- color:#fff;
27
- text-transform:uppercase;
28
- line-height:12px;
29
- display:block;
25
+ letter-spacing:1px;
26
+ font-style:normal;
27
+ font-size:8px !important;
28
+ color:#fff;
29
+ text-transform:uppercase;
30
+ line-height:12px;
31
+ display:block;
30
32
  font-family: Arial;
31
-
33
+
32
34
  a:link,
33
35
  a:visited {color:#FFF0B7;text-decoration: none;}
34
36
  a:hover,
35
- a:focus {color:#FFF;text-decoration: none;}
36
- }
37
+ a:focus {color:#FFF;text-decoration: none;}
38
+ }
37
39
  }
38
40
 
39
- .development { @include corner-banner(#933720) }
41
+ .development { @include corner-banner(#933720) }
@@ -1,3 +1,3 @@
1
1
  module HoneyBadger
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,29 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: honey_badger
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
4
5
  prerelease:
5
- version: 0.0.3
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Rob Sanheim
9
9
  - Jamie Kite
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2011-07-22 00:00:00 -04:00
15
- default_executable:
13
+ date: 2011-10-10 00:00:00.000000000Z
16
14
  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!
15
+ description: Get a nice, clean badge displaying your Rails Environment or other helpful
16
+ info. Want to display last deploy date? Or maybe the status of some app wide settings?
17
+ Throw it in HoneyBadger! He just doesn't care!
19
18
  email: opensource@thinkrelevance.com
20
19
  executables: []
21
-
22
20
  extensions: []
23
-
24
21
  extra_rdoc_files: []
25
-
26
- files:
22
+ files:
27
23
  - app/assets/javascripts/application.js
28
24
  - app/assets/stylesheets/application.css
29
25
  - app/assets/stylesheets/honey_badger.css.scss
@@ -37,36 +33,31 @@ files:
37
33
  - MIT-LICENSE
38
34
  - Rakefile
39
35
  - README.markdown
40
- has_rdoc: true
41
36
  homepage: http://github.com/rsanheim/honey_badger
42
37
  licenses: []
43
-
44
38
  post_install_message:
45
39
  rdoc_options: []
46
-
47
- require_paths:
40
+ require_paths:
48
41
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
42
+ required_ruby_version: !ruby/object:Gem::Requirement
50
43
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- hash: 745516221216455174
55
- segments:
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ segments:
56
49
  - 0
57
- version: "0"
58
- required_rubygems_version: !ruby/object:Gem::Requirement
50
+ hash: -4540646019436865054
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
52
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
64
57
  requirements: []
65
-
66
58
  rubyforge_project:
67
- rubygems_version: 1.6.2
59
+ rubygems_version: 1.8.6
68
60
  signing_key:
69
61
  specification_version: 3
70
62
  summary: Descriptive badges for your app.
71
63
  test_files: []
72
-