sortablecolumns 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.1.1 / 2008-04-29
2
+
3
+ * Minor fixes to test code
4
+
1
5
  === 0.1.0 / 2008-04-29
2
6
 
3
7
  * Initial Release
data/Manifest.txt CHANGED
@@ -5,7 +5,7 @@ Rakefile
5
5
  bin/sortable_columns
6
6
  lib/sortablecolumns.rb
7
7
  lib/sortablecolumns/helpers.rb
8
- lib/sortablecolumns/sortable_columns.rb
8
+ lib/sortablecolumns/sortablecolumns.rb
9
9
  test/col_def_test_yaml_files/person/dude/dude_report.yml
10
10
  test/col_def_test_yaml_files/person/mysorter.yml
11
11
  test/col_def_test_yaml_files/person/tacosorter.yml
@@ -1,5 +1,5 @@
1
1
  module Sortablecolumns #:nodoc:
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
4
4
  Dir[File.join(File.dirname(__FILE__), "sortablecolumns/**/*.rb")].sort.each { |lib| require lib }
5
5
  ActiveRecord::Base.send(:include, ActiveRecord::Acts::Sortablecolumns)
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
3
  $:.unshift File.dirname(__FILE__) + '/../lib'
4
- require 'sortable_columns'
4
+ require 'sortablecolumns'
5
5
  require 'action_controller/integration'
6
6
 
7
7
  RAILS_ROOT = File.dirname(__FILE__) + '/../'
@@ -136,7 +136,7 @@ class SortableColumnsTest< Test::Unit::TestCase
136
136
  col_defs = Person.tacosorter_col_defs
137
137
  assert_equal Array, col_defs.class
138
138
  expected = {"type"=>
139
- {"link_options"=>{:url=>"http://www.tacotypes.com"},
139
+ {"link_options"=>{'url'=>"http://www.tacotypes.com"},
140
140
  "heading"=>"Taco Type",
141
141
  "datatype"=>"string"}}
142
142
  assert_equal expected, col_defs[0]
@@ -149,7 +149,7 @@ class SortableColumnsTest< Test::Unit::TestCase
149
149
  def test_dude_yaml_load
150
150
  col_defs = Dude.dude_report_col_defs
151
151
  assert_equal Array, col_defs.class
152
- expected = {"dudename"=> {"link_options"=>{:object_url=>true}, "heading"=>"Dudename", "datatype"=>"string"}}
152
+ expected = {"dudename"=> {"link_options"=>{'object_url'=>true}, "heading"=>"Dudename", "datatype"=>"string"}}
153
153
  assert_equal expected, col_defs[0]
154
154
  end
155
155
 
@@ -161,7 +161,7 @@ class SortableColumnsTest< Test::Unit::TestCase
161
161
  "heading"=>"Description",
162
162
  "datatype"=>"string"},
163
163
  "dudename"=>
164
- {"link_options"=>{:object_url=>true},
164
+ {"link_options"=>{'object_url'=>true},
165
165
  "heading"=>"Dudename",
166
166
  "datatype"=>"string"},
167
167
  "age"=>{"heading"=>"Age", "datatype"=>"number"}}
@@ -281,19 +281,16 @@ end
281
281
  # Helpers
282
282
  #------------------------------------------------
283
283
 
284
- class SortableColumnsHelperTest < Test::Unit::TestCase
285
- #include SortableColumns::Helpers
284
+ class SortablecolumnsHelperTest < Test::Unit::TestCase
286
285
 
287
286
  class View
288
- #include ActionController
289
- #include ActionView::Helpers::AssetTagHelper
290
287
  include ActionView::Helpers::TextHelper
291
288
  include ActionView::Helpers::NumberHelper
292
289
  include ActionView::Helpers::SanitizeHelper
293
290
  include ActionView::Helpers::TagHelper
294
291
  include ActionView::Helpers::UrlHelper
295
292
  include ActionController::UrlWriter
296
- include SortableColumns::Helpers
293
+ include Sortablecolumns::Helpers
297
294
  default_url_options[:host] = 'test.host'
298
295
  attr_accessor :params
299
296
  attr_accessor :request
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sortablecolumns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Donovan - http://www.bryandonovan.com
@@ -39,7 +39,7 @@ files:
39
39
  - bin/sortable_columns
40
40
  - lib/sortablecolumns.rb
41
41
  - lib/sortablecolumns/helpers.rb
42
- - lib/sortablecolumns/sortable_columns.rb
42
+ - lib/sortablecolumns/sortablecolumns.rb
43
43
  - test/col_def_test_yaml_files/person/dude/dude_report.yml
44
44
  - test/col_def_test_yaml_files/person/mysorter.yml
45
45
  - test/col_def_test_yaml_files/person/tacosorter.yml