bootstrap_helper 2.0.0.1 → 2.0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,7 +26,7 @@ gem 'bootstrap_helper', :git => "git://github.com/xdite/bootstrap-helper.git"
26
26
 
27
27
  edit your `config/application.rb `
28
28
 
29
- SITENAME = "YOUR SITE NAME"
29
+ SITE_NAME = "YOUR SITE NAME"
30
30
 
31
31
  in `application.html.erb`, replace `<title>` with
32
32
 
@@ -102,15 +102,16 @@ write notice message in your action, will generate bootstrap style notice messag
102
102
 
103
103
  ### Pagination
104
104
 
105
- Support `will_paginate`, `3.0.pre4`
105
+ Support `will_paginate`, `3.0.3`
106
106
 
107
- in `config/application.rb`
107
+ copy `will_paginate.rb` to `config/initializers`
108
+
109
+ <https://gist.github.com/2760885>
108
110
 
109
- WillPaginate::ViewHelpers.pagination_options[:renderer] = 'BootstrapHelper::PaginateRenderer'
110
111
 
111
112
  ## Example
112
113
 
113
- see [example](bootstrap_helper/tree/master/example/application.html.erb)
114
+ see [example](bootstrap-helper/tree/master/example/application.html.erb)
114
115
 
115
116
  ## Other
116
117
 
@@ -13,11 +13,11 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
14
  gem.name = "bootstrap_helper"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = "2.0.0.1"
16
+ gem.version = "2.0.0.2"
17
17
 
18
18
  gem.add_dependency "railties", "~> 3.0"
19
19
  gem.add_dependency "thor", "~> 0.14"
20
- gem.add_dependency "will_paginate", '3.0.pre4'
20
+ gem.add_dependency "will_paginate", '>= 3.0.3'
21
21
  gem.add_development_dependency "bundler", ">= 1.0.0"
22
22
  gem.add_development_dependency "rails", "~> 3.0"
23
23
  end
@@ -1,6 +1,5 @@
1
1
  require "bootstrap_helper/helper"
2
2
  require "bootstrap_helper/breadcrumb"
3
- require "bootstrap_helper/paginate_renderer"
4
3
  module BootstrapHelper
5
4
  module Rails
6
5
  class Engine < ::Rails::Engine
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.1
4
+ version: 2.0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-11 00:00:00.000000000Z
12
+ date: 2012-05-21 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70354618587460 !ruby/object:Gem::Requirement
16
+ requirement: &70240106808800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70354618587460
24
+ version_requirements: *70240106808800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: thor
27
- requirement: &70354618577740 !ruby/object:Gem::Requirement
27
+ requirement: &70240106808320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,21 +32,21 @@ dependencies:
32
32
  version: '0.14'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70354618577740
35
+ version_requirements: *70240106808320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: will_paginate
38
- requirement: &70354618577280 !ruby/object:Gem::Requirement
38
+ requirement: &70240106807860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - =
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 3.0.pre4
43
+ version: 3.0.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70354618577280
46
+ version_requirements: *70240106807860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70354618576820 !ruby/object:Gem::Requirement
49
+ requirement: &70240106807400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70354618576820
57
+ version_requirements: *70240106807400
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rails
60
- requirement: &70354618576360 !ruby/object:Gem::Requirement
60
+ requirement: &70240106806940 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '3.0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70354618576360
68
+ version_requirements: *70240106806940
69
69
  description: Twitter Bootstrap HTML Helper
70
70
  email:
71
71
  - xuite.joke@gmail.com
@@ -83,7 +83,6 @@ files:
83
83
  - lib/bootstrap_helper/breadcrumb.rb
84
84
  - lib/bootstrap_helper/engine.rb
85
85
  - lib/bootstrap_helper/helper.rb
86
- - lib/bootstrap_helper/paginate_renderer.rb
87
86
  - lib/bootstrap_helper/railtie.rb
88
87
  - lib/bootstrap_helper/version.rb
89
88
  homepage: https://github.com/xdite/bootstrap-helper
@@ -106,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
105
  version: '0'
107
106
  requirements: []
108
107
  rubyforge_project:
109
- rubygems_version: 1.8.15
108
+ rubygems_version: 1.8.17
110
109
  signing_key:
111
110
  specification_version: 3
112
111
  summary: Twitter Bootstrap HTML Helper
@@ -1,23 +0,0 @@
1
- require 'will_paginate/view_helpers/link_renderer'
2
- require 'will_paginate/view_helpers/action_view'
3
- module BootstrapHelper
4
- class PaginateRenderer < WillPaginate::ViewHelpers::LinkRenderer
5
- protected
6
-
7
- def html_container(html)
8
- tag :div, tag(:ul, html), container_attributes
9
- end
10
-
11
- def page_number(page)
12
- tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page)
13
- end
14
-
15
- def previous_or_next_page(page, text, classname)
16
- tag :li, link(text, page || '#'), :class => [classname[0..3], classname, ('disabled' unless page)].join(' ')
17
- end
18
-
19
- def gap
20
- tag :li, link(super, '#'), :class => 'disabled'
21
- end
22
- end
23
- end