bootstrap-components-helpers 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e1fa9e2f8d25be9a9e4fb86a684dceea827daefc
4
+ data.tar.gz: 57b378e1cde1b7029faf69ae9c5232869d8950c1
5
+ SHA512:
6
+ metadata.gz: 4f7f1e47aa6b4e0d71c233fa11561f8929a89be7a199d627275cdcd7a3a54ed92b56542a4d7496f239020fa256dbcd520c424dbaf3ab0beb33283375908c8fe5
7
+ data.tar.gz: ce4867032c776cbeed991114460f0a4ede8c633c558bc7f9831d04dfdba9f628b5aba2bab0fd198977da8f9022e230f4996a1cd77e382bca54a2c7ca6737c014
data/README.markdown CHANGED
@@ -17,6 +17,7 @@ In your Gemfile:
17
17
  `accordion` method options :
18
18
 
19
19
  - `:accordion_id` : when you want more than one accordion on the same page.
20
+ - `:class` : to add an additional CSS class to the container DIV.
20
21
 
21
22
  `pane` method options :
22
23
 
@@ -3,7 +3,9 @@ module BootstrapComponentsHelpers
3
3
  def accordion opts = {}
4
4
  opts[:accordion_id] ||= 'accordion'
5
5
  builder = AccordionBuilder.new opts, self
6
- content_tag :div, :class => 'accordion', :id => opts[:accordion_id] do
6
+ css_class = ['accordion']
7
+ css_class << opts[:class] if opts[:class].present?
8
+ content_tag :div, :class => css_class, :id => opts[:accordion_id] do
7
9
  yield builder
8
10
  end
9
11
  end
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class AccordionHelperTest < ActionView::TestCase
3
+ class TabsHelperTest < ActionView::TestCase
4
4
 
5
5
  include BootstrapComponentsHelpers::TabsHelper
6
6
 
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-components-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ivan Schneider
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-15 00:00:00.000000000 Z
11
+ date: 2013-07-26 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: actionpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.0
30
27
  description: View helpers that generate the proper markup for some Twitter Bootstrap
@@ -41,29 +38,28 @@ files:
41
38
  - test/test_accordion_helper.rb
42
39
  - test/test_helper.rb
43
40
  - test/test_tabs_helper.rb
44
- homepage: https://dbinsights.herokuapp.com
41
+ homepage: https://github.com/isc/bootstrap-components-helpers
45
42
  licenses: []
43
+ metadata: {}
46
44
  post_install_message:
47
45
  rdoc_options: []
48
46
  require_paths:
49
47
  - lib
50
48
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
49
  requirements:
53
- - - ! '>='
50
+ - - '>='
54
51
  - !ruby/object:Gem::Version
55
52
  version: '0'
56
53
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
54
  requirements:
59
- - - ! '>='
55
+ - - '>='
60
56
  - !ruby/object:Gem::Version
61
57
  version: '0'
62
58
  requirements: []
63
59
  rubyforge_project:
64
- rubygems_version: 1.8.25
60
+ rubygems_version: 2.0.3
65
61
  signing_key:
66
- specification_version: 3
62
+ specification_version: 4
67
63
  summary: View helpers for Twitter Bootstrap components
68
64
  test_files:
69
65
  - test/test_accordion_helper.rb