thoughtbot-sortable_table 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ desc "Run the test suite"
13
13
  task :default => :test
14
14
 
15
15
  spec = Gem::Specification.new do |s|
16
- s.version = '0.0.5'
16
+ s.version = '0.0.6'
17
17
  s.name = "sortable_table"
18
18
  s.summary = "Sort HTML tables in a Rails app."
19
19
  s.email = "dcroak@thoughtbot.com"
@@ -17,7 +17,7 @@ module SortableTable
17
17
  define_sort_order(acceptable_columns, mappings)
18
18
  end
19
19
 
20
- def pop_hash_from_list(*args)
20
+ def pop_hash_from_list(args)
21
21
  if args.last.is_a?(Hash)
22
22
  args.pop
23
23
  else
@@ -27,7 +27,7 @@ module SortableTable
27
27
 
28
28
  def join_array_and_hash_values(array, hash)
29
29
  array.collect { |each| each.to_s } +
30
- hash.values.collect { |each| each.to_s }
30
+ hash.keys.collect { |each| each.to_s }
31
31
  end
32
32
 
33
33
  def define_sort_order(acceptable_columns, mappings)
@@ -89,7 +89,5 @@ module SortableTable
89
89
 
90
90
  end
91
91
  end
92
- end
92
+ end
93
93
  end
94
-
95
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thoughtbot-sortable_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak