tabit 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/.travis.yml +3 -1
- data/Gemfile +3 -2
- data/Gemfile.lock +9 -5
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/Rakefile +3 -3
- data/init.rb +1 -0
- data/lib/tabit.rb +2 -2
- data/lib/tabit/builder.rb +1 -1
- data/lib/tabit/cell.rb +1 -1
- data/lib/tabit/config.rb +5 -7
- data/lib/tabit/helper.rb +1 -1
- data/lib/tabit/item.rb +4 -4
- data/lib/tabit/railtie.rb +1 -0
- data/lib/tabit/version.rb +2 -1
- data/tabit.gemspec +15 -9
- metadata +40 -9
data/.rvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rvm use ruby-1.9.3-
|
1
|
+
rvm use ruby-1.9.3-p194@tabit --create
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -3,17 +3,19 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
active_link_to (1.0.0)
|
5
5
|
git (1.2.5)
|
6
|
-
jeweler (1.8.
|
6
|
+
jeweler (1.8.4)
|
7
7
|
bundler (~> 1.0)
|
8
8
|
git (>= 1.2.5)
|
9
9
|
rake
|
10
10
|
rdoc
|
11
|
-
json (1.
|
11
|
+
json (1.7.5)
|
12
|
+
magic_encoding (0.0.2)
|
12
13
|
rake (0.9.2.2)
|
13
14
|
rdoc (3.12)
|
14
15
|
json (~> 1.4)
|
15
|
-
redcarpet (2.1.
|
16
|
-
|
16
|
+
redcarpet (2.1.1)
|
17
|
+
whitespace (2.0.4)
|
18
|
+
yard (0.8.2.1)
|
17
19
|
|
18
20
|
PLATFORMS
|
19
21
|
ruby
|
@@ -21,5 +23,7 @@ PLATFORMS
|
|
21
23
|
DEPENDENCIES
|
22
24
|
active_link_to (~> 1.0.0)
|
23
25
|
jeweler (~> 1.8.3)
|
26
|
+
magic_encoding (~> 0.0.2)
|
24
27
|
redcarpet (~> 2.1.0)
|
25
|
-
|
28
|
+
whitespace (~> 2.0.4)
|
29
|
+
yard (~> 0.8.2.1)
|
data/LICENSE.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2012
|
1
|
+
Copyright (c) 2012 Thomas Boerger Programmierung <http://www.tbpro.de>
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Tabit [![Build Status](https://secure.travis-ci.org/
|
1
|
+
# Tabit [![Build Status](https://secure.travis-ci.org/tbpro/tabit.png)](https://secure.travis-ci.org/#!/tbpro/tabit)
|
2
2
|
|
3
3
|
Tabit is a simple tab menu generator. It depends on `active_link_to`
|
4
4
|
helper. If you dont know how to set an item active take a look at it first.
|
@@ -24,5 +24,5 @@ The generated source is compatible to bootstrap tabs with dropdowns.
|
|
24
24
|
|
25
25
|
## Credits
|
26
26
|
|
27
|
-
Copyright (c) 20112
|
27
|
+
Copyright (c) 20112 Thomas Boerger Programmierung <http://www.tbpro.de>
|
28
28
|
|
data/Rakefile
CHANGED
@@ -19,11 +19,11 @@ require 'tabit/version'
|
|
19
19
|
Jeweler::Tasks.new do |gem|
|
20
20
|
gem.name = 'tabit'
|
21
21
|
gem.version = Tabit::Version::STRING
|
22
|
-
gem.homepage = 'https://github.com/
|
22
|
+
gem.homepage = 'https://github.com/tbpro/tabit'
|
23
23
|
gem.license = 'MIT'
|
24
24
|
gem.summary = %Q{Tabit is a simple tab menu generator}
|
25
|
-
gem.email = '
|
26
|
-
gem.authors = ['Thomas Boerger'
|
25
|
+
gem.email = 'tboerger@tbpro.de'
|
26
|
+
gem.authors = ['Thomas Boerger']
|
27
27
|
end
|
28
28
|
|
29
29
|
Jeweler::RubygemsDotOrgTasks.new
|
data/init.rb
CHANGED
data/lib/tabit.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
module Tabit
|
2
3
|
autoload :Version, 'tabit/version'
|
3
4
|
autoload :Config, 'tabit/config'
|
@@ -12,9 +13,8 @@ module Tabit
|
|
12
13
|
|
13
14
|
def self.configuration
|
14
15
|
@configuration ||= Tabit::Config.new
|
15
|
-
end
|
16
|
+
end
|
16
17
|
end
|
17
18
|
|
18
19
|
require 'tabit/railtie' if defined? Rails
|
19
20
|
require 'tabit/cell' if defined? Cell
|
20
|
-
|
data/lib/tabit/builder.rb
CHANGED
data/lib/tabit/cell.rb
CHANGED
data/lib/tabit/config.rb
CHANGED
@@ -1,19 +1,18 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
module Tabit
|
2
3
|
class Config
|
3
|
-
attr_accessor :active_class
|
4
|
-
attr_accessor :active_detect
|
5
|
-
|
6
4
|
attr_accessor :builder_class
|
7
5
|
|
6
|
+
attr_accessor :active_detect
|
7
|
+
attr_accessor :active_class
|
8
8
|
attr_accessor :heading_class
|
9
9
|
attr_accessor :divider_class
|
10
10
|
|
11
11
|
def initialize(&block)
|
12
|
-
@active_class = 'active'
|
13
|
-
@active_detect = :exclusive
|
14
|
-
|
15
12
|
@builder_class = Tabit::Builder
|
16
13
|
|
14
|
+
@active_detect = :exclusive
|
15
|
+
@active_class = 'active'
|
17
16
|
@heading_class = 'nav-header'
|
18
17
|
@divider_class = 'divider'
|
19
18
|
|
@@ -21,4 +20,3 @@ module Tabit
|
|
21
20
|
end
|
22
21
|
end
|
23
22
|
end
|
24
|
-
|
data/lib/tabit/helper.rb
CHANGED
data/lib/tabit/item.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
module Tabit
|
2
3
|
class Item
|
3
4
|
include ActionView::Helpers::TagHelper
|
@@ -59,7 +60,7 @@ module Tabit
|
|
59
60
|
else
|
60
61
|
''
|
61
62
|
end
|
62
|
-
|
63
|
+
|
63
64
|
options[:outer][:class] = '' if @options[:outer][:class].nil?
|
64
65
|
options[:outer][:class] << " #{clazz}"
|
65
66
|
options[:outer][:class].strip!
|
@@ -113,8 +114,8 @@ module Tabit
|
|
113
114
|
|
114
115
|
protected
|
115
116
|
def output
|
116
|
-
if children.empty?
|
117
|
-
nil
|
117
|
+
if children.empty?
|
118
|
+
nil
|
118
119
|
else
|
119
120
|
case @type
|
120
121
|
when :dropdown
|
@@ -137,4 +138,3 @@ module Tabit
|
|
137
138
|
end
|
138
139
|
end
|
139
140
|
end
|
140
|
-
|
data/lib/tabit/railtie.rb
CHANGED
data/lib/tabit/version.rb
CHANGED
data/tabit.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "tabit"
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Thomas Boerger"
|
12
|
-
s.date = "2012-
|
13
|
-
s.email = "
|
11
|
+
s.authors = ["Thomas Boerger"]
|
12
|
+
s.date = "2012-09-19"
|
13
|
+
s.email = "tboerger@tbpro.de"
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.md",
|
16
16
|
"README.md"
|
@@ -34,10 +34,10 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/tabit/version.rb",
|
35
35
|
"tabit.gemspec"
|
36
36
|
]
|
37
|
-
s.homepage = "https://github.com/
|
37
|
+
s.homepage = "https://github.com/tbpro/tabit"
|
38
38
|
s.licenses = ["MIT"]
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version = "1.8.
|
40
|
+
s.rubygems_version = "1.8.24"
|
41
41
|
s.summary = "Tabit is a simple tab menu generator"
|
42
42
|
|
43
43
|
if s.respond_to? :specification_version then
|
@@ -46,19 +46,25 @@ Gem::Specification.new do |s|
|
|
46
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
47
|
s.add_runtime_dependency(%q<active_link_to>, ["~> 1.0.0"])
|
48
48
|
s.add_development_dependency(%q<redcarpet>, ["~> 2.1.0"])
|
49
|
-
s.add_development_dependency(%q<yard>, ["~> 0.
|
49
|
+
s.add_development_dependency(%q<yard>, ["~> 0.8.2.1"])
|
50
50
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
51
|
+
s.add_development_dependency(%q<magic_encoding>, ["~> 0.0.2"])
|
52
|
+
s.add_development_dependency(%q<whitespace>, ["~> 2.0.4"])
|
51
53
|
else
|
52
54
|
s.add_dependency(%q<active_link_to>, ["~> 1.0.0"])
|
53
55
|
s.add_dependency(%q<redcarpet>, ["~> 2.1.0"])
|
54
|
-
s.add_dependency(%q<yard>, ["~> 0.
|
56
|
+
s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
|
55
57
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
58
|
+
s.add_dependency(%q<magic_encoding>, ["~> 0.0.2"])
|
59
|
+
s.add_dependency(%q<whitespace>, ["~> 2.0.4"])
|
56
60
|
end
|
57
61
|
else
|
58
62
|
s.add_dependency(%q<active_link_to>, ["~> 1.0.0"])
|
59
63
|
s.add_dependency(%q<redcarpet>, ["~> 2.1.0"])
|
60
|
-
s.add_dependency(%q<yard>, ["~> 0.
|
64
|
+
s.add_dependency(%q<yard>, ["~> 0.8.2.1"])
|
61
65
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
66
|
+
s.add_dependency(%q<magic_encoding>, ["~> 0.0.2"])
|
67
|
+
s.add_dependency(%q<whitespace>, ["~> 2.0.4"])
|
62
68
|
end
|
63
69
|
end
|
64
70
|
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Thomas Boerger
|
9
|
-
- Tim Rudat
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2012-
|
12
|
+
date: 2012-09-19 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: active_link_to
|
@@ -51,7 +50,7 @@ dependencies:
|
|
51
50
|
requirements:
|
52
51
|
- - ~>
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
53
|
+
version: 0.8.2.1
|
55
54
|
type: :development
|
56
55
|
prerelease: false
|
57
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -59,7 +58,7 @@ dependencies:
|
|
59
58
|
requirements:
|
60
59
|
- - ~>
|
61
60
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.
|
61
|
+
version: 0.8.2.1
|
63
62
|
- !ruby/object:Gem::Dependency
|
64
63
|
name: jeweler
|
65
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,8 +75,40 @@ dependencies:
|
|
76
75
|
- - ~>
|
77
76
|
- !ruby/object:Gem::Version
|
78
77
|
version: 1.8.3
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: magic_encoding
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 0.0.2
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.0.2
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: whitespace
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 2.0.4
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.0.4
|
79
110
|
description:
|
80
|
-
email:
|
111
|
+
email: tboerger@tbpro.de
|
81
112
|
executables: []
|
82
113
|
extensions: []
|
83
114
|
extra_rdoc_files:
|
@@ -101,7 +132,7 @@ files:
|
|
101
132
|
- lib/tabit/railtie.rb
|
102
133
|
- lib/tabit/version.rb
|
103
134
|
- tabit.gemspec
|
104
|
-
homepage: https://github.com/
|
135
|
+
homepage: https://github.com/tbpro/tabit
|
105
136
|
licenses:
|
106
137
|
- MIT
|
107
138
|
post_install_message:
|
@@ -116,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
147
|
version: '0'
|
117
148
|
segments:
|
118
149
|
- 0
|
119
|
-
hash:
|
150
|
+
hash: 1168324973724993981
|
120
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
152
|
none: false
|
122
153
|
requirements:
|
@@ -125,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
156
|
version: '0'
|
126
157
|
requirements: []
|
127
158
|
rubyforge_project:
|
128
|
-
rubygems_version: 1.8.
|
159
|
+
rubygems_version: 1.8.24
|
129
160
|
signing_key:
|
130
161
|
specification_version: 3
|
131
162
|
summary: Tabit is a simple tab menu generator
|