mighty_grid 1.0.0 → 2.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/README.md +20 -12
- data/features/support/env.rb +1 -0
- data/lib/generators/mighty_grid/install_generator.rb +1 -1
- data/lib/generators/mighty_grid/templates/{mighty_grid_config.rb → mighty_grid.rb} +1 -1
- data/lib/mighty_grid/base.rb +31 -111
- data/lib/mighty_grid/column.rb +1 -1
- data/lib/mighty_grid/engine.rb +11 -8
- data/lib/mighty_grid/exceptions.rb +9 -0
- data/lib/mighty_grid/filter_renderer.rb +18 -34
- data/lib/mighty_grid/filters/base.rb +27 -0
- data/lib/mighty_grid/filters/boolean_filter.rb +6 -0
- data/lib/mighty_grid/filters/custom_filter.rb +19 -0
- data/lib/mighty_grid/filters/enum_filter.rb +15 -0
- data/lib/mighty_grid/filters/string_filter.rb +6 -0
- data/lib/mighty_grid/filters/text_filter.rb +6 -0
- data/lib/mighty_grid/filters.rb +113 -0
- data/lib/mighty_grid/grid_renderer.rb +1 -1
- data/lib/mighty_grid/helpers/{mighty_grid_view_helpers.rb → view_helpers.rb} +13 -11
- data/lib/mighty_grid/map_type.rb +16 -0
- data/lib/mighty_grid/parameters.rb +58 -0
- data/lib/mighty_grid/version.rb +12 -1
- data/lib/mighty_grid.rb +64 -15
- data/spec/dummy/app/controllers/users_controller.rb +1 -1
- data/spec/dummy/app/grids/users_grid.rb +7 -0
- data/spec/dummy/app/views/users/index.html +1 -1
- data/spec/dummy/config/database.yml +29 -0
- data/spec/dummy/db/mg_test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +119680 -0
- data/spec/dummy/log/test.log +101833 -0
- data/spec/dummy/tmp/cache/assets/CCA/5E0/sprockets%2F48d34122dd1905305a6e63e3acb7c042 +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/CF9/100/sprockets%2F3d8f5e96de4712db63b98083f75739c3 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/EE0/sprockets%2Fccfd910338b6dcf575467d3009b46a0d +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D60/BE0/sprockets%2F37b5ab8193eccd1a29a0c61374c6b51e +0 -0
- data/spec/dummy/tmp/cache/assets/D82/820/sprockets%2Ff7c8a51f7f95d66a9d5112f898bc1fd0 +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/DF2/A80/sprockets%2F14a708b3bb2a924afdebae773e4ba5d8 +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/E0C/4E0/sprockets%2Fed4e3dbab857786229b1bdf7bbd289fe +0 -0
- data/spec/dummy/tmp/cache/assets/E14/600/sprockets%2F34cd0de2e0cd2c01e1c91b0ece565deb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e57c0129c0245eab3972d87efc6a9b9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/14a708b3bb2a924afdebae773e4ba5d8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1f8135a48e7ccbcb5361bb9e1f993929 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2479f30262de64213c228dc752440fd1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/37b5ab8193eccd1a29a0c61374c6b51e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3cbb6c28c7bbcc7c9b547346a59b4e7f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3d8f5e96de4712db63b98083f75739c3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/422d4d422d090c103e6b198600a90dac +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/48d34122dd1905305a6e63e3acb7c042 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a8c1ee1faf09397765710724fe3ee140 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bbd98f4797053ba2accbbca7b81cbbaf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cc03506b8188f839058f41aa8a4e19da +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cccf51971e81f175e527083a6ef4624d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ccfd910338b6dcf575467d3009b46a0d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d77d41650e5528f12146c728566cbf33 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed4e3dbab857786229b1bdf7bbd289fe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/14a708b3bb2a924afdebae773e4ba5d8 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/37b5ab8193eccd1a29a0c61374c6b51e +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/3d8f5e96de4712db63b98083f75739c3 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/422d4d422d090c103e6b198600a90dac +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/48d34122dd1905305a6e63e3acb7c042 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/a8c1ee1faf09397765710724fe3ee140 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cccf51971e81f175e527083a6ef4624d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ccfd910338b6dcf575467d3009b46a0d +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/ed4e3dbab857786229b1bdf7bbd289fe +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/lib/base_spec.rb +24 -15
- data/spec/lib/generators/install_generator_spec.rb +5 -3
- data/spec/lib/tmp/config/initializers/mighty_grid.rb +15 -0
- data/spec/lib/tmp/config/locales/mighty_grid.en.yml +6 -0
- data/spec/mighty_grid_spec.rb +17 -0
- data/spec/support/models.rb +1 -0
- metadata +154 -41
- data/.gitignore +0 -26
- data/.rspec +0 -2
- data/.travis.yml +0 -33
- data/Appraisals +0 -17
- data/gemfiles/rails_32.gemfile +0 -26
- data/gemfiles/rails_40.gemfile +0 -26
- data/gemfiles/rails_41.gemfile +0 -26
- data/lib/mighty_grid/config.rb +0 -49
- data/lib/mighty_grid/mighty_grid_controller.rb +0 -14
- data/lib/mighty_grid/mighty_grid_misc.rb +0 -11
- data/mighty_grid.gemspec +0 -27
- data/spec/config_spec.rb +0 -148
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/spec/lib/base_spec.rb
CHANGED
@@ -16,13 +16,22 @@ describe MightyGrid::Base do
|
|
16
16
|
group: nil,
|
17
17
|
order: nil
|
18
18
|
}
|
19
|
+
|
20
|
+
class UsersGrid < MightyGrid::Base
|
21
|
+
scope { User }
|
22
|
+
end
|
23
|
+
|
19
24
|
@mg_params = @default_options.merge(f: {})
|
20
25
|
end
|
21
26
|
|
27
|
+
before(:each) do
|
28
|
+
@controller.params.merge!(action: 'index', controller: 'users_controller')
|
29
|
+
end
|
30
|
+
|
22
31
|
describe '#new' do
|
23
32
|
context 'by default' do
|
24
|
-
subject {
|
25
|
-
its(:params) { should ==
|
33
|
+
subject { UsersGrid.new(@controller.params) }
|
34
|
+
its(:params) { should == @controller.params }
|
26
35
|
its(:options) { should == @default_options }
|
27
36
|
its(:mg_params) { should == @mg_params }
|
28
37
|
its(:filters) { should == {} }
|
@@ -39,26 +48,26 @@ describe MightyGrid::Base do
|
|
39
48
|
end
|
40
49
|
|
41
50
|
context 'with custom' do
|
42
|
-
subject { MightyGrid::Base.new(
|
51
|
+
subject { MightyGrid::Base.new(@controller.params, page: 2, per_page: 10, name: 'grid1') }
|
43
52
|
its(:options) { should == @default_options.merge(page: 2, per_page: 10, name: 'grid1') }
|
44
53
|
end
|
45
54
|
|
46
55
|
context 'with custom' do
|
47
|
-
before(:all) { @controller.params
|
48
|
-
subject {
|
56
|
+
before(:all) { @controller.params.merge!('grid' => { page: 5, per_page: 30, name: 'grid2' }) }
|
57
|
+
subject { UsersGrid.new(@controller.params) }
|
49
58
|
its(:params) { should == @controller.params }
|
50
59
|
its(:mg_params) { should == @mg_params.merge(page: 5, per_page: 30, name: 'grid2') }
|
51
60
|
after(:all) { @controller.params = {} }
|
52
61
|
end
|
53
62
|
|
54
63
|
context 'with bad options' do
|
55
|
-
it { expect {
|
64
|
+
it { expect { UsersGrid.new(@controller.params, bad_option: 123) }.to raise_error(ArgumentError) }
|
56
65
|
end
|
57
66
|
end
|
58
67
|
|
59
68
|
describe '#get_current_grid_param' do
|
60
|
-
before(:all) { @controller.params
|
61
|
-
subject {
|
69
|
+
before(:all) { @controller.params.merge!( 'grid' => { per_page: 30 } ) }
|
70
|
+
subject { UsersGrid.new(@controller.params).get_current_grid_param(:per_page) }
|
62
71
|
it { should == 30 }
|
63
72
|
after(:all) { @controller.params = {} }
|
64
73
|
end
|
@@ -66,8 +75,8 @@ describe MightyGrid::Base do
|
|
66
75
|
describe '#current_order_direction' do
|
67
76
|
(DIRECTIONS + ['bad']).each do |direction|
|
68
77
|
context "with #{ direction.upcase } controller param" do
|
69
|
-
before(:all) { @controller.params
|
70
|
-
subject {
|
78
|
+
before(:all) { @controller.params.merge!( 'grid' => { 'order_direction' => direction } ) }
|
79
|
+
subject { UsersGrid.new(@controller.params) }
|
71
80
|
its(:current_order_direction) { should == (direction.in?(DIRECTIONS) ? direction : nil) }
|
72
81
|
after(:all) { @controller.params = {} }
|
73
82
|
end
|
@@ -77,8 +86,8 @@ describe MightyGrid::Base do
|
|
77
86
|
describe '#another_order_direction' do
|
78
87
|
(DIRECTIONS + ['bad']).each do |direction|
|
79
88
|
context "with #{ direction.upcase } controller param" do
|
80
|
-
before(:all) { @controller.params
|
81
|
-
subject {
|
89
|
+
before(:all) { @controller.params.merge!( 'grid' => { 'order_direction' => direction } ) }
|
90
|
+
subject { UsersGrid.new(@controller.params) }
|
82
91
|
its(:another_order_direction) { should == (direction == 'asc' ? 'desc' : 'asc') }
|
83
92
|
after(:all) { @controller.params = {} }
|
84
93
|
end
|
@@ -86,8 +95,8 @@ describe MightyGrid::Base do
|
|
86
95
|
end
|
87
96
|
|
88
97
|
describe '#order_params' do
|
89
|
-
before(:all) { @controller.params
|
90
|
-
subject {
|
98
|
+
before(:all) { @controller.params.merge!( 'grid' => { 'order' => 'name', 'order_direction' => 'asc' } ) }
|
99
|
+
subject { UsersGrid.new(@controller.params) }
|
91
100
|
context 'with current order attribute' do
|
92
101
|
it { subject.order_params(:name).should == { 'grid' => { order: 'name', order_direction: 'desc' } } }
|
93
102
|
end
|
@@ -98,7 +107,7 @@ describe MightyGrid::Base do
|
|
98
107
|
end
|
99
108
|
|
100
109
|
describe '#like_operator' do
|
101
|
-
subject {
|
110
|
+
subject { UsersGrid.new(@controller.params) }
|
102
111
|
context "when DB is #{ENV['DB']}" do
|
103
112
|
case ENV['DB']
|
104
113
|
when 'postgresql'
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
|
3
|
-
require '
|
2
|
+
require 'generator_spec/test_case'
|
3
|
+
require 'generators/mighty_grid/install_generator'
|
4
4
|
|
5
5
|
describe MightyGrid::Generators::InstallGenerator do
|
6
|
+
include GeneratorSpec::TestCase
|
7
|
+
|
6
8
|
destination File.expand_path('../../tmp', __FILE__)
|
7
9
|
|
8
10
|
before(:all) do
|
@@ -11,7 +13,7 @@ describe MightyGrid::Generators::InstallGenerator do
|
|
11
13
|
end
|
12
14
|
|
13
15
|
it 'creates config initializer' do
|
14
|
-
assert_file 'config/initializers/
|
16
|
+
assert_file 'config/initializers/mighty_grid.rb'
|
15
17
|
end
|
16
18
|
|
17
19
|
it 'creates locale file' do
|
@@ -0,0 +1,15 @@
|
|
1
|
+
MightyGrid.setup do |config|
|
2
|
+
# config.per_page = 15
|
3
|
+
# config.order_direction = 'asc'
|
4
|
+
# config.order_type = 'single'
|
5
|
+
# config.order_asc = '↑'
|
6
|
+
# config.order_desc = '↓'
|
7
|
+
# config.order_asc_link_class = ''
|
8
|
+
# config.order_desc_link_class = ''
|
9
|
+
# config.order_active_link_class = ''
|
10
|
+
# config.order_wrapper_class = ''
|
11
|
+
# config.grid_name = 'grid'
|
12
|
+
# config.table_class = ''
|
13
|
+
# config.header_tr_class = ''
|
14
|
+
# config.pagination_theme = 'mighty_grid'
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe MightyGrid do
|
4
|
+
it 'setup block yields self' do
|
5
|
+
MightyGrid.setup do |config|
|
6
|
+
MightyGrid.should eq config
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'setup block configure Mighty Grid' do
|
11
|
+
MightyGrid.setup do |config|
|
12
|
+
MightyGrid.should eq config
|
13
|
+
end
|
14
|
+
|
15
|
+
MightyGrid.configured?.should be_true
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
class User < ActiveRecord::Base; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mighty_grid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jurrick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,17 +80,13 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.15'
|
83
|
-
description:
|
83
|
+
description: Simple and flexible grid for Rails
|
84
84
|
email:
|
85
85
|
- jurianp@gmail.com
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- ".gitignore"
|
91
|
-
- ".rspec"
|
92
|
-
- ".travis.yml"
|
93
|
-
- Appraisals
|
94
90
|
- Gemfile
|
95
91
|
- LICENSE.txt
|
96
92
|
- README.md
|
@@ -110,38 +106,36 @@ files:
|
|
110
106
|
- features/support/database_cleaner.rb
|
111
107
|
- features/support/env.rb
|
112
108
|
- features/support/paths.rb
|
113
|
-
- gemfiles/rails_32.gemfile
|
114
|
-
- gemfiles/rails_40.gemfile
|
115
|
-
- gemfiles/rails_41.gemfile
|
116
109
|
- lib/generators/mighty_grid/install_generator.rb
|
117
|
-
- lib/generators/mighty_grid/templates/
|
110
|
+
- lib/generators/mighty_grid/templates/mighty_grid.rb
|
118
111
|
- lib/mighty_grid.rb
|
119
112
|
- lib/mighty_grid/base.rb
|
120
113
|
- lib/mighty_grid/column.rb
|
121
|
-
- lib/mighty_grid/config.rb
|
122
114
|
- lib/mighty_grid/engine.rb
|
115
|
+
- lib/mighty_grid/exceptions.rb
|
123
116
|
- lib/mighty_grid/filter_renderer.rb
|
117
|
+
- lib/mighty_grid/filters.rb
|
118
|
+
- lib/mighty_grid/filters/base.rb
|
119
|
+
- lib/mighty_grid/filters/boolean_filter.rb
|
120
|
+
- lib/mighty_grid/filters/custom_filter.rb
|
121
|
+
- lib/mighty_grid/filters/enum_filter.rb
|
122
|
+
- lib/mighty_grid/filters/string_filter.rb
|
123
|
+
- lib/mighty_grid/filters/text_filter.rb
|
124
124
|
- lib/mighty_grid/grid_renderer.rb
|
125
|
-
- lib/mighty_grid/helpers/
|
125
|
+
- lib/mighty_grid/helpers/view_helpers.rb
|
126
126
|
- lib/mighty_grid/kaminari_monkey_patching.rb
|
127
|
-
- lib/mighty_grid/
|
127
|
+
- lib/mighty_grid/map_type.rb
|
128
128
|
- lib/mighty_grid/mighty_grid_ext.rb
|
129
|
-
- lib/mighty_grid/
|
129
|
+
- lib/mighty_grid/parameters.rb
|
130
130
|
- lib/mighty_grid/version.rb
|
131
|
-
- mighty_grid.gemspec
|
132
|
-
- spec/config_spec.rb
|
133
131
|
- spec/dummy/Rakefile
|
134
|
-
- spec/dummy/app/assets/images/.keep
|
135
132
|
- spec/dummy/app/assets/javascripts/application.js
|
136
133
|
- spec/dummy/app/assets/stylesheets/application.css
|
137
134
|
- spec/dummy/app/controllers/application_controller.rb
|
138
|
-
- spec/dummy/app/controllers/concerns/.keep
|
139
135
|
- spec/dummy/app/controllers/users_controller.rb
|
136
|
+
- spec/dummy/app/grids/users_grid.rb
|
140
137
|
- spec/dummy/app/helpers/application_helper.rb
|
141
|
-
- spec/dummy/app/mailers/.keep
|
142
|
-
- spec/dummy/app/models/.keep
|
143
138
|
- spec/dummy/app/models/company.rb
|
144
|
-
- spec/dummy/app/models/concerns/.keep
|
145
139
|
- spec/dummy/app/models/user.rb
|
146
140
|
- spec/dummy/app/views/layouts/application.html.erb
|
147
141
|
- spec/dummy/app/views/users/index.html
|
@@ -151,6 +145,7 @@ files:
|
|
151
145
|
- spec/dummy/config.ru
|
152
146
|
- spec/dummy/config/application.rb
|
153
147
|
- spec/dummy/config/boot.rb
|
148
|
+
- spec/dummy/config/database.yml
|
154
149
|
- spec/dummy/config/database.yml.travis
|
155
150
|
- spec/dummy/config/environment.rb
|
156
151
|
- spec/dummy/config/environments/development.rb
|
@@ -167,20 +162,81 @@ files:
|
|
167
162
|
- spec/dummy/config/locales/en.yml
|
168
163
|
- spec/dummy/config/routes.rb
|
169
164
|
- spec/dummy/config/secrets.yml
|
165
|
+
- spec/dummy/db/mg_test.sqlite3
|
170
166
|
- spec/dummy/db/migrate/20140727125647_create_users.rb
|
171
167
|
- spec/dummy/db/migrate/20140727141742_create_companies.rb
|
172
168
|
- spec/dummy/db/schema.rb
|
173
|
-
- spec/dummy/
|
169
|
+
- spec/dummy/log/development.log
|
170
|
+
- spec/dummy/log/test.log
|
174
171
|
- spec/dummy/public/404.html
|
175
172
|
- spec/dummy/public/422.html
|
176
173
|
- spec/dummy/public/500.html
|
177
174
|
- spec/dummy/public/favicon.ico
|
175
|
+
- spec/dummy/tmp/cache/assets/CCA/5E0/sprockets%2F48d34122dd1905305a6e63e3acb7c042
|
176
|
+
- spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
177
|
+
- spec/dummy/tmp/cache/assets/CF9/100/sprockets%2F3d8f5e96de4712db63b98083f75739c3
|
178
|
+
- spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
179
|
+
- spec/dummy/tmp/cache/assets/D3C/EE0/sprockets%2Fccfd910338b6dcf575467d3009b46a0d
|
180
|
+
- spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
181
|
+
- spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
182
|
+
- spec/dummy/tmp/cache/assets/D60/BE0/sprockets%2F37b5ab8193eccd1a29a0c61374c6b51e
|
183
|
+
- spec/dummy/tmp/cache/assets/D82/820/sprockets%2Ff7c8a51f7f95d66a9d5112f898bc1fd0
|
184
|
+
- spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
185
|
+
- spec/dummy/tmp/cache/assets/DF2/A80/sprockets%2F14a708b3bb2a924afdebae773e4ba5d8
|
186
|
+
- spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
187
|
+
- spec/dummy/tmp/cache/assets/E0C/4E0/sprockets%2Fed4e3dbab857786229b1bdf7bbd289fe
|
188
|
+
- spec/dummy/tmp/cache/assets/E14/600/sprockets%2F34cd0de2e0cd2c01e1c91b0ece565deb
|
189
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0e57c0129c0245eab3972d87efc6a9b9
|
190
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
191
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/14a708b3bb2a924afdebae773e4ba5d8
|
192
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1f8135a48e7ccbcb5361bb9e1f993929
|
193
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2479f30262de64213c228dc752440fd1
|
194
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
195
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb
|
196
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
197
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/37b5ab8193eccd1a29a0c61374c6b51e
|
198
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/3cbb6c28c7bbcc7c9b547346a59b4e7f
|
199
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/3d8f5e96de4712db63b98083f75739c3
|
200
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/422d4d422d090c103e6b198600a90dac
|
201
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/48d34122dd1905305a6e63e3acb7c042
|
202
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/a8c1ee1faf09397765710724fe3ee140
|
203
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/bbd98f4797053ba2accbbca7b81cbbaf
|
204
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cc03506b8188f839058f41aa8a4e19da
|
205
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cccf51971e81f175e527083a6ef4624d
|
206
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ccfd910338b6dcf575467d3009b46a0d
|
207
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
208
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
209
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d77d41650e5528f12146c728566cbf33
|
210
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ed4e3dbab857786229b1bdf7bbd289fe
|
211
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0
|
212
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
213
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
214
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/14a708b3bb2a924afdebae773e4ba5d8
|
215
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
216
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb
|
217
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
218
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/37b5ab8193eccd1a29a0c61374c6b51e
|
219
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/3d8f5e96de4712db63b98083f75739c3
|
220
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/422d4d422d090c103e6b198600a90dac
|
221
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/48d34122dd1905305a6e63e3acb7c042
|
222
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a8c1ee1faf09397765710724fe3ee140
|
223
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cccf51971e81f175e527083a6ef4624d
|
224
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/ccfd910338b6dcf575467d3009b46a0d
|
225
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
226
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
227
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/ed4e3dbab857786229b1bdf7bbd289fe
|
228
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0
|
229
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
178
230
|
- spec/lib/base_spec.rb
|
179
231
|
- spec/lib/column_spec.rb
|
180
232
|
- spec/lib/generators/install_generator_spec.rb
|
233
|
+
- spec/lib/tmp/config/initializers/mighty_grid.rb
|
234
|
+
- spec/lib/tmp/config/locales/mighty_grid.en.yml
|
235
|
+
- spec/mighty_grid_spec.rb
|
181
236
|
- spec/spec_helper.rb
|
182
237
|
- spec/support/capybara.rb
|
183
238
|
- spec/support/database_cleaner.rb
|
239
|
+
- spec/support/models.rb
|
184
240
|
- vendor/assets/javascripts/mighty_grid.js.coffee
|
185
241
|
- vendor/assets/stylesheets/mighty_grid.css
|
186
242
|
homepage: http://github.com/jurrick/mighty_grid
|
@@ -198,44 +254,32 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
254
|
version: '0'
|
199
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
256
|
requirements:
|
201
|
-
- - "
|
257
|
+
- - ">"
|
202
258
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
259
|
+
version: 1.3.1
|
204
260
|
requirements: []
|
205
261
|
rubyforge_project:
|
206
262
|
rubygems_version: 2.2.1
|
207
263
|
signing_key:
|
208
264
|
specification_version: 4
|
209
|
-
summary:
|
265
|
+
summary: Simple and flexible grid for Rails
|
210
266
|
test_files:
|
211
|
-
- features/filtering.feature
|
212
|
-
- features/step_definitions/steps.rb
|
213
|
-
- features/support/capybara.rb
|
214
|
-
- features/support/database_cleaner.rb
|
215
|
-
- features/support/env.rb
|
216
|
-
- features/support/paths.rb
|
217
|
-
- spec/config_spec.rb
|
218
|
-
- spec/dummy/Rakefile
|
219
|
-
- spec/dummy/app/assets/images/.keep
|
220
267
|
- spec/dummy/app/assets/javascripts/application.js
|
221
268
|
- spec/dummy/app/assets/stylesheets/application.css
|
222
269
|
- spec/dummy/app/controllers/application_controller.rb
|
223
|
-
- spec/dummy/app/controllers/concerns/.keep
|
224
270
|
- spec/dummy/app/controllers/users_controller.rb
|
271
|
+
- spec/dummy/app/grids/users_grid.rb
|
225
272
|
- spec/dummy/app/helpers/application_helper.rb
|
226
|
-
- spec/dummy/app/mailers/.keep
|
227
|
-
- spec/dummy/app/models/.keep
|
228
273
|
- spec/dummy/app/models/company.rb
|
229
|
-
- spec/dummy/app/models/concerns/.keep
|
230
274
|
- spec/dummy/app/models/user.rb
|
231
275
|
- spec/dummy/app/views/layouts/application.html.erb
|
232
276
|
- spec/dummy/app/views/users/index.html
|
233
277
|
- spec/dummy/bin/bundle
|
234
278
|
- spec/dummy/bin/rails
|
235
279
|
- spec/dummy/bin/rake
|
236
|
-
- spec/dummy/config.ru
|
237
280
|
- spec/dummy/config/application.rb
|
238
281
|
- spec/dummy/config/boot.rb
|
282
|
+
- spec/dummy/config/database.yml
|
239
283
|
- spec/dummy/config/database.yml.travis
|
240
284
|
- spec/dummy/config/environment.rb
|
241
285
|
- spec/dummy/config/environments/development.rb
|
@@ -252,17 +296,86 @@ test_files:
|
|
252
296
|
- spec/dummy/config/locales/en.yml
|
253
297
|
- spec/dummy/config/routes.rb
|
254
298
|
- spec/dummy/config/secrets.yml
|
299
|
+
- spec/dummy/config.ru
|
300
|
+
- spec/dummy/db/mg_test.sqlite3
|
255
301
|
- spec/dummy/db/migrate/20140727125647_create_users.rb
|
256
302
|
- spec/dummy/db/migrate/20140727141742_create_companies.rb
|
257
303
|
- spec/dummy/db/schema.rb
|
258
|
-
- spec/dummy/
|
304
|
+
- spec/dummy/log/development.log
|
305
|
+
- spec/dummy/log/test.log
|
259
306
|
- spec/dummy/public/404.html
|
260
307
|
- spec/dummy/public/422.html
|
261
308
|
- spec/dummy/public/500.html
|
262
309
|
- spec/dummy/public/favicon.ico
|
310
|
+
- spec/dummy/Rakefile
|
311
|
+
- spec/dummy/tmp/cache/assets/CCA/5E0/sprockets%2F48d34122dd1905305a6e63e3acb7c042
|
312
|
+
- spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
313
|
+
- spec/dummy/tmp/cache/assets/CF9/100/sprockets%2F3d8f5e96de4712db63b98083f75739c3
|
314
|
+
- spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
315
|
+
- spec/dummy/tmp/cache/assets/D3C/EE0/sprockets%2Fccfd910338b6dcf575467d3009b46a0d
|
316
|
+
- spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
317
|
+
- spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
318
|
+
- spec/dummy/tmp/cache/assets/D60/BE0/sprockets%2F37b5ab8193eccd1a29a0c61374c6b51e
|
319
|
+
- spec/dummy/tmp/cache/assets/D82/820/sprockets%2Ff7c8a51f7f95d66a9d5112f898bc1fd0
|
320
|
+
- spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
321
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0e57c0129c0245eab3972d87efc6a9b9
|
322
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
323
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/14a708b3bb2a924afdebae773e4ba5d8
|
324
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1f8135a48e7ccbcb5361bb9e1f993929
|
325
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2479f30262de64213c228dc752440fd1
|
326
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
327
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb
|
328
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
329
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/37b5ab8193eccd1a29a0c61374c6b51e
|
330
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/3cbb6c28c7bbcc7c9b547346a59b4e7f
|
331
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/3d8f5e96de4712db63b98083f75739c3
|
332
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/422d4d422d090c103e6b198600a90dac
|
333
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/48d34122dd1905305a6e63e3acb7c042
|
334
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/a8c1ee1faf09397765710724fe3ee140
|
335
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/bbd98f4797053ba2accbbca7b81cbbaf
|
336
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cc03506b8188f839058f41aa8a4e19da
|
337
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cccf51971e81f175e527083a6ef4624d
|
338
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ccfd910338b6dcf575467d3009b46a0d
|
339
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
340
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
341
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d77d41650e5528f12146c728566cbf33
|
342
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ed4e3dbab857786229b1bdf7bbd289fe
|
343
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0
|
344
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
345
|
+
- spec/dummy/tmp/cache/assets/DF2/A80/sprockets%2F14a708b3bb2a924afdebae773e4ba5d8
|
346
|
+
- spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
347
|
+
- spec/dummy/tmp/cache/assets/E0C/4E0/sprockets%2Fed4e3dbab857786229b1bdf7bbd289fe
|
348
|
+
- spec/dummy/tmp/cache/assets/E14/600/sprockets%2F34cd0de2e0cd2c01e1c91b0ece565deb
|
349
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
350
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/14a708b3bb2a924afdebae773e4ba5d8
|
351
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
352
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/34cd0de2e0cd2c01e1c91b0ece565deb
|
353
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
354
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/37b5ab8193eccd1a29a0c61374c6b51e
|
355
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/3d8f5e96de4712db63b98083f75739c3
|
356
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/422d4d422d090c103e6b198600a90dac
|
357
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/48d34122dd1905305a6e63e3acb7c042
|
358
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/a8c1ee1faf09397765710724fe3ee140
|
359
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cccf51971e81f175e527083a6ef4624d
|
360
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/ccfd910338b6dcf575467d3009b46a0d
|
361
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
362
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
363
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/ed4e3dbab857786229b1bdf7bbd289fe
|
364
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7c8a51f7f95d66a9d5112f898bc1fd0
|
365
|
+
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
263
366
|
- spec/lib/base_spec.rb
|
264
367
|
- spec/lib/column_spec.rb
|
265
368
|
- spec/lib/generators/install_generator_spec.rb
|
369
|
+
- spec/lib/tmp/config/initializers/mighty_grid.rb
|
370
|
+
- spec/lib/tmp/config/locales/mighty_grid.en.yml
|
371
|
+
- spec/mighty_grid_spec.rb
|
266
372
|
- spec/spec_helper.rb
|
267
373
|
- spec/support/capybara.rb
|
268
374
|
- spec/support/database_cleaner.rb
|
375
|
+
- spec/support/models.rb
|
376
|
+
- features/filtering.feature
|
377
|
+
- features/step_definitions/steps.rb
|
378
|
+
- features/support/capybara.rb
|
379
|
+
- features/support/database_cleaner.rb
|
380
|
+
- features/support/env.rb
|
381
|
+
- features/support/paths.rb
|