ajax-datatables-rails 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b690e6b2bd562caa937795e7aeab2a0cff933087cc48d6949a74feefe94b8715
4
- data.tar.gz: 20c23647a4dfbc9d98e342d05d15a831af37aeba0b4ec3d1bba60353988a6c46
3
+ metadata.gz: e815b1d2b3438d1347104637543f89a783530edf13e685eb2e8df4be93c69a51
4
+ data.tar.gz: 4ad611361b37e80e83c64aacc07beec161c59fd3bc31f48e6c76b3d598c0b91d
5
5
  SHA512:
6
- metadata.gz: 8eed46ec32eca34390aba3612445be363c20e576b451116c870c5f14dadffe6422c1956368e74f4d7a141e5f36f31c621390fa2299880988c1479f850c3d105c
7
- data.tar.gz: 3ec8bbc383634e76dbce2df04f428cae377f9b26ca698ec71a7eae097c9156ba7fcd75eab90f18823660801600e39c75ef4bbdb91f65c13ae65802561f3d4d79
6
+ metadata.gz: '0825362656ce0f7a7abd134de0ab8094dc423a0431d0408cfb8a76c35c5aee1c94b5e020b1ef353531ff74c25cc8c1547d6f0ce6f8ff938e02ca31c307c5ef9d'
7
+ data.tar.gz: 4cade9736d3bf4e4f902ab944cd5f6e6b213f220e30d11c977bc850b635665d3e9e67f417e90c0ead8d649d7c4b285502e847ded99e3aa4c878187fb7e5650f8
@@ -1,15 +1,15 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 2.4
3
3
  Exclude:
4
+ - bin/*
5
+ - lib/generators/**/*.rb
4
6
  - gemfiles/*
5
- - spec/**/*.rb
6
- - lib/ajax-datatables-rails.rb
7
- - lib/generators/rails/templates/*.rb
7
+ - spec/**/*
8
8
 
9
- Documentation:
9
+ Style/Documentation:
10
10
  Enabled: false
11
11
 
12
- Layout/AlignHash:
12
+ Layout/HashAlignment:
13
13
  Enabled: false
14
14
 
15
15
  Layout/EmptyLines:
@@ -45,6 +45,10 @@ Metrics/ClassLength:
45
45
  Naming/AccessorMethodName:
46
46
  Enabled: false
47
47
 
48
+ Naming/FileName:
49
+ Exclude:
50
+ - lib/ajax-datatables-rails.rb
51
+
48
52
  Style/TrailingCommaInArrayLiteral:
49
53
  EnforcedStyleForMultiline: comma
50
54
 
@@ -1,49 +1,57 @@
1
+ ---
2
+ os: linux
3
+ dist: xenial
4
+
1
5
  language: ruby
2
6
  cache: bundler
3
- sudo: required
4
7
  rvm:
5
- - 2.6.5
6
- - 2.5.7
7
- - 2.4.9
8
- - 2.3.8
8
+ - 2.7.1
9
+ - 2.6.6
10
+ - 2.5.8
11
+ - 2.4.10
9
12
  - ruby-head
13
+
10
14
  gemfile:
11
- - gemfiles/rails_4.2.11.gemfile
12
15
  - gemfiles/rails_5.0.7.gemfile
13
16
  - gemfiles/rails_5.1.7.gemfile
14
17
  - gemfiles/rails_5.2.3.gemfile
15
18
  - gemfiles/rails_6.0.1.gemfile
19
+
16
20
  services:
17
21
  - postgresql
18
22
  - mysql
23
+
19
24
  addons:
20
25
  postgresql: '9.6'
26
+
21
27
  before_install:
22
28
  - sh -c "if [ '$DB_ADAPTER' = 'mysql2' ]; then mysql -e 'create database ajax_datatables_rails;'; fi"
23
29
  - sh -c "if [ '$DB_ADAPTER' = 'postgresql' ]; then psql -c 'create database ajax_datatables_rails;' -U postgres; fi"
24
30
  - sh -c "if [ '$DB_ADAPTER' = 'oracle_enhanced' ]; then ./spec/install_oracle.sh; fi"
31
+
25
32
  env:
26
33
  global:
27
34
  - ORACLE_COOKIE=sqldev
28
35
  - ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
29
36
  - ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
30
37
  - ORACLE_SID=XE
31
- matrix:
38
+ jobs:
32
39
  - DB_ADAPTER=postgresql
33
40
  - DB_ADAPTER=mysql2
34
41
  - DB_ADAPTER=sqlite3
35
42
  - DB_ADAPTER=oracle_enhanced
36
- matrix:
43
+
44
+ jobs:
37
45
  exclude:
38
- - rvm: ruby-head
39
- gemfile: gemfiles/rails_4.2.11.gemfile
40
- - rvm: 2.3.8
41
- gemfile: gemfiles/rails_6.0.1.gemfile
42
- - rvm: 2.4.9
46
+ - rvm: 2.4.10
43
47
  gemfile: gemfiles/rails_6.0.1.gemfile
48
+ allow_failures:
49
+ - rvm: ruby-head
50
+
44
51
  before_script:
45
52
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
46
53
  - chmod +x ./cc-test-reporter
47
54
  - ./cc-test-reporter before-build
55
+
48
56
  after_script:
49
57
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/Appraisals CHANGED
@@ -1,12 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  RAILS_VERSIONS = {
4
- '4.2.11' => {
5
- 'activerecord-oracle_enhanced-adapter' => '~> 1.6.0',
6
- 'sqlite3' => '~> 1.3.0',
7
- 'mysql2' => '0.4.10',
8
- 'ruby-oci8' => '',
9
- },
10
4
  '5.0.7' => {
11
5
  'activerecord-oracle_enhanced-adapter' => '~> 1.7.0',
12
6
  'sqlite3' => '~> 1.3.0',
@@ -1,6 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 1.1.0 (to come)
3
+ ## 1.2.0 (to come)
4
+
5
+ * Drop support of Rails 4.x
6
+ * Drop support of Ruby 2.3
7
+ * Use [zeitwerk](https://github.com/fxn/zeitwerk) to load gem files
8
+ * Add binstubs to ease development
9
+
10
+ This is the last version to support Rails 5.0.x and Ruby 2.4.x.
11
+
12
+ ## 1.1.0 (2019-12-12)
4
13
 
5
14
  * Add rudimentary support for Microsoft SQL Server
6
15
  * Fixes errors when options[param] is nil [PR 315](https://github.com/jbox-web/ajax-datatables-rails/pull/315) (thanks @allard)
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ guard :rspec, cmd: 'bundle exec rspec' do
4
+ require 'guard/rspec/dsl'
5
+ dsl = Guard::RSpec::Dsl.new(self)
6
+
7
+ # RSpec files
8
+ rspec = dsl.rspec
9
+ watch(rspec.spec_helper) { rspec.spec_dir }
10
+ watch(rspec.spec_support) { rspec.spec_dir }
11
+ watch(rspec.spec_files)
12
+
13
+ # Ruby files
14
+ ruby = dsl.ruby
15
+ dsl.watch_spec_files_for(ruby.lib_files)
16
+ end
data/README.md CHANGED
@@ -11,8 +11,8 @@
11
11
 
12
12
  It's tested against :
13
13
 
14
- * Rails 4.2.11 / 5.0.7 / 5.1.7 / 5.2.3 / 6.0.1
15
- * Ruby 2.3.8 / 2.4.9 / 2.5.7 / 2.6.5
14
+ * Rails 5.0.7 / 5.1.7 / 5.2.3 / 6.0.1
15
+ * Ruby 2.4.10 / 2.5.8 / 2.6.6 / 2.7.1
16
16
  * Postgresql 9.6
17
17
  * MySQL 5.6
18
18
  * Oracle XE 11.2 (thanks to [travis-oracle](https://github.com/cbandy/travis-oracle))
@@ -4,7 +4,7 @@ require_relative 'lib/ajax-datatables-rails/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'ajax-datatables-rails'
7
- s.version = AjaxDatatablesRails::VERSION
7
+ s.version = AjaxDatatablesRails::VERSION::STRING
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ['Joel Quenneville', 'Antonio Antillon']
10
10
  s.email = ['joel.quenneville@collegeplus.org', 'antillas21@gmail.com']
@@ -13,9 +13,12 @@ Gem::Specification.new do |s|
13
13
  s.description = "A wrapper around datatable's ajax methods that allow synchronization with server-side pagination in a rails app"
14
14
  s.license = 'MIT'
15
15
 
16
+ s.required_ruby_version = '>= 2.4.4'
17
+
16
18
  s.files = `git ls-files`.split("\n")
17
19
 
18
- s.add_runtime_dependency 'railties', '>= 4.2'
20
+ s.add_runtime_dependency 'railties', '>= 5.0'
21
+ s.add_runtime_dependency 'zeitwerk'
19
22
 
20
23
  s.add_development_dependency 'activerecord-oracle_enhanced-adapter'
21
24
  s.add_development_dependency 'appraisal'
@@ -23,10 +26,12 @@ Gem::Specification.new do |s|
23
26
  s.add_development_dependency 'factory_bot'
24
27
  s.add_development_dependency 'faker'
25
28
  s.add_development_dependency 'generator_spec'
29
+ s.add_development_dependency 'guard-rspec'
26
30
  s.add_development_dependency 'pg', '< 1.0'
27
31
  s.add_development_dependency 'pry'
28
- s.add_development_dependency 'rails', '>= 4.2'
32
+ s.add_development_dependency 'rails', '>= 5.0'
29
33
  s.add_development_dependency 'rake'
30
34
  s.add_development_dependency 'rspec'
31
- s.add_development_dependency 'simplecov'
35
+ s.add_development_dependency 'rubocop'
36
+ s.add_development_dependency 'simplecov', '~> 0.17.1'
32
37
  end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application '_guard-core' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("guard", "_guard-core")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'appraisal' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("appraisal", "appraisal")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'guard' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("guard", "guard")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rake", "rake")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rspec-core", "rspec")
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rubocop", "rubocop")
@@ -1,3 +1,30 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'ajax_datatables_rails'
3
+ require 'active_support/configurable'
4
+
5
+ require 'zeitwerk'
6
+ loader = Zeitwerk::Loader.for_gem
7
+ generators = "#{__dir__}/generators"
8
+ loader.ignore(generators)
9
+ loader.inflector.inflect(
10
+ 'orm' => 'ORM',
11
+ 'ajax-datatables-rails' => 'AjaxDatatablesRails'
12
+ )
13
+ loader.setup
14
+
15
+ module AjaxDatatablesRails
16
+ # Configure AjaxDatatablesRails global settings
17
+ #
18
+ # AjaxDatatablesRails.configure do |config|
19
+ # config.db_adapter = :postgresql
20
+ # end
21
+
22
+ def self.configure
23
+ yield @config ||= AjaxDatatablesRails::Configuration.new
24
+ end
25
+
26
+ # AjaxDatatablesRails global settings
27
+ def self.config
28
+ @config ||= AjaxDatatablesRails::Configuration.new
29
+ end
30
+ end
@@ -34,7 +34,7 @@ module AjaxDatatablesRails
34
34
  recordsTotal: records_total_count,
35
35
  recordsFiltered: records_filtered_count,
36
36
  data: sanitize_data(data),
37
- }.merge(get_additional_data)
37
+ }.merge(additional_data)
38
38
  end
39
39
 
40
40
  def records
@@ -64,23 +64,6 @@ module AjaxDatatablesRails
64
64
 
65
65
  private
66
66
 
67
- # This method is necessary for smooth transition from
68
- # `additinonal_datas` method to `additional_data`
69
- # without breaking change.
70
- def get_additional_data
71
- if respond_to?(:additional_datas)
72
- puts <<-WARNING
73
- `additional_datas` has been deprecated and
74
- will be removed in next major version update!
75
- Please use `additional_data` instead.
76
- WARNING
77
-
78
- additional_datas
79
- else
80
- additional_data
81
- end
82
- end
83
-
84
67
  def sanitize_data(data)
85
68
  data.map do |record|
86
69
  if record.is_a?(Array)
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module AjaxDatatablesRails
4
+ class Configuration
5
+ include ActiveSupport::Configurable
6
+
7
+ config_accessor(:db_adapter) { :postgresql }
8
+ config_accessor(:nulls_last) { false }
9
+ end
10
+ end
@@ -14,7 +14,7 @@ module AjaxDatatablesRails
14
14
  end
15
15
 
16
16
  def query(sort_column)
17
- [sort_column, direction, nulls_last_sql].compact.join(" ")
17
+ [sort_column, direction, nulls_last_sql].compact.join(' ')
18
18
  end
19
19
 
20
20
  def column
@@ -44,9 +44,9 @@ module AjaxDatatablesRails
44
44
 
45
45
  case AjaxDatatablesRails.config.db_adapter
46
46
  when :pg, :postgresql, :postgres, :oracle
47
- "NULLS LAST"
47
+ 'NULLS LAST'
48
48
  when :mysql, :mysql2, :sqlite, :sqlite3
49
- "IS NULL"
49
+ 'IS NULL'
50
50
  else
51
51
  raise 'unsupported database adapter'
52
52
  end
@@ -1,5 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AjaxDatatablesRails
4
- VERSION = '1.1.0'
4
+
5
+ def self.gem_version
6
+ Gem::Version.new VERSION::STRING
7
+ end
8
+
9
+ module VERSION
10
+ MAJOR = 1
11
+ MINOR = 2
12
+ TINY = 0
13
+ PRE = nil
14
+
15
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
16
+ end
5
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajax-datatables-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Quenneville
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-12-12 00:00:00.000000000 Z
12
+ date: 2020-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -17,14 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '5.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
27
+ version: '5.0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: zeitwerk
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: activerecord-oracle_enhanced-adapter
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +123,20 @@ dependencies:
109
123
  - - ">="
110
124
  - !ruby/object:Gem::Version
111
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: guard-rspec
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
112
140
  - !ruby/object:Gem::Dependency
113
141
  name: pg
114
142
  requirement: !ruby/object:Gem::Requirement
@@ -143,14 +171,14 @@ dependencies:
143
171
  requirements:
144
172
  - - ">="
145
173
  - !ruby/object:Gem::Version
146
- version: '4.2'
174
+ version: '5.0'
147
175
  type: :development
148
176
  prerelease: false
149
177
  version_requirements: !ruby/object:Gem::Requirement
150
178
  requirements:
151
179
  - - ">="
152
180
  - !ruby/object:Gem::Version
153
- version: '4.2'
181
+ version: '5.0'
154
182
  - !ruby/object:Gem::Dependency
155
183
  name: rake
156
184
  requirement: !ruby/object:Gem::Requirement
@@ -180,7 +208,7 @@ dependencies:
180
208
  - !ruby/object:Gem::Version
181
209
  version: '0'
182
210
  - !ruby/object:Gem::Dependency
183
- name: simplecov
211
+ name: rubocop
184
212
  requirement: !ruby/object:Gem::Requirement
185
213
  requirements:
186
214
  - - ">="
@@ -193,6 +221,20 @@ dependencies:
193
221
  - - ">="
194
222
  - !ruby/object:Gem::Version
195
223
  version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: simplecov
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
230
+ version: 0.17.1
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: 0.17.1
196
238
  description: A wrapper around datatable's ajax methods that allow synchronization
197
239
  with server-side pagination in a rails app
198
240
  email:
@@ -210,13 +252,19 @@ files:
210
252
  - Appraisals
211
253
  - CHANGELOG.md
212
254
  - Gemfile
255
+ - Guardfile
213
256
  - LICENSE
214
257
  - README.md
215
258
  - Rakefile
216
259
  - ajax-datatables-rails.gemspec
260
+ - bin/_guard-core
261
+ - bin/appraisal
262
+ - bin/guard
263
+ - bin/rake
264
+ - bin/rspec
265
+ - bin/rubocop
217
266
  - doc/migrate.md
218
267
  - doc/webpack.md
219
- - gemfiles/rails_4.2.11.gemfile
220
268
  - gemfiles/rails_5.0.7.gemfile
221
269
  - gemfiles/rails_5.1.7.gemfile
222
270
  - gemfiles/rails_5.2.3.gemfile
@@ -224,7 +272,7 @@ files:
224
272
  - lib/ajax-datatables-rails.rb
225
273
  - lib/ajax-datatables-rails/active_record.rb
226
274
  - lib/ajax-datatables-rails/base.rb
227
- - lib/ajax-datatables-rails/config.rb
275
+ - lib/ajax-datatables-rails/configuration.rb
228
276
  - lib/ajax-datatables-rails/datatable/column.rb
229
277
  - lib/ajax-datatables-rails/datatable/column/date_filter.rb
230
278
  - lib/ajax-datatables-rails/datatable/column/order.rb
@@ -234,7 +282,6 @@ files:
234
282
  - lib/ajax-datatables-rails/datatable/simple_search.rb
235
283
  - lib/ajax-datatables-rails/orm/active_record.rb
236
284
  - lib/ajax-datatables-rails/version.rb
237
- - lib/ajax_datatables_rails.rb
238
285
  - lib/generators/datatable/config_generator.rb
239
286
  - lib/generators/datatable/templates/ajax_datatables_rails_config.rb
240
287
  - lib/generators/rails/datatable_generator.rb
@@ -273,14 +320,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
273
320
  requirements:
274
321
  - - ">="
275
322
  - !ruby/object:Gem::Version
276
- version: '0'
323
+ version: 2.4.4
277
324
  required_rubygems_version: !ruby/object:Gem::Requirement
278
325
  requirements:
279
326
  - - ">="
280
327
  - !ruby/object:Gem::Version
281
328
  version: '0'
282
329
  requirements: []
283
- rubygems_version: 3.0.3
330
+ rubygems_version: 3.1.2
284
331
  signing_key:
285
332
  specification_version: 4
286
333
  summary: A gem that simplifies using datatables and hundreds of records via ajax
@@ -1,11 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.2.11"
6
- gem "activerecord-oracle_enhanced-adapter", "~> 1.6.0"
7
- gem "sqlite3", "~> 1.3.0"
8
- gem "mysql2", "0.4.10"
9
- gem "ruby-oci8" if ENV["DB_ADAPTER"] == "oracle_enhanced"
10
-
11
- gemspec path: "../"
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'active_support/configurable'
4
-
5
- module AjaxDatatablesRails
6
-
7
- # Configure AjaxDatatablesRails global settings
8
- #
9
- # AjaxDatatablesRails.configure do |config|
10
- # config.db_adapter = :postgresql
11
- # end
12
-
13
- def self.configure
14
- yield @config ||= AjaxDatatablesRails::Configuration.new
15
- end
16
-
17
- # AjaxDatatablesRails global settings
18
- def self.config
19
- @config ||= AjaxDatatablesRails::Configuration.new
20
- end
21
-
22
- class Configuration
23
- include ActiveSupport::Configurable
24
-
25
- config_accessor(:db_adapter) { :postgresql }
26
- config_accessor(:nulls_last) { false }
27
- end
28
- end
@@ -1,16 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module AjaxDatatablesRails
4
- require 'ajax-datatables-rails/version'
5
- require 'ajax-datatables-rails/config'
6
- require 'ajax-datatables-rails/base'
7
- require 'ajax-datatables-rails/datatable/datatable'
8
- require 'ajax-datatables-rails/datatable/simple_search'
9
- require 'ajax-datatables-rails/datatable/simple_order'
10
- require 'ajax-datatables-rails/datatable/column/search'
11
- require 'ajax-datatables-rails/datatable/column/order'
12
- require 'ajax-datatables-rails/datatable/column/date_filter'
13
- require 'ajax-datatables-rails/datatable/column'
14
- require 'ajax-datatables-rails/orm/active_record'
15
- require 'ajax-datatables-rails/active_record'
16
- end