datagrid 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -12,7 +12,7 @@ group :development do
12
12
  gem "byebug", :platform => ["ruby_20", "ruby_21"]
13
13
  gem "ruby-debug", :platform => "ruby_18"
14
14
 
15
- gem "rspec", ">= 2.14"
15
+ gem "rspec", ">= 3"
16
16
  gem "nokogiri" # used to test html output
17
17
 
18
18
  gem "sqlite3"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -2,16 +2,14 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: datagrid 1.2.2 ruby lib
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "datagrid"
9
- s.version = "1.2.2"
8
+ s.version = "1.2.3"
10
9
 
11
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
11
  s.authors = ["Bogdan Gusiev"]
14
- s.date = "2014-05-24"
12
+ s.date = "2014-07-01"
15
13
  s.description = "This allows you to easily build datagrid aka data tables with sortable columns and filters"
16
14
  s.email = "agresso@gmail.com"
17
15
  s.extra_rdoc_files = [
@@ -101,6 +99,8 @@ Gem::Specification.new do |s|
101
99
  "spec/spec_helper.rb",
102
100
  "spec/support/active_record.rb",
103
101
  "spec/support/configuration.rb",
102
+ "spec/support/locale/custom_range_format.yml",
103
+ "spec/support/locale/deprecated_range_separator.yml",
104
104
  "spec/support/matchers.rb",
105
105
  "spec/support/mongo_mapper.rb",
106
106
  "spec/support/mongoid.rb",
@@ -117,11 +117,12 @@ Gem::Specification.new do |s|
117
117
  ]
118
118
  s.homepage = "http://github.com/bogdan/datagrid"
119
119
  s.licenses = ["MIT"]
120
- s.rubygems_version = "2.2.2"
120
+ s.require_paths = ["lib"]
121
+ s.rubygems_version = "1.8.25"
121
122
  s.summary = "Ruby gem to create datagrids"
122
123
 
123
124
  if s.respond_to? :specification_version then
124
- s.specification_version = 4
125
+ s.specification_version = 3
125
126
 
126
127
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
127
128
  s.add_runtime_dependency(%q<rails>, [">= 3.0"])
@@ -130,7 +131,7 @@ Gem::Specification.new do |s|
130
131
  s.add_development_dependency(%q<debugger>, [">= 0"])
131
132
  s.add_development_dependency(%q<byebug>, [">= 0"])
132
133
  s.add_development_dependency(%q<ruby-debug>, [">= 0"])
133
- s.add_development_dependency(%q<rspec>, [">= 2.14"])
134
+ s.add_development_dependency(%q<rspec>, [">= 3"])
134
135
  s.add_development_dependency(%q<nokogiri>, [">= 0"])
135
136
  s.add_development_dependency(%q<sqlite3>, [">= 0"])
136
137
  s.add_development_dependency(%q<mongoid>, ["= 2.2.2"])
@@ -145,7 +146,7 @@ Gem::Specification.new do |s|
145
146
  s.add_dependency(%q<debugger>, [">= 0"])
146
147
  s.add_dependency(%q<byebug>, [">= 0"])
147
148
  s.add_dependency(%q<ruby-debug>, [">= 0"])
148
- s.add_dependency(%q<rspec>, [">= 2.14"])
149
+ s.add_dependency(%q<rspec>, [">= 3"])
149
150
  s.add_dependency(%q<nokogiri>, [">= 0"])
150
151
  s.add_dependency(%q<sqlite3>, [">= 0"])
151
152
  s.add_dependency(%q<mongoid>, ["= 2.2.2"])
@@ -161,7 +162,7 @@ Gem::Specification.new do |s|
161
162
  s.add_dependency(%q<debugger>, [">= 0"])
162
163
  s.add_dependency(%q<byebug>, [">= 0"])
163
164
  s.add_dependency(%q<ruby-debug>, [">= 0"])
164
- s.add_dependency(%q<rspec>, [">= 2.14"])
165
+ s.add_dependency(%q<rspec>, [">= 3"])
165
166
  s.add_dependency(%q<nokogiri>, [">= 0"])
166
167
  s.add_dependency(%q<sqlite3>, [">= 0"])
167
168
  s.add_dependency(%q<mongoid>, ["= 2.2.2"])
@@ -113,6 +113,7 @@ module Datagrid
113
113
  module InstanceMethods
114
114
 
115
115
  def initialize(*args, &block) # :nodoc:
116
+ self.filters = self.class.filters.clone
116
117
  self.filters.each do |filter|
117
118
  self[filter.name] = filter.default
118
119
  end
@@ -120,12 +121,7 @@ module Datagrid
120
121
  end
121
122
 
122
123
  def assets # :nodoc:
123
- apply_filters(super, self.class.filters)
124
- end
125
-
126
- # Returns all defined filters Array
127
- def filters
128
- self.class.filters
124
+ apply_filters(super, filters)
129
125
  end
130
126
 
131
127
  # Returns filter value for given filter definition
@@ -116,18 +116,22 @@ module Datagrid
116
116
 
117
117
  from_options = datagrid_range_filter_options(object, filter, :from, options)
118
118
  to_options = datagrid_range_filter_options(object, filter, :to, options)
119
+ from_input = text_field(filter.name, from_options)
120
+ to_input = text_field(filter.name, to_options)
121
+
119
122
  # 2 inputs: "from date" and "to date" to specify a range
120
- [
121
- text_field(filter.name, from_options),
122
- I18n.t("datagrid.filters.#{type}.range_separator"),
123
- text_field(filter.name, to_options)
124
- ].join.html_safe
123
+ if separator = I18n.t("datagrid.filters.#{type}.range_separator", default: '').presence
124
+ # Support deprecated translation option: range_separator
125
+ [from_input, separator, to_input].join.html_safe
126
+ else
127
+ # More flexible range_format option
128
+ I18n.t("datagrid.filters.#{type}.range_format", :from_input => from_input, :to_input => to_input).html_safe
129
+ end
125
130
  else
126
131
  datagrid_default_filter(filter, options)
127
132
  end
128
133
  end
129
134
 
130
-
131
135
  def datagrid_range_filter_options(object, filter, type, options)
132
136
  type_method_map = {:from => :first, :to => :last}
133
137
  options = add_html_classes(options, type)
@@ -11,14 +11,14 @@ en:
11
11
  reset: "Reset"
12
12
  filters:
13
13
  integer:
14
- range_separator:
15
- "<span class=\"separator integer\"> - </span>"
14
+ range_format:
15
+ "%{from_input}<span class=\"separator integer\"> - </span>%{to_input}"
16
16
  date:
17
- range_separator:
18
- "<span class=\"separator date\"> - </span>"
17
+ range_format:
18
+ "%{from_input}<span class=\"separator date\"> - </span>%{to_input}"
19
19
  datetime:
20
- range_separator:
21
- "<span class=\"separator datetime\"> - </span>"
20
+ range_format:
21
+ "%{from_input}<span class=\"separator datetime\"> - </span>%{to_input}"
22
22
 
23
23
  eboolean:
24
24
  "yes": "Yes"
@@ -8,8 +8,6 @@ shared_examples_for "Datagrid" do
8
8
  subject.assets.should_not be_empty
9
9
  end
10
10
 
11
- its(:data) {should_not be_empty}
12
-
13
11
  described_class.columns(:data => true).each do |column|
14
12
  describe "column ##{column.name}" do
15
13
 
@@ -43,22 +43,20 @@ class Datagrid::Scaffold < Rails::Generators::NamedBase
43
43
  end
44
44
 
45
45
  def paginate_code
46
- if defined?(Kaminari)
46
+ if defined?(::Kaminari) || defined?(::WillPaginate)
47
47
  "page(params[:page])"
48
- elsif defined?(WillPaginate)
49
- "paginate(:page => params[:page])"
50
48
  else
51
49
  "paginate_somehow"
52
50
  end
53
51
  end
54
52
 
55
53
  def pagination_helper_code
56
- if defined?(Kaminari)
57
- "paginate(@assets)"
58
- elsif defined?(WillPaginate)
59
- "will_paginate(@assets)"
54
+ if defined?(::Kaminari)
55
+ "paginate(@grid.assets)"
56
+ elsif defined?(::WillPaginate)
57
+ "will_paginate(@grid.assets)"
60
58
  else
61
- "some_pagination_helper(@assets)"
59
+ "some_pagination_helper(@grid.assets)"
62
60
  end
63
61
 
64
62
  end
@@ -98,8 +98,8 @@ describe Datagrid::Columns do
98
98
  end
99
99
  Entry.create!(:category => "foo")
100
100
  Entry.create!(:category => "foobar")
101
- expect(report.rows.first.first).to be_true
102
- expect(report.rows.last.first).to be_false
101
+ expect(report.rows.first.first).to eq(true)
102
+ expect(report.rows.last.first).to eq(false)
103
103
  end
104
104
 
105
105
  it "should inherit columns correctly" do
@@ -1,3 +1,5 @@
1
+ require "spec_helper"
2
+
1
3
  describe Datagrid::Drivers::Mongoid, :mongoid do
2
4
 
3
5
  describe ".match?" do
@@ -66,8 +68,8 @@ describe Datagrid::Drivers::Mongoid, :mongoid do
66
68
  let(:_attributes) { {:from_group_id => 3} }
67
69
 
68
70
  describe '#assets' do
69
- subject { super().assets }
70
- it {should_not include(first)}
71
+ subject { super().assets.map(&:_id) }
72
+ it {should_not include(first.id)}
71
73
  end
72
74
 
73
75
  describe '#assets' do
@@ -169,10 +169,26 @@ describe Datagrid::Filters do
169
169
  filter(:id)
170
170
  filter(:name)
171
171
  end
172
- e = Entry.create!(:name => 'hello')
172
+ Entry.create!(:name => 'hello')
173
173
  grid.attributes = {:id => -1, :name => 'hello'}
174
174
  expect(grid.assets).to be_empty
175
175
  expect(grid.filter_by(:name)).not_to be_empty
176
176
  end
177
177
  end
178
+
179
+ it "should support instance filter rejection" do
180
+ grid = test_report(:name => 'hello') do
181
+ scope { Entry }
182
+ filter(:id)
183
+ filter(:name)
184
+ end
185
+
186
+ Entry.create!(:name => 'hello1')
187
+ expect(grid.assets).to be_empty
188
+ grid.filters.reject! {|f| f.name == :name }
189
+ expect(grid.filters.map(&:name)).to eq([:id])
190
+ expect(grid.assets).to_not be_empty
191
+ expect(grid.class.filters.map(&:name)).to eq([:id, :name])
192
+
193
+ end
178
194
  end
@@ -123,6 +123,34 @@ describe Datagrid::FormBuilder do
123
123
  '<input class="group_id integer_filter to" multiple name="report[group_id][]" size="30" type="text" value="1"/>'
124
124
  )}
125
125
  end
126
+
127
+ context "when custom format translation specified" do
128
+ let(:_range) { nil }
129
+ around(:each) do |example|
130
+ I18n.load_path << File.expand_path('../../support/locale/custom_range_format.yml', __FILE__)
131
+ I18n.reload!
132
+ example.run
133
+ I18n.load_path.pop
134
+ I18n.reload!
135
+ end
136
+ it { should equal_to_dom(
137
+ 'from <input class="group_id integer_filter from" multiple name="report[group_id][]" size="30" type="text"> to <input class="group_id integer_filter to" multiple name="report[group_id][]" size="30" type="text">'
138
+ )}
139
+ end
140
+ context "when deprecated separator is specified" do
141
+ let(:_range) { nil }
142
+ around(:each) do |example|
143
+ I18n.load_path << File.expand_path('../../support/locale/deprecated_range_separator.yml', __FILE__)
144
+ I18n.reload!
145
+ example.run
146
+ I18n.load_path.pop
147
+ I18n.reload!
148
+
149
+ end
150
+ it { should equal_to_dom(
151
+ '<input class="group_id integer_filter from" multiple name="report[group_id][]" size="30" type="text"> | <input class="group_id integer_filter to" multiple name="report[group_id][]" size="30" type="text">'
152
+ )}
153
+ end
126
154
  end
127
155
 
128
156
 
@@ -11,7 +11,20 @@ describe Datagrid::Scaffold do
11
11
 
12
12
  describe '.pagination_helper_code' do
13
13
  it 'should fall through options successfully' do
14
- expect(subject.pagination_helper_code).to eql('some_pagination_helper(@assets)')
14
+ expect(subject.pagination_helper_code).to eql('some_pagination_helper(@grid.assets)')
15
+ end
16
+
17
+ context "when Kaminari exists" do
18
+ before(:each) do
19
+ Object.const_set("Kaminari", 1)
20
+ end
21
+ it 'should fall through options successfully' do
22
+ expect(subject.pagination_helper_code).to eql('paginate(@grid.assets)')
23
+ end
24
+
25
+ after(:each) do
26
+ Object.send(:remove_const, "Kaminari")
27
+ end
15
28
  end
16
29
  end
17
30
  end
@@ -6,13 +6,13 @@ describe Datagrid::Utils do
6
6
  describe ".warn_once" do
7
7
  it "should work" do
8
8
  silence_warnings do
9
- expect(Datagrid::Utils.warn_once("hello", 0.2)).to be_true
9
+ expect(Datagrid::Utils.warn_once("hello", 0.2)).to eq(true)
10
10
  end
11
11
  sleep(0.1)
12
- expect(Datagrid::Utils.warn_once("hello", 0.2)).to be_false
12
+ expect(Datagrid::Utils.warn_once("hello", 0.2)).to eq(false)
13
13
  sleep(0.2)
14
14
  silence_warnings do
15
- expect(Datagrid::Utils.warn_once("hello", 0.2)).to be_true
15
+ expect(Datagrid::Utils.warn_once("hello", 0.2)).to eq(true)
16
16
  end
17
17
  end
18
18
  end
@@ -74,13 +74,16 @@ RSpec.configure do |config|
74
74
 
75
75
  end
76
76
 
77
- config.treat_symbols_as_metadata_keys_with_true_values = true
78
-
79
77
  if NO_MONGO
80
78
  config.filter_run_excluding :mongoid => true
81
79
  config.filter_run_excluding :mongomapper => true
82
80
  end
83
81
 
82
+ config.expect_with :rspec do |c|
83
+ #c.syntax = :expect
84
+ c.syntax = [:should, :expect]
85
+ end
86
+
84
87
  end
85
88
 
86
89
 
@@ -0,0 +1,7 @@
1
+ en:
2
+ datagrid:
3
+ filters:
4
+ integer:
5
+ range_format:
6
+ "from %{from_input} to %{to_input}"
7
+
@@ -0,0 +1,5 @@
1
+ en:
2
+ datagrid:
3
+ filters:
4
+ integer:
5
+ range_separator: " | "
@@ -82,7 +82,7 @@ class CssPattern
82
82
  end
83
83
  end
84
84
 
85
- def negative_failure_message
85
+ def failure_message
86
86
  "Expected do not match dom pattern. But it was"
87
87
  end
88
88
 
@@ -1,8 +1,9 @@
1
1
  class <%= grid_controller_name %> < ApplicationController
2
2
 
3
3
  def index
4
- @grid = <%= grid_class_name %>.new(params[:<%= grid_ivar_name %>])
5
- @assets = @grid.assets.<%= paginate_code %>
4
+ @grid = <%= grid_class_name %>.new(params[:<%= grid_ivar_name %>]) do |scope|
5
+ scope.<%= paginate_code %>
6
+ end
6
7
  end
7
8
 
8
9
  end
@@ -1,5 +1,5 @@
1
1
  <%%= datagrid_form_for @grid, :method => :get, :url => <%= grid_route_name %> %>
2
2
 
3
3
  <%%= <%=pagination_helper_code%> %>
4
- <%%= datagrid_table @grid, @assets %>
4
+ <%%= datagrid_table @grid %>
5
5
  <%%= <%=pagination_helper_code%> %>
metadata CHANGED
@@ -1,144 +1,164 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datagrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Bogdan Gusiev
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-05-24 00:00:00.000000000 Z
12
+ date: 2014-07-01 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '3.0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - ">="
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: bundler
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - ">="
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - ">="
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: jeweler
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - ">="
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - ">="
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: debugger
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - ">="
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - ">="
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: byebug
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
- - - ">="
83
+ - - ! '>='
74
84
  - !ruby/object:Gem::Version
75
85
  version: '0'
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
- - - ">="
91
+ - - ! '>='
81
92
  - !ruby/object:Gem::Version
82
93
  version: '0'
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: ruby-debug
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - ">="
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - ">="
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rspec
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - ">="
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
- version: '2.14'
117
+ version: '3'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - ">="
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
- version: '2.14'
125
+ version: '3'
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: nokogiri
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
- - - ">="
131
+ - - ! '>='
116
132
  - !ruby/object:Gem::Version
117
133
  version: '0'
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
- - - ">="
139
+ - - ! '>='
123
140
  - !ruby/object:Gem::Version
124
141
  version: '0'
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: sqlite3
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - ">="
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: '0'
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - ">="
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: '0'
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: mongoid
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
163
  - - '='
144
164
  - !ruby/object:Gem::Version
@@ -146,6 +166,7 @@ dependencies:
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
171
  - - '='
151
172
  - !ruby/object:Gem::Version
@@ -153,20 +174,23 @@ dependencies:
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: mongo_mapper
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - ">="
179
+ - - ! '>='
158
180
  - !ruby/object:Gem::Version
159
181
  version: 0.11.0
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - ">="
187
+ - - ! '>='
165
188
  - !ruby/object:Gem::Version
166
189
  version: 0.11.0
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: bson
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
195
  - - '='
172
196
  - !ruby/object:Gem::Version
@@ -174,6 +198,7 @@ dependencies:
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
203
  - - '='
179
204
  - !ruby/object:Gem::Version
@@ -181,6 +206,7 @@ dependencies:
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: bson_ext
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
211
  - - '='
186
212
  - !ruby/object:Gem::Version
@@ -188,6 +214,7 @@ dependencies:
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
219
  - - '='
193
220
  - !ruby/object:Gem::Version
@@ -195,15 +222,17 @@ dependencies:
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: fastercsv
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
- - - ">="
227
+ - - ! '>='
200
228
  - !ruby/object:Gem::Version
201
229
  version: '0'
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
- - - ">="
235
+ - - ! '>='
207
236
  - !ruby/object:Gem::Version
208
237
  version: '0'
209
238
  description: This allows you to easily build datagrid aka data tables with sortable
@@ -214,9 +243,9 @@ extensions: []
214
243
  extra_rdoc_files:
215
244
  - LICENSE.txt
216
245
  files:
217
- - ".document"
218
- - ".rspec"
219
- - ".travis.yml"
246
+ - .document
247
+ - .rspec
248
+ - .travis.yml
220
249
  - Gemfile
221
250
  - LICENSE.txt
222
251
  - Rakefile
@@ -297,6 +326,8 @@ files:
297
326
  - spec/spec_helper.rb
298
327
  - spec/support/active_record.rb
299
328
  - spec/support/configuration.rb
329
+ - spec/support/locale/custom_range_format.yml
330
+ - spec/support/locale/deprecated_range_separator.yml
300
331
  - spec/support/matchers.rb
301
332
  - spec/support/mongo_mapper.rb
302
333
  - spec/support/mongoid.rb
@@ -313,25 +344,29 @@ files:
313
344
  homepage: http://github.com/bogdan/datagrid
314
345
  licenses:
315
346
  - MIT
316
- metadata: {}
317
347
  post_install_message:
318
348
  rdoc_options: []
319
349
  require_paths:
320
350
  - lib
321
351
  required_ruby_version: !ruby/object:Gem::Requirement
352
+ none: false
322
353
  requirements:
323
- - - ">="
354
+ - - ! '>='
324
355
  - !ruby/object:Gem::Version
325
356
  version: '0'
357
+ segments:
358
+ - 0
359
+ hash: 1488750085625410873
326
360
  required_rubygems_version: !ruby/object:Gem::Requirement
361
+ none: false
327
362
  requirements:
328
- - - ">="
363
+ - - ! '>='
329
364
  - !ruby/object:Gem::Version
330
365
  version: '0'
331
366
  requirements: []
332
367
  rubyforge_project:
333
- rubygems_version: 2.2.2
368
+ rubygems_version: 1.8.25
334
369
  signing_key:
335
- specification_version: 4
370
+ specification_version: 3
336
371
  summary: Ruby gem to create datagrids
337
372
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 24c667cba7edebeb70344d88471bae4d2264f63a
4
- data.tar.gz: e40ef73cdb3b643fccb14afb793feb67a95396f6
5
- SHA512:
6
- metadata.gz: 5991d5a4a1cabce8cb4051ccf43fb38f87ded3de02d39f3b662dafa4d7645a3e2530fa044409032bf6cd9d2447dc77cfb2cdd0ddf598434275b3f5e35a5452b9
7
- data.tar.gz: bf103e76c8ff87c1c521c49c63cf5d1ab4718f4f2af21413e9caf081f53701d4c6db2cadadb8b501562ca8c2bcc1c3ba9bcc371e5494883bb080dde2a95f8537