cheveret 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +7 -0
  2. data/VERSION +1 -1
  3. data/cheveret.gemspec +2 -2
  4. data/lib/cheveret.rb +1 -1
  5. metadata +4 -4
data/README.md CHANGED
@@ -90,6 +90,13 @@ Or, if you're using _Sunspot_, list stored search results without hitting the da
90
90
  = cheveret_body_for @books do |name, column, book|
91
91
  = book.stored(name)
92
92
 
93
+ Todo
94
+ ----
95
+
96
+ * Make the documentation tell fewer lies
97
+ * Support i18n translations for table headers
98
+ * Handle exceeding table width, drop columns
99
+
93
100
  Note on Patches/Pull Requests
94
101
  -----------------------------
95
102
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/cheveret.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cheveret}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Caldwell"]
12
- s.date = %q{2010-09-20}
12
+ s.date = %q{2010-09-21}
13
13
  s.description = %q{Generating HTML tables of data in the views of your Rails
14
14
  application is not very DRY even for the simpler of cases. Cheveret allows you to more
15
15
  clearly separate logic and templating and reduce the amount of code in your views.}
data/lib/cheveret.rb CHANGED
@@ -253,7 +253,7 @@ module Cheveret
253
253
  end
254
254
 
255
255
  def sort_tag(column) #:nodoc:
256
- return nil unless column.sortable?
256
+ return nil unless column.sortable? && @url.present?
257
257
 
258
258
  klass = [ 'sortable' ]
259
259
  sort = column.name
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheveret
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Caldwell
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-20 00:00:00 +10:00
18
+ date: 2010-09-21 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency