column_sort 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/column_sort.gemspec +103 -0
- data/lib/column_sort/column_sort_helper.rb +6 -1
- metadata +4 -3
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/column_sort.gemspec
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "column_sort"
|
8
|
+
s.version = "0.0.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jeremiah Hemphill"]
|
12
|
+
s.date = "2012-08-27"
|
13
|
+
s.description = "Column sorting for index pages"
|
14
|
+
s.email = "jeremiah@cloudspace.com"
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
"CHANGELOG",
|
23
|
+
"Gemfile",
|
24
|
+
"Gemfile.lock",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.rdoc",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"column_sort.gemspec",
|
30
|
+
"lib/column_sort.rb",
|
31
|
+
"lib/column_sort/column_sort_helper.rb",
|
32
|
+
"lib/column_sort/column_sort_in_model.rb",
|
33
|
+
"lib/column_sort/engine.rb",
|
34
|
+
"lib/column_sort/railtie.rb",
|
35
|
+
"spec/column_sort_spec.rb",
|
36
|
+
"spec/dummy/Rakefile",
|
37
|
+
"spec/dummy/app/controllers/application_controller.rb",
|
38
|
+
"spec/dummy/app/helpers/application_helper.rb",
|
39
|
+
"spec/dummy/app/views/layouts/application.html.erb",
|
40
|
+
"spec/dummy/config.ru",
|
41
|
+
"spec/dummy/config/application.rb",
|
42
|
+
"spec/dummy/config/boot.rb",
|
43
|
+
"spec/dummy/config/database.yml",
|
44
|
+
"spec/dummy/config/environment.rb",
|
45
|
+
"spec/dummy/config/environments/development.rb",
|
46
|
+
"spec/dummy/config/environments/production.rb",
|
47
|
+
"spec/dummy/config/environments/test.rb",
|
48
|
+
"spec/dummy/config/initializers/backtrace_silencers.rb",
|
49
|
+
"spec/dummy/config/initializers/inflections.rb",
|
50
|
+
"spec/dummy/config/initializers/mime_types.rb",
|
51
|
+
"spec/dummy/config/initializers/secret_token.rb",
|
52
|
+
"spec/dummy/config/initializers/session_store.rb",
|
53
|
+
"spec/dummy/config/locales/en.yml",
|
54
|
+
"spec/dummy/config/routes.rb",
|
55
|
+
"spec/dummy/log/development.log",
|
56
|
+
"spec/dummy/log/production.log",
|
57
|
+
"spec/dummy/log/server.log",
|
58
|
+
"spec/dummy/log/test.log",
|
59
|
+
"spec/dummy/public/404.html",
|
60
|
+
"spec/dummy/public/422.html",
|
61
|
+
"spec/dummy/public/500.html",
|
62
|
+
"spec/dummy/public/favicon.ico",
|
63
|
+
"spec/dummy/public/javascripts/application.js",
|
64
|
+
"spec/dummy/public/javascripts/controls.js",
|
65
|
+
"spec/dummy/public/javascripts/dragdrop.js",
|
66
|
+
"spec/dummy/public/javascripts/effects.js",
|
67
|
+
"spec/dummy/public/javascripts/prototype.js",
|
68
|
+
"spec/dummy/public/javascripts/rails.js",
|
69
|
+
"spec/dummy/public/stylesheets/.gitkeep",
|
70
|
+
"spec/dummy/script/rails",
|
71
|
+
"spec/spec_helper.rb"
|
72
|
+
]
|
73
|
+
s.homepage = "http://github.com/jeremiahishere/column_sort"
|
74
|
+
s.licenses = ["MIT"]
|
75
|
+
s.require_paths = ["lib"]
|
76
|
+
s.rubygems_version = "1.8.15"
|
77
|
+
s.summary = "Column sorting for index pages"
|
78
|
+
|
79
|
+
if s.respond_to? :specification_version then
|
80
|
+
s.specification_version = 3
|
81
|
+
|
82
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
83
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
84
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
85
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
86
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
87
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
88
|
+
else
|
89
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
90
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
91
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
92
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
93
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
94
|
+
end
|
95
|
+
else
|
96
|
+
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
97
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
98
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
99
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
100
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
@@ -29,7 +29,12 @@ module ColumnSort
|
|
29
29
|
|
30
30
|
# set default link attributes
|
31
31
|
# note that we default to ascending search
|
32
|
-
link_attributes = {
|
32
|
+
link_attributes = params.merge({
|
33
|
+
:column_sort => {
|
34
|
+
:column => column_symbol,
|
35
|
+
:direction => "asc"
|
36
|
+
}
|
37
|
+
})
|
33
38
|
|
34
39
|
# start building the link text
|
35
40
|
link_text = column_name
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: column_sort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeremiah Hemphill
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-08-
|
13
|
+
date: 2012-08-27 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- README.rdoc
|
87
87
|
- Rakefile
|
88
88
|
- VERSION
|
89
|
+
- column_sort.gemspec
|
89
90
|
- lib/column_sort.rb
|
90
91
|
- lib/column_sort/column_sort_helper.rb
|
91
92
|
- lib/column_sort/column_sort_in_model.rb
|
@@ -141,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
142
|
requirements:
|
142
143
|
- - ">="
|
143
144
|
- !ruby/object:Gem::Version
|
144
|
-
hash:
|
145
|
+
hash: 3516461030783785808
|
145
146
|
segments:
|
146
147
|
- 0
|
147
148
|
version: "0"
|