will_paginate_semantic_ui 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b7169b9752d757220ec53b05398a8948cd19504
4
- data.tar.gz: 9b6e9553fefcdff20e7030fded86376f054e054e
3
+ metadata.gz: 7684ba976266cb129f3fd1a039744312f57fd74f
4
+ data.tar.gz: a30bad402fe56c69dba03c459319d0db15cbe4ba
5
5
  SHA512:
6
- metadata.gz: 7dbd511658ed2edec0eac772ce0b0ceb6619ba7c3d6f802f84eec45c7796f6abec1b68b7f9669fcd448df5d2e452e6425d36e74352d06aa153911153b04a5c1a
7
- data.tar.gz: 6e018daf1e61fc7bc7b2ab49a41002ee6130a5055b88282f1ca1553cf1fbf38509e2f11b8a4a9101c6321d0d8df4a942454c81f679dcf4c14863bf48a6d7fc06
6
+ metadata.gz: aebe374da6b07646142155ebfe4667f488d17d40e1216f82d772a82a546d3f029e55bff0651e0e3ccba68f959695169f411f4f9fbf73b4e78595f2b7f5bb9946
7
+ data.tar.gz: 46bb7e47b13a7b9c65fda70e39fc6d75a47f2645d9238a15ca90499450c2308bd0cda9562b696c9197e5262dad12241528632e3949b0ebcf5ca0746b1a7ee7a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1
4
+
5
+ - Fix error when Sinatra and ActionView is available in the same project
6
+ - Renderer class WillPaginateSemanticUi::Renderer removed. Use WillPaginateSemanticUi::ActionView::Renderer or WillPaginateSemanticUi::Sinatra::Renderer (See docs for more info)
7
+
3
8
  ## 2.0.0
4
9
 
5
10
  - Sinatra support
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- will_paginate_semantic_ui (2.0.0)
4
+ will_paginate_semantic_ui (2.0.1)
5
5
  will_paginate (> 3.0.0)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Will Paginate for Semantic UI
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/will_paginate_semantic_ui.svg)](http://badge.fury.io/rb/will_paginate_semantic_ui) [![Travis](https://api.travis-ci.org/rafaelbiriba/will_paginate_semantic_ui.svg?branch=master)](https://travis-ci.org/rafaelbiriba/will_paginate_semantic_ui) [![Coverage Status](https://coveralls.io/repos/rafaelbiriba/will_paginate_semantic_ui/badge.svg?branch=master)](https://coveralls.io/r/rafaelbiriba/will_paginate_semantic_ui?branch=master)
3
+ ![Gem Version](https://img.shields.io/gem/v/will_paginate_semantic_ui.svg?style=flat-square) [![Code Climate](https://img.shields.io/codeclimate/github/rafaelbiriba/will_paginate_semantic_ui.svg?style=flat-square)](https://codeclimate.com/github/rafaelbiriba/will_paginate_semantic_ui) [![Coverage Status](https://img.shields.io/coveralls/rafaelbiriba/will_paginate_semantic_ui/master.svg?style=flat-square)](https://coveralls.io/r/rafaelbiriba/will_paginate_semantic_ui?branch=master) [![Travis](https://img.shields.io/travis/rafaelbiriba/will_paginate_semantic_ui/master.svg?style=flat-square)](https://travis-ci.org/rafaelbiriba/will_paginate_semantic_ui)
4
4
 
5
5
  #### If you are using [Will Paginate gem](https://github.com/mislav/will_paginate) and [Semantic UI framework](http://semantic-ui.com/), this gem is WHAT YOU NEED!
6
6
 
@@ -25,7 +25,7 @@ As easy as `gem install will_paginate_semantic_ui` or add `gem "will_paginate_se
25
25
 
26
26
  In your paginated view, you need to use another render in the will paginate command:
27
27
 
28
- `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
28
+ `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::ActionView::Renderer %>`
29
29
 
30
30
  ### Sinatra
31
31
 
@@ -33,7 +33,7 @@ In your paginated view, you need to use another render in the will paginate comm
33
33
 
34
34
  In your paginated view, you need to use another render in the will paginate command:
35
35
 
36
- `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
36
+ `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Sinatra::Renderer %>`
37
37
 
38
38
  **Look the example implementation at** `docs/sinatra_example`
39
39
 
@@ -51,7 +51,7 @@ rackup
51
51
 
52
52
  You can also use some will_pagination options to customize your component:
53
53
 
54
- `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer, class: "right floated", inner_window: 3 %>
54
+ `<%= will_paginate @collection, renderer: WillPaginateSemanticUi::ActionView::Renderer, class: "right floated", inner_window: 3 %>
55
55
  `
56
56
 
57
57
  The command above create this
@@ -2,7 +2,7 @@ require "will_paginate_semantic_ui/version"
2
2
  require "will_paginate"
3
3
 
4
4
  if defined?(ActionView)
5
- require "will_paginate_semantic_ui/rails"
5
+ require "will_paginate_semantic_ui/action_view"
6
6
  end
7
7
 
8
8
  if defined?(Sinatra)
@@ -1,7 +1,7 @@
1
1
  require "will_paginate/view_helpers/action_view"
2
2
  require "will_paginate_semantic_ui/generic_renderer"
3
3
 
4
- module WillPaginateSemanticUi
4
+ module WillPaginateSemanticUi::ActionView
5
5
  class Renderer < WillPaginate::ActionView::LinkRenderer
6
6
  include WillPaginateSemanticUi::GenericRenderer
7
7
  end
@@ -1,7 +1,7 @@
1
1
  require "will_paginate/view_helpers/sinatra"
2
2
  require "will_paginate_semantic_ui/generic_renderer"
3
3
 
4
- module WillPaginateSemanticUi
4
+ module WillPaginateSemanticUi::Sinatra
5
5
  class Renderer < WillPaginate::Sinatra::LinkRenderer
6
6
  include WillPaginateSemanticUi::GenericRenderer
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module WillPaginateSemanticUi
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_paginate_semantic_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafael Biriba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: will_paginate
@@ -126,8 +126,8 @@ files:
126
126
  - README.md
127
127
  - Rakefile
128
128
  - lib/will_paginate_semantic_ui.rb
129
+ - lib/will_paginate_semantic_ui/action_view.rb
129
130
  - lib/will_paginate_semantic_ui/generic_renderer.rb
130
- - lib/will_paginate_semantic_ui/rails.rb
131
131
  - lib/will_paginate_semantic_ui/sinatra.rb
132
132
  - lib/will_paginate_semantic_ui/version.rb
133
133
  - spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb