Skip to content

Commit d8d0b54

Browse files
committed
Use Mottie's fork of tablesorter
1 parent 666959a commit d8d0b54

23 files changed

+1963
-1316
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "tablesorter"]
2+
path = tablesorter
3+
url = https://github.com/Mottie/tablesorter.git

README.markdown

+19-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jQuery Table Sorter plugin for Rails
33

44
Simple integration of jquery-tablesorter into the asset pipeline.
55

6-
The original jQuery plugin is [http://tablesorter.com/](http://tablesorter.com/)
6+
Vendored ersion
77

88
Install
99
---
@@ -21,32 +21,39 @@ Rails 3.1 and higher
2121
Usage
2222
---
2323

24-
In your javascript file include the following
24+
### In your `application.js`
2525

2626
```
2727
require jquery-tablesorter
2828
```
2929

30-
And stylesheet
30+
this will require `jquery.metadata`, `jquery.tablesorter`,
31+
`jquery.tablesorter.widgets`
32+
33+
### In your `application.css`
3134

3235
```
3336
require jquery-tablesorter/<theme name>
3437
```
3538

3639
Avaliable theme names:
3740

38-
* green
3941
* blue
42+
* ui
4043

41-
In CoffeeScript file:
44+
### In CoffeeScript file:
4245

4346
```
44-
$('table').tablesorter()
47+
$('table.tablesorter').tablesorter()
4548
```
4649

4750
Changelog
4851
---
4952

53+
#### V1.0.0
54+
55+
* Use [Mottie's fork of tablesorter], V2.3.4
56+
5057
#### v0.0.5
5158

5259
* FIX: now require pager plugin as default.
@@ -56,7 +63,7 @@ Changelog
5663

5764
#### v0.0.4
5865

59-
* FIX: update gemspec to be compatible with Rails 3.2, Thanks to [derekprior](https://github.com/derekprior).
66+
* FIX: update gemspec to be compatible with Rails 3.2, Thanks to [derekprior].
6067

6168
#### v0.0.3
6269

@@ -70,3 +77,8 @@ Changelog
7077
#### v0.0.1
7178

7279
* NEW: added jquery-tablesorter plugin, use `require jquery-tablesorter/jquery-tablesorter` to require javascript and `require jquery-tablesorter/<theme name>` to require stylesheet.
80+
81+
82+
[Mottie's fork of tablesorter]: https://github.com/Mottie/tablesorter
83+
[derekprior]: https://github.com/derekprior
84+

Rakefile

+2-14
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,8 @@ RDoc::Task.new(:rdoc) do |rdoc|
2020
rdoc.rdoc_files.include('lib/**/*.rb')
2121
end
2222

23-
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24-
load 'rails/tasks/engine.rake'
25-
26-
2723
Bundler::GemHelper.install_tasks
2824

29-
require 'rake/testtask'
30-
31-
Rake::TestTask.new(:test) do |t|
32-
t.libs << 'lib'
33-
t.libs << 'test'
34-
t.pattern = 'test/**/*_test.rb'
35-
t.verbose = false
36-
end
37-
25+
load 'lib/tasks/jquery-tablesorter_tasks.rake'
3826

39-
task :default => :test
27+
#task :default => :test

lib/tasks/jquery-tablesorter_tasks.rake

+24
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,27 @@
22
# task :jquery-tablesorter do
33
# # Task goes here
44
# end
5+
#
6+
namespace :jquery_tablesorter do
7+
desc 'update tablesorter'
8+
task :update do
9+
# js files
10+
javascript_files = [
11+
'tablesorter/js/jquery.metadata.js',
12+
'tablesorter/js/jquery.tablesorter.js',
13+
'tablesorter/js/jquery.tablesorter.widgets.js'
14+
]
15+
FileUtils.cp javascript_files,
16+
'vendor/assets/javascripts/jquery-tablesorter/',
17+
:verbose => true
18+
19+
# stylesheets
20+
FileUtils.cp 'tablesorter/css/blue/style.css',
21+
'vendor/assets/stylesheets/jquery-tablesorter/blue',
22+
:verbose => true
23+
FileUtils.cp 'tablesorter/css/ui/style.css',
24+
'vendor/assets/stylesheets/jquery-tablesorter/ui',
25+
:verbose => true
26+
27+
end
28+
end

tablesorter

Submodule tablesorter added at d54c720
Binary file not shown.
-64 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
//= require jquery-tablesorter/jquery-tablesorter
2-
//= require jquery-tablesorter/pager
1+
//= require_tree ./jquery-tablesorter

0 commit comments

Comments
 (0)