datagrid 1.5.9 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Readme.markdown +6 -4
  4. data/app/views/datagrid/_table.html.erb +1 -1
  5. data/datagrid.gemspec +29 -166
  6. data/lib/datagrid/column_names_attribute.rb +15 -16
  7. data/lib/datagrid/columns.rb +34 -37
  8. data/lib/datagrid/columns/column.rb +4 -0
  9. data/lib/datagrid/core.rb +13 -1
  10. data/lib/datagrid/drivers/active_record.rb +2 -1
  11. data/lib/datagrid/drivers/mongoid.rb +5 -1
  12. data/lib/datagrid/filters.rb +3 -6
  13. data/lib/datagrid/filters/base_filter.rb +8 -0
  14. data/lib/datagrid/filters/composite_filters.rb +4 -4
  15. data/lib/datagrid/form_builder.rb +18 -15
  16. data/lib/datagrid/helper.rb +3 -3
  17. data/lib/datagrid/renderer.rb +2 -5
  18. data/lib/datagrid/utils.rb +2 -6
  19. data/lib/datagrid/version.rb +3 -0
  20. metadata +15 -201
  21. data/.document +0 -5
  22. data/.rspec +0 -1
  23. data/.travis.yml +0 -21
  24. data/Gemfile +0 -29
  25. data/Rakefile +0 -43
  26. data/VERSION +0 -1
  27. data/spec/datagrid/active_model_spec.rb +0 -33
  28. data/spec/datagrid/column_names_attribute_spec.rb +0 -86
  29. data/spec/datagrid/columns/column_spec.rb +0 -19
  30. data/spec/datagrid/columns_spec.rb +0 -592
  31. data/spec/datagrid/core_spec.rb +0 -196
  32. data/spec/datagrid/drivers/active_record_spec.rb +0 -79
  33. data/spec/datagrid/drivers/array_spec.rb +0 -106
  34. data/spec/datagrid/drivers/mongo_mapper_spec.rb +0 -101
  35. data/spec/datagrid/drivers/mongoid_spec.rb +0 -109
  36. data/spec/datagrid/drivers/sequel_spec.rb +0 -111
  37. data/spec/datagrid/filters/base_filter_spec.rb +0 -19
  38. data/spec/datagrid/filters/boolean_enum_filter_spec.rb +0 -5
  39. data/spec/datagrid/filters/composite_filters_spec.rb +0 -65
  40. data/spec/datagrid/filters/date_filter_spec.rb +0 -195
  41. data/spec/datagrid/filters/date_time_filter_spec.rb +0 -157
  42. data/spec/datagrid/filters/dynamic_filter_spec.rb +0 -175
  43. data/spec/datagrid/filters/enum_filter_spec.rb +0 -51
  44. data/spec/datagrid/filters/extended_boolean_filter_spec.rb +0 -46
  45. data/spec/datagrid/filters/float_filter_spec.rb +0 -15
  46. data/spec/datagrid/filters/integer_filter_spec.rb +0 -144
  47. data/spec/datagrid/filters/string_filter_spec.rb +0 -35
  48. data/spec/datagrid/filters_spec.rb +0 -332
  49. data/spec/datagrid/form_builder_spec.rb +0 -614
  50. data/spec/datagrid/helper_spec.rb +0 -640
  51. data/spec/datagrid/ordering_spec.rb +0 -150
  52. data/spec/datagrid/scaffold_spec.rb +0 -45
  53. data/spec/datagrid/stylesheet_spec.rb +0 -12
  54. data/spec/datagrid/utils_spec.rb +0 -19
  55. data/spec/datagrid_spec.rb +0 -83
  56. data/spec/spec_helper.rb +0 -114
  57. data/spec/support/active_record.rb +0 -38
  58. data/spec/support/configuration.rb +0 -28
  59. data/spec/support/i18n_helpers.rb +0 -6
  60. data/spec/support/matchers.rb +0 -101
  61. data/spec/support/mongo_mapper.rb +0 -32
  62. data/spec/support/mongoid.rb +0 -36
  63. data/spec/support/sequel.rb +0 -39
  64. data/spec/support/simple_report.rb +0 -64
  65. data/spec/support/test_partials/_actions.html.erb +0 -1
  66. data/spec/support/test_partials/client/datagrid/_form.html.erb +0 -13
  67. data/spec/support/test_partials/client/datagrid/_head.html.erb +0 -9
  68. data/spec/support/test_partials/client/datagrid/_order_for.html.erb +0 -11
  69. data/spec/support/test_partials/client/datagrid/_row.html.erb +0 -6
  70. data/spec/support/test_partials/client/datagrid/_table.html.erb +0 -19
  71. data/spec/support/test_partials/custom_checkboxes/_enum_checkboxes.html.erb +0 -1
  72. data/spec/support/test_partials/custom_form/_form.html.erb +0 -7
  73. data/spec/support/test_partials/custom_range/_range_filter.html.erb +0 -1
@@ -106,6 +106,10 @@ class Datagrid::Columns::Column
106
106
  !! options[:mandatory]
107
107
  end
108
108
 
109
+ def mandatory_explicitly_set?
110
+ options.key?(:mandatory)
111
+ end
112
+
109
113
  def enabled?(grid)
110
114
  ::Datagrid::Utils.process_availability(grid, options[:if], options[:unless])
111
115
  end
data/lib/datagrid/core.rb CHANGED
@@ -9,7 +9,7 @@ module Datagrid
9
9
  base.class_eval do
10
10
  class_attribute :scope_value
11
11
 
12
- class_attribute :datagrid_attributes
12
+ class_attribute :datagrid_attributes, instance_writer: false
13
13
  self.datagrid_attributes = []
14
14
 
15
15
  class_attribute :dynamic_block, :instance_writer => false
@@ -163,6 +163,9 @@ module Datagrid
163
163
  end
164
164
 
165
165
  # Returns serializable query arguments skipping all nil values
166
+ #
167
+ # grid = ProductsGrid.new(category: 'dresses', available: true)
168
+ # grid.as_query # => {category: 'dresses', available: true}
166
169
  def as_query
167
170
  attributes = self.attributes.clone
168
171
  attributes.each do |key, value|
@@ -171,6 +174,15 @@ module Datagrid
171
174
  attributes
172
175
  end
173
176
 
177
+ # Returns query parameters to link this grid from a page
178
+ #
179
+ # grid = ProductsGrid.new(category: 'dresses', available: true)
180
+ # Rails.application.routes.url_helpers.products_path(grid.query_params)
181
+ # # => "/products?products_grid[category]=dresses&products_grid[available]=true"
182
+ def query_params(attributes = {})
183
+ { param_name.to_sym => as_query.merge(attributes) }
184
+ end
185
+
174
186
  # Redefines scope at instance level
175
187
  #
176
188
  # class MyGrid
@@ -105,7 +105,8 @@ module Datagrid
105
105
  if scope.limit_value
106
106
  raise Datagrid::ConfigurationError, "ActiveRecord can not use batches in combination with SQL limit"
107
107
  end
108
- scope.find_each(batch_size ? { :batch_size => batch_size} : {}, &block)
108
+ options = batch_size ? { batch_size: batch_size } : {}
109
+ scope.find_each(**options, &block)
109
110
  end
110
111
 
111
112
  def default_cache_key(asset)
@@ -12,7 +12,11 @@ module Datagrid
12
12
  end
13
13
 
14
14
  def to_scope(scope)
15
- scope.where(nil)
15
+ if scope.respond_to?(:all)
16
+ scope.all
17
+ else
18
+ scope.where(nil)
19
+ end
16
20
  end
17
21
 
18
22
  def where(scope, attribute, value)
@@ -90,14 +90,11 @@ module Datagrid
90
90
  # Accepts a block or a symbol with an instance method name
91
91
  # * <tt>:unless</tt> - specify the reverse condition when the filter can be dislayed and used.
92
92
  # Accepts a block or a symbol with an instance method name
93
+ # * <tt>:input_options</tt> - options passed when rendering html input tag attributes
94
+ # * <tt>:label_options</tt> - options passed when rendering html label tag attributes
93
95
  #
94
96
  # See: https://github.com/bogdan/datagrid/wiki/Filters for examples
95
- def filter(name, type = :default, options = {}, &block)
96
- if type.is_a?(Hash)
97
- options = type
98
- type = :default
99
- end
100
-
97
+ def filter(name, type = :default, **options, &block)
101
98
  klass = type.is_a?(Class) ? type : FILTER_TYPES[type]
102
99
  raise ConfigurationError, "filter class #{type.inspect} not found" unless klass
103
100
 
@@ -84,6 +84,14 @@ class Datagrid::Filters::BaseFilter #:nodoc:
84
84
  options[:allow_blank]
85
85
  end
86
86
 
87
+ def input_options
88
+ options[:input_options] || {}
89
+ end
90
+
91
+ def label_options
92
+ options[:label_options] || {}
93
+ end
94
+
87
95
  def form_builder_helper_name
88
96
  self.class.form_builder_helper_name
89
97
  end
@@ -16,10 +16,10 @@ module Datagrid
16
16
  from_options = normalize_composite_filter_options(from_options, field)
17
17
  to_options = normalize_composite_filter_options(to_options, field)
18
18
 
19
- filter(from_options[:name] || :"from_#{field.to_s.tr('.', '_')}", :date, from_options) do |date, scope, grid|
19
+ filter(from_options[:name] || :"from_#{field.to_s.tr('.', '_')}", :date, **from_options) do |date, scope, grid|
20
20
  grid.driver.greater_equal(scope, field, date)
21
21
  end
22
- filter(to_options[:name] || :"to_#{field.to_s.tr('.', '_')}", :date, to_options) do |date, scope, grid|
22
+ filter(to_options[:name] || :"to_#{field.to_s.tr('.', '_')}", :date, **to_options) do |date, scope, grid|
23
23
  grid.driver.less_equal(scope, field, date)
24
24
  end
25
25
  end
@@ -27,10 +27,10 @@ module Datagrid
27
27
  def integer_range_filters(field, from_options = {}, to_options = {})
28
28
  from_options = normalize_composite_filter_options(from_options, field)
29
29
  to_options = normalize_composite_filter_options(to_options, field)
30
- filter(from_options[:name] || :"from_#{field.to_s.tr('.', '_')}", :integer, from_options) do |value, scope, grid|
30
+ filter(from_options[:name] || :"from_#{field.to_s.tr('.', '_')}", :integer, **from_options) do |value, scope, grid|
31
31
  grid.driver.greater_equal(scope, field, value)
32
32
  end
33
- filter(to_options[:name] || :"to_#{field.to_s.tr('.', '_')}", :integer, to_options) do |value, scope, grid|
33
+ filter(to_options[:name] || :"to_#{field.to_s.tr('.', '_')}", :integer, **to_options) do |value, scope, grid|
34
34
  grid.driver.less_equal(scope, field, value)
35
35
  end
36
36
  end
@@ -6,17 +6,19 @@ module Datagrid
6
6
  # Returns a form input html for the corresponding filter name
7
7
  def datagrid_filter(filter_or_attribute, options = {}, &block)
8
8
  filter = datagrid_get_filter(filter_or_attribute)
9
- options = add_html_classes(options, filter.name, datagrid_filter_html_class(filter))
9
+ options = {
10
+ **filter.input_options,
11
+ **add_html_classes(options, filter.name, datagrid_filter_html_class(filter)),
12
+ }
10
13
  # Prevent partials option from appearing in HTML attributes
11
14
  options.delete(:partials) # Legacy option
12
15
  self.send(filter.form_builder_helper_name, filter, options, &block)
13
16
  end
14
17
 
15
18
  # Returns a form label html for the corresponding filter name
16
- def datagrid_label(filter_or_attribute, options_or_text = {}, options = {}, &block)
19
+ def datagrid_label(filter_or_attribute, text = nil, **options, &block)
17
20
  filter = datagrid_get_filter(filter_or_attribute)
18
- text, options = options_or_text.is_a?(Hash) ? [filter.header, options_or_text] : [options_or_text, options]
19
- label(filter.name, text, options, &block)
21
+ label(filter.name, text || filter.header, **filter.label_options, **options, &block)
20
22
  end
21
23
 
22
24
  protected
@@ -42,7 +44,7 @@ module Datagrid
42
44
 
43
45
  def datagrid_default_filter(attribute_or_filter, options = {})
44
46
  filter = datagrid_get_filter(attribute_or_filter)
45
- text_field filter.name, options.reverse_merge(:value => object.filter_value_as_string(filter))
47
+ text_field filter.name, value: object.filter_value_as_string(filter), **options
46
48
  end
47
49
 
48
50
  def datagrid_enum_filter(attribute_or_filter, options = {}, &block)
@@ -65,16 +67,17 @@ module Datagrid
65
67
  }
66
68
  )
67
69
  else
68
- if !options.has_key?(:multiple) && filter.multiple?
69
- options[:multiple] = true
70
- end
71
70
  select(
72
71
  filter.name,
73
72
  object.select_options(filter) || [],
74
- {:include_blank => filter.include_blank,
75
- :prompt => filter.prompt,
76
- :include_hidden => false},
77
- options, &block
73
+ {
74
+ include_blank: filter.include_blank,
75
+ prompt: filter.prompt,
76
+ include_hidden: false
77
+ },
78
+ multiple: filter.multiple?,
79
+ **options,
80
+ &block
78
81
  )
79
82
  end
80
83
  end
@@ -119,7 +122,7 @@ module Datagrid
119
122
  {:include_blank => false, :include_hidden => false, :prompt => false, :selected => operation },
120
123
  add_html_classes(options, "operation")
121
124
  )
122
- value_input = text_field(filter.name, add_html_classes(options, "value").merge(:value => value))
125
+ value_input = text_field(filter.name, **add_html_classes(options, "value"), value: value)
123
126
  [field_input, operation_input, value_input].join("\n").html_safe
124
127
  end
125
128
 
@@ -129,7 +132,7 @@ module Datagrid
129
132
  # select options format may vary
130
133
  value = value.last if value.is_a?(Array)
131
134
  # don't render any visible input when there is nothing to choose from
132
- hidden_field(name, html_options.merge(value: value))
135
+ hidden_field(name, **html_options, value: value)
133
136
  else
134
137
  select(name, variants, select_options, html_options)
135
138
  end
@@ -177,7 +180,7 @@ module Datagrid
177
180
  end
178
181
 
179
182
  def datagrid_get_attribute(attribute_or_filter)
180
- Utils.string_like?(attribute_or_filter) ? attribute_or_filter : attribute_or_filter.name
183
+ Utils.string_like?(attribute_or_filter) ? attribute_or_filter : attribute_or_filter.name
181
184
  end
182
185
 
183
186
  def datagrid_get_filter(attribute_or_filter)
@@ -38,8 +38,8 @@ module Datagrid
38
38
  # and needs different columns. Default: all defined columns.
39
39
  # * <tt>:partials</tt> - Path for partials lookup.
40
40
  # Default: 'datagrid'.
41
- def datagrid_table(grid, *args)
42
- datagrid_renderer.table(grid, *args)
41
+ def datagrid_table(grid, assets = grid.assets, **options)
42
+ datagrid_renderer.table(grid, assets, **options)
43
43
  end
44
44
 
45
45
  # Renders HTML table header for given grid instance using columns defined in it
@@ -73,7 +73,7 @@ module Datagrid
73
73
  # %td= row.project_name
74
74
  # %td.project-status{class: row.status}= row.status
75
75
  def datagrid_rows(grid, assets = grid.assets, **options, &block)
76
- datagrid_renderer.rows(grid, assets, options, &block)
76
+ datagrid_renderer.rows(grid, assets, **options, &block)
77
77
  end
78
78
 
79
79
  # Renders ordering controls for the given column name
@@ -34,11 +34,9 @@ module Datagrid
34
34
  _render_partial('form', options[:partials], {:grid => grid, :options => options})
35
35
  end
36
36
 
37
- def table(grid, *args)
38
- options = args.extract_options!
37
+ def table(grid, assets, **options)
39
38
  options[:html] ||= {}
40
39
  options[:html][:class] ||= "datagrid #{@template.dom_class(grid)}"
41
- assets = args.any? ? args.shift : grid.assets
42
40
 
43
41
  _render_partial('table', options[:partials],
44
42
  {
@@ -81,10 +79,9 @@ module Datagrid
81
79
  def order_path(grid, column, descending, request)
82
80
  column = grid.column_by_name(column)
83
81
  query = request ? request.query_parameters : {}
84
- order_parameter = {grid.param_name => grid.as_query.merge(:order => column.name, :descending => descending)}
85
82
  ActionDispatch::Http::URL.path_for(
86
83
  path: request ? request.path : '/',
87
- params: query.merge(order_parameter)
84
+ params: query.merge(grid.query_params(order: column.name, descending: descending))
88
85
  )
89
86
  end
90
87
 
@@ -72,12 +72,8 @@ module Datagrid
72
72
  end
73
73
 
74
74
  def apply_args(*args, &block)
75
- return block.call(*args) if block.arity < 0
76
- args = args.clone
77
- (args.size - block.arity).times do
78
- args.pop
79
- end
80
- block.call(*args)
75
+ size = block.arity < 0 ? args.size : block.arity
76
+ block.call(*args.slice(0, size))
81
77
  end
82
78
 
83
79
  def parse_date(value)
@@ -0,0 +1,3 @@
1
+ module Datagrid
2
+ VERSION = "1.6.3"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datagrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.9
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdan Gusiev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-10 00:00:00.000000000 Z
11
+ date: 2020-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,146 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: jeweler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 2.1.2
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 2.1.2
55
- - !ruby/object:Gem::Dependency
56
- name: pry-byebug
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: rspec
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '3'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '3'
83
- - !ruby/object:Gem::Dependency
84
- name: nokogiri
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: sqlite3
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 1.3.6
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 1.3.6
111
- - !ruby/object:Gem::Dependency
112
- name: sequel
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
125
- - !ruby/object:Gem::Dependency
126
- name: mongoid
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
139
- - !ruby/object:Gem::Dependency
140
- name: bson
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
153
- - !ruby/object:Gem::Dependency
154
- name: bson_ext
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
27
  description: This allows you to easily build datagrid aka data tables with sortable
168
28
  columns and filters
169
29
  email: agresso@gmail.com
@@ -171,15 +31,11 @@ executables: []
171
31
  extensions: []
172
32
  extra_rdoc_files:
173
33
  - LICENSE.txt
34
+ - Readme.markdown
174
35
  files:
175
- - ".document"
176
- - ".rspec"
177
- - ".travis.yml"
178
- - Gemfile
36
+ - CHANGELOG.md
179
37
  - LICENSE.txt
180
- - Rakefile
181
38
  - Readme.markdown
182
- - VERSION
183
39
  - app/assets/stylesheets/datagrid.sass
184
40
  - app/views/datagrid/_enum_checkboxes.html.erb
185
41
  - app/views/datagrid/_form.html.erb
@@ -228,54 +84,8 @@ files:
228
84
  - lib/datagrid/rspec.rb
229
85
  - lib/datagrid/scaffold.rb
230
86
  - lib/datagrid/utils.rb
87
+ - lib/datagrid/version.rb
231
88
  - lib/tasks/datagrid_tasks.rake
232
- - spec/datagrid/active_model_spec.rb
233
- - spec/datagrid/column_names_attribute_spec.rb
234
- - spec/datagrid/columns/column_spec.rb
235
- - spec/datagrid/columns_spec.rb
236
- - spec/datagrid/core_spec.rb
237
- - spec/datagrid/drivers/active_record_spec.rb
238
- - spec/datagrid/drivers/array_spec.rb
239
- - spec/datagrid/drivers/mongo_mapper_spec.rb
240
- - spec/datagrid/drivers/mongoid_spec.rb
241
- - spec/datagrid/drivers/sequel_spec.rb
242
- - spec/datagrid/filters/base_filter_spec.rb
243
- - spec/datagrid/filters/boolean_enum_filter_spec.rb
244
- - spec/datagrid/filters/composite_filters_spec.rb
245
- - spec/datagrid/filters/date_filter_spec.rb
246
- - spec/datagrid/filters/date_time_filter_spec.rb
247
- - spec/datagrid/filters/dynamic_filter_spec.rb
248
- - spec/datagrid/filters/enum_filter_spec.rb
249
- - spec/datagrid/filters/extended_boolean_filter_spec.rb
250
- - spec/datagrid/filters/float_filter_spec.rb
251
- - spec/datagrid/filters/integer_filter_spec.rb
252
- - spec/datagrid/filters/string_filter_spec.rb
253
- - spec/datagrid/filters_spec.rb
254
- - spec/datagrid/form_builder_spec.rb
255
- - spec/datagrid/helper_spec.rb
256
- - spec/datagrid/ordering_spec.rb
257
- - spec/datagrid/scaffold_spec.rb
258
- - spec/datagrid/stylesheet_spec.rb
259
- - spec/datagrid/utils_spec.rb
260
- - spec/datagrid_spec.rb
261
- - spec/spec_helper.rb
262
- - spec/support/active_record.rb
263
- - spec/support/configuration.rb
264
- - spec/support/i18n_helpers.rb
265
- - spec/support/matchers.rb
266
- - spec/support/mongo_mapper.rb
267
- - spec/support/mongoid.rb
268
- - spec/support/sequel.rb
269
- - spec/support/simple_report.rb
270
- - spec/support/test_partials/_actions.html.erb
271
- - spec/support/test_partials/client/datagrid/_form.html.erb
272
- - spec/support/test_partials/client/datagrid/_head.html.erb
273
- - spec/support/test_partials/client/datagrid/_order_for.html.erb
274
- - spec/support/test_partials/client/datagrid/_row.html.erb
275
- - spec/support/test_partials/client/datagrid/_table.html.erb
276
- - spec/support/test_partials/custom_checkboxes/_enum_checkboxes.html.erb
277
- - spec/support/test_partials/custom_form/_form.html.erb
278
- - spec/support/test_partials/custom_range/_range_filter.html.erb
279
89
  - templates/base.rb.erb
280
90
  - templates/controller.rb.erb
281
91
  - templates/grid.rb.erb
@@ -283,8 +93,13 @@ files:
283
93
  homepage: http://github.com/bogdan/datagrid
284
94
  licenses:
285
95
  - MIT
286
- metadata: {}
287
- post_install_message:
96
+ metadata:
97
+ homepage_uri: https://github.com/bogdan/datagrid
98
+ bug_tracker_uri: https://github.com/bogdan/datagrid/issues
99
+ documentation_uri: https://github.com/bogdan/datagrid/wiki
100
+ changelog_uri: https://github.com/bogdan/datagrid/blob/master/CHANGELOG.md
101
+ source_code_uri: https://github.com/bogdan/datagrid
102
+ post_install_message:
288
103
  rdoc_options: []
289
104
  require_paths:
290
105
  - lib
@@ -299,9 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
114
  - !ruby/object:Gem::Version
300
115
  version: '0'
301
116
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.8
304
- signing_key:
117
+ rubygems_version: 3.2.3
118
+ signing_key:
305
119
  specification_version: 4
306
120
  summary: Ruby gem to create datagrids
307
121
  test_files: []