lyb_sidebar 0.1.0 → 0.1.1
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.
- data/README.rdoc +1 -1
- data/lib/lyb_sidebar/controller.rb +1 -1
- data/lib/lyb_sidebar/version.rb +3 -0
- metadata +37 -23
- data/Rakefile +0 -25
- data/lib/lyb_sidebar.rb~ +0 -3
- data/lib/lyb_sidebar/class_methods.rb~ +0 -4
- data/lib/lyb_sidebar/controller.rb~ +0 -12
- data/lib/lyb_sidebar/helper.rb~ +0 -22
- data/lib/lyb_sidebar/railtie.rb~ +0 -12
data/README.rdoc
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lyb_sidebar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- "Simon H\xC3\xBCrlimann (CyT)"
|
@@ -14,61 +15,74 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
date: 2012-01-23 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rails
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 5
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 1
|
32
|
+
version: "3.1"
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: LybSidebar simplifies common sidebar code.
|
22
36
|
email:
|
23
37
|
- simon.huerlimann@cyt.ch
|
24
38
|
executables: []
|
25
39
|
|
26
40
|
extensions: []
|
27
41
|
|
28
|
-
extra_rdoc_files:
|
29
|
-
|
42
|
+
extra_rdoc_files:
|
43
|
+
- MIT-LICENSE
|
44
|
+
- README.rdoc
|
30
45
|
files:
|
31
|
-
- lib/lyb_sidebar.rb~
|
32
46
|
- lib/lyb_sidebar.rb
|
33
|
-
- lib/lyb_sidebar/controller.rb~
|
34
|
-
- lib/lyb_sidebar/railtie.rb
|
35
|
-
- lib/lyb_sidebar/railtie.rb~
|
36
47
|
- lib/lyb_sidebar/controller.rb
|
37
|
-
- lib/lyb_sidebar/helper.rb~
|
38
48
|
- lib/lyb_sidebar/helper.rb
|
39
|
-
- lib/lyb_sidebar/
|
49
|
+
- lib/lyb_sidebar/railtie.rb
|
50
|
+
- lib/lyb_sidebar/version.rb
|
40
51
|
- MIT-LICENSE
|
41
|
-
- Rakefile
|
42
52
|
- README.rdoc
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
53
|
+
homepage: https://github.com/huerlisi/lyb_sidebar
|
54
|
+
licenses:
|
55
|
+
- MIT
|
47
56
|
post_install_message:
|
48
57
|
rdoc_options: []
|
49
58
|
|
50
59
|
require_paths:
|
51
60
|
- lib
|
52
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
53
63
|
requirements:
|
54
64
|
- - ">="
|
55
65
|
- !ruby/object:Gem::Version
|
66
|
+
hash: 3
|
56
67
|
segments:
|
57
68
|
- 0
|
58
69
|
version: "0"
|
59
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
+
none: false
|
60
72
|
requirements:
|
61
73
|
- - ">="
|
62
74
|
- !ruby/object:Gem::Version
|
75
|
+
hash: 3
|
63
76
|
segments:
|
64
77
|
- 0
|
65
78
|
version: "0"
|
66
79
|
requirements: []
|
67
80
|
|
68
81
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.8.10
|
70
83
|
signing_key:
|
71
84
|
specification_version: 3
|
72
|
-
summary: LybSidebar
|
85
|
+
summary: LybSidebar dries sidebars.
|
73
86
|
test_files: []
|
74
87
|
|
88
|
+
has_rdoc:
|
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
require 'rubygems'
|
3
|
-
begin
|
4
|
-
require 'bundler/setup'
|
5
|
-
rescue LoadError
|
6
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
7
|
-
end
|
8
|
-
|
9
|
-
require 'rake'
|
10
|
-
require 'rake/rdoctask'
|
11
|
-
|
12
|
-
require 'rspec/core'
|
13
|
-
require 'rspec/core/rake_task'
|
14
|
-
|
15
|
-
RSpec::Core::RakeTask.new(:spec)
|
16
|
-
|
17
|
-
task :default => :spec
|
18
|
-
|
19
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
20
|
-
rdoc.rdoc_dir = 'rdoc'
|
21
|
-
rdoc.title = 'LybSidebar'
|
22
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
23
|
-
rdoc.rdoc_files.include('README.rdoc')
|
24
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
-
end
|
data/lib/lyb_sidebar.rb~
DELETED
data/lib/lyb_sidebar/helper.rb~
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module LybSidebar
|
2
|
-
module Helper
|
3
|
-
# Tag support
|
4
|
-
def tag_filter(model = nil, filters = nil, scope = :tagged_with)
|
5
|
-
model ||= controller_name.singularize.camelize.constantize
|
6
|
-
filters ||= model.top_tags
|
7
|
-
|
8
|
-
render 'layouts/tag_filter', :filters => filters, :scope => scope
|
9
|
-
end
|
10
|
-
|
11
|
-
def sidebar_tag_filter
|
12
|
-
content_for :sidebar do
|
13
|
-
tag_filter
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
# Sidebar
|
18
|
-
def render_sidebar
|
19
|
-
content_for :sidebar
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
data/lib/lyb_sidebar/railtie.rb~
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'lyb_sidebar'
|
2
|
-
require 'rails'
|
3
|
-
|
4
|
-
module LybSidebar
|
5
|
-
class Railtie < Rails::Engine
|
6
|
-
initializer :after_initialize do
|
7
|
-
ActionController::Base.helper LybSidebar::Helper
|
8
|
-
|
9
|
-
ActionController::Base.extend(LybSidebar::Controller::ClassMethods)
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|