data_table 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +38 -37
- data/lib/data_table/base.rb +4 -3
- data/lib/data_table/version.rb +1 -1
- metadata +81 -81
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
data_table (0.4.
|
4
|
+
data_table (0.4.4)
|
5
5
|
rails (~> 3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (3.2.
|
11
|
-
actionpack (= 3.2.
|
10
|
+
actionmailer (3.2.12)
|
11
|
+
actionpack (= 3.2.12)
|
12
12
|
mail (~> 2.4.4)
|
13
|
-
actionpack (3.2.
|
14
|
-
activemodel (= 3.2.
|
15
|
-
activesupport (= 3.2.
|
13
|
+
actionpack (3.2.12)
|
14
|
+
activemodel (= 3.2.12)
|
15
|
+
activesupport (= 3.2.12)
|
16
16
|
builder (~> 3.0.0)
|
17
17
|
erubis (~> 2.7.0)
|
18
18
|
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.
|
19
|
+
rack (~> 1.4.5)
|
20
20
|
rack-cache (~> 1.2)
|
21
21
|
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.1
|
23
|
-
activemodel (3.2.
|
24
|
-
activesupport (= 3.2.
|
22
|
+
sprockets (~> 2.2.1)
|
23
|
+
activemodel (3.2.12)
|
24
|
+
activesupport (= 3.2.12)
|
25
25
|
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.
|
27
|
-
activemodel (= 3.2.
|
28
|
-
activesupport (= 3.2.
|
26
|
+
activerecord (3.2.12)
|
27
|
+
activemodel (= 3.2.12)
|
28
|
+
activesupport (= 3.2.12)
|
29
29
|
arel (~> 3.0.2)
|
30
30
|
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.
|
32
|
-
activemodel (= 3.2.
|
33
|
-
activesupport (= 3.2.
|
34
|
-
activesupport (3.2.
|
31
|
+
activeresource (3.2.12)
|
32
|
+
activemodel (= 3.2.12)
|
33
|
+
activesupport (= 3.2.12)
|
34
|
+
activesupport (3.2.12)
|
35
35
|
i18n (~> 0.6)
|
36
36
|
multi_json (~> 1.0)
|
37
37
|
arel (3.0.2)
|
@@ -41,38 +41,38 @@ GEM
|
|
41
41
|
hike (1.2.1)
|
42
42
|
i18n (0.6.1)
|
43
43
|
journey (1.0.4)
|
44
|
-
json (1.7.
|
44
|
+
json (1.7.7)
|
45
45
|
mail (2.4.4)
|
46
46
|
i18n (>= 0.4.0)
|
47
47
|
mime-types (~> 1.16)
|
48
48
|
treetop (~> 1.4.8)
|
49
|
-
mime-types (1.
|
50
|
-
multi_json (1.
|
49
|
+
mime-types (1.21)
|
50
|
+
multi_json (1.6.1)
|
51
51
|
polyglot (0.3.3)
|
52
|
-
rack (1.4.
|
52
|
+
rack (1.4.5)
|
53
53
|
rack-cache (1.2)
|
54
54
|
rack (>= 0.4)
|
55
|
-
rack-ssl (1.3.
|
55
|
+
rack-ssl (1.3.3)
|
56
56
|
rack
|
57
57
|
rack-test (0.6.2)
|
58
58
|
rack (>= 1.0)
|
59
|
-
rails (3.2.
|
60
|
-
actionmailer (= 3.2.
|
61
|
-
actionpack (= 3.2.
|
62
|
-
activerecord (= 3.2.
|
63
|
-
activeresource (= 3.2.
|
64
|
-
activesupport (= 3.2.
|
59
|
+
rails (3.2.12)
|
60
|
+
actionmailer (= 3.2.12)
|
61
|
+
actionpack (= 3.2.12)
|
62
|
+
activerecord (= 3.2.12)
|
63
|
+
activeresource (= 3.2.12)
|
64
|
+
activesupport (= 3.2.12)
|
65
65
|
bundler (~> 1.0)
|
66
|
-
railties (= 3.2.
|
67
|
-
railties (3.2.
|
68
|
-
actionpack (= 3.2.
|
69
|
-
activesupport (= 3.2.
|
66
|
+
railties (= 3.2.12)
|
67
|
+
railties (3.2.12)
|
68
|
+
actionpack (= 3.2.12)
|
69
|
+
activesupport (= 3.2.12)
|
70
70
|
rack-ssl (~> 1.3.2)
|
71
71
|
rake (>= 0.8.7)
|
72
72
|
rdoc (~> 3.4)
|
73
73
|
thor (>= 0.14.6, < 2.0)
|
74
|
-
rake (0.
|
75
|
-
rdoc (3.12)
|
74
|
+
rake (10.0.3)
|
75
|
+
rdoc (3.12.1)
|
76
76
|
json (~> 1.4)
|
77
77
|
rr (1.0.0)
|
78
78
|
rspec (2.0.1)
|
@@ -86,16 +86,17 @@ GEM
|
|
86
86
|
rspec-core (~> 2.0.1)
|
87
87
|
rspec-expectations (~> 2.0.1)
|
88
88
|
shoulda (2.11.3)
|
89
|
-
sprockets (2.
|
89
|
+
sprockets (2.2.2)
|
90
90
|
hike (~> 1.2)
|
91
|
+
multi_json (~> 1.0)
|
91
92
|
rack (~> 1.0)
|
92
93
|
tilt (~> 1.1, != 1.3.0)
|
93
|
-
thor (0.
|
94
|
+
thor (0.17.0)
|
94
95
|
tilt (1.3.3)
|
95
96
|
treetop (1.4.12)
|
96
97
|
polyglot
|
97
98
|
polyglot (>= 0.3.1)
|
98
|
-
tzinfo (0.3.
|
99
|
+
tzinfo (0.3.35)
|
99
100
|
|
100
101
|
PLATFORMS
|
101
102
|
ruby
|
data/lib/data_table/base.rb
CHANGED
@@ -27,9 +27,10 @@ module DataTable
|
|
27
27
|
objects.map do |object|
|
28
28
|
block[object].map do |string|
|
29
29
|
controller.instance_eval %{
|
30
|
-
Rails.logger.
|
31
|
-
|
32
|
-
|
30
|
+
log_level = Rails.logger.log_level
|
31
|
+
Rails.logger.log_level = :error
|
32
|
+
render_to_string :inline => %Q|#{string}|, :locals => {:#{self.name.underscore} => object}
|
33
|
+
Rails.logger.log_level = log_level
|
33
34
|
}
|
34
35
|
end
|
35
36
|
end
|
data/lib/data_table/version.rb
CHANGED
metadata
CHANGED
@@ -1,87 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_table
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 4
|
8
|
-
- 3
|
9
|
-
version: 0.4.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.4
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Jason Dew
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
type: :runtime
|
22
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
segments:
|
27
|
-
- 3
|
28
|
-
- 0
|
29
|
-
version: "3.0"
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
30
15
|
name: rails
|
31
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
22
|
+
type: :runtime
|
32
23
|
prerelease: false
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
37
27
|
- - ~>
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
|
40
|
-
|
41
|
-
- 0
|
42
|
-
- 0
|
43
|
-
version: 2.0.0
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
44
31
|
name: rspec
|
45
|
-
requirement:
|
46
|
-
|
47
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.0.0
|
48
38
|
type: :development
|
49
|
-
|
50
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
51
43
|
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
54
|
-
|
55
|
-
- 11
|
56
|
-
- 0
|
57
|
-
version: 2.11.0
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.0.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
58
47
|
name: shoulda
|
59
|
-
requirement:
|
60
|
-
|
61
|
-
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.11.0
|
62
54
|
type: :development
|
63
|
-
|
64
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
65
59
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
69
|
-
- 0
|
70
|
-
- 0
|
71
|
-
version: 1.0.0
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.11.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
72
63
|
name: rr
|
73
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.0.0
|
70
|
+
type: :development
|
74
71
|
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.0
|
75
78
|
description: Simple data preparation from AR/Mongoid to the jQuery DataTables plugin
|
76
|
-
email:
|
79
|
+
email:
|
77
80
|
- jason.dew@gmail.com
|
78
81
|
executables: []
|
79
|
-
|
80
82
|
extensions: []
|
81
|
-
|
82
83
|
extra_rdoc_files: []
|
83
|
-
|
84
|
-
files:
|
84
|
+
files:
|
85
85
|
- .gitignore
|
86
86
|
- .rvmrc
|
87
87
|
- Gemfile
|
@@ -102,37 +102,37 @@ files:
|
|
102
102
|
- spec/data_table_spec.rb
|
103
103
|
- spec/mongoid_data_table_spec.rb
|
104
104
|
- spec/spec_helper.rb
|
105
|
-
has_rdoc: true
|
106
105
|
homepage: http://rubygems.org/gems/data_table
|
107
106
|
licenses: []
|
108
|
-
|
109
107
|
post_install_message:
|
110
108
|
rdoc_options: []
|
111
|
-
|
112
|
-
require_paths:
|
109
|
+
require_paths:
|
113
110
|
- lib
|
114
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
segments:
|
119
118
|
- 0
|
120
|
-
|
121
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
hash: 1686019104350432158
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
segments:
|
126
127
|
- 0
|
127
|
-
|
128
|
+
hash: 1686019104350432158
|
128
129
|
requirements: []
|
129
|
-
|
130
130
|
rubyforge_project: data_table
|
131
|
-
rubygems_version: 1.
|
131
|
+
rubygems_version: 1.8.25
|
132
132
|
signing_key:
|
133
133
|
specification_version: 3
|
134
134
|
summary: Simple data preparation from AR/Mongoid to the jQuery DataTables plugin
|
135
|
-
test_files:
|
135
|
+
test_files:
|
136
136
|
- spec/active_record_data_table_spec.rb
|
137
137
|
- spec/data_table_spec.rb
|
138
138
|
- spec/mongoid_data_table_spec.rb
|