kaminari-mongoid 0.1.2 → 1.0.2

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
- SHA1:
3
- metadata.gz: 1f9fcf5388c2b1acb0a2f1c83f5a64e9cc524453
4
- data.tar.gz: a8a5b33ea8798ec9d9ffd17eb65ca2b86a7f91b1
2
+ SHA256:
3
+ metadata.gz: 39c49d86e68f35086ca61ed72ef6bb427c5e36b0c1f86dbc7569413cc6b35668
4
+ data.tar.gz: 4696911080d0791c0c0aaaf68eaf538b515817c0ae2cb202ceda5c793ff1abdb
5
5
  SHA512:
6
- metadata.gz: 90abc7adfe4514b010941787c0d86add43168704ddd50a8f7eaa3aaeebdc059966ceaf2ec40bebc62f646aea7e6665d4c1ad560c386388f1db6deae5c216fcfb
7
- data.tar.gz: 1f639e7601dad7b83f1616b4f3fbe3985498f1ae82c86a21ec2d593e76ae3c925b23ec93f667719888a342b3f7c31a7fb34aa00d1305d3637dda197d61e864dc
6
+ metadata.gz: 49062bc8dfb5bee854aa1dd8ab7cc1204153a94cb2c9e8ef88d5e92e11de9f452b498eaad7ba53eaec48db479d22710482d32c222df086a970c95bbde5ab97ba
7
+ data.tar.gz: 1ff9bdedbfd926ca597f7a7640425cd80aa91295b8a20ad08f7fcebe0b24b5fcd5815836de6b5cc557eefef6c2c334b1ad48ee6670dd1909879843977efe712a
@@ -0,0 +1,68 @@
1
+ name: build
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ strategy:
8
+ fail-fast: true
9
+
10
+ # see https://docs.mongodb.com/mongoid/current/tutorials/mongoid-installation/ for supported versions
11
+ matrix:
12
+ ruby_version: ['3.0', '2.7', '2.6', '2.5']
13
+ gemfile:
14
+ - gemfiles/mongoid_73.gemfile
15
+ - gemfiles/mongoid_72.gemfile
16
+ - gemfiles/mongoid_71.gemfile
17
+ - gemfiles/mongoid_70.gemfile
18
+ - gemfiles/mongoid_64.gemfile
19
+
20
+ exclude:
21
+ - ruby_version: '3.0'
22
+ gemfile: gemfiles/mongoid_70.gemfile
23
+ - ruby_version: '3.0'
24
+ gemfile: gemfiles/mongoid_64.gemfile
25
+ - ruby_version: '2.7'
26
+ gemfile: gemfiles/mongoid_64.gemfile
27
+
28
+ include:
29
+ - ruby_version: '2.5'
30
+ gemfile: gemfiles/mongoid_63.gemfile
31
+ - ruby_version: '2.5'
32
+ gemfile: gemfiles/mongoid_62.gemfile
33
+ - ruby_version: '2.4'
34
+ gemfile: gemfiles/mongoid_61.gemfile
35
+ - ruby_version: '2.3'
36
+ gemfile: gemfiles/mongoid_60.gemfile
37
+ - ruby_version: '2.3'
38
+ gemfile: gemfiles/mongoid_54.gemfile
39
+ bundler_version: '1'
40
+ - ruby_version: '2.2'
41
+ gemfile: gemfiles/mongoid_52.gemfile
42
+ - ruby_version: '2.2'
43
+ gemfile: gemfiles/mongoid_51.gemfile
44
+ - ruby_version: '2.1'
45
+ gemfile: gemfiles/mongoid_50.gemfile
46
+ - ruby_version: '2.1'
47
+ gemfile: gemfiles/mongoid_40.gemfile
48
+
49
+
50
+ runs-on: ubuntu-18.04
51
+
52
+ env:
53
+ BUNDLE_GEMFILE: ${{ matrix.gemfile }}
54
+
55
+ steps:
56
+ - uses: actions/checkout@v2
57
+
58
+ - uses: ruby/setup-ruby@v1
59
+ with:
60
+ ruby-version: ${{ matrix.ruby_version }}
61
+ bundler-cache: true
62
+ bundler: ${{ matrix.bundler_version || 'latest' }}
63
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
64
+
65
+ - uses: supercharge/mongodb-github-action@1.7.0
66
+
67
+ - run: bundle exec rake
68
+ continue-on-error: ${{ matrix.allow_failures == 'true' }}
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## 1.0.2
2
+
3
+ * `max_pages` support
4
+
5
+ ## 1.0.0
6
+
7
+ * Extracted from kaminari gem
8
+
9
+ * Droped mongoid 3.0 and 3.1 support
data/Gemfile CHANGED
@@ -1,8 +1,10 @@
1
+ # frozen_string_literal: true
1
2
  source 'https://rubygems.org'
2
3
 
3
4
  # Specify your gem's dependencies in kaminari-mongoid.gemspec
4
5
  gemspec
5
6
 
6
- gem 'database_cleaner', git: 'git@github.com:DatabaseCleaner/database_cleaner.git'
7
-
8
- gem 'kaminari', github: 'amatsuda/kaminari'
7
+ unless ENV['CI']
8
+ gem 'kaminari-core', path: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+ end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Kaminari::Mongoid
1
+ # Kaminari::Mongoid [![Build Status](https://travis-ci.org/kaminari/kaminari-mongoid.svg?branch=master)](https://travis-ci.org/kaminari/kaminari-mongoid)
2
2
 
3
3
  Kaminari Mongoid adapter.
4
4
 
@@ -21,7 +21,7 @@ And bundle.
21
21
 
22
22
  ## Usage
23
23
 
24
- See [Kaminari README](https://github.com/amatsuda/kaminari/blob/master/README.rdoc).
24
+ See [Kaminari README](https://github.com/kaminari/kaminari/blob/master/README.md).
25
25
 
26
26
 
27
27
  ## Contributing
data/Rakefile CHANGED
@@ -1,9 +1,12 @@
1
+ # frozen_string_literal: true
1
2
  require "bundler/gem_tasks"
2
- require 'rspec/core'
3
- require 'rspec/core/rake_task'
3
+ require 'rake/testtask'
4
4
 
5
- RSpec::Core::RakeTask.new(:spec) do |spec|
6
- spec.pattern = [FileList['spec/**/*_spec.rb'], FileList["#{File.join(Gem.loaded_specs['kaminari'].gem_dir, 'spec')}/**/*_spec.rb"]].flatten
5
+ Rake::TestTask.new do |t|
6
+ t.libs << 'test'
7
+ t.pattern = "{test,#{File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'test')}}/**/*_test.rb"
8
+ t.warning = false
9
+ t.verbose = true
7
10
  end
8
11
 
9
- task default: :spec
12
+ task default: :test
data/bin/console CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require "bundler/setup"
4
5
  require "kaminari/mongoid"
@@ -1,27 +1,18 @@
1
1
  source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
2
6
 
3
- #FIXME bundle GH branch for now
4
- gem 'kaminari', github: 'amatsuda/kaminari', branch: 'extract_adapters'
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
5
10
 
6
11
  gem 'railties', '~> 4.0'
7
12
  gem 'mongoid', '~> 4.0.0'
8
- gem 'rspec-rails', '~> 2.14.1'
9
13
 
10
- if RUBY_VERSION > '1.9.3'
11
- gem 'mime-types'
12
- else
13
- gem 'mime-types', '2.99'
14
- end
14
+ gem 'mime-types'
15
15
 
16
- platforms :mri do
17
- gem 'test-unit' if RUBY_VERSION > '2.1.0'
18
- end
19
-
20
- platforms :rbx do
21
- gem 'rubysl', '~> 2.0'
22
- gem 'racc'
23
- gem 'minitest'
24
- gem 'rubinius-developer_tools'
25
- end
16
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
26
17
 
27
18
  gemspec :path => '../'
@@ -1,31 +1,18 @@
1
1
  source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
2
6
 
3
- #FIXME bundle GH branch for now
4
- gem 'kaminari', github: 'amatsuda/kaminari', branch: 'extract_adapters'
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
5
10
 
6
11
  gem 'railties', '~> 4.0'
7
12
  gem 'mongoid', '~> 5.0.0'
8
- gem 'rspec-rails', '~> 2.14.1'
9
-
10
- if RUBY_VERSION > '1.9.3'
11
- gem 'mime-types'
12
- else
13
- gem 'mime-types', '2.99'
14
- end
15
13
 
16
- group :development, :test do
17
- gem 'database_cleaner', '~> 1.5.1'
18
- end
14
+ gem 'mime-types'
19
15
 
20
- platforms :mri do
21
- gem 'test-unit' if RUBY_VERSION > '2.1.0'
22
- end
23
-
24
- platforms :rbx do
25
- gem 'rubysl', '~> 2.0'
26
- gem 'racc'
27
- gem 'minitest'
28
- gem 'rubinius-developer_tools'
29
- end
16
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
30
17
 
31
18
  gemspec :path => '../'
@@ -1,31 +1,18 @@
1
1
  source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
2
6
 
3
- #FIXME bundle GH branch for now
4
- gem 'kaminari', github: 'amatsuda/kaminari', branch: 'extract_adapters'
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
5
10
 
6
11
  gem 'railties', '~> 4.0'
7
12
  gem 'mongoid', '~> 5.1.0'
8
- gem 'rspec-rails', '~> 2.14.1'
9
-
10
- if RUBY_VERSION > '1.9.3'
11
- gem 'mime-types'
12
- else
13
- gem 'mime-types', '2.99'
14
- end
15
13
 
16
- group :development, :test do
17
- gem 'database_cleaner', '~> 1.5.1'
18
- end
14
+ gem 'mime-types'
19
15
 
20
- platforms :mri do
21
- gem 'test-unit' if RUBY_VERSION > '2.1.0'
22
- end
23
-
24
- platforms :rbx do
25
- gem 'rubysl', '~> 2.0'
26
- gem 'racc'
27
- gem 'minitest'
28
- gem 'rubinius-developer_tools'
29
- end
16
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
30
17
 
31
18
  gemspec :path => '../'
@@ -0,0 +1,18 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 4.0'
12
+ gem 'mongoid', '~> 5.2.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
17
+
18
+ gemspec :path => '../'
@@ -0,0 +1,18 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 4.0'
12
+ gem 'mongoid', '~> 5.4.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gem 'nokogiri', RUBY_VERSION < '2.1' ? '~> 1.6.0' : '>= 1.7'
17
+
18
+ gemspec :path => '../'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 5.0'
12
+ gem 'mongoid', '~> 6.0.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gemspec :path => '../'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 5.0'
12
+ gem 'mongoid', '~> 6.1.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gemspec :path => '../'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 5.2'
12
+ gem 'mongoid', '~> 6.2.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gemspec :path => '../'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 5.2'
12
+ gem 'mongoid', '~> 6.3.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gemspec :path => '../'
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 5.2'
12
+ gem 'mongoid', '~> 6.4.0'
13
+
14
+ gem 'mime-types'
15
+
16
+ gemspec :path => '../'
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 6.1'
12
+ gem 'selenium-webdriver'
13
+ gem 'mongoid', '~> 7.0.0'
14
+
15
+ gem 'mime-types'
16
+
17
+ gemspec :path => '../'
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 6.1'
12
+ gem 'selenium-webdriver'
13
+ gem 'mongoid', '~> 7.1.0'
14
+
15
+ gem 'mime-types'
16
+
17
+ gemspec :path => '../'
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 6.1'
12
+ gem 'selenium-webdriver'
13
+ gem 'mongoid', '~> 7.2.0'
14
+
15
+ gem 'mime-types'
16
+
17
+ gemspec :path => '../'
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) do |repo_name|
3
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
4
+ "https://github.com/#{repo_name}.git"
5
+ end
6
+
7
+ # bundle GH master to load kaminari-core/test directory which is not included in the packaged gems
8
+ gem 'kaminari-core', github: 'kaminari/kaminari'
9
+ gem 'kaminari-actionview', github: 'kaminari/kaminari'
10
+
11
+ gem 'railties', '~> 6.1'
12
+ gem 'selenium-webdriver'
13
+ gem 'mongoid', '~> 7.3.0'
14
+
15
+ gem 'mime-types'
16
+
17
+ gemspec :path => '../'
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+ # frozen_string_literal: true
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'kaminari/mongoid/version'
@@ -10,7 +11,7 @@ Gem::Specification.new do |spec|
10
11
  spec.email = ["ronnie@dio.jp"]
11
12
 
12
13
  spec.summary = 'Kaminari Mongoid adapter'
13
- spec.description = 'Kaminari Mongoid adapter'
14
+ spec.description = 'kaminari-mongoid lets your Mongoid models be paginatable'
14
15
  spec.homepage = 'https://github.com/kaminari/kaminari-mongoid'
15
16
  spec.license = "MIT"
16
17
 
@@ -19,14 +20,13 @@ Gem::Specification.new do |spec|
19
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
21
  spec.require_paths = ["lib"]
21
22
 
22
- spec.add_dependency 'kaminari'
23
- spec.add_development_dependency "bundler", "~> 1.9"
24
- spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency 'mongoid'
23
+ spec.add_dependency 'kaminari-core', '~> 1.0'
24
+ spec.add_dependency 'mongoid'
25
+
26
+ spec.add_development_dependency "rake"
26
27
  spec.add_development_dependency 'rails'
27
- spec.add_development_dependency 'rspec-rails', '~> 2.14.1'
28
+ spec.add_development_dependency 'test-unit-rails'
28
29
  spec.add_development_dependency 'capybara'
29
- spec.add_development_dependency 'database_cleaner'
30
30
  spec.add_development_dependency 'rr'
31
31
  spec.add_development_dependency 'byebug'
32
32
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Kaminari
2
3
  module Mongoid
3
4
  module MongoidCriteriaMethods
@@ -6,8 +7,8 @@ module Kaminari
6
7
  super
7
8
  end
8
9
 
9
- def entry_name
10
- model_name.human.downcase
10
+ def entry_name(options = {})
11
+ model_name.human(options.reverse_merge(default: model_name.human.pluralize(options[:count])))
11
12
  end
12
13
 
13
14
  def limit_value #:nodoc:
@@ -21,12 +22,12 @@ module Kaminari
21
22
  def total_count #:nodoc:
22
23
  @total_count ||= if embedded?
23
24
  unpage.size
25
+ elsif options[:max_scan] && (options[:max_scan] < size)
26
+ options[:max_scan]
27
+ elsif max_pages && (max_pages * limit_value < size)
28
+ max_pages * limit_value
24
29
  else
25
- if options[:max_scan] && options[:max_scan] < size
26
- options[:max_scan]
27
- else
28
- size
29
- end
30
+ size
30
31
  end
31
32
  end
32
33
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'kaminari/mongoid/mongoid_criteria_methods'
2
3
 
3
4
  module Kaminari
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
  module Kaminari
2
3
  module Mongoid
3
- VERSION = "0.1.2"
4
+ VERSION = '1.0.2'
4
5
  end
5
6
  end
@@ -1,4 +1,5 @@
1
- require 'kaminari'
1
+ # frozen_string_literal: true
2
+ require 'kaminari/core'
2
3
  require 'mongoid'
3
4
  require 'kaminari/mongoid/mongoid_extension'
4
5
  ::Mongoid::Document.send :include, Kaminari::Mongoid::MongoidExtension::Document
metadata CHANGED
@@ -1,57 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaminari-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2021-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: kaminari
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '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: '1.9'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.9'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
14
+ name: kaminari-core
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
19
+ version: '1.0'
20
+ type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: '10.0'
26
+ version: '1.0'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: mongoid
57
29
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +31,7 @@ dependencies:
59
31
  - - ">="
60
32
  - !ruby/object:Gem::Version
61
33
  version: '0'
62
- type: :development
34
+ type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
@@ -67,7 +39,7 @@ dependencies:
67
39
  - !ruby/object:Gem::Version
68
40
  version: '0'
69
41
  - !ruby/object:Gem::Dependency
70
- name: rails
42
+ name: rake
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
45
  - - ">="
@@ -81,21 +53,21 @@ dependencies:
81
53
  - !ruby/object:Gem::Version
82
54
  version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
- name: rspec-rails
56
+ name: rails
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
- - - "~>"
59
+ - - ">="
88
60
  - !ruby/object:Gem::Version
89
- version: 2.14.1
61
+ version: '0'
90
62
  type: :development
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
65
  requirements:
94
- - - "~>"
66
+ - - ">="
95
67
  - !ruby/object:Gem::Version
96
- version: 2.14.1
68
+ version: '0'
97
69
  - !ruby/object:Gem::Dependency
98
- name: capybara
70
+ name: test-unit-rails
99
71
  requirement: !ruby/object:Gem::Requirement
100
72
  requirements:
101
73
  - - ">="
@@ -109,7 +81,7 @@ dependencies:
109
81
  - !ruby/object:Gem::Version
110
82
  version: '0'
111
83
  - !ruby/object:Gem::Dependency
112
- name: database_cleaner
84
+ name: capybara
113
85
  requirement: !ruby/object:Gem::Requirement
114
86
  requirements:
115
87
  - - ">="
@@ -150,27 +122,36 @@ dependencies:
150
122
  - - ">="
151
123
  - !ruby/object:Gem::Version
152
124
  version: '0'
153
- description: Kaminari Mongoid adapter
125
+ description: kaminari-mongoid lets your Mongoid models be paginatable
154
126
  email:
155
127
  - ronnie@dio.jp
156
128
  executables: []
157
129
  extensions: []
158
130
  extra_rdoc_files: []
159
131
  files:
132
+ - ".github/workflows/main.yml"
160
133
  - ".gitignore"
161
- - ".rspec"
162
- - ".travis.yml"
134
+ - CHANGELOG.md
163
135
  - Gemfile
164
136
  - MIT-LICENSE
165
137
  - README.md
166
138
  - Rakefile
167
139
  - bin/console
168
140
  - bin/setup
169
- - gemfiles/mongoid_30.gemfile
170
- - gemfiles/mongoid_31.gemfile
171
141
  - gemfiles/mongoid_40.gemfile
172
142
  - gemfiles/mongoid_50.gemfile
173
143
  - gemfiles/mongoid_51.gemfile
144
+ - gemfiles/mongoid_52.gemfile
145
+ - gemfiles/mongoid_54.gemfile
146
+ - gemfiles/mongoid_60.gemfile
147
+ - gemfiles/mongoid_61.gemfile
148
+ - gemfiles/mongoid_62.gemfile
149
+ - gemfiles/mongoid_63.gemfile
150
+ - gemfiles/mongoid_64.gemfile
151
+ - gemfiles/mongoid_70.gemfile
152
+ - gemfiles/mongoid_71.gemfile
153
+ - gemfiles/mongoid_72.gemfile
154
+ - gemfiles/mongoid_73.gemfile
174
155
  - kaminari-mongoid.gemspec
175
156
  - lib/kaminari/mongoid.rb
176
157
  - lib/kaminari/mongoid/mongoid_criteria_methods.rb
@@ -180,7 +161,7 @@ homepage: https://github.com/kaminari/kaminari-mongoid
180
161
  licenses:
181
162
  - MIT
182
163
  metadata: {}
183
- post_install_message:
164
+ post_install_message:
184
165
  rdoc_options: []
185
166
  require_paths:
186
167
  - lib
@@ -195,9 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
176
  - !ruby/object:Gem::Version
196
177
  version: '0'
197
178
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.6.4
200
- signing_key:
179
+ rubygems_version: 3.3.0.dev
180
+ signing_key:
201
181
  specification_version: 4
202
182
  summary: Kaminari Mongoid adapter
203
183
  test_files: []
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/.travis.yml DELETED
@@ -1,36 +0,0 @@
1
- language: ruby
2
-
3
- before_install: gem install bundler -v 1.11.2
4
-
5
- rvm:
6
- - 2.0.0
7
- - 2.1.10
8
- - 2.2.4
9
- - 2.3.1
10
- - ruby-head
11
- - jruby
12
- - jruby-head
13
- - rbx-2
14
-
15
- gemfile:
16
- - gemfiles/mongoid_30.gemfile
17
- - gemfiles/mongoid_31.gemfile
18
- - gemfiles/mongoid_40.gemfile
19
- - gemfiles/mongoid_50.gemfile
20
- - gemfiles/mongoid_51.gemfile
21
-
22
- sudo: false
23
-
24
- services: mongodb
25
-
26
- script: "bundle exec rake spec"
27
-
28
- cache: bundler
29
-
30
- matrix:
31
- allow_failures:
32
- - rvm: ruby-head
33
- - rvm: jruby
34
- - rvm: jruby-head
35
- - rvm: rbx-2
36
- fast_finish: true
@@ -1,30 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- #FIXME bundle GH branch for now
4
- gem 'kaminari', github: 'amatsuda/kaminari', branch: 'extract_adapters'
5
-
6
- gem 'railties', '>= 3.2.3'
7
- gem 'mongoid', '~> 3.0.0'
8
- gem 'rspec-rails', '~> 2.14.1'
9
- gem 'origin'
10
- gem 'moped'
11
- gem 'activesupport', '~> 3.2.18'
12
-
13
- if RUBY_VERSION > '1.9.3'
14
- gem 'mime-types'
15
- else
16
- gem 'mime-types', '2.99'
17
- end
18
-
19
- platforms :mri do
20
- gem 'test-unit' if RUBY_VERSION > "2.1.0"
21
- end
22
-
23
- platforms :rbx do
24
- gem 'rubysl', '~> 2.0'
25
- gem 'racc'
26
- gem 'rubysl-test-unit', github: 'rubysl/rubysl-test-unit', branch: '2.0'
27
- gem 'rubinius-developer_tools'
28
- end
29
-
30
- gemspec :path => '../'
@@ -1,29 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- #FIXME bundle GH branch for now
4
- gem 'kaminari', github: 'amatsuda/kaminari', branch: 'extract_adapters'
5
-
6
- gem 'railties', '~> 3.2'
7
- gem 'mongoid', '~> 3.1.0'
8
- gem 'rspec-rails', '~> 2.14.1'
9
- gem 'origin'
10
- gem 'moped'
11
-
12
- if RUBY_VERSION > '1.9.3'
13
- gem 'mime-types'
14
- else
15
- gem 'mime-types', '2.99'
16
- end
17
-
18
- platforms :mri do
19
- gem 'test-unit' if RUBY_VERSION > "2.1.0"
20
- end
21
-
22
- platforms :rbx do
23
- gem 'rubysl', '~> 2.0'
24
- gem 'racc'
25
- gem 'rubysl-test-unit', github: 'rubysl/rubysl-test-unit', branch: '2.0'
26
- gem 'rubinius-developer_tools'
27
- end
28
-
29
- gemspec :path => '../'