1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00
This commit is contained in:
Akira Matsuda 2018-11-11 07:54:07 +09:00
parent 1a59c17cd9
commit acbcbc8beb
46 changed files with 46 additions and 0 deletions

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
source 'https://rubygems.org'
# Specify your gem's dependencies in kaminari.gemspec

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'kaminari/actionview/version'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require "kaminari/actionview/version"
require 'active_support/lazy_load_hooks'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'action_view'
require 'action_view/log_subscriber'
require 'action_view/context'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Actionview
VERSION = '1.1.1'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'kaminari/activerecord/version'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require "kaminari/activerecord/version"
require 'active_support/lazy_load_hooks'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'kaminari/activerecord/active_record_model_extension'
module Kaminari

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'kaminari/activerecord/active_record_relation_methods'
module Kaminari

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
# Active Record specific page scope methods implementations
module ActiveRecordRelationMethods

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Activerecord
VERSION = '1.1.1'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'kaminari/core/version'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Generators
# rails g kaminari:config

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
Kaminari.configure do |config|
# config.default_per_page = 25
# config.max_per_page = nil

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Generators
# rails g kaminari:views THEME

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
end

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Core
VERSION = '1.1.1'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari #:nodoc:
class Engine < ::Rails::Engine #:nodoc:
end

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
class ZeroPerPageOperation < ZeroDivisionError; end
end

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'active_support/inflector'
require 'kaminari/helpers/tags'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module Helpers
PARAM_KEY_BLACKLIST = [:authenticity_token, :commit, :utf8, :_method, :script_name].freeze

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'active_support/core_ext/module'
module Kaminari
# Kind of Array that can paginate

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module ConfigurationMethods #:nodoc:
extend ActiveSupport::Concern

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module PageScopeMethods
# Specify the <tt>per_page</tt> value for the preceding <tt>page</tt> scope

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
class Railtie < ::Rails::Railtie #:nodoc:
# Doesn't actually do anything. Just keeping this hook point, mainly for compatibility

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class ConfigurationTest < ::Test::Unit::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
# models
class User < ActiveRecord::Base
has_many :authorships

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
# require 'rails/all'
require 'action_controller/railtie'
require 'action_view/railtie'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
module FakeGem
extend ActiveSupport::Concern

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined?(::Rails::Railtie) && ENV['GENERATOR_SPEC']

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined?(::Rails::Railtie) && defined?(::ActionView)

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class PaginatorHelperTest < ActiveSupport::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined? ::Kaminari::ActionView

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined?(::Rails::Railtie) && defined?(ActionView)

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined? ActiveRecord

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined? ActiveRecord

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined? ActiveRecord

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
if defined? ActiveRecord

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class PaginatableArrayTest < ActiveSupport::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class ConfigurationMethodsTest < ActiveSupport::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class NavigationTest < Test::Unit::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'test_helper'
class RenderingWithFormatOptionTest < Test::Unit::TestCase

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
$:.push File.expand_path("../lib", __FILE__)
require "kaminari/version"

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'kaminari/core'
require 'kaminari/actionview'
require 'kaminari/activerecord'

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
module Kaminari
VERSION = '1.1.1'
end

View file

@ -1,4 +1,5 @@
# frozen_string_literal: true
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'test'))
$LOAD_PATH.unshift(File.dirname(__FILE__))