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 CHANGED
@@ -1 +1 @@
1
- rvm use ruby-1.9.3-head@tabit --create
1
+ rvm use ruby-1.9.3-p194@tabit --create
@@ -1,2 +1,4 @@
1
- rvm:
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
2
4
  - 1.9.3
data/Gemfile CHANGED
@@ -4,7 +4,8 @@ gem 'active_link_to', '~> 1.0.0'
4
4
 
5
5
  group :development do
6
6
  gem 'redcarpet', '~> 2.1.0'
7
- gem 'yard', '~> 0.7.5'
7
+ gem 'yard', '~> 0.8.2.1'
8
8
  gem 'jeweler', '~> 1.8.3'
9
+ gem 'magic_encoding', '~> 0.0.2'
10
+ gem 'whitespace', '~> 2.0.4'
9
11
  end
10
-
@@ -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.3)
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.6.5)
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.0)
16
- yard (0.7.5)
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
- yard (~> 0.7.5)
28
+ whitespace (~> 2.0.4)
29
+ yard (~> 0.8.2.1)
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Langwhich GmbH <http://www.langwhich.com>
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/Langwhich/tabit.png)](https://secure.travis-ci.org/Langwhich/tabit)
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 Langwhich GmbH <http://www.langwhich.com>
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/Langwhich/tabit'
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 = 'thomas.boerger@langwhich.com'
26
- gem.authors = ['Thomas Boerger', 'Tim Rudat']
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
@@ -1 +1,2 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'tabit'
@@ -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
-
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Tabit
2
3
  class Builder < Item
3
4
  def initialize(template, options, &block)
@@ -18,4 +19,3 @@ module Tabit
18
19
  end
19
20
  end
20
21
  end
21
-
@@ -1,6 +1,6 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Cell
2
3
  class Rails
3
4
  helper Tabit::Helper
4
5
  end
5
6
  end
6
-
@@ -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
-
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Tabit
2
3
  module Helper
3
4
  include ActionView::Helpers::TagHelper
@@ -15,4 +16,3 @@ module Tabit
15
16
  end
16
17
  end
17
18
  end
18
-
@@ -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
-
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Tabit
2
3
  class Railtie < Rails::Railtie
3
4
  ActiveSupport.on_load :action_controller do
@@ -1,8 +1,9 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module Tabit
2
3
  module Version
3
4
  MAJOR = 0
4
5
  MINOR = 3
5
- PATCH = 2
6
+ PATCH = 3
6
7
  BUILD = nil
7
8
 
8
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tabit"
8
- s.version = "0.3.2"
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", "Tim Rudat"]
12
- s.date = "2012-06-03"
13
- s.email = "thomas.boerger@langwhich.com"
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/Langwhich/tabit"
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.21"
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.7.5"])
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.7.5"])
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.7.5"])
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.2
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-06-03 00:00:00.000000000 Z
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.7.5
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.7.5
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: thomas.boerger@langwhich.com
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/Langwhich/tabit
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: 797953807816968673
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.21
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