tabs_for 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 770a70cb51837a01511f27c64c73c88906d320e2
4
- data.tar.gz: f846fd64e2844f826c83448779c832716b26e40c
3
+ metadata.gz: cfd6503710263feb0dbbbe8afa9eeaeb199f09c1
4
+ data.tar.gz: 7da81ce575f15ea5c8cb9638687b1b034f2d0081
5
5
  SHA512:
6
- metadata.gz: 6422f1c21637595eea4e0c5cf0a8ff374c60ab45789d0833b75b75e00433f7795ccc653a4555a9cdbf7644a6254f65c3d5e06463bd73e1415d2d75d7c03bd7f8
7
- data.tar.gz: 4b9b1be83d8633df6978ac09b705506a2936b7106ec5d50738d3c8c44c9f89a19415db0470047a0bb9a5c69d612c8d1e0d987f43894171417c0d2247be2fcd64
6
+ metadata.gz: 0779cb1fb892ae0f636d7d52e38faa64377fbd1917ce816be036bf7bcc26635b6ea3608484b115fa025ccc184a1f8aea90e31f291aa0b15a4901c8d2a5ed4b41
7
+ data.tar.gz: 5b8ee40f25f5b857580890bc108d9a5a4615a6f0d1a4252a662ef51ff67ae2fdd9b7ac0cb20aa93eb312573fc6ff23684525d089029a0f64b4eea60bd39c111c
data/Gemfile.lock CHANGED
@@ -1,43 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tabs_for (0.2.3)
4
+ tabs_for (0.2.4)
5
5
  font-awesome-rails (~> 4.0)
6
6
  rails (>= 3.2, < 5.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionmailer (4.2.5)
12
- actionpack (= 4.2.5)
13
- actionview (= 4.2.5)
14
- activejob (= 4.2.5)
11
+ actionmailer (4.2.5.1)
12
+ actionpack (= 4.2.5.1)
13
+ actionview (= 4.2.5.1)
14
+ activejob (= 4.2.5.1)
15
15
  mail (~> 2.5, >= 2.5.4)
16
16
  rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.5)
18
- actionview (= 4.2.5)
19
- activesupport (= 4.2.5)
17
+ actionpack (4.2.5.1)
18
+ actionview (= 4.2.5.1)
19
+ activesupport (= 4.2.5.1)
20
20
  rack (~> 1.6)
21
21
  rack-test (~> 0.6.2)
22
22
  rails-dom-testing (~> 1.0, >= 1.0.5)
23
23
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
24
- actionview (4.2.5)
25
- activesupport (= 4.2.5)
24
+ actionview (4.2.5.1)
25
+ activesupport (= 4.2.5.1)
26
26
  builder (~> 3.1)
27
27
  erubis (~> 2.7.0)
28
28
  rails-dom-testing (~> 1.0, >= 1.0.5)
29
29
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- activejob (4.2.5)
31
- activesupport (= 4.2.5)
30
+ activejob (4.2.5.1)
31
+ activesupport (= 4.2.5.1)
32
32
  globalid (>= 0.3.0)
33
- activemodel (4.2.5)
34
- activesupport (= 4.2.5)
33
+ activemodel (4.2.5.1)
34
+ activesupport (= 4.2.5.1)
35
35
  builder (~> 3.1)
36
- activerecord (4.2.5)
37
- activemodel (= 4.2.5)
38
- activesupport (= 4.2.5)
36
+ activerecord (4.2.5.1)
37
+ activemodel (= 4.2.5.1)
38
+ activesupport (= 4.2.5.1)
39
39
  arel (~> 6.0)
40
- activesupport (4.2.5)
40
+ activesupport (4.2.5.1)
41
41
  i18n (~> 0.7)
42
42
  json (~> 1.7, >= 1.7.7)
43
43
  minitest (~> 5.1)
@@ -78,16 +78,16 @@ GEM
78
78
  rack (1.6.4)
79
79
  rack-test (0.6.3)
80
80
  rack (>= 1.0)
81
- rails (4.2.5)
82
- actionmailer (= 4.2.5)
83
- actionpack (= 4.2.5)
84
- actionview (= 4.2.5)
85
- activejob (= 4.2.5)
86
- activemodel (= 4.2.5)
87
- activerecord (= 4.2.5)
88
- activesupport (= 4.2.5)
81
+ rails (4.2.5.1)
82
+ actionmailer (= 4.2.5.1)
83
+ actionpack (= 4.2.5.1)
84
+ actionview (= 4.2.5.1)
85
+ activejob (= 4.2.5.1)
86
+ activemodel (= 4.2.5.1)
87
+ activerecord (= 4.2.5.1)
88
+ activesupport (= 4.2.5.1)
89
89
  bundler (>= 1.3.0, < 2.0)
90
- railties (= 4.2.5)
90
+ railties (= 4.2.5.1)
91
91
  sprockets-rails
92
92
  rails-deprecated_sanitizer (1.0.3)
93
93
  activesupport (>= 4.2.0.alpha)
@@ -95,11 +95,11 @@ GEM
95
95
  activesupport (>= 4.2.0.beta, < 5.0)
96
96
  nokogiri (~> 1.6.0)
97
97
  rails-deprecated_sanitizer (>= 1.0.1)
98
- rails-html-sanitizer (1.0.2)
98
+ rails-html-sanitizer (1.0.3)
99
99
  loofah (~> 2.0)
100
- railties (4.2.5)
101
- actionpack (= 4.2.5)
102
- activesupport (= 4.2.5)
100
+ railties (4.2.5.1)
101
+ actionpack (= 4.2.5.1)
102
+ activesupport (= 4.2.5.1)
103
103
  rake (>= 0.8.7)
104
104
  thor (>= 0.18.1, < 2.0)
105
105
  rake (10.5.0)
@@ -115,7 +115,7 @@ GEM
115
115
  sprockets (3.5.2)
116
116
  concurrent-ruby (~> 1.0)
117
117
  rack (> 1, < 3)
118
- sprockets-rails (3.0.0)
118
+ sprockets-rails (3.0.1)
119
119
  actionpack (>= 4.0)
120
120
  activesupport (>= 4.0)
121
121
  sprockets (>= 3.0.0)
@@ -25,7 +25,6 @@ module TabsFor
25
25
  def identifier(attribute)
26
26
  attribute.to_s.downcase
27
27
  end
28
-
29
28
  end
30
29
 
31
30
  class TabBuilder < ViewBuilder
@@ -40,14 +39,14 @@ module TabsFor
40
39
  attribute.to_s.titleize
41
40
  end
42
41
 
43
- options[:id] ||= identifier(attribute)
42
+ id = options[:id] ? options[:id].to_s : identifier(attribute)
44
43
 
45
44
  if options[:size]
46
45
  content += ' ' + content_tag(:span, options[:size], class: 'badge')
47
46
  end
48
47
 
49
48
  content_tag(:li, apply_options(attribute, options)) do
50
- link_to '#' + identifier(attribute), apply_link_options(attribute) do
49
+ link_to '#' + id, apply_link_options(id) do
51
50
  if options[:icon]
52
51
  wrap_with_icon(content.html_safe, options)
53
52
  else
@@ -59,9 +58,9 @@ module TabsFor
59
58
 
60
59
  private
61
60
 
62
- def apply_link_options(attribute)
61
+ def apply_link_options(id)
63
62
  {
64
- 'aria-controls' => identifier(attribute),
63
+ 'aria-controls' => id,
65
64
  'data-toggle' => 'tab',
66
65
  role: 'tab'
67
66
  }
@@ -81,7 +80,6 @@ module TabsFor
81
80
  def wrap_with_icon(content, options = {})
82
81
  fa_icon(options[:icon], text: content)
83
82
  end
84
-
85
83
  end
86
84
 
87
85
  class PaneBuilder < ViewBuilder
@@ -110,7 +108,6 @@ module TabsFor
110
108
  id: options[:id] ? options[:id] : identifier(attribute)
111
109
  }
112
110
  end
113
-
114
111
  end
115
112
  end
116
113
  end
@@ -1,3 +1,3 @@
1
1
  module TabsFor
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabs_for
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ole J. Rosendahl
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails