data_table 0.4.12 → 0.4.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQzNzhiYTA0MjRhMWMzZGJlMDQzNmM5NGY1MTI4YjE4NGU3ZDY4Zg==
4
+ NzYwYjNkY2QzMWQ0YmE2YjE5Mzk2M2U1NjUxMzk1ZjkzYTU5NTRmNQ==
5
5
  data.tar.gz: !binary |-
6
- ZDNjZjBkMmNjNTJjNmUxNjY3NjU4NzIwZTI2OTJjNjI1ZjdkMWQ0Mg==
6
+ NGY5MTEyNzQwYTBhMDQwZGI0OTRlYzljNWJlZDJkMTllNmQyNzlkMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWEwNmJmNWM0ZmQ0YjgyNTEwMTY2NGYyZGNjNTEwMzJkYTczYWQ2MWZlNzYw
10
- NDFlYmU4MGIxNWI4MWRhNDNhZDUyNWUwYTViY2FkMzFiMjM2MzIwYjQyZDg1
11
- NmVmMjExMzY3ZDYwMTBiN2M2YWRkZjQ4ZTNiOTY2Y2I2MDNmYTY=
9
+ MGNmOTgyNWFkYjJkYzRkMGRhZmUwNTI5YzA3ZmE2NzkyNmM0MTNjMDdhNWFj
10
+ OGFlN2VkMzhhZjMyNjNlZTRkMDRmMDY0NjY4YjUyZjYzZDA4OTYxOGM4NDNi
11
+ YzNjZTFhNWZlZDY2YmUzODRlZmNkNTM1ZmU5NDA2ZjQ4MDY5YTM=
12
12
  data.tar.gz: !binary |-
13
- MjM3OTAwZDQ2YTJlYTdmYjM1ZDE5NDlkMDAzYzk3NTg5ODVhODkyMjIyYTQ5
14
- YjhmYjQ0ZjI0NzY4M2RiMDlmZGVmZjc4ZDIyMDM5NWExOTcxMzFkODNlY2M5
15
- YTA0YzNjNmM3ZDdlNjQ1ODI4OWJhOTYxODY4NDIwYzcyMDkyNGE=
13
+ OGU0OGU2NWQyNTIzYzM1NjRiNjZiZjVmNDFhZDIzNWY4NGZmYTk1MWVmZTUz
14
+ YmMyNGQ3NjA5MDY5MDcwODEyYTEyYTA3MDJlZDk3ZWU0NzRiNmYzMDM2OTA0
15
+ NDU2MDFlMjcyZWFmMjZhZmViNGQzYjhhZjMwOWNjYjNjZmY4ZjQ=
data/Gemfile.lock CHANGED
@@ -1,78 +1,71 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- data_table (0.4.11)
4
+ data_table (0.4.13)
5
5
  rails (>= 3.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- actionmailer (3.2.14)
11
- actionpack (= 3.2.14)
10
+ actionmailer (4.1.0)
11
+ actionpack (= 4.1.0)
12
+ actionview (= 4.1.0)
12
13
  mail (~> 2.5.4)
13
- actionpack (3.2.14)
14
- activemodel (= 3.2.14)
15
- activesupport (= 3.2.14)
16
- builder (~> 3.0.0)
14
+ actionpack (4.1.0)
15
+ actionview (= 4.1.0)
16
+ activesupport (= 4.1.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ actionview (4.1.0)
20
+ activesupport (= 4.1.0)
21
+ builder (~> 3.1)
17
22
  erubis (~> 2.7.0)
18
- journey (~> 1.0.4)
19
- rack (~> 1.4.5)
20
- rack-cache (~> 1.2)
21
- rack-test (~> 0.6.1)
22
- sprockets (~> 2.2.1)
23
- activemodel (3.2.14)
24
- activesupport (= 3.2.14)
25
- builder (~> 3.0.0)
26
- activerecord (3.2.14)
27
- activemodel (= 3.2.14)
28
- activesupport (= 3.2.14)
29
- arel (~> 3.0.2)
30
- tzinfo (~> 0.3.29)
31
- activeresource (3.2.14)
32
- activemodel (= 3.2.14)
33
- activesupport (= 3.2.14)
34
- activesupport (3.2.14)
35
- i18n (~> 0.6, >= 0.6.4)
36
- multi_json (~> 1.0)
37
- arel (3.0.2)
38
- builder (3.0.4)
23
+ activemodel (4.1.0)
24
+ activesupport (= 4.1.0)
25
+ builder (~> 3.1)
26
+ activerecord (4.1.0)
27
+ activemodel (= 4.1.0)
28
+ activesupport (= 4.1.0)
29
+ arel (~> 5.0.0)
30
+ activesupport (4.1.0)
31
+ i18n (~> 0.6, >= 0.6.9)
32
+ json (~> 1.7, >= 1.7.7)
33
+ minitest (~> 5.1)
34
+ thread_safe (~> 0.1)
35
+ tzinfo (~> 1.1)
36
+ arel (5.0.0)
37
+ builder (3.2.2)
39
38
  diff-lcs (1.2.4)
40
39
  erubis (2.7.0)
41
40
  hike (1.2.3)
42
- i18n (0.6.5)
43
- journey (1.0.4)
44
- json (1.8.0)
41
+ i18n (0.6.9)
42
+ json (1.8.1)
45
43
  mail (2.5.4)
46
44
  mime-types (~> 1.16)
47
45
  treetop (~> 1.4.8)
48
- mime-types (1.25)
49
- multi_json (1.7.9)
50
- polyglot (0.3.3)
51
- rack (1.4.5)
52
- rack-cache (1.2)
53
- rack (>= 0.4)
54
- rack-ssl (1.3.3)
55
- rack
46
+ mime-types (1.25.1)
47
+ minitest (5.3.2)
48
+ multi_json (1.9.2)
49
+ polyglot (0.3.4)
50
+ rack (1.5.2)
56
51
  rack-test (0.6.2)
57
52
  rack (>= 1.0)
58
- rails (3.2.14)
59
- actionmailer (= 3.2.14)
60
- actionpack (= 3.2.14)
61
- activerecord (= 3.2.14)
62
- activeresource (= 3.2.14)
63
- activesupport (= 3.2.14)
64
- bundler (~> 1.0)
65
- railties (= 3.2.14)
66
- railties (3.2.14)
67
- actionpack (= 3.2.14)
68
- activesupport (= 3.2.14)
69
- rack-ssl (~> 1.3.2)
53
+ rails (4.1.0)
54
+ actionmailer (= 4.1.0)
55
+ actionpack (= 4.1.0)
56
+ actionview (= 4.1.0)
57
+ activemodel (= 4.1.0)
58
+ activerecord (= 4.1.0)
59
+ activesupport (= 4.1.0)
60
+ bundler (>= 1.3.0, < 2.0)
61
+ railties (= 4.1.0)
62
+ sprockets-rails (~> 2.0)
63
+ railties (4.1.0)
64
+ actionpack (= 4.1.0)
65
+ activesupport (= 4.1.0)
70
66
  rake (>= 0.8.7)
71
- rdoc (~> 3.4)
72
- thor (>= 0.14.6, < 2.0)
73
- rake (10.1.0)
74
- rdoc (3.12.2)
75
- json (~> 1.4)
67
+ thor (>= 0.18.1, < 2.0)
68
+ rake (10.2.2)
76
69
  rr (1.1.2)
77
70
  rspec (2.14.1)
78
71
  rspec-core (~> 2.14.0)
@@ -83,17 +76,23 @@ GEM
83
76
  diff-lcs (>= 1.1.3, < 2.0)
84
77
  rspec-mocks (2.14.3)
85
78
  shoulda (2.11.3)
86
- sprockets (2.2.2)
79
+ sprockets (2.12.0)
87
80
  hike (~> 1.2)
88
81
  multi_json (~> 1.0)
89
82
  rack (~> 1.0)
90
83
  tilt (~> 1.1, != 1.3.0)
91
- thor (0.18.1)
84
+ sprockets-rails (2.1.1)
85
+ actionpack (>= 3.0)
86
+ activesupport (>= 3.0)
87
+ sprockets (~> 2.8)
88
+ thor (0.19.1)
89
+ thread_safe (0.3.3)
92
90
  tilt (1.4.1)
93
91
  treetop (1.4.15)
94
92
  polyglot
95
93
  polyglot (>= 0.3.1)
96
- tzinfo (0.3.37)
94
+ tzinfo (1.1.0)
95
+ thread_safe (~> 0.1)
97
96
 
98
97
  PLATFORMS
99
98
  ruby
@@ -4,7 +4,11 @@ module DataTable
4
4
 
5
5
  def _find_objects params, fields, search_fields
6
6
  self.where(_where_conditions params[:ssearch], search_fields).
7
- includes(_discover_joins fields).
7
+ includes(_discover_joins fields).tap do |query|
8
+ if query.respond_to?(:references!)
9
+ query.references!(_discover_joins fields)
10
+ end
11
+ end.
8
12
  order(_order_fields params, fields).
9
13
  paginate :page => _page(params), :per_page => _per_page(params)
10
14
  end
@@ -1,3 +1,3 @@
1
1
  module DataTable
2
- VERSION = "0.4.12"
2
+ VERSION = "0.4.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Dew
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails