box_of_tricks 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,6 +59,10 @@ module BoxOfTricksHelper
59
59
  %{<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->}.html_safe
60
60
  end
61
61
 
62
+ # Add a <br> tag to clear any floated elements which came before
63
+ def clearfix
64
+ %{<br class="clear">}
65
+ end
62
66
 
63
67
  private
64
68
 
@@ -1,3 +1,3 @@
1
1
  module BoxOfTricks
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -53,4 +53,8 @@ class BoxOfTricksHelperTest < ActionView::TestCase
53
53
  html5_shim
54
54
  end
55
55
 
56
+ test "clearfix" do
57
+ assert_dom_equal %{<br class="clear">}, clearfix
58
+ end
59
+
56
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: box_of_tricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70193675178700 !ruby/object:Gem::Requirement
16
+ requirement: &70241191113740 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70193675178700
24
+ version_requirements: *70241191113740
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &70193675177920 !ruby/object:Gem::Requirement
27
+ requirement: &70241191113200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70193675177920
35
+ version_requirements: *70241191113200
36
36
  description: A collection of CSS classes and Rails helper methods. View the README
37
37
  for more info
38
38
  email:
@@ -44,7 +44,6 @@ files:
44
44
  - app/assets/javascripts/box_of_tricks/application.js
45
45
  - app/assets/stylesheets/box_of_tricks.css.scss
46
46
  - app/assets/stylesheets/html5reset.css
47
- - app/helpers/box_of_tricks/box_of_tricks_helper.rb
48
47
  - app/helpers/box_of_tricks_helper.rb
49
48
  - config/routes.rb
50
49
  - lib/box_of_tricks/engine.rb
@@ -104,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
103
  version: '0'
105
104
  segments:
106
105
  - 0
107
- hash: 842224441413171138
106
+ hash: -2091710042388813898
108
107
  required_rubygems_version: !ruby/object:Gem::Requirement
109
108
  none: false
110
109
  requirements:
@@ -113,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
112
  version: '0'
114
113
  segments:
115
114
  - 0
116
- hash: 842224441413171138
115
+ hash: -2091710042388813898
117
116
  requirements: []
118
117
  rubyforge_project:
119
118
  rubygems_version: 1.8.11
@@ -1,4 +0,0 @@
1
- module BoxOfTricks
2
- module BoxOfTricksHelper
3
- end
4
- end