table_setter 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/documentation/index.html.erb +3 -1
- data/index.html +5 -1
- data/table_setter.gemspec +5 -12
- data/template/config.ru +2 -2
- metadata +19 -13
data/VERSION.yml
CHANGED
@@ -239,8 +239,10 @@ script/generate table-setter</pre>
|
|
239
239
|
<a href="http://github.com/palewire">Ben Welsh</a>, and
|
240
240
|
<a href="http://github.com/jpmckinney">James McKinney</a>.</p>
|
241
241
|
<h2><a id="changes" href="#toc">Change Log</a></h2>
|
242
|
+
<strong>0.2.9</strong>
|
243
|
+
<p>Updated <strong>config.ru</strong> to fix the same bug in <strong>0.2.8</strong>, you'll want to regenerate your template.</p>
|
242
244
|
<strong>0.2.8</strong>
|
243
|
-
<p>
|
245
|
+
<p>Fixed a scope bug for 1.9.1 when <strong>Rack::File</strong> is around.</p>
|
244
246
|
<strong>0.2.7</strong>
|
245
247
|
<p>404 and 500 pages have no layout now, please update your templates accordingly.</p>
|
246
248
|
<strong>0.2.6</strong>
|
data/index.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
</head>
|
10
10
|
<body>
|
11
11
|
<a href="http://www.propublica.org" class="propublica"> </a>
|
12
|
-
<h1>TableSetter <small>– Version: 0.2.
|
12
|
+
<h1>TableSetter <small>– Version: 0.2.9</small></h1>
|
13
13
|
<p><a href="https://github.com/propublica/table-setter">TableSetter</a> is a Ruby app that provides an easy way to present CSVs hosted locally or remotely (e.g. on google, etc) in custom HTML. TableSetter in the wild: <a href="http://projects.propublica.org/tables/failed-banks">a list of all stimulus projects from last year</a>, <a href="http://projects.propublica.org/tables/stimulus-spending-progress">the stimulus spending progress</a>, or <a href="http://projects.propublica.org/tables/failed-banks">a list of failed banks due to the last recession</a>.</p>
|
14
14
|
<p>Each table is filterable and sortable on multiple columns. Also each column can be formatted in one of many different styles. In production mode, <strong>TableSetter</strong> provides valid expires headers and can be coupled with an upstream cache like <a href="http://rtomayko.github.com/rack-cache/">Rack::Cache</a> or varnish for speedy presentation.</p>
|
15
15
|
<h2><a id="toc">Table of Contents</a></h2>
|
@@ -234,6 +234,10 @@ script/generate table-setter</pre>
|
|
234
234
|
<a href="http://github.com/palewire">Ben Welsh</a>, and
|
235
235
|
<a href="http://github.com/jpmckinney">James McKinney</a>.</p>
|
236
236
|
<h2><a id="changes" href="#toc">Change Log</a></h2>
|
237
|
+
<strong>0.2.9</strong>
|
238
|
+
<p>Updated <strong>config.ru</strong> to fix the same bug in <strong>0.2.8</strong>, you'll want to regenerate your template.</p>
|
239
|
+
<strong>0.2.8</strong>
|
240
|
+
<p>Fixed a scope bug for 1.9.1 when <strong>Rack::File</strong> is around.</p>
|
237
241
|
<strong>0.2.7</strong>
|
238
242
|
<p>404 and 500 pages have no layout now, please update your templates accordingly.</p>
|
239
243
|
<strong>0.2.6</strong>
|
data/table_setter.gemspec
CHANGED
@@ -5,14 +5,14 @@
|
|
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.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
11
|
+
s.authors = [%q{Jeff Larson}]
|
12
12
|
s.date = %q{2011-05-19}
|
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
|
-
s.executables = [
|
15
|
+
s.executables = [%q{table-setter}, %q{table-setter}]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE",
|
18
18
|
"README",
|
@@ -124,19 +124,12 @@ Gem::Specification.new do |s|
|
|
124
124
|
"template/views/table.erb"
|
125
125
|
]
|
126
126
|
s.homepage = %q{http://propublica.github.com/table-setter/}
|
127
|
-
s.require_paths = [
|
127
|
+
s.require_paths = [%q{lib}]
|
128
128
|
s.rubyforge_project = %q{table-setter}
|
129
|
-
s.rubygems_version = %q{1.
|
129
|
+
s.rubygems_version = %q{1.8.2}
|
130
130
|
s.summary = %q{A sinatra based app for rendering CSVs in custom HTML}
|
131
|
-
s.test_files = [
|
132
|
-
"spec/spec_helper.rb",
|
133
|
-
"spec/table-setter-app_spec.rb",
|
134
|
-
"spec/table-setter-command_spec.rb",
|
135
|
-
"spec/table-setter_spec.rb"
|
136
|
-
]
|
137
131
|
|
138
132
|
if s.respond_to? :specification_version then
|
139
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
140
133
|
s.specification_version = 3
|
141
134
|
|
142
135
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/template/config.ru
CHANGED
@@ -14,10 +14,10 @@
|
|
14
14
|
|
15
15
|
require 'rubygems'
|
16
16
|
require 'table_setter'
|
17
|
-
TableSetter.configure(File.dirname(__FILE__))
|
17
|
+
TableSetter.configure(::File.dirname(__FILE__))
|
18
18
|
|
19
19
|
# You should put and custom formatters in lib/formatters.rb.
|
20
|
-
require "#{File.expand_path(File.dirname(__FILE__))}/lib/formatters.rb"
|
20
|
+
require "#{::File.expand_path(::File.dirname(__FILE__))}/lib/formatters.rb"
|
21
21
|
|
22
22
|
# You should probably enable Rack::Cache if you're not behind a caching proxy, by uncommenting the
|
23
23
|
# lines below:
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: table_setter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
9
|
+
- 9
|
10
|
+
version: 0.2.9
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jeff Larson
|
@@ -14,8 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-05-19 00:00:00
|
18
|
-
default_executable:
|
18
|
+
date: 2011-05-19 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|
@@ -25,6 +25,7 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
28
29
|
segments:
|
29
30
|
- 0
|
30
31
|
version: "0"
|
@@ -38,6 +39,7 @@ dependencies:
|
|
38
39
|
requirements:
|
39
40
|
- - ">="
|
40
41
|
- !ruby/object:Gem::Version
|
42
|
+
hash: 19
|
41
43
|
segments:
|
42
44
|
- 1
|
43
45
|
- 1
|
@@ -53,6 +55,7 @@ dependencies:
|
|
53
55
|
requirements:
|
54
56
|
- - ">="
|
55
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 23
|
56
59
|
segments:
|
57
60
|
- 1
|
58
61
|
- 2
|
@@ -68,6 +71,7 @@ dependencies:
|
|
68
71
|
requirements:
|
69
72
|
- - ">="
|
70
73
|
- !ruby/object:Gem::Version
|
74
|
+
hash: 27
|
71
75
|
segments:
|
72
76
|
- 0
|
73
77
|
- 3
|
@@ -83,6 +87,7 @@ dependencies:
|
|
83
87
|
requirements:
|
84
88
|
- - ">="
|
85
89
|
- !ruby/object:Gem::Version
|
90
|
+
hash: 29
|
86
91
|
segments:
|
87
92
|
- 1
|
88
93
|
- 2
|
@@ -98,6 +103,7 @@ dependencies:
|
|
98
103
|
requirements:
|
99
104
|
- - ">="
|
100
105
|
- !ruby/object:Gem::Version
|
106
|
+
hash: 11
|
101
107
|
segments:
|
102
108
|
- 0
|
103
109
|
- 5
|
@@ -113,6 +119,7 @@ dependencies:
|
|
113
119
|
requirements:
|
114
120
|
- - ">="
|
115
121
|
- !ruby/object:Gem::Version
|
122
|
+
hash: 21
|
116
123
|
segments:
|
117
124
|
- 0
|
118
125
|
- 2
|
@@ -128,6 +135,7 @@ dependencies:
|
|
128
135
|
requirements:
|
129
136
|
- - ">="
|
130
137
|
- !ruby/object:Gem::Version
|
138
|
+
hash: 29
|
131
139
|
segments:
|
132
140
|
- 0
|
133
141
|
- 7
|
@@ -143,6 +151,7 @@ dependencies:
|
|
143
151
|
requirements:
|
144
152
|
- - ">="
|
145
153
|
- !ruby/object:Gem::Version
|
154
|
+
hash: 31
|
146
155
|
segments:
|
147
156
|
- 1
|
148
157
|
- 6
|
@@ -154,7 +163,6 @@ description: A sinatra based app for rendering CSVs hosted on google docs or loc
|
|
154
163
|
email: thejefflarson@gmail.com
|
155
164
|
executables:
|
156
165
|
- table-setter
|
157
|
-
- table-setter
|
158
166
|
extensions: []
|
159
167
|
|
160
168
|
extra_rdoc_files:
|
@@ -265,7 +273,6 @@ files:
|
|
265
273
|
- template/views/index.erb
|
266
274
|
- template/views/layout.erb
|
267
275
|
- template/views/table.erb
|
268
|
-
has_rdoc: true
|
269
276
|
homepage: http://propublica.github.com/table-setter/
|
270
277
|
licenses: []
|
271
278
|
|
@@ -279,6 +286,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
286
|
requirements:
|
280
287
|
- - ">="
|
281
288
|
- !ruby/object:Gem::Version
|
289
|
+
hash: 3
|
282
290
|
segments:
|
283
291
|
- 0
|
284
292
|
version: "0"
|
@@ -287,18 +295,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
295
|
requirements:
|
288
296
|
- - ">="
|
289
297
|
- !ruby/object:Gem::Version
|
298
|
+
hash: 3
|
290
299
|
segments:
|
291
300
|
- 0
|
292
301
|
version: "0"
|
293
302
|
requirements: []
|
294
303
|
|
295
304
|
rubyforge_project: table-setter
|
296
|
-
rubygems_version: 1.
|
305
|
+
rubygems_version: 1.8.2
|
297
306
|
signing_key:
|
298
307
|
specification_version: 3
|
299
308
|
summary: A sinatra based app for rendering CSVs in custom HTML
|
300
|
-
test_files:
|
301
|
-
|
302
|
-
- spec/table-setter-app_spec.rb
|
303
|
-
- spec/table-setter-command_spec.rb
|
304
|
-
- spec/table-setter_spec.rb
|
309
|
+
test_files: []
|
310
|
+
|