tabulatr 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.textile
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
h1. Changelog for tabulatr
|
2
2
|
|
3
|
+
h2. 0.4.2
|
4
|
+
|
5
|
+
* Fixed two more bugs breaking ruby 1.8 compatibility. (Thanks to <a href="https://github.com/moabite">moabite</a> for reporting)
|
6
|
+
|
3
7
|
h2. 0.4.1
|
4
8
|
|
5
9
|
* Fixed a "bug" breaking ruby 1.8 compatibility. (Thanks to <a href="https://github.com/moabite">moabite</a> for reporting)
|
@@ -28,7 +28,7 @@ class Tabulatr::Adapter::ActiveRecordAdapter < Tabulatr::Adapter
|
|
28
28
|
|
29
29
|
def order_for_query(sortparam, default)
|
30
30
|
context = order(sortparam, default)
|
31
|
-
context
|
31
|
+
"#{context[:by]} #{context[:direction]}" if context
|
32
32
|
end
|
33
33
|
|
34
34
|
def includes(inc)
|
@@ -25,7 +25,7 @@ class Tabulatr::Adapter::MongoidAdapter < Tabulatr::Adapter
|
|
25
25
|
|
26
26
|
def order_for_query(sortparam, default)
|
27
27
|
context = order(sortparam, default)
|
28
|
-
context.
|
28
|
+
[context[:by], context[:direction]].map(&:to_s) if context
|
29
29
|
end
|
30
30
|
|
31
31
|
def includes(includes)
|
data/lib/tabulatr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tabulatr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-01-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &70293944115360 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70293944115360
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: whiny_hash
|
28
|
-
requirement: &
|
28
|
+
requirement: &70293944114860 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 0.0.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70293944114860
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: id_stuffer
|
39
|
-
requirement: &
|
39
|
+
requirement: &70293944114360 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: 0.0.1
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70293944114360
|
48
48
|
description: A tight DSL to build tables of ActiveRecord or Mongoid models with sorting,
|
49
49
|
pagination, finding/filtering, selecting and batch actions. Tries to do for tables
|
50
50
|
what formtastic and simple_form did for forms.
|