will_paginate_semantic_ui 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +63 -0
- data/LICENSE.txt +22 -0
- data/README.md +45 -0
- data/Rakefile +14 -0
- data/lib/will_paginate_semantic_ui.rb +6 -0
- data/lib/will_paginate_semantic_ui/generic_renderer.rb +45 -0
- data/lib/will_paginate_semantic_ui/rails.rb +8 -0
- data/lib/will_paginate_semantic_ui/version.rb +3 -0
- data/spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb +82 -0
- data/spec/spec_helper.rb +111 -0
- data/spec/support/fake_renderer.rb +10 -0
- data/will_paginate_semantic_ui.gemspec +28 -0
- metadata +163 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0490b858bd58ac6cd222124bcce8af03985b216f
|
4
|
+
data.tar.gz: 1cb249aaccb321b430404854b5fa1c36bd5a9cc7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c7d3b67fb236fc7e616e3965e355a71d825bd6fddfce511399fec97c2c719244616768e7ffacf77d2c5507f44c65bfea34a5cce75a278bbde9c72622bc919d33
|
7
|
+
data.tar.gz: 35d24caa054d9c792cb7f0d9aa0fe8b9abfeca3f2edcf9ae474cd6ea96e5504b3daf2396625168f8d73b35b3521c52fd6529f2d46f29991efb15f1805bd4337e
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
will_paginate_semantic_ui
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.1.2
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
will_paginate_semantic_ui (1.0.0)
|
5
|
+
will_paginate (> 3.0.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
byebug (9.0.5)
|
11
|
+
coveralls (0.8.14)
|
12
|
+
json (>= 1.8, < 3)
|
13
|
+
simplecov (~> 0.12.0)
|
14
|
+
term-ansicolor (~> 1.3)
|
15
|
+
thor (~> 0.19.1)
|
16
|
+
tins (~> 1.6.0)
|
17
|
+
diff-lcs (1.2.5)
|
18
|
+
docile (1.1.5)
|
19
|
+
json (2.0.1)
|
20
|
+
mini_portile2 (2.1.0)
|
21
|
+
nokogiri (1.6.8)
|
22
|
+
mini_portile2 (~> 2.1.0)
|
23
|
+
pkg-config (~> 1.1.7)
|
24
|
+
pkg-config (1.1.7)
|
25
|
+
rake (11.2.2)
|
26
|
+
rspec (3.5.0)
|
27
|
+
rspec-core (~> 3.5.0)
|
28
|
+
rspec-expectations (~> 3.5.0)
|
29
|
+
rspec-mocks (~> 3.5.0)
|
30
|
+
rspec-core (3.5.1)
|
31
|
+
rspec-support (~> 3.5.0)
|
32
|
+
rspec-expectations (3.5.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.5.0)
|
35
|
+
rspec-mocks (3.5.0)
|
36
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
37
|
+
rspec-support (~> 3.5.0)
|
38
|
+
rspec-support (3.5.0)
|
39
|
+
simplecov (0.12.0)
|
40
|
+
docile (~> 1.1.0)
|
41
|
+
json (>= 1.8, < 3)
|
42
|
+
simplecov-html (~> 0.10.0)
|
43
|
+
simplecov-html (0.10.0)
|
44
|
+
term-ansicolor (1.3.2)
|
45
|
+
tins (~> 1.0)
|
46
|
+
thor (0.19.1)
|
47
|
+
tins (1.6.0)
|
48
|
+
will_paginate (3.1.0)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
bundler
|
55
|
+
byebug
|
56
|
+
coveralls
|
57
|
+
nokogiri
|
58
|
+
rake
|
59
|
+
rspec
|
60
|
+
will_paginate_semantic_ui!
|
61
|
+
|
62
|
+
BUNDLED WITH
|
63
|
+
1.12.5
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Rafael Biriba
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# Will Paginate for Semantic UI
|
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)
|
4
|
+
|
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
|
+
|
7
|
+
The html snippet for pagination that `will_paginate` creates is incompatible with the semantic ui.
|
8
|
+
|
9
|
+
This gem solves this problem with a custom render that creates the correct pagination html for the component.
|
10
|
+
|
11
|
+
![Example](https://raw.githubusercontent.com/rafaelbiriba/will_paginate_semantic_ui/master/docs/example1.png)
|
12
|
+
![Example](https://raw.githubusercontent.com/rafaelbiriba/will_paginate_semantic_ui/master/docs/example2.png)
|
13
|
+
|
14
|
+
## Requirements
|
15
|
+
|
16
|
+
Semantic UI `> 2.0` and will_paginate `> 3.0`
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
As easy as `gem install will_paginate_semantic_ui` or add `gem "will_paginate_semantic_ui"` to your Gemfile
|
21
|
+
|
22
|
+
## How to use
|
23
|
+
|
24
|
+
### Rails
|
25
|
+
|
26
|
+
You need to use another render in the will paginate command:
|
27
|
+
|
28
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer %>`
|
29
|
+
|
30
|
+
## Tuning
|
31
|
+
|
32
|
+
You can also use some will_pagination options to customize your component:
|
33
|
+
|
34
|
+
`<%= will_paginate @collection, renderer: WillPaginateSemanticUi::Renderer, class: "right floated", inner_window: 3 %>
|
35
|
+
`
|
36
|
+
|
37
|
+
The command above create this
|
38
|
+
|
39
|
+
![Example](https://raw.githubusercontent.com/rafaelbiriba/will_paginate_semantic_ui/master/docs/example1.png)
|
40
|
+
|
41
|
+
`inner_window: 3` as you see above, 3 pages to the left and to the right from the selected page. (This creates a component with 700px max width in the worst case)
|
42
|
+
|
43
|
+
![Example](https://raw.githubusercontent.com/rafaelbiriba/will_paginate_semantic_ui/master/docs/example3.png)
|
44
|
+
|
45
|
+
`class: "right floated"` useful if you are using inside a table. Floats the pagination to the right.
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
|
4
|
+
RSpec::Core::RakeTask.new
|
5
|
+
|
6
|
+
namespace :spec do
|
7
|
+
desc "Run Rspec test pushing Coverage results"
|
8
|
+
task :coveralls do
|
9
|
+
system "coveralls push"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
task :default => :spec
|
14
|
+
task :test => :spec
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module WillPaginateSemanticUi
|
2
|
+
module GenericRenderer
|
3
|
+
GAP = "…"
|
4
|
+
|
5
|
+
def to_html
|
6
|
+
list_items = pagination.map do |item|
|
7
|
+
item.class == Fixnum ? page_number(item) : send(item)
|
8
|
+
end.join(@options[:link_separator])
|
9
|
+
|
10
|
+
tag("div", list_items, class: ul_class)
|
11
|
+
end
|
12
|
+
|
13
|
+
protected
|
14
|
+
|
15
|
+
def page_number(page)
|
16
|
+
classLink = "item"
|
17
|
+
classLink += " active" if page == current_page
|
18
|
+
link(page, page, {class: classLink})
|
19
|
+
end
|
20
|
+
|
21
|
+
def previous_or_next_page(page, classname)
|
22
|
+
classLink = "icon item"
|
23
|
+
classLink += " disabled" if !page
|
24
|
+
link(tag("i", "", class: "#{classname} chevron icon"), page, {class: classLink})
|
25
|
+
end
|
26
|
+
|
27
|
+
def gap
|
28
|
+
tag("div", GAP, class: "disabled item")
|
29
|
+
end
|
30
|
+
|
31
|
+
def previous_page
|
32
|
+
num = @collection.current_page > 1 && @collection.current_page - 1
|
33
|
+
previous_or_next_page(num, "left")
|
34
|
+
end
|
35
|
+
|
36
|
+
def next_page
|
37
|
+
num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
|
38
|
+
previous_or_next_page(num, "right")
|
39
|
+
end
|
40
|
+
|
41
|
+
def ul_class
|
42
|
+
["pagination ui menu", @options[:class]].compact.join(" ")
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'will_paginate/array'
|
4
|
+
|
5
|
+
include WillPaginate::ViewHelpers
|
6
|
+
|
7
|
+
describe WillPaginateSemanticUi::GenericRenderer do
|
8
|
+
let(:collection_size) { 15 }
|
9
|
+
let(:page) { (collection_size / 2.0).to_i }
|
10
|
+
let(:collection) { 1.upto(collection_size).to_a }
|
11
|
+
let(:class_opt) { nil }
|
12
|
+
let(:output) do
|
13
|
+
will_paginate(collection.paginate(:page => page, :per_page => 1), renderer: FakeRenderer, class: class_opt)
|
14
|
+
end
|
15
|
+
|
16
|
+
let(:html) { Nokogiri::HTML.fragment(output) }
|
17
|
+
|
18
|
+
it "returns a string" do
|
19
|
+
expect(output).to be_kind_of String
|
20
|
+
end
|
21
|
+
|
22
|
+
it "returns a string containing HTML" do
|
23
|
+
expect(html).to be_kind_of Nokogiri::HTML::DocumentFragment
|
24
|
+
end
|
25
|
+
|
26
|
+
it "has an active list item" do
|
27
|
+
expect(html.at_css('div a.active.item')).not_to be_nil
|
28
|
+
end
|
29
|
+
|
30
|
+
it "has a gap item with class disabled" do
|
31
|
+
expect(html.at_css('div.disabled.item')).not_to be_nil
|
32
|
+
end
|
33
|
+
|
34
|
+
it "has one item with rel start value" do
|
35
|
+
expect(html.css('[rel~=start]').size).to eql 1
|
36
|
+
end
|
37
|
+
|
38
|
+
it "has two items with rel prev value" do
|
39
|
+
expect(html.css('[rel~=prev]').size).to eql 2
|
40
|
+
end
|
41
|
+
|
42
|
+
it "has two items with rel next value" do
|
43
|
+
expect(html.css('[rel~=next]').size).to eql 2
|
44
|
+
end
|
45
|
+
|
46
|
+
it "has an anchor within each non-active/non-disabled list item" do
|
47
|
+
html.css('div a:not(.active):not(.disabled)').each { |a| expect(a).not_to be_nil }
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'has a ellipsis in the gap' do
|
51
|
+
ellipsis = FakeRenderer::GAP
|
52
|
+
expect(html.at_css('div.disabled', text: ellipsis)).not_to be_nil
|
53
|
+
end
|
54
|
+
|
55
|
+
describe 'when on the first page' do
|
56
|
+
let(:page) { 1 }
|
57
|
+
|
58
|
+
it 'uses a i element for the (disabled) previous button' do
|
59
|
+
expect(html.at_css('a.disabled i.left')).not_to be_nil
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'when on the last page' do
|
64
|
+
let(:page) { collection_size }
|
65
|
+
|
66
|
+
it 'uses a i element for the (disabled) next button' do
|
67
|
+
expect(html.at_css('a.disabled i.right')).not_to be_nil
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
it "has a div with pagination class" do
|
72
|
+
expect(html.at_css('div.pagination.ui.menu')).not_to be_nil
|
73
|
+
end
|
74
|
+
|
75
|
+
describe "when specifying a custom class" do
|
76
|
+
let(:class_opt) { "pagination-lg" }
|
77
|
+
|
78
|
+
it "applies the class to the ul" do
|
79
|
+
expect(html.at_css("div.pagination.ui.menu.pagination-lg")).not_to be_nil
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
require "rake"
|
2
|
+
require "byebug"
|
3
|
+
require "will_paginate_semantic_ui"
|
4
|
+
require 'coveralls'
|
5
|
+
Coveralls.wear!
|
6
|
+
|
7
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
8
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
9
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
10
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
11
|
+
# files.
|
12
|
+
#
|
13
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
14
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
15
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
16
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
17
|
+
# a separate helper file that requires the additional dependencies and performs
|
18
|
+
# the additional setup, and require it from the spec files that actually need
|
19
|
+
# it.
|
20
|
+
#
|
21
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
22
|
+
# users commonly want.
|
23
|
+
#
|
24
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
25
|
+
RSpec.configure do |config|
|
26
|
+
# rspec-expectations config goes here. You can use an alternate
|
27
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
28
|
+
# assertions if you prefer.
|
29
|
+
config.expect_with :rspec do |expectations|
|
30
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
31
|
+
# and `failure_message` of custom matchers include text for helper methods
|
32
|
+
# defined using `chain`, e.g.:
|
33
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
34
|
+
# # => "be bigger than 2 and smaller than 4"
|
35
|
+
# ...rather than:
|
36
|
+
# # => "be bigger than 2"
|
37
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
38
|
+
end
|
39
|
+
|
40
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
41
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
42
|
+
config.mock_with :rspec do |mocks|
|
43
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
44
|
+
# a real object. This is generally recommended, and will default to
|
45
|
+
# `true` in RSpec 4.
|
46
|
+
mocks.verify_partial_doubles = true
|
47
|
+
end
|
48
|
+
|
49
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
50
|
+
# have no way to turn it off -- the option exists only for backwards
|
51
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
52
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
53
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
54
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
55
|
+
|
56
|
+
# The settings below are suggested to provide a good initial experience
|
57
|
+
# with RSpec, but feel free to customize to your heart's content.
|
58
|
+
=begin
|
59
|
+
# This allows you to limit a spec run to individual examples or groups
|
60
|
+
# you care about by tagging them with `:focus` metadata. When nothing
|
61
|
+
# is tagged with `:focus`, all examples get run. RSpec also provides
|
62
|
+
# aliases for `it`, `describe`, and `context` that include `:focus`
|
63
|
+
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
64
|
+
config.filter_run_when_matching :focus
|
65
|
+
|
66
|
+
# Allows RSpec to persist some state between runs in order to support
|
67
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
68
|
+
# you configure your source control system to ignore this file.
|
69
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
70
|
+
|
71
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
72
|
+
# recommended. For more details, see:
|
73
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
74
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
75
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
76
|
+
config.disable_monkey_patching!
|
77
|
+
|
78
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
79
|
+
# be too noisy due to issues in dependencies.
|
80
|
+
config.warnings = true
|
81
|
+
|
82
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
83
|
+
# file, and it's useful to allow more verbose output when running an
|
84
|
+
# individual spec file.
|
85
|
+
if config.files_to_run.one?
|
86
|
+
# Use the documentation formatter for detailed output,
|
87
|
+
# unless a formatter has already been configured
|
88
|
+
# (e.g. via a command-line flag).
|
89
|
+
config.default_formatter = 'doc'
|
90
|
+
end
|
91
|
+
|
92
|
+
# Print the 10 slowest examples and example groups at the
|
93
|
+
# end of the spec run, to help surface which specs are running
|
94
|
+
# particularly slow.
|
95
|
+
config.profile_examples = 10
|
96
|
+
|
97
|
+
# Run specs in random order to surface order dependencies. If you find an
|
98
|
+
# order dependency and want to debug it, you can fix the order by providing
|
99
|
+
# the seed, which is printed after each run.
|
100
|
+
# --seed 1234
|
101
|
+
config.order = :random
|
102
|
+
|
103
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
104
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
105
|
+
# test failures related to randomization by passing the same `--seed` value
|
106
|
+
# as the one that triggered the failure.
|
107
|
+
Kernel.srand config.seed
|
108
|
+
=end
|
109
|
+
end
|
110
|
+
|
111
|
+
Dir["./spec/support/**/*.rb"].each { |f| require f }
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'will_paginate_semantic_ui/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "will_paginate_semantic_ui"
|
8
|
+
spec.version = WillPaginateSemanticUi::VERSION
|
9
|
+
spec.authors = ["Rafael Biriba"]
|
10
|
+
spec.email = ["biribarj@gmail.com"]
|
11
|
+
spec.description = "Integrates the Semantic UI pagination component with will_paginate"
|
12
|
+
spec.summary = "Integrates the Semantic UI pagination component with will_paginate"
|
13
|
+
spec.homepage = "https://github.com/rafaelbiriba/will_paginate_semantic_ui"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/).reject{ |f| f =~ /docs/ }
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "will_paginate", "> 3.0.0"
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rspec"
|
25
|
+
spec.add_development_dependency "nokogiri"
|
26
|
+
spec.add_development_dependency "byebug"
|
27
|
+
spec.add_development_dependency "coveralls"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: will_paginate_semantic_ui
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rafael Biriba
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: will_paginate
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: byebug
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: coveralls
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Integrates the Semantic UI pagination component with will_paginate
|
112
|
+
email:
|
113
|
+
- biribarj@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".ruby-gemset"
|
121
|
+
- ".ruby-version"
|
122
|
+
- CHANGELOG.md
|
123
|
+
- Gemfile
|
124
|
+
- Gemfile.lock
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- lib/will_paginate_semantic_ui.rb
|
129
|
+
- lib/will_paginate_semantic_ui/generic_renderer.rb
|
130
|
+
- lib/will_paginate_semantic_ui/rails.rb
|
131
|
+
- lib/will_paginate_semantic_ui/version.rb
|
132
|
+
- spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb
|
133
|
+
- spec/spec_helper.rb
|
134
|
+
- spec/support/fake_renderer.rb
|
135
|
+
- will_paginate_semantic_ui.gemspec
|
136
|
+
homepage: https://github.com/rafaelbiriba/will_paginate_semantic_ui
|
137
|
+
licenses:
|
138
|
+
- MIT
|
139
|
+
metadata: {}
|
140
|
+
post_install_message:
|
141
|
+
rdoc_options: []
|
142
|
+
require_paths:
|
143
|
+
- lib
|
144
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
requirements:
|
146
|
+
- - ">="
|
147
|
+
- !ruby/object:Gem::Version
|
148
|
+
version: '0'
|
149
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
requirements: []
|
155
|
+
rubyforge_project:
|
156
|
+
rubygems_version: 2.4.8
|
157
|
+
signing_key:
|
158
|
+
specification_version: 4
|
159
|
+
summary: Integrates the Semantic UI pagination component with will_paginate
|
160
|
+
test_files:
|
161
|
+
- spec/lib/will_paginate_semantic_ui/generic_renderer_spec.rb
|
162
|
+
- spec/spec_helper.rb
|
163
|
+
- spec/support/fake_renderer.rb
|