table_setter 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -8,12 +8,12 @@ begin
8
8
  gem.summary = %Q{A sinatra based app for rendering CSVs in custom HTML}
9
9
  gem.description = %Q{A sinatra based app for rendering CSVs hosted on google docs or locally in custom HTML}
10
10
  gem.email = "thejefflarson@gmail.com"
11
- gem.homepage = "http://github.com/thejefflarson/table-setter"
11
+ gem.homepage = "http://propublica.github.com/table-setter/"
12
12
  gem.authors = ["Jeff Larson"]
13
13
  gem.rubyforge_project = "table-setter"
14
14
  gem.add_development_dependency "rspec", ">= 1.2.9"
15
- gem.add_development_dependency "rack", ">= 1.1.0"
16
- gem.add_development_dependency "thin", ">= 1.2.5"
15
+ gem.add_dependency "rack", ">= 1.1.0"
16
+ gem.add_dependency "thin", ">= 1.2.5"
17
17
  gem.add_dependency "table_fu", ">= 0.1.1"
18
18
  gem.add_dependency "sinatra", ">= 0.9.4"
19
19
  gem.add_dependency "sinatra-static-assets", ">= 0.5.0"
@@ -23,9 +23,6 @@ begin
23
23
  end
24
24
 
25
25
  Jeweler::GemcutterTasks.new
26
- Jeweler::RubyforgeTasks.new do |rubyforge|
27
- rubyforge.doc_task = "rdoc"
28
- end
29
26
  rescue LoadError
30
27
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
31
28
  end
data/TODO CHANGED
@@ -1,3 +1,2 @@
1
- TODO:
2
- fix table.rb to load from a uri resource instead of just a file, or a google key
1
+
3
2
 
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 1
4
- :patch: 3
3
+ :patch: 4
4
+ :major: 0
5
5
  :build:
@@ -24,6 +24,7 @@
24
24
  <li><a href="#rails">Rails</a></li>
25
25
  <li><a href="#links">Links</a></li>
26
26
  <li><a href="#credits">Credits</a></li>
27
+ <li><a href="#changes">Change Log</a></li>
27
28
  <li><a href="#license">License</a></li>
28
29
  </ul>
29
30
  <h2><a id="installation" href="#toc">Installation</a></h2>
@@ -215,7 +216,13 @@ script/generate table-setter</pre>
215
216
  </ul>
216
217
  <h2><a id="credits" href="#toc">Credits</a></h2>
217
218
  <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>, and <a href="http://github.com/seebq">Charles Brian Quinn</a>.</p>
219
+ <h2><a id="changes" href="#toc">Change Log</a></h2>
220
+ <strong>1.4</strong>
221
+ <p>Javascript fixes and thin added as a dependency.</p>
222
+ <strong>1.3</strong>
223
+ <p>Initial release.</p>
218
224
  <h2><a id="license" href="#toc">License</a></h2>
219
225
  <pre><%= File.open("LICENSE").read %></pre>
226
+
220
227
  </body>
221
228
  </html>
data/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  </head>
9
9
  <body>
10
10
  <a href="http://www.propublica.org" class="propublica">&nbsp;</a>
11
- <h1>TableSetter <small>&ndash; Version: 0.1.3</small></h1>
11
+ <h1>TableSetter <small>&ndash; Version: 0.1.4</small></h1>
12
12
  <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>
13
13
  <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>
14
14
  <h2><a id="toc">Table of Contents</a></h2>
@@ -21,6 +21,7 @@
21
21
  <li><a href="#rails">Rails</a></li>
22
22
  <li><a href="#links">Links</a></li>
23
23
  <li><a href="#credits">Credits</a></li>
24
+ <li><a href="#changes">Change Log</a></li>
24
25
  <li><a href="#license">License</a></li>
25
26
  </ul>
26
27
  <h2><a id="installation" href="#toc">Installation</a></h2>
@@ -212,6 +213,11 @@ script/generate table-setter</pre>
212
213
  </ul>
213
214
  <h2><a id="credits" href="#toc">Credits</a></h2>
214
215
  <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>, and <a href="http://github.com/seebq">Charles Brian Quinn</a>.</p>
216
+ <h2><a id="changes" href="#toc">Change Log</a></h2>
217
+ <strong>1.4</strong>
218
+ <p>Javascript fixes and thin added as a dependency.</p>
219
+ <strong>1.3</strong>
220
+ <p>Initial release.</p>
215
221
  <h2><a id="license" href="#toc">License</a></h2>
216
222
  <pre>Copyright (c) 2010 ProPublica
217
223
 
@@ -234,5 +240,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
234
240
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
235
241
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
236
242
  </pre>
243
+
237
244
  </body>
238
245
  </html>
@@ -123,7 +123,7 @@ module TableSetter
123
123
  # If for whatever reason the google modification time is busted we'll return the epoch,
124
124
  # and rely on the yaml modified time.
125
125
  def google_modification_time
126
- local_url = URI.parse "http://spreadsheets.google.com/feeds/list/#{google_key}/od7/public/basic"
126
+ local_url = URI.parse "http://spreadsheets.google.com/feeds/list/#{google_key}/od6/public/basic"
127
127
  web_modification_time local_url
128
128
  end
129
129
 
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.1.3"
8
+ s.version = "0.1.4"
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-03-10}
12
+ s.date = %q{2010-03-22}
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"]
@@ -122,7 +122,7 @@ Gem::Specification.new do |s|
122
122
  "template/views/layout.erb",
123
123
  "template/views/table.erb"
124
124
  ]
125
- s.homepage = %q{http://github.com/thejefflarson/table-setter}
125
+ s.homepage = %q{http://propublica.github.com/table-setter/}
126
126
  s.rdoc_options = ["--charset=UTF-8"]
127
127
  s.require_paths = ["lib"]
128
128
  s.rubyforge_project = %q{table-setter}
@@ -140,8 +140,8 @@ Gem::Specification.new do |s|
140
140
 
141
141
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
142
142
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
143
- s.add_development_dependency(%q<rack>, [">= 1.1.0"])
144
- s.add_development_dependency(%q<thin>, [">= 1.2.5"])
143
+ s.add_runtime_dependency(%q<rack>, [">= 1.1.0"])
144
+ s.add_runtime_dependency(%q<thin>, [">= 1.2.5"])
145
145
  s.add_runtime_dependency(%q<table_fu>, [">= 0.1.1"])
146
146
  s.add_runtime_dependency(%q<sinatra>, [">= 0.9.4"])
147
147
  s.add_runtime_dependency(%q<sinatra-static-assets>, [">= 0.5.0"])
@@ -19,6 +19,18 @@ $(document).ready(function(){
19
19
  });
20
20
  }
21
21
  });
22
+ $.tablesorter.addParser({
23
+ id: "newNumbers",
24
+ is: function(s,table) {
25
+ var c = table.config;
26
+ var obj = parseFloat(s, 10);
27
+ return (obj === +obj) || (toString.call(obj) === '[object Number]');
28
+ },
29
+ format: function(s){
30
+ return parseFloat(s, 10);
31
+ },
32
+ type: "numeric"
33
+ });
22
34
 
23
35
  //initialize the table
24
36
  var table = window.table = $('#data').tablesorter({
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_setter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Larson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-10 00:00:00 -05:00
12
+ date: 2010-03-22 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rack
27
- type: :development
27
+ type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
@@ -34,7 +34,7 @@ dependencies:
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: thin
37
- type: :development
37
+ type: :runtime
38
38
  version_requirement:
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
@@ -207,7 +207,7 @@ files:
207
207
  - template/views/layout.erb
208
208
  - template/views/table.erb
209
209
  has_rdoc: true
210
- homepage: http://github.com/thejefflarson/table-setter
210
+ homepage: http://propublica.github.com/table-setter/
211
211
  licenses: []
212
212
 
213
213
  post_install_message: