table_setter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/documentation/index.html.erb +3 -1
- data/index.html +3 -1
- data/lib/table_setter/app.rb +1 -1
- data/table_setter.gemspec +2 -2
- data/template/views/index.erb +1 -1
- data/template/views/table.erb +2 -2
- metadata +4 -4
data/VERSION.yml
CHANGED
@@ -225,8 +225,10 @@ script/generate table-setter</pre>
|
|
225
225
|
<h2><a id="credits" href="#toc">Credits</a></h2>
|
226
226
|
<p><a href="http://github.com/thejefflarson">Jeff Larson</a> (Maintainer), <a href="http://github.com/brianboyer/">Brian Boyer</a>, <a href="http://github.com/kleinmatic">Scott Klein</a>, <a href="http://github.com/markpercival">Mark Percival</a>, <a href="http://github.com/seebq">Charles Brian Quinn</a>, <a href="http://github.com/bouvard">Christopher Groskopf</a>, and <a href="http://github.com/ryanmark">Ryan Mark</a>.</p>
|
227
227
|
<h2><a id="changes" href="#toc">Change Log</a></h2>
|
228
|
+
<strong>0.2.1</strong>
|
229
|
+
<p>Table Urls have an optional trailing slash. Fixes a bug in <strong>0.2.0</strong></p>
|
228
230
|
<strong>0.2.0</strong>
|
229
|
-
<p><b>Backwards incompatible change:</b> Table urls no longer end in a trailing slash. Please the <strong>url_for</strong> calls in your templates to reflect the change.</p>
|
231
|
+
<p><del><b>Backwards incompatible change:</b> Table urls no longer end in a trailing slash. Please the <strong>url_for</strong> calls in your templates to reflect the change.</del></p>
|
230
232
|
<strong>0.1.11</strong>
|
231
233
|
<p>Javascript Fixes. <b>Note:</b> You'll need to delete the javascript's folder in the config directory and run <strong>table-setter install</strong> to grab the changes.</p>
|
232
234
|
<strong>0.1.10</strong>
|
data/index.html
CHANGED
@@ -222,8 +222,10 @@ script/generate table-setter</pre>
|
|
222
222
|
<h2><a id="credits" href="#toc">Credits</a></h2>
|
223
223
|
<p><a href="http://github.com/thejefflarson">Jeff Larson</a> (Maintainer), <a href="http://github.com/brianboyer/">Brian Boyer</a>, <a href="http://github.com/kleinmatic">Scott Klein</a>, <a href="http://github.com/markpercival">Mark Percival</a>, <a href="http://github.com/seebq">Charles Brian Quinn</a>, <a href="http://github.com/bouvard">Christopher Groskopf</a>, and <a href="http://github.com/ryanmark">Ryan Mark</a>.</p>
|
224
224
|
<h2><a id="changes" href="#toc">Change Log</a></h2>
|
225
|
+
<strong>0.2.1</strong>
|
226
|
+
<p>Table Urls have an optional trailing slash. Fixes a bug in <strong>0.2.0</strong></p>
|
225
227
|
<strong>0.2.0</strong>
|
226
|
-
<p><b>Backwards incompatible change:</b> Table urls no longer end in a trailing slash. Please the <strong>url_for</strong> calls in your templates to reflect the change.</p>
|
228
|
+
<p><del><b>Backwards incompatible change:</b> Table urls no longer end in a trailing slash. Please the <strong>url_for</strong> calls in your templates to reflect the change.</del></p>
|
227
229
|
<strong>0.1.11</strong>
|
228
230
|
<p>Javascript Fixes. <b>Note:</b> You'll need to delete the javascript's folder in the config directory and run <strong>table-setter install</strong> to grab the changes.</p>
|
229
231
|
<strong>0.1.10</strong>
|
data/lib/table_setter/app.rb
CHANGED
@@ -23,7 +23,7 @@ module TableSetter
|
|
23
23
|
show :index, :tables => Table.all
|
24
24
|
end
|
25
25
|
|
26
|
-
["/:slug/:page", "/:slug"].each do |path|
|
26
|
+
["/:slug/:page/?", "/:slug/?"].each do |path|
|
27
27
|
get path do
|
28
28
|
headers['Cache-Control'] = "public, max-age=#{TableSetter::App.cache_timeout}"
|
29
29
|
not_found unless Table.exists? params[:slug]
|
data/table_setter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{table_setter}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Larson"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-09}
|
13
13
|
s.description = %q{A sinatra based app for rendering CSVs hosted on google docs or locally in custom HTML}
|
14
14
|
s.email = %q{thejefflarson@gmail.com}
|
15
15
|
s.executables = ["table-setter", "table-setter"]
|
data/template/views/index.erb
CHANGED
data/template/views/table.erb
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
<% end %>
|
8
8
|
<div id="pager" class="pager">
|
9
9
|
<form>
|
10
|
-
<a href="<%= url_for "/#{table.slug}/#{table.prev_page}" if !table.prev_page.nil? %>" class="prev">prev</a>
|
10
|
+
<a href="<%= url_for "/#{table.slug}/#{table.prev_page}/" if !table.prev_page.nil? %>" class="prev">prev</a>
|
11
11
|
<span class="pagedisplay"/><%= "#{table.page} / #{table.total_pages}" if table.hard_paginate? %></span>
|
12
|
-
<a href="<%= url_for "/#{table.slug}/#{table.next_page}" if !table.next_page.nil? %>" class="next">next</a>
|
12
|
+
<a href="<%= url_for "/#{table.slug}/#{table.next_page}/" if !table.next_page.nil? %>" class="next">next</a>
|
13
13
|
<% if !table.hard_paginate? %>
|
14
14
|
<select class="pagesize">
|
15
15
|
<% (1..4).each do |count|%>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_setter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Larson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-09 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|