lyb_sidebar 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = LybSidebar
2
2
 
3
- LybSidebar simplifies dries up common sidebar code.
3
+ LybSidebar dries up common sidebar code.
4
4
 
5
5
  = Install
6
6
 
@@ -3,7 +3,7 @@ module LybSidebar
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- class_inheritable_accessor :sidebars
6
+ class_attribute :sidebars
7
7
  end
8
8
 
9
9
  module ClassMethods
@@ -0,0 +1,3 @@
1
+ module LybSidebar
2
+ VERSION = '0.1.1'
3
+ end
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
- prerelease: false
4
+ hash: 25
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 1
8
- - 0
9
- version: 0.1.0
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: 2011-01-11 00:00:00 +01:00
18
- default_executable:
19
- dependencies: []
20
-
21
- description: LybSidebar simplifies dries up common sidebar code.
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/class_methods.rb~
49
+ - lib/lyb_sidebar/railtie.rb
50
+ - lib/lyb_sidebar/version.rb
40
51
  - MIT-LICENSE
41
- - Rakefile
42
52
  - README.rdoc
43
- has_rdoc: true
44
- homepage:
45
- licenses: []
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.3.6
82
+ rubygems_version: 1.8.10
70
83
  signing_key:
71
84
  specification_version: 3
72
- summary: LybSidebar drys sidebars.
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
@@ -1,3 +0,0 @@
1
- require 'lyb_sidebar/class_methods'
2
- require 'lyb_sidebar/helper'
3
- require 'lyb_sidebar/railtie' if defined?(::Rails::Railtie)
@@ -1,4 +0,0 @@
1
- module LybSidebar
2
- module ClassMethods
3
- end
4
- end
@@ -1,12 +0,0 @@
1
- module LybSidebar
2
- module Controller
3
- module ClassMethods
4
- def sidebar(options = true)
5
- self.class_eval 'cattr_accessor :sidebars'
6
- if options.is_a? TrueClass
7
- self.sidebars = [controller_name]
8
- end
9
- end
10
- end
11
- end
12
- end
@@ -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
@@ -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