ajax-datatables-rails 0.3.1 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +5 -5
  2. data/.codeclimate.yml +26 -0
  3. data/.github/workflows/ci.yml +120 -0
  4. data/.gitignore +20 -0
  5. data/.rspec +1 -0
  6. data/.rubocop.yml +58 -0
  7. data/Appraisals +35 -0
  8. data/CHANGELOG.md +92 -7
  9. data/Gemfile +2 -1
  10. data/Guardfile +16 -0
  11. data/LICENSE +17 -18
  12. data/README.md +595 -404
  13. data/Rakefile +4 -2
  14. data/ajax-datatables-rails.gemspec +38 -25
  15. data/bin/_guard-core +29 -0
  16. data/bin/appraisal +29 -0
  17. data/bin/bundle +114 -0
  18. data/bin/guard +29 -0
  19. data/bin/rake +29 -0
  20. data/bin/rspec +29 -0
  21. data/bin/rubocop +29 -0
  22. data/doc/migrate.md +97 -0
  23. data/doc/webpack.md +55 -0
  24. data/gemfiles/rails_5.2.4.gemfile +11 -0
  25. data/gemfiles/rails_6.0.3.gemfile +11 -0
  26. data/gemfiles/rails_6.1.0.gemfile +11 -0
  27. data/lib/ajax-datatables-rails/active_record.rb +7 -0
  28. data/lib/ajax-datatables-rails/base.rb +96 -151
  29. data/lib/ajax-datatables-rails/datatable/column/date_filter.rb +68 -0
  30. data/lib/ajax-datatables-rails/datatable/column/order.rb +29 -0
  31. data/lib/ajax-datatables-rails/datatable/column/search.rb +129 -0
  32. data/lib/ajax-datatables-rails/datatable/column.rb +122 -0
  33. data/lib/ajax-datatables-rails/datatable/datatable.rb +91 -0
  34. data/lib/ajax-datatables-rails/datatable/simple_order.rb +59 -0
  35. data/lib/ajax-datatables-rails/datatable/simple_search.rb +23 -0
  36. data/lib/ajax-datatables-rails/datatable.rb +6 -0
  37. data/lib/ajax-datatables-rails/error.rb +9 -0
  38. data/lib/ajax-datatables-rails/orm/active_record.rb +60 -0
  39. data/lib/ajax-datatables-rails/orm.rb +6 -0
  40. data/lib/ajax-datatables-rails/version.rb +15 -1
  41. data/lib/ajax-datatables-rails.rb +11 -7
  42. data/lib/generators/rails/datatable_generator.rb +11 -22
  43. data/lib/generators/rails/templates/datatable.rb +13 -15
  44. data/spec/ajax-datatables-rails/base_spec.rb +223 -0
  45. data/spec/ajax-datatables-rails/datatable/column_spec.rb +222 -0
  46. data/spec/ajax-datatables-rails/datatable/datatable_spec.rb +127 -0
  47. data/spec/ajax-datatables-rails/datatable/simple_order_spec.rb +62 -0
  48. data/spec/ajax-datatables-rails/datatable/simple_search_spec.rb +19 -0
  49. data/spec/ajax-datatables-rails/orm/active_record_filter_records_spec.rb +617 -0
  50. data/spec/ajax-datatables-rails/orm/active_record_paginate_records_spec.rb +67 -0
  51. data/spec/ajax-datatables-rails/orm/active_record_sort_records_spec.rb +80 -0
  52. data/spec/factories/user.rb +11 -0
  53. data/spec/install_oracle.sh +18 -0
  54. data/spec/spec_helper.rb +86 -4
  55. data/spec/support/datatables/complex_datatable.rb +31 -0
  56. data/spec/support/datatables/complex_datatable_array.rb +16 -0
  57. data/spec/support/datatables/datatable_cond_date.rb +7 -0
  58. data/spec/support/datatables/datatable_cond_numeric.rb +53 -0
  59. data/spec/support/datatables/datatable_cond_proc.rb +13 -0
  60. data/spec/support/datatables/datatable_cond_string.rb +43 -0
  61. data/spec/support/datatables/datatable_cond_unknown.rb +7 -0
  62. data/spec/support/datatables/datatable_order_nulls_last.rb +7 -0
  63. data/spec/support/helpers/params.rb +74 -0
  64. data/spec/support/models/user.rb +4 -0
  65. data/spec/support/schema.rb +16 -0
  66. metadata +196 -48
  67. data/lib/ajax-datatables-rails/config.rb +0 -25
  68. data/lib/ajax-datatables-rails/extensions/kaminari.rb +0 -12
  69. data/lib/ajax-datatables-rails/extensions/simple_paginator.rb +0 -12
  70. data/lib/ajax-datatables-rails/extensions/will_paginate.rb +0 -12
  71. data/lib/ajax-datatables-rails/models.rb +0 -6
  72. data/lib/generators/datatable/config_generator.rb +0 -17
  73. data/lib/generators/datatable/templates/ajax_datatables_rails_config.rb +0 -7
  74. data/spec/ajax-datatables-rails/ajax_datatables_rails_spec.rb +0 -351
  75. data/spec/ajax-datatables-rails/kaminari_spec.rb +0 -35
  76. data/spec/ajax-datatables-rails/models_spec.rb +0 -10
  77. data/spec/ajax-datatables-rails/simple_paginator_spec.rb +0 -32
  78. data/spec/ajax-datatables-rails/will_paginate_spec.rb +0 -28
  79. data/spec/schema.rb +0 -35
  80. data/spec/test_models.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 80d42b1310c4f10689a82c08e83dfe459dd4dff0
4
- data.tar.gz: 6d330fd4357b99d90b5f62d6073882d6337c9334
2
+ SHA256:
3
+ metadata.gz: c458882fe0c2ff86e0b262ccdc9e37af67c348941f902e29bee7a9ec7b1ad9f0
4
+ data.tar.gz: 9fe38de08324f1f281f5a7c24d3e0c782c71bc741a23ae301952c0ef7bfcbb09
5
5
  SHA512:
6
- metadata.gz: 16e1b35b7c5f129c5ff53659ad205e56afd07b51d675a0e74e9c5aba03b0a206a1be155b43a0ba3a30868ca6f7adab881d94422cc78da6962b1af89dc2ff6cb7
7
- data.tar.gz: 621736c6a250745e8f68a363f5686fb4840b1804a05637cdd00da15c4a61db647c47118dd8b0d6fa6c713b27002f27e0526c48176e5dca395a1081ac8452e371
6
+ metadata.gz: 943655268357523c6594845e708f41fbe515284736b1c96d6150514b6c39478d563719c4051c0c3568942e138c1166ab2193cec5585742c1640242a7adbdd381
7
+ data.tar.gz: 6507a0827be528e61dfb07f905b4016d0d65543b19b3becf8d557884890fa88dbdefd815441f0b6f4cc4c784b24ebb58924f0b69357576295138af67cdf7ca78
data/.codeclimate.yml ADDED
@@ -0,0 +1,26 @@
1
+ ---
2
+ engines:
3
+ duplication:
4
+ enabled: true
5
+ config:
6
+ languages:
7
+ - ruby
8
+ - javascript
9
+ - python
10
+ - php
11
+ fixme:
12
+ enabled: true
13
+ rubocop:
14
+ enabled: true
15
+ ratings:
16
+ paths:
17
+ - "**.inc"
18
+ - "**.js"
19
+ - "**.jsx"
20
+ - "**.module"
21
+ - "**.php"
22
+ - "**.py"
23
+ - "**.rb"
24
+ exclude_paths:
25
+ - spec/
26
+ - lib/generators/rails/templates/
@@ -0,0 +1,120 @@
1
+ ---
2
+ name: CI
3
+
4
+ on:
5
+ - push
6
+ - pull_request
7
+
8
+ jobs:
9
+ rspec:
10
+ runs-on: ubuntu-20.04
11
+
12
+ env:
13
+ ORACLE_COOKIE: sqldev
14
+ ORACLE_FILE: oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
15
+ ORACLE_HOME: /u01/app/oracle/product/11.2.0/xe
16
+ ORACLE_SID: XE
17
+
18
+ services:
19
+ postgres:
20
+ image: 'postgres:13'
21
+ ports: ['5432:5432']
22
+ env:
23
+ POSTGRES_PASSWORD: postgres
24
+ POSTGRES_DB: ajax_datatables_rails
25
+ options: >-
26
+ --health-cmd pg_isready
27
+ --health-interval 10s
28
+ --health-timeout 5s
29
+ --health-retries 5
30
+
31
+ # Using docker image fails with
32
+ # invalid reference format
33
+ # mariadb:
34
+ # image: 'mariadb:10.3'
35
+ # ports: ['3306:3306']
36
+ # env:
37
+ # MYSQL_ROOT_PASSWORD: root
38
+ # MYSQL_DATABASE: ajax_datatables_rails
39
+ # options: >-
40
+ # --health-cmd 'mysqladmin ping'
41
+ # --health-interval 10s
42
+ # --health-timeout 5s
43
+ # --health-retries 3
44
+
45
+ strategy:
46
+ fail-fast: false
47
+ matrix:
48
+ ruby:
49
+ - '3.0'
50
+ - '2.7'
51
+ - '2.6'
52
+ - '2.5'
53
+ rails:
54
+ - rails_5.2.4
55
+ - rails_6.0.3
56
+ - rails_6.1.0
57
+ adapter:
58
+ - sqlite3
59
+ - postgresql
60
+ - mysql2
61
+ - oracle_enhanced
62
+ exclude:
63
+ - ruby: '3.0'
64
+ rails: rails_5.2.4
65
+
66
+ steps:
67
+ - name: Checkout
68
+ uses: actions/checkout@v2
69
+
70
+ - name: Setup Ruby
71
+ uses: ruby/setup-ruby@v1
72
+ with:
73
+ ruby-version: ${{ matrix.ruby }}
74
+
75
+ - name: Set DB Adapter
76
+ env:
77
+ RAILS_VERSION: ${{ matrix.rails }}
78
+ DB_ADAPTER: ${{ matrix.adapter }}
79
+ CUSTOM_ORACLE_FILE: ${{ secrets.CUSTOM_ORACLE_FILE }}
80
+
81
+ # See: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#mysql
82
+ run: |
83
+ if [ "${DB_ADAPTER}" = "mysql2" ]; then
84
+ sudo systemctl start mysql.service
85
+ mysql -u root -proot -e 'create database ajax_datatables_rails;'
86
+ fi
87
+
88
+ if [ "${DB_ADAPTER}" = "oracle_enhanced" ]; then
89
+ ./spec/install_oracle.sh
90
+ # Fix error : libnnz11.so: cannot open shared object file: No such file or directory
91
+ sudo ln -s ${ORACLE_HOME}/lib/libnnz11.so /usr/lib/libnnz11.so
92
+ fi
93
+
94
+ - name: Setup Ruby cache
95
+ uses: actions/cache@v2
96
+ with:
97
+ path: vendor/bundle
98
+ key: ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.adapter }}-${{ hashFiles('**/Gemfile.lock') }}
99
+ restore-keys: |
100
+ ${{ runner.os }}-gems-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.adapter }}-
101
+
102
+ - name: Bundle
103
+ env:
104
+ RAILS_VERSION: ${{ matrix.rails }}
105
+ DB_ADAPTER: ${{ matrix.adapter }}
106
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
107
+ run: |
108
+ gem install bundler
109
+ bundle config path vendor/bundle
110
+ bundle install --jobs 4 --retry 3
111
+
112
+ - name: RSpec & publish code coverage
113
+ uses: paambaati/codeclimate-action@v2.7.5
114
+ env:
115
+ RAILS_VERSION: ${{ matrix.rails }}
116
+ DB_ADAPTER: ${{ matrix.adapter }}
117
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
118
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
119
+ with:
120
+ coverageCommand: bin/rake
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ # Ignore bundler config.
2
+ /.bundle
3
+
4
+ # Ignore Gemfile.lock
5
+ /Gemfile.lock
6
+ /gemfiles/*.lock
7
+ /gemfiles/.bundle
8
+
9
+ # Ignore test files
10
+ /coverage
11
+ /tmp
12
+
13
+ # Ignore sqlite db file
14
+ /ajax_datatables_rails
15
+
16
+ # RVM files
17
+ /.ruby-version
18
+
19
+ # Gem files
20
+ /*.gem
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,58 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+ TargetRubyVersion: 2.5
5
+ Exclude:
6
+ - bin/*
7
+ - lib/generators/**/*.rb
8
+ - gemfiles/*
9
+ - spec/**/*
10
+
11
+ Style/Documentation:
12
+ Enabled: false
13
+
14
+ Layout/HashAlignment:
15
+ Enabled: false
16
+
17
+ Layout/EmptyLines:
18
+ Enabled: false
19
+
20
+ Layout/EmptyLinesAroundClassBody:
21
+ Enabled: false
22
+
23
+ Layout/EmptyLinesAroundBlockBody:
24
+ Enabled: false
25
+
26
+ Layout/EmptyLinesAroundModuleBody:
27
+ Enabled: false
28
+
29
+ Layout/EmptyLineBetweenDefs:
30
+ Enabled: false
31
+
32
+ Metrics/CyclomaticComplexity:
33
+ Max: 7
34
+
35
+ Metrics/LineLength:
36
+ Enabled: false
37
+
38
+ Metrics/BlockLength:
39
+ Max: 30
40
+
41
+ Metrics/MethodLength:
42
+ Max: 15
43
+
44
+ Metrics/ClassLength:
45
+ Max: 130
46
+
47
+ Naming/AccessorMethodName:
48
+ Enabled: false
49
+
50
+ Naming/FileName:
51
+ Exclude:
52
+ - lib/ajax-datatables-rails.rb
53
+
54
+ Style/TrailingCommaInArrayLiteral:
55
+ EnforcedStyleForMultiline: comma
56
+
57
+ Style/TrailingCommaInHashLiteral:
58
+ EnforcedStyleForMultiline: comma
data/Appraisals ADDED
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ RAILS_VERSIONS = {
4
+ '5.2.4' => {
5
+ 'activerecord-oracle_enhanced-adapter' => '~> 5.2.0',
6
+ 'sqlite3' => '~> 1.3.0',
7
+ 'mysql2' => '',
8
+ 'ruby-oci8' => '',
9
+ },
10
+ '6.0.3' => {
11
+ 'activerecord-oracle_enhanced-adapter' => '~> 6.0.0',
12
+ 'sqlite3' => '~> 1.4.0',
13
+ 'mysql2' => '',
14
+ 'ruby-oci8' => '',
15
+ },
16
+ '6.1.0' => {
17
+ 'activerecord-oracle_enhanced-adapter' => '~> 6.1.0',
18
+ 'sqlite3' => '~> 1.4.0',
19
+ 'mysql2' => '',
20
+ 'ruby-oci8' => '',
21
+ },
22
+ }.freeze
23
+
24
+ RAILS_VERSIONS.each do |version, gems|
25
+ appraise "rails_#{version}" do
26
+ gem 'rails', version
27
+ gems.each do |name, gem_version|
28
+ if gem_version.empty?
29
+ gem name
30
+ else
31
+ gem name, gem_version
32
+ end
33
+ end
34
+ end
35
+ end
data/CHANGELOG.md CHANGED
@@ -1,9 +1,90 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 0.3.1
3
+ ## 1.3.1 (2021-02-09)
4
+
5
+ * Fix rare case error `uninitialized constant AjaxDatatablesRails::ActiveRecord::Base` (merge: [#379](https://github.com/jbox-web/ajax-datatables-rails/pull/379))
6
+
7
+ ## 1.3.0 (2021-01-04)
8
+
9
+ * Drop support of Rails 5.0.x and 5.1.x
10
+ * Drop support of Ruby 2.4
11
+ * Add support of Rails 6.1
12
+ * Add support of Ruby 3.0
13
+ * Switch from Travis to Github Actions
14
+ * Improve specs
15
+ * Fix lib loading with JRuby (fixes [#371](https://github.com/jbox-web/ajax-datatables-rails/issues/371))
16
+ * Raise an error when column's `cond:` setting is unknown
17
+ * Make global search and column search work together (merge: [#350](https://github.com/jbox-web/ajax-datatables-rails/pull/350), fixes: [#258](https://github.com/jbox-web/ajax-datatables-rails/issues/258))
18
+ * Fix: date_range doesn't support searching by a date greater than today (merge: [#351](https://github.com/jbox-web/ajax-datatables-rails/pull/351))
19
+ * Fix: undefined method `fetch' for nil:NilClass (fix: [#307](https://github.com/jbox-web/ajax-datatables-rails/issues/307))
20
+ * Add support for json params (merge: [#355](https://github.com/jbox-web/ajax-datatables-rails/pull/355))
21
+
22
+ * `AjaxDatatablesRails.config` is removed with no replacement. The gem is now configless :)
23
+ * `AjaxDatatablesRails.config.db_adapter=` is removed and is configured per datatable class now. It defaults to Rails DB adapter. (fixes [#364](https://github.com/jbox-web/ajax-datatables-rails/issues/364))
24
+ * `AjaxDatatablesRails.config.nulls_last=` is removed and is configured per datatable class now (or by column). It defaults to false.
25
+
26
+ To mitigate this 3 changes see the [migration doc](/doc/migrate.md).
27
+
28
+ ## 1.2.0 (2020-04-19)
29
+
30
+ * Drop support of Rails 4.x
31
+ * Drop support of Ruby 2.3
32
+ * Use [zeitwerk](https://github.com/fxn/zeitwerk) to load gem files
33
+ * Add binstubs to ease development
34
+
35
+ This is the last version to support Rails 5.0.x, Rails 5.1.x and Ruby 2.4.x.
36
+
37
+ ## 1.1.0 (2019-12-12)
38
+
39
+ * Add rudimentary support for Microsoft SQL Server
40
+ * Fixes errors when options[param] is nil [PR 315](https://github.com/jbox-web/ajax-datatables-rails/pull/315) (thanks @allard)
41
+ * Improve query performance when nulls_last option is enabled [PR 317](https://github.com/jbox-web/ajax-datatables-rails/pull/317) (thanks @natebird)
42
+ * Add :string_in cond [PR 323](https://github.com/jbox-web/ajax-datatables-rails/pull/323) (thanks @donnguyen)
43
+ * Rename `sanitize` private method [PR 326](https://github.com/jbox-web/ajax-datatables-rails/pull/326) (thanks @epipheus)
44
+ * Update documentation
45
+ * Test with latest Rails (6.x) and Ruby versions (2.6)
46
+
47
+ This is the last version to support Rails 4.x and Ruby 2.3.x.
48
+
49
+ ## 1.0.0 (2018-08-28)
50
+
51
+ * Breaking change: Remove dependency on view_context [Issue #288](https://github.com/jbox-web/ajax-datatables-rails/issues/288)
52
+ * Breaking change: Replace `config.orm = :active_record` by a class : `AjaxDatatablesRails::ActiveRecord` [Fix #228](https://github.com/jbox-web/ajax-datatables-rails/issues/228)
53
+
54
+ To mitigate this 2 changes see the [migration doc](/doc/migrate.md).
55
+
56
+ ## 0.4.3 (2018-06-05)
57
+
58
+ * Add: Add `:string_eq` condition on columns filter [Issue #291](https://github.com/jbox-web/ajax-datatables-rails/issues/291)
59
+
60
+ **Note :** This is the last version to support Rails 4.0.x and Rails 4.1.x
61
+
62
+ ## 0.4.2 (2018-05-15)
63
+
64
+ * Fix: Integer out of range [PR #289](https://github.com/jbox-web/ajax-datatables-rails/pull/289) from [PR #284](https://github.com/jbox-web/ajax-datatables-rails/pull/284)
65
+
66
+ ## 0.4.1 (2018-05-06)
67
+
68
+ * Fix: Restore behavior of #filter method [Comment](https://github.com/jbox-web/ajax-datatables-rails/commit/07795fd26849ff1b3b567f4ce967f722907a45be#comments)
69
+ * Fix: Fix erroneous offset/start behavior [PR #264](https://github.com/jbox-web/ajax-datatables-rails/pull/264)
70
+ * Fix: "orderable" option has no effect [Issue #245](https://github.com/jbox-web/ajax-datatables-rails/issues/245)
71
+ * Fix: Fix undefined method #and [PR #235](https://github.com/jbox-web/ajax-datatables-rails/pull/235)
72
+ * Add: Add "order nulls last" option [PR #79](https://github.com/jbox-web/ajax-datatables-rails/pull/279)
73
+ * Change: Rename `additional_datas` method as `additional_data` [PR #251](https://github.com/jbox-web/ajax-datatables-rails/pull/251)
74
+ * Change: Added timezone support for daterange [PR #261](https://github.com/jbox-web/ajax-datatables-rails/pull/261)
75
+ * Change: Add # frozen_string_literal: true pragma
76
+ * Various improvements in internal API
77
+
78
+ ## 0.4.0 (2017-05-21)
79
+
80
+ **Warning:** this version is a **major break** from v0.3. The core has been rewriten to remove dependency on Kaminari (or WillPaginate).
81
+
82
+ It also brings a new (more natural) way of defining columns, based on hash definitions (and not arrays) and add some filtering options for column search. Take a look at the [README](https://github.com/jbox-web/ajax-datatables-rails#customize-the-generated-datatables-class) for more infos.
83
+
84
+ ## 0.3.1 (2015-07-13)
4
85
  * Adds `:oracle` as supported `db_adapter`. Thanks to [lutechspa](https://github.com/lutechspa) for this contribution.
5
86
 
6
- ## 0.3.0
87
+ ## 0.3.0 (2015-01-30)
7
88
  * Changes to the `sortable_columns` and `searchable_columns` syntax as it
8
89
  required us to do unnecessary guessing. New syntax is `ModelName.column_name`
9
90
  or `Namespace::ModelName.column_name`. Old syntax of `table_name.column_name`
@@ -14,7 +95,7 @@
14
95
  for this contribution.
15
96
  * Moves paginator settings to configuration initializer.
16
97
 
17
- ## 0.2.1
98
+ ## 0.2.1 (2014-11-26)
18
99
  * Fix count method to work with select statements under Rails 4.1. Thanks to
19
100
  [Jason Mitchell](https://github.com/mitchej123) for the contribution.
20
101
  * Edits to `README` documentation about the `options` hash. Thanks to
@@ -32,22 +113,22 @@ text-based columns and perform searches depending on the use of `:mysql2`,
32
113
  `:sqlite3` or `:pg`. Thanks to [M. Saiqul Haq](https://github.com/saiqulhaq)
33
114
  for contributing this feature.
34
115
 
35
- ## 0.2.0
116
+ ## 0.2.0 (2014-06-19)
36
117
  * This version works with jQuery dataTables ver. 1.10 and it's new API syntax.
37
118
  * Added `legacy` branch to repo. If your project is working with jQuery
38
119
  dataTables ver. 1.9, this is the branch you need to pull, or use the last
39
120
  `0.1.x` version of this gem.
40
121
 
41
- ## 0.1.2
122
+ ## 0.1.2 (2014-06-18)
42
123
  * Fixes `where` clause being built even when search term is an empty string.
43
124
  Thanks to [e-fisher](https://github.com/e-fisher) for spotting and fixing this.
44
125
 
45
- ## 0.1.1
126
+ ## 0.1.1 (2014-06-13)
46
127
  * Fixes problem on `searchable_columns` where the corresponding model is
47
128
  a composite model name, e.g. `UserData`, `BillingAddress`.
48
129
  Thanks to [iruca3](https://github.com/iruca3) for the fix.
49
130
 
50
- ## 0.1.0
131
+ ## 0.1.0 (2014-05-21)
51
132
  * A fresh start. Sets base class name to: `AjaxDatatablesRails::Base`.
52
133
  * Extracts pagination functions to mixable modules.
53
134
  * A user would have the option to stick to the base
@@ -65,3 +146,7 @@ Thanks to [iruca3](https://github.com/iruca3) for the fix.
65
146
  * Sets generator inside the `Rails` namespace. To generate an
66
147
  `AjaxDatatablesRails` child class, just execute the
67
148
  generator like this: `$ rails generate datatable NAME`.
149
+
150
+ ## 0.0.1 (2012-09-10)
151
+
152
+ First release!
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
- # Specify your gem's dependencies in ajax-datatables-rails.gemspec
4
5
  gemspec
data/Guardfile ADDED
@@ -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/LICENSE CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2012 Joel Quenneville
1
+ The MIT License (MIT)
2
2
 
3
- MIT License
3
+ Copyright (c) 2012 Joel Quenneville
4
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:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
12
11
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
15
14
 
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.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.