rails_admin 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- data/Gemfile +2 -2
- data/README.md +13 -6
- data/app/assets/images/rails_admin/aristo/images/bg_fallback.png +0 -0
- data/app/assets/images/rails_admin/aristo/images/icon_sprite.png +0 -0
- data/app/assets/images/rails_admin/aristo/images/progress_bar.gif +0 -0
- data/app/assets/images/rails_admin/aristo/images/slider_handles.png +0 -0
- data/app/assets/images/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/rails_admin/bullet_white.png +0 -0
- data/app/assets/images/rails_admin/calendar.png +0 -0
- data/app/assets/images/rails_admin/clock.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_background.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_hex.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_b.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_h.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_hsb_s.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_overlay.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_b.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_g.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_rgb_r.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_select.gif +0 -0
- data/app/assets/images/rails_admin/colorpicker/colorpicker_submit.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_background.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_hex.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_hsb_b.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_hsb_h.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_hsb_s.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_rgb_b.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_rgb_g.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_rgb_r.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/custom_submit.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/select.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/select2.png +0 -0
- data/app/assets/images/rails_admin/colorpicker/slider.png +0 -0
- data/app/assets/images/rails_admin/logo.png +0 -0
- data/app/assets/images/rails_admin/magnifier.png +0 -0
- data/app/assets/images/rails_admin/multiselect/icon_sprite.png +0 -0
- data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-n-dark.png +0 -0
- data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-n-light.png +0 -0
- data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-s-dark.png +0 -0
- data/app/assets/images/rails_admin/multiselect/ui-icon-circle-triangle-s-light.png +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/bg_fallback.png +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/icon_sprite.png +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/progress_bar.gif +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/slider_handles.png +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/ui-icons_222222_256x240.png +0 -0
- data/app/assets/stylesheets/rails_admin/aristo/images/ui-icons_454545_256x240.png +0 -0
- data/app/assets/stylesheets/rails_admin/jquery.colorpicker.css.scss +1 -0
- data/app/controllers/rails_admin/main_controller.rb +1 -1
- data/app/helpers/rails_admin/application_helper.rb +3 -2
- data/app/views/rails_admin/main/index.html.haml +1 -1
- data/lib/generators/rails_admin/install_generator.rb +1 -1
- data/lib/rails_admin/abstract_model.rb +4 -0
- data/lib/rails_admin/adapters/active_record.rb +4 -0
- data/lib/rails_admin/adapters/mongoid.rb +6 -0
- data/lib/rails_admin/adapters/mongoid/abstract_object.rb +3 -3
- data/lib/rails_admin/config.rb +9 -12
- data/lib/rails_admin/config/actions/base.rb +4 -3
- data/lib/rails_admin/config/fields/association.rb +1 -1
- data/lib/rails_admin/config/fields/base.rb +1 -1
- data/lib/rails_admin/config/fields/factories/association.rb +1 -1
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +1 -1
- data/lib/rails_admin/config/fields/types/boolean.rb +2 -2
- data/lib/rails_admin/config/fields/types/datetime.rb +1 -1
- data/lib/rails_admin/config/has_fields.rb +3 -2
- data/lib/rails_admin/config/lazy_model.rb +21 -0
- data/lib/rails_admin/extensions/history/history.rb +5 -5
- data/lib/rails_admin/support/csv_converter.rb +2 -6
- data/lib/rails_admin/version.rb +1 -1
- data/spec/controllers/{application_controller_spec.rb → rails_admin/application_controller_spec.rb} +0 -0
- data/spec/controllers/{main_controller_spec.rb → rails_admin/main_controller_spec.rb} +36 -4
- data/spec/dummy_app/Gemfile +2 -2
- data/spec/dummy_app/app/active_record/comment.rb +1 -1
- data/spec/dummy_app/app/active_record/team.rb +1 -1
- data/spec/dummy_app/app/mongoid/field_test.rb +2 -1
- data/spec/dummy_app/app/mongoid/team.rb +1 -1
- data/spec/dummy_app/db/seeds.rb +4 -4
- data/spec/dummy_app/db/test.sqlite3 +0 -0
- data/spec/dummy_app/log/test.log +156160 -0
- data/spec/helpers/rails_admin/application_helper_spec.rb +353 -0
- data/spec/helpers/{form_builder_spec.rb → rails_admin/form_builder_spec.rb} +0 -0
- data/spec/integration/authorization/cancan_spec.rb +13 -13
- data/spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb +2 -2
- data/spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb +13 -2
- data/spec/integration/basic/create/rails_admin_basic_create_spec.rb +8 -9
- data/spec/integration/basic/create/rails_admin_namespaced_model_create_spec.rb +1 -1
- data/spec/integration/basic/destroy/rails_admin_basic_destroy_spec.rb +4 -4
- data/spec/integration/basic/edit/rails_admin_basic_edit_spec.rb +2 -2
- data/spec/integration/basic/export/rails_admin_basic_export_spec.rb +2 -2
- data/spec/integration/basic/list/rails_admin_basic_list_spec.rb +51 -21
- data/spec/integration/basic/update/rails_admin_basic_update_spec.rb +15 -15
- data/spec/integration/config/edit/rails_admin_config_edit_spec.rb +13 -14
- data/spec/integration/config/list/rails_admin_config_list_spec.rb +7 -6
- data/spec/integration/config/show/rails_admin_config_show_spec.rb +1 -1
- data/spec/integration/rails_admin_spec.rb +2 -0
- data/spec/{unit → rails_admin}/abstract_model_spec.rb +7 -0
- data/spec/{unit → rails_admin}/active_record_extension_spec.rb +0 -0
- data/spec/{unit → rails_admin}/adapters/active_record/abstract_object_spec.rb +0 -0
- data/spec/{unit → rails_admin}/adapters/active_record_spec.rb +0 -0
- data/spec/{unit → rails_admin}/adapters/mongoid/abstract_object_spec.rb +0 -0
- data/spec/{unit → rails_admin}/adapters/mongoid_spec.rb +7 -1
- data/spec/{unit → rails_admin}/config/actions/base_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/actions_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/base_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/date_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/datetime_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/file_upload_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/time_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/fields/timestamp_spec.rb +0 -0
- data/spec/rails_admin/config/fields/types/datetime_spec.rb +18 -0
- data/spec/{unit → rails_admin}/config/fields_spec.rb +0 -0
- data/spec/rails_admin/config/has_fields_spec.rb +30 -0
- data/spec/rails_admin/config/lazy_model_spec.rb +29 -0
- data/spec/{unit → rails_admin}/config/model_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config/sections_spec.rb +0 -0
- data/spec/{unit → rails_admin}/config_spec.rb +0 -0
- data/spec/{unit → rails_admin}/support/csv_converter_spec.rb +0 -0
- data/spec/spec_helper.rb +2 -0
- metadata +65 -60
- data/spec/helpers/application_helper_spec.rb +0 -328
@@ -290,8 +290,10 @@ describe "RailsAdmin Config DSL List Section" do
|
|
290
290
|
end
|
291
291
|
@fans = 2.times.map { FactoryGirl.create :fan }
|
292
292
|
visit index_path(:model_name => "fan")
|
293
|
-
|
294
|
-
|
293
|
+
# NOTE: Capybara really doesn't want us to look at invisible text. This test
|
294
|
+
# could break at any moment.
|
295
|
+
expect(find('style').native.text).to include("#list th.#{PK_COLUMN}_field")
|
296
|
+
expect(find('style').native.text).to include("#list td.#{PK_COLUMN}_field")
|
295
297
|
end
|
296
298
|
|
297
299
|
it "has option to customize output formatting" do
|
@@ -362,10 +364,6 @@ describe "RailsAdmin Config DSL List Section" do
|
|
362
364
|
|
363
365
|
# sort_by and sort_reverse options
|
364
366
|
describe "default sorting" do
|
365
|
-
before(:each) do
|
366
|
-
RailsAdmin.config(Player){ list { field :name } }
|
367
|
-
end
|
368
|
-
|
369
367
|
let(:today){ Date.today }
|
370
368
|
let(:players) do
|
371
369
|
[{ :name => "Jackie Robinson", :created_at => today, :team_id => rand(99999), :number => 42 },
|
@@ -388,6 +386,7 @@ describe "RailsAdmin Config DSL List Section" do
|
|
388
386
|
list do
|
389
387
|
sort_by :created_at
|
390
388
|
sort_reverse true
|
389
|
+
field :name
|
391
390
|
end
|
392
391
|
end
|
393
392
|
visit index_path(:model_name => "player")
|
@@ -401,6 +400,7 @@ describe "RailsAdmin Config DSL List Section" do
|
|
401
400
|
RailsAdmin.config Player do
|
402
401
|
list do
|
403
402
|
sort_by :created_at
|
403
|
+
field :name
|
404
404
|
end
|
405
405
|
end
|
406
406
|
visit index_path(:model_name => "player")
|
@@ -414,6 +414,7 @@ describe "RailsAdmin Config DSL List Section" do
|
|
414
414
|
list do
|
415
415
|
sort_by :created_at
|
416
416
|
sort_reverse false
|
417
|
+
field :name
|
417
418
|
end
|
418
419
|
end
|
419
420
|
visit index_path(:model_name => "player")
|
@@ -8,6 +8,7 @@ describe RailsAdmin do
|
|
8
8
|
it "is disableable" do
|
9
9
|
logout
|
10
10
|
RailsAdmin.config do |config|
|
11
|
+
config.included_models = []
|
11
12
|
config.authenticate_with {}
|
12
13
|
end
|
13
14
|
visit dashboard_path
|
@@ -19,6 +20,7 @@ describe RailsAdmin do
|
|
19
20
|
# file as template for a new translation).
|
20
21
|
describe "localization" do
|
21
22
|
it "defaults to English" do
|
23
|
+
RailsAdmin.config.included_models = []
|
22
24
|
visit dashboard_path
|
23
25
|
|
24
26
|
should have_content("Site administration")
|
@@ -1,6 +1,13 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe RailsAdmin::AbstractModel do
|
4
|
+
|
5
|
+
describe "#to_s" do
|
6
|
+
it 'returns model\'s name' do
|
7
|
+
expect(RailsAdmin::AbstractModel.new(Cms::BasicPage).to_s).to eq Cms::BasicPage.to_s
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
4
11
|
describe "filters" do
|
5
12
|
before do
|
6
13
|
@abstract_model = RailsAdmin::AbstractModel.new('FieldTest')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -276,7 +276,7 @@ describe "RailsAdmin::Adapters::Mongoid", :mongoid => true do
|
|
276
276
|
|
277
277
|
it "maps Mongoid column types to RA types" do
|
278
278
|
expect(@abstract_model.properties.select{|p| %w(_id _type array_field big_decimal_field
|
279
|
-
boolean_field bson_object_id_field date_field datetime_field default_field float_field
|
279
|
+
boolean_field bson_object_id_field date_field datetime_field time_with_zone_field default_field float_field
|
280
280
|
hash_field integer_field name object_field range_field short_text string_field subject
|
281
281
|
symbol_field text_field time_field title).
|
282
282
|
include? p[:name].to_s}).to match_array [
|
@@ -328,6 +328,12 @@ describe "RailsAdmin::Adapters::Mongoid", :mongoid => true do
|
|
328
328
|
:serial? => false,
|
329
329
|
:type => :datetime,
|
330
330
|
:length => nil },
|
331
|
+
{ :name => :time_with_zone_field,
|
332
|
+
:pretty_name => "Time with zone field",
|
333
|
+
:nullable? => true,
|
334
|
+
:serial? => false,
|
335
|
+
:type => :datetime,
|
336
|
+
:length => nil },
|
331
337
|
{ :name => :default_field,
|
332
338
|
:pretty_name => "Default field",
|
333
339
|
:nullable? => true,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RailsAdmin::Config::Fields::Types::Datetime do
|
4
|
+
describe 'formatted_date_value' do
|
5
|
+
it 'gets object value' do
|
6
|
+
expect(RailsAdmin.config(FieldTest).fields.find{|f| f.name ==:datetime_field}.with(object: FieldTest.new(datetime_field: DateTime.parse('02/01/2012'))).formatted_date_value).to eq 'January 02, 2012'
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'gets default value for new objects if value is nil' do
|
10
|
+
RailsAdmin.config(FieldTest) do |config|
|
11
|
+
field :datetime_field do
|
12
|
+
default_value DateTime.parse('01/01/2012')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
expect(RailsAdmin.config(FieldTest).fields.find{|f| f.name ==:datetime_field}.with(object: FieldTest.new).formatted_date_value).to eq 'January 01, 2012'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RailsAdmin::Config::HasFields do
|
4
|
+
|
5
|
+
it 'shows hidden fields when added through the DSL' do
|
6
|
+
expect(RailsAdmin.config(Team).fields.find{|f| f.name == :division_id}).to_not be_visible
|
7
|
+
|
8
|
+
RailsAdmin.config do |config|
|
9
|
+
config.model Team do
|
10
|
+
field :division_id
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
expect(RailsAdmin.config(Team).fields.find{|f| f.name == :division_id}).to be_visible
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'does not set visibility for fields with bindings' do
|
18
|
+
RailsAdmin.config do |config|
|
19
|
+
config.model Team do
|
20
|
+
field :division do
|
21
|
+
visible do
|
22
|
+
bindings[:controller].current_user.email == 'test@email.com'
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
expect {RailsAdmin.config(Team).fields.find{|f| f.name == :division }}.to_not raise_error
|
28
|
+
expect {RailsAdmin.config(Team).fields.find{|f| f.name == :division }.visible?}.to raise_error "undefined method `[]' for nil:NilClass"
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe RailsAdmin::Config::LazyModel do
|
4
|
+
describe "#store" do
|
5
|
+
let(:block) { Proc.new { register_instance_option('parameter') } } # an arbitrary instance method we can spy on
|
6
|
+
let(:other_block) { Proc.new { register_instance_option('other parameter') } }
|
7
|
+
|
8
|
+
it "doesn't evaluate the block immediately" do
|
9
|
+
RailsAdmin::Config::Model.any_instance.should_not_receive(:register_instance_option)
|
10
|
+
|
11
|
+
RailsAdmin::Config::LazyModel.new(:Team, &block)
|
12
|
+
end
|
13
|
+
|
14
|
+
it "evaluates block when reading" do
|
15
|
+
RailsAdmin::Config::Model.any_instance.should_receive(:register_instance_option).with('parameter')
|
16
|
+
|
17
|
+
lazy_model = RailsAdmin::Config::LazyModel.new(:Team, &block)
|
18
|
+
lazy_model.groups # an arbitrary instance method on RailsAdmin::Config::Model to wake up lazy_model
|
19
|
+
end
|
20
|
+
|
21
|
+
it "evaluates config block only once" do
|
22
|
+
RailsAdmin::Config::Model.any_instance.should_receive(:register_instance_option).once.with('parameter')
|
23
|
+
|
24
|
+
lazy_model = RailsAdmin::Config::LazyModel.new(:Team, &block)
|
25
|
+
lazy_model.groups
|
26
|
+
lazy_model.groups
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.4.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Erik Michaels-Ober
|
@@ -12,29 +12,23 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2013-01-06 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
version_requirements: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.3
|
23
|
-
- - <
|
20
|
+
- - ~>
|
24
21
|
- !ruby/object:Gem::Version
|
25
|
-
version: 0.
|
22
|
+
version: '0.2'
|
26
23
|
none: false
|
27
24
|
name: nested_form
|
28
25
|
type: :runtime
|
29
26
|
prerelease: false
|
30
27
|
requirement: !ruby/object:Gem::Requirement
|
31
28
|
requirements:
|
32
|
-
- -
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 0.2.3
|
35
|
-
- - <
|
29
|
+
- - ~>
|
36
30
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
31
|
+
version: '0.2'
|
38
32
|
none: false
|
39
33
|
- !ruby/object:Gem::Dependency
|
40
34
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -73,7 +67,7 @@ dependencies:
|
|
73
67
|
requirements:
|
74
68
|
- - ~>
|
75
69
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
70
|
+
version: '3.0'
|
77
71
|
none: false
|
78
72
|
name: font-awesome-sass-rails
|
79
73
|
type: :runtime
|
@@ -82,7 +76,7 @@ dependencies:
|
|
82
76
|
requirements:
|
83
77
|
- - ~>
|
84
78
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
79
|
+
version: '3.0'
|
86
80
|
none: false
|
87
81
|
- !ruby/object:Gem::Dependency
|
88
82
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -436,6 +430,7 @@ files:
|
|
436
430
|
- lib/rails_admin/config/has_fields.rb
|
437
431
|
- lib/rails_admin/config/has_groups.rb
|
438
432
|
- lib/rails_admin/config/hideable.rb
|
433
|
+
- lib/rails_admin/config/lazy_model.rb
|
439
434
|
- lib/rails_admin/config/model.rb
|
440
435
|
- lib/rails_admin/config/proxyable/proxy.rb
|
441
436
|
- lib/rails_admin/config/proxyable.rb
|
@@ -467,8 +462,8 @@ files:
|
|
467
462
|
- lib/rails_admin.rb
|
468
463
|
- lib/tasks/rails_admin.rake
|
469
464
|
- spec/ci.sh
|
470
|
-
- spec/controllers/application_controller_spec.rb
|
471
|
-
- spec/controllers/main_controller_spec.rb
|
465
|
+
- spec/controllers/rails_admin/application_controller_spec.rb
|
466
|
+
- spec/controllers/rails_admin/main_controller_spec.rb
|
472
467
|
- spec/dummy_app/app/active_record/abstract.rb
|
473
468
|
- spec/dummy_app/app/active_record/another_field_test.rb
|
474
469
|
- spec/dummy_app/app/active_record/ball.rb
|
@@ -580,8 +575,10 @@ files:
|
|
580
575
|
- spec/dummy_app/db/migrate/20120720075608_create_another_field_tests.rb
|
581
576
|
- spec/dummy_app/db/migrate/20120928075608_create_images.rb
|
582
577
|
- spec/dummy_app/db/seeds.rb
|
578
|
+
- spec/dummy_app/db/test.sqlite3
|
583
579
|
- spec/dummy_app/doc/README_FOR_APP
|
584
580
|
- spec/dummy_app/Gemfile
|
581
|
+
- spec/dummy_app/log/test.log
|
585
582
|
- spec/dummy_app/public/404.html
|
586
583
|
- spec/dummy_app/public/422.html
|
587
584
|
- spec/dummy_app/public/500.html
|
@@ -606,8 +603,8 @@ files:
|
|
606
603
|
- spec/dummy_app/Rakefile
|
607
604
|
- spec/dummy_app/script/rails
|
608
605
|
- spec/factories.rb
|
609
|
-
- spec/helpers/application_helper_spec.rb
|
610
|
-
- spec/helpers/form_builder_spec.rb
|
606
|
+
- spec/helpers/rails_admin/application_helper_spec.rb
|
607
|
+
- spec/helpers/rails_admin/form_builder_spec.rb
|
611
608
|
- spec/integration/authorization/cancan_spec.rb
|
612
609
|
- spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb
|
613
610
|
- spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb
|
@@ -630,26 +627,29 @@ files:
|
|
630
627
|
- spec/integration/relation_spec.rb
|
631
628
|
- spec/orm/active_record.rb
|
632
629
|
- spec/orm/mongoid.rb
|
630
|
+
- spec/rails_admin/abstract_model_spec.rb
|
631
|
+
- spec/rails_admin/active_record_extension_spec.rb
|
632
|
+
- spec/rails_admin/adapters/active_record/abstract_object_spec.rb
|
633
|
+
- spec/rails_admin/adapters/active_record_spec.rb
|
634
|
+
- spec/rails_admin/adapters/mongoid/abstract_object_spec.rb
|
635
|
+
- spec/rails_admin/adapters/mongoid_spec.rb
|
636
|
+
- spec/rails_admin/config/actions/base_spec.rb
|
637
|
+
- spec/rails_admin/config/actions_spec.rb
|
638
|
+
- spec/rails_admin/config/fields/base_spec.rb
|
639
|
+
- spec/rails_admin/config/fields/date_spec.rb
|
640
|
+
- spec/rails_admin/config/fields/datetime_spec.rb
|
641
|
+
- spec/rails_admin/config/fields/file_upload_spec.rb
|
642
|
+
- spec/rails_admin/config/fields/time_spec.rb
|
643
|
+
- spec/rails_admin/config/fields/timestamp_spec.rb
|
644
|
+
- spec/rails_admin/config/fields/types/datetime_spec.rb
|
645
|
+
- spec/rails_admin/config/fields_spec.rb
|
646
|
+
- spec/rails_admin/config/has_fields_spec.rb
|
647
|
+
- spec/rails_admin/config/lazy_model_spec.rb
|
648
|
+
- spec/rails_admin/config/model_spec.rb
|
649
|
+
- spec/rails_admin/config/sections_spec.rb
|
650
|
+
- spec/rails_admin/config_spec.rb
|
651
|
+
- spec/rails_admin/support/csv_converter_spec.rb
|
633
652
|
- spec/spec_helper.rb
|
634
|
-
- spec/unit/abstract_model_spec.rb
|
635
|
-
- spec/unit/active_record_extension_spec.rb
|
636
|
-
- spec/unit/adapters/active_record/abstract_object_spec.rb
|
637
|
-
- spec/unit/adapters/active_record_spec.rb
|
638
|
-
- spec/unit/adapters/mongoid/abstract_object_spec.rb
|
639
|
-
- spec/unit/adapters/mongoid_spec.rb
|
640
|
-
- spec/unit/config/actions/base_spec.rb
|
641
|
-
- spec/unit/config/actions_spec.rb
|
642
|
-
- spec/unit/config/fields/base_spec.rb
|
643
|
-
- spec/unit/config/fields/date_spec.rb
|
644
|
-
- spec/unit/config/fields/datetime_spec.rb
|
645
|
-
- spec/unit/config/fields/file_upload_spec.rb
|
646
|
-
- spec/unit/config/fields/time_spec.rb
|
647
|
-
- spec/unit/config/fields/timestamp_spec.rb
|
648
|
-
- spec/unit/config/fields_spec.rb
|
649
|
-
- spec/unit/config/model_spec.rb
|
650
|
-
- spec/unit/config/sections_spec.rb
|
651
|
-
- spec/unit/config_spec.rb
|
652
|
-
- spec/unit/support/csv_converter_spec.rb
|
653
653
|
homepage: https://github.com/sferik/rails_admin
|
654
654
|
licenses:
|
655
655
|
- MIT
|
@@ -677,8 +677,8 @@ specification_version: 3
|
|
677
677
|
summary: Admin for Rails
|
678
678
|
test_files:
|
679
679
|
- spec/ci.sh
|
680
|
-
- spec/controllers/application_controller_spec.rb
|
681
|
-
- spec/controllers/main_controller_spec.rb
|
680
|
+
- spec/controllers/rails_admin/application_controller_spec.rb
|
681
|
+
- spec/controllers/rails_admin/main_controller_spec.rb
|
682
682
|
- spec/dummy_app/app/active_record/abstract.rb
|
683
683
|
- spec/dummy_app/app/active_record/another_field_test.rb
|
684
684
|
- spec/dummy_app/app/active_record/ball.rb
|
@@ -790,8 +790,10 @@ test_files:
|
|
790
790
|
- spec/dummy_app/db/migrate/20120720075608_create_another_field_tests.rb
|
791
791
|
- spec/dummy_app/db/migrate/20120928075608_create_images.rb
|
792
792
|
- spec/dummy_app/db/seeds.rb
|
793
|
+
- spec/dummy_app/db/test.sqlite3
|
793
794
|
- spec/dummy_app/doc/README_FOR_APP
|
794
795
|
- spec/dummy_app/Gemfile
|
796
|
+
- spec/dummy_app/log/test.log
|
795
797
|
- spec/dummy_app/public/404.html
|
796
798
|
- spec/dummy_app/public/422.html
|
797
799
|
- spec/dummy_app/public/500.html
|
@@ -816,8 +818,8 @@ test_files:
|
|
816
818
|
- spec/dummy_app/Rakefile
|
817
819
|
- spec/dummy_app/script/rails
|
818
820
|
- spec/factories.rb
|
819
|
-
- spec/helpers/application_helper_spec.rb
|
820
|
-
- spec/helpers/form_builder_spec.rb
|
821
|
+
- spec/helpers/rails_admin/application_helper_spec.rb
|
822
|
+
- spec/helpers/rails_admin/form_builder_spec.rb
|
821
823
|
- spec/integration/authorization/cancan_spec.rb
|
822
824
|
- spec/integration/basic/bulk_action/rails_admin_basic_bulk_action_spec.rb
|
823
825
|
- spec/integration/basic/bulk_destroy/rails_admin_basic_bulk_destroy_spec.rb
|
@@ -840,24 +842,27 @@ test_files:
|
|
840
842
|
- spec/integration/relation_spec.rb
|
841
843
|
- spec/orm/active_record.rb
|
842
844
|
- spec/orm/mongoid.rb
|
845
|
+
- spec/rails_admin/abstract_model_spec.rb
|
846
|
+
- spec/rails_admin/active_record_extension_spec.rb
|
847
|
+
- spec/rails_admin/adapters/active_record/abstract_object_spec.rb
|
848
|
+
- spec/rails_admin/adapters/active_record_spec.rb
|
849
|
+
- spec/rails_admin/adapters/mongoid/abstract_object_spec.rb
|
850
|
+
- spec/rails_admin/adapters/mongoid_spec.rb
|
851
|
+
- spec/rails_admin/config/actions/base_spec.rb
|
852
|
+
- spec/rails_admin/config/actions_spec.rb
|
853
|
+
- spec/rails_admin/config/fields/base_spec.rb
|
854
|
+
- spec/rails_admin/config/fields/date_spec.rb
|
855
|
+
- spec/rails_admin/config/fields/datetime_spec.rb
|
856
|
+
- spec/rails_admin/config/fields/file_upload_spec.rb
|
857
|
+
- spec/rails_admin/config/fields/time_spec.rb
|
858
|
+
- spec/rails_admin/config/fields/timestamp_spec.rb
|
859
|
+
- spec/rails_admin/config/fields/types/datetime_spec.rb
|
860
|
+
- spec/rails_admin/config/fields_spec.rb
|
861
|
+
- spec/rails_admin/config/has_fields_spec.rb
|
862
|
+
- spec/rails_admin/config/lazy_model_spec.rb
|
863
|
+
- spec/rails_admin/config/model_spec.rb
|
864
|
+
- spec/rails_admin/config/sections_spec.rb
|
865
|
+
- spec/rails_admin/config_spec.rb
|
866
|
+
- spec/rails_admin/support/csv_converter_spec.rb
|
843
867
|
- spec/spec_helper.rb
|
844
|
-
- spec/unit/abstract_model_spec.rb
|
845
|
-
- spec/unit/active_record_extension_spec.rb
|
846
|
-
- spec/unit/adapters/active_record/abstract_object_spec.rb
|
847
|
-
- spec/unit/adapters/active_record_spec.rb
|
848
|
-
- spec/unit/adapters/mongoid/abstract_object_spec.rb
|
849
|
-
- spec/unit/adapters/mongoid_spec.rb
|
850
|
-
- spec/unit/config/actions/base_spec.rb
|
851
|
-
- spec/unit/config/actions_spec.rb
|
852
|
-
- spec/unit/config/fields/base_spec.rb
|
853
|
-
- spec/unit/config/fields/date_spec.rb
|
854
|
-
- spec/unit/config/fields/datetime_spec.rb
|
855
|
-
- spec/unit/config/fields/file_upload_spec.rb
|
856
|
-
- spec/unit/config/fields/time_spec.rb
|
857
|
-
- spec/unit/config/fields/timestamp_spec.rb
|
858
|
-
- spec/unit/config/fields_spec.rb
|
859
|
-
- spec/unit/config/model_spec.rb
|
860
|
-
- spec/unit/config/sections_spec.rb
|
861
|
-
- spec/unit/config_spec.rb
|
862
|
-
- spec/unit/support/csv_converter_spec.rb
|
863
868
|
has_rdoc:
|