effective_datatables 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +581 -0
- data/Rakefile +23 -0
- data/app/assets/images/effective_datatables/copy_csv_xls_pdf.swf +0 -0
- data/app/assets/javascripts/effective_datatables.bootstrap2.js +11 -0
- data/app/assets/javascripts/effective_datatables.js +12 -0
- data/app/assets/javascripts/effective_datatables/initialize.js.coffee +65 -0
- data/app/assets/javascripts/vendor/jquery.dataTables.columnFilter.js +829 -0
- data/app/assets/stylesheets/effective_datatables.bootstrap2.css.scss +8 -0
- data/app/assets/stylesheets/effective_datatables.css.scss +8 -0
- data/app/assets/stylesheets/effective_datatables/_overrides.scss +72 -0
- data/app/controllers/effective/datatables_controller.rb +36 -0
- data/app/helpers/effective_datatables_helper.rb +74 -0
- data/app/models/effective/access_denied.rb +17 -0
- data/app/models/effective/active_record_datatable_tool.rb +87 -0
- data/app/models/effective/array_datatable_tool.rb +66 -0
- data/app/models/effective/datatable.rb +352 -0
- data/app/views/effective/datatables/_datatable.html.haml +11 -0
- data/app/views/effective/datatables/_spacer_template.html +1 -0
- data/config/routes.rb +11 -0
- data/lib/effective_datatables.rb +32 -0
- data/lib/effective_datatables/engine.rb +20 -0
- data/lib/effective_datatables/version.rb +3 -0
- data/lib/generators/effective_datatables/install_generator.rb +17 -0
- data/lib/generators/templates/README +1 -0
- data/lib/generators/templates/effective_datatables.rb +23 -0
- data/lib/tasks/effective_datatables_tasks.rake +17 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +59 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +16 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +17 -0
- data/spec/dummy/log/test.log +1 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/effective_datatables_spec.rb +7 -0
- data/spec/spec_helper.rb +34 -0
- data/spec/support/factories.rb +1 -0
- metadata +217 -0
@@ -0,0 +1 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
require 'rspec/autorun'
|
7
|
+
require 'factory_girl_rails'
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f }
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
15
|
+
|
16
|
+
Rails.logger.level = 4 # Output only minimal stuff to test.log
|
17
|
+
|
18
|
+
config.use_transactional_fixtures = true # Make this false to once again use DatabaseCleaner
|
19
|
+
config.infer_base_class_for_anonymous_controllers = false
|
20
|
+
config.order = 'random'
|
21
|
+
end
|
22
|
+
|
23
|
+
class ActiveRecord::Base
|
24
|
+
mattr_accessor :shared_connection
|
25
|
+
@@shared_connection = nil
|
26
|
+
|
27
|
+
def self.connection
|
28
|
+
@@shared_connection || retrieve_connection
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Forces all threads to share the same connection. This works on
|
33
|
+
# Capybara because it starts the web server in a thread.
|
34
|
+
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'factory_girl'
|
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: effective_datatables
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Code and Effect
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coffee-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: kaminari
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: haml
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jquery-datatables-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Uniquely powerful server-side searching, sorting and filtering of any
|
84
|
+
ActiveRecord or Array collection as well as post-rendered content displayed as a
|
85
|
+
frontend jQuery Datatable
|
86
|
+
email:
|
87
|
+
- info@codeandeffect.com
|
88
|
+
executables: []
|
89
|
+
extensions: []
|
90
|
+
extra_rdoc_files: []
|
91
|
+
files:
|
92
|
+
- MIT-LICENSE
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
95
|
+
- app/assets/images/effective_datatables/copy_csv_xls_pdf.swf
|
96
|
+
- app/assets/javascripts/effective_datatables.bootstrap2.js
|
97
|
+
- app/assets/javascripts/effective_datatables.js
|
98
|
+
- app/assets/javascripts/effective_datatables/initialize.js.coffee
|
99
|
+
- app/assets/javascripts/vendor/jquery.dataTables.columnFilter.js
|
100
|
+
- app/assets/stylesheets/effective_datatables.bootstrap2.css.scss
|
101
|
+
- app/assets/stylesheets/effective_datatables.css.scss
|
102
|
+
- app/assets/stylesheets/effective_datatables/_overrides.scss
|
103
|
+
- app/controllers/effective/datatables_controller.rb
|
104
|
+
- app/helpers/effective_datatables_helper.rb
|
105
|
+
- app/models/effective/access_denied.rb
|
106
|
+
- app/models/effective/active_record_datatable_tool.rb
|
107
|
+
- app/models/effective/array_datatable_tool.rb
|
108
|
+
- app/models/effective/datatable.rb
|
109
|
+
- app/views/effective/datatables/_datatable.html.haml
|
110
|
+
- app/views/effective/datatables/_spacer_template.html
|
111
|
+
- config/routes.rb
|
112
|
+
- lib/effective_datatables.rb
|
113
|
+
- lib/effective_datatables/engine.rb
|
114
|
+
- lib/effective_datatables/version.rb
|
115
|
+
- lib/generators/effective_datatables/install_generator.rb
|
116
|
+
- lib/generators/templates/README
|
117
|
+
- lib/generators/templates/effective_datatables.rb
|
118
|
+
- lib/tasks/effective_datatables_tasks.rake
|
119
|
+
- spec/dummy/README.rdoc
|
120
|
+
- spec/dummy/Rakefile
|
121
|
+
- spec/dummy/app/assets/javascripts/application.js
|
122
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
123
|
+
- spec/dummy/app/controllers/application_controller.rb
|
124
|
+
- spec/dummy/app/helpers/application_helper.rb
|
125
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
126
|
+
- spec/dummy/config.ru
|
127
|
+
- spec/dummy/config/application.rb
|
128
|
+
- spec/dummy/config/boot.rb
|
129
|
+
- spec/dummy/config/database.yml
|
130
|
+
- spec/dummy/config/environment.rb
|
131
|
+
- spec/dummy/config/environments/development.rb
|
132
|
+
- spec/dummy/config/environments/production.rb
|
133
|
+
- spec/dummy/config/environments/test.rb
|
134
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
135
|
+
- spec/dummy/config/initializers/inflections.rb
|
136
|
+
- spec/dummy/config/initializers/mime_types.rb
|
137
|
+
- spec/dummy/config/initializers/secret_token.rb
|
138
|
+
- spec/dummy/config/initializers/session_store.rb
|
139
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
140
|
+
- spec/dummy/config/locales/en.yml
|
141
|
+
- spec/dummy/config/routes.rb
|
142
|
+
- spec/dummy/db/development.sqlite3
|
143
|
+
- spec/dummy/db/schema.rb
|
144
|
+
- spec/dummy/db/test.sqlite3
|
145
|
+
- spec/dummy/log/development.log
|
146
|
+
- spec/dummy/log/test.log
|
147
|
+
- spec/dummy/public/404.html
|
148
|
+
- spec/dummy/public/422.html
|
149
|
+
- spec/dummy/public/500.html
|
150
|
+
- spec/dummy/public/favicon.ico
|
151
|
+
- spec/dummy/script/rails
|
152
|
+
- spec/effective_datatables_spec.rb
|
153
|
+
- spec/spec_helper.rb
|
154
|
+
- spec/support/factories.rb
|
155
|
+
homepage: https://github.com/code-and-effect/effective_datatables
|
156
|
+
licenses:
|
157
|
+
- MIT
|
158
|
+
metadata: {}
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
requirements: []
|
174
|
+
rubyforge_project:
|
175
|
+
rubygems_version: 2.4.3
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: Uniquely powerful server-side searching, sorting and filtering of any ActiveRecord
|
179
|
+
or Array collection as well as post-rendered content displayed as a frontend jQuery
|
180
|
+
Datatable
|
181
|
+
test_files:
|
182
|
+
- spec/dummy/app/assets/javascripts/application.js
|
183
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
184
|
+
- spec/dummy/app/controllers/application_controller.rb
|
185
|
+
- spec/dummy/app/helpers/application_helper.rb
|
186
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
187
|
+
- spec/dummy/config/application.rb
|
188
|
+
- spec/dummy/config/boot.rb
|
189
|
+
- spec/dummy/config/database.yml
|
190
|
+
- spec/dummy/config/environment.rb
|
191
|
+
- spec/dummy/config/environments/development.rb
|
192
|
+
- spec/dummy/config/environments/production.rb
|
193
|
+
- spec/dummy/config/environments/test.rb
|
194
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
195
|
+
- spec/dummy/config/initializers/inflections.rb
|
196
|
+
- spec/dummy/config/initializers/mime_types.rb
|
197
|
+
- spec/dummy/config/initializers/secret_token.rb
|
198
|
+
- spec/dummy/config/initializers/session_store.rb
|
199
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
200
|
+
- spec/dummy/config/locales/en.yml
|
201
|
+
- spec/dummy/config/routes.rb
|
202
|
+
- spec/dummy/config.ru
|
203
|
+
- spec/dummy/db/development.sqlite3
|
204
|
+
- spec/dummy/db/schema.rb
|
205
|
+
- spec/dummy/db/test.sqlite3
|
206
|
+
- spec/dummy/log/development.log
|
207
|
+
- spec/dummy/log/test.log
|
208
|
+
- spec/dummy/public/404.html
|
209
|
+
- spec/dummy/public/422.html
|
210
|
+
- spec/dummy/public/500.html
|
211
|
+
- spec/dummy/public/favicon.ico
|
212
|
+
- spec/dummy/Rakefile
|
213
|
+
- spec/dummy/README.rdoc
|
214
|
+
- spec/dummy/script/rails
|
215
|
+
- spec/effective_datatables_spec.rb
|
216
|
+
- spec/spec_helper.rb
|
217
|
+
- spec/support/factories.rb
|