sorting_table_for 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### Version 0.2.2 _(September 07, 2012)_
4
+
5
+ * Fix problems with rails 3.2
6
+
3
7
  ### Version 0.2.1 _(July 20, 2011)_
4
8
 
5
9
  * Fix bug with sorting_table was not loading in ActiveRecord
@@ -8,12 +8,12 @@ module SortingTableFor
8
8
 
9
9
  include ::ActionView::Helpers
10
10
 
11
- class_inheritable_accessor :reserved_columns, :currency_columns,
12
- :default_boolean, :show_total_entries,
13
- :params_sort_table, :i18n_default_format_date,
14
- :html_sorting_class, :default_actions,
15
- :i18n_default_scope, :i18n_add_header_action_scope,
16
- :i18n_add_footer_action_scope
11
+ class_attribute :reserved_columns, :currency_columns,
12
+ :default_boolean, :show_total_entries,
13
+ :params_sort_table, :i18n_default_format_date,
14
+ :html_sorting_class, :default_actions,
15
+ :i18n_default_scope, :i18n_add_header_action_scope,
16
+ :i18n_add_footer_action_scope
17
17
 
18
18
  self.reserved_columns = [:id, :password, :salt]
19
19
  self.currency_columns = [:price, :total_price, :currency, :money]
@@ -1,5 +1,8 @@
1
1
  class SortingTableForUser < ActiveRecord::Base
2
2
  if ::SortingTableFor::Tools::rails3?
3
+ attr_accessible :username, :firstname, :lastname, :position,
4
+ :salary, :price, :active, :created_at, :updated_at
5
+
3
6
  scope :good_position, :conditions => 'position > 3'
4
7
  scope :set_limit, lambda { |limit| { :limit => limit } }
5
8
  else
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require File.expand_path(File.dirname(__FILE__) + '/../fixtures/sorting_table_for_user')
3
3
 
4
- describe SortingTableModelScope do
4
+ describe SortingTableFor::ModelScope do
5
5
 
6
6
  describe "# default usage" do
7
7
 
metadata CHANGED
@@ -1,28 +1,24 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: sorting_table_for
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.2
4
5
  prerelease:
5
- version: 0.2.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Thomas Floch
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2010-11-14 00:00:00 +01:00
14
- default_executable:
12
+ date: 2012-09-07 00:00:00.000000000 Z
15
13
  dependencies: []
16
-
17
- description: A Rails table builder made to easily create table or sort a table. The syntax is simple to write and easy to read.
14
+ description: A Rails table builder made to easily create table or sort a table. The
15
+ syntax is simple to write and easy to read.
18
16
  email: thomas.floch@gmail.com
19
17
  executables: []
20
-
21
18
  extensions: []
22
-
23
- extra_rdoc_files:
19
+ extra_rdoc_files:
24
20
  - README.mdown
25
- files:
21
+ files:
26
22
  - lib/sorting_table_for/format_cell.rb
27
23
  - lib/sorting_table_for/format_line.rb
28
24
  - lib/sorting_table_for/i18n.rb
@@ -55,33 +51,29 @@ files:
55
51
  - MIT-LICENSE
56
52
  - Rakefile
57
53
  - README.mdown
58
- has_rdoc: true
59
54
  homepage: http://github.com/arkownz/sorting_table_for
60
55
  licenses: []
61
-
62
56
  post_install_message:
63
- rdoc_options:
57
+ rdoc_options:
64
58
  - --charset=UTF-8
65
- require_paths:
59
+ require_paths:
66
60
  - lib
67
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
68
62
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
68
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
69
+ requirements:
70
+ - - ! '>='
71
+ - !ruby/object:Gem::Version
78
72
  version: 1.3.4
79
73
  requirements: []
80
-
81
74
  rubyforge_project: sorting_table_for
82
- rubygems_version: 1.5.2
75
+ rubygems_version: 1.8.23
83
76
  signing_key:
84
77
  specification_version: 3
85
78
  summary: A Rails table builder made to easily create and sort a table
86
79
  test_files: []
87
-