clear_helper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # ClearHelper
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/clear_helper.png)](http://badge.fury.io/rb/clear_helper)
4
+
3
5
  ClearHelper is a simple method helper to make creating a "cleared" div
4
6
  simple and consistent across platforms. You can specify whether you want to
5
7
  clear 'both', 'left', or 'right' and set the height of the div in any unit you
@@ -21,22 +23,22 @@ Or install it yourself as:
21
23
 
22
24
  ## Usage
23
25
 
24
- <%= clear %>
25
- <div style="clear:both; height: 0; max-height: 0; line-height: 0;">&nbsp;</div>
26
+ <%= clear %>
27
+ <div style="clear:both; height: 0; max-height: 0; line-height: 0;">&nbsp;</div>
26
28
 
27
- <%= clear(:left) %>
28
- <div style="clear:left; height: 0px; max-height: 0px; line-height: 0px;">&nbsp;</div>
29
+ <%= clear(:left) %>
30
+ <div style="clear:left; height: 0px; max-height: 0px; line-height: 0px;">&nbsp;</div>
29
31
 
30
32
  Failure to specify the unit for the height will default to 'px'.
31
33
 
32
- <%= clear(:right, 10) %>
33
- <div style="clear:left; height: 10px; max-height: 10px; line-height: 10px;">&nbsp;</div>
34
+ <%= clear(:right, 10) %>
35
+ <div style="clear:left; height: 10px; max-height: 10px; line-height: 10px;">&nbsp;</div>
34
36
 
35
37
  If the first value is not one of 'both', 'left', or 'right' it will be assumed to be the height
36
38
  and will default to 'both'.
37
39
 
38
- <%= clear('2.5em') %>
39
- <div style="clear:both; height: 2.5em; max-height: 2.5em; line-height: 2.5em;">&nbsp;</div>
40
+ <%= clear('2.5em') %>
41
+ <div style="clear:both; height: 2.5em; max-height: 2.5em; line-height: 2.5em;">&nbsp;</div>
40
42
 
41
43
  ## Contributing
42
44
 
@@ -11,6 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.description = %q{A Rails helper method to simplify generation of "clear" divs}
12
12
  gem.summary = %q{ClearHelper is a simple method helper to make creating a "cleared" div simple and consistent across platforms. You can specify whether you want to clear 'both', 'left', or 'right' and set the height of the div in any unit you want (defaults to pixels)}
13
13
  gem.homepage = "https://github.com/phallstrom/clear_helper"
14
+ gem.license = "MIT"
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  module ClearHelper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'action_controller'
4
4
  require 'clear_helper'
5
5
 
6
- class ClearHelperTest < Test::Unit::TestCase
6
+ class TestClearHelper < Test::Unit::TestCase
7
7
  include ActionView::Helpers::TagHelper
8
8
  include ClearHelper::TagHelper
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clear_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-09 00:00:00.000000000 Z
12
+ date: 2013-09-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A Rails helper method to simplify generation of "clear" divs
15
15
  email:
@@ -29,7 +29,8 @@ files:
29
29
  - lib/clear_helper/version.rb
30
30
  - test/test_clear_helper.rb
31
31
  homepage: https://github.com/phallstrom/clear_helper
32
- licenses: []
32
+ licenses:
33
+ - MIT
33
34
  post_install_message:
34
35
  rdoc_options: []
35
36
  require_paths:
@@ -42,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
42
43
  version: '0'
43
44
  segments:
44
45
  - 0
45
- hash: -3985196232265350545
46
+ hash: -2657913817831756193
46
47
  required_rubygems_version: !ruby/object:Gem::Requirement
47
48
  none: false
48
49
  requirements:
@@ -51,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
52
  version: '0'
52
53
  segments:
53
54
  - 0
54
- hash: -3985196232265350545
55
+ hash: -2657913817831756193
55
56
  requirements: []
56
57
  rubyforge_project:
57
58
  rubygems_version: 1.8.24