adminpanel 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile +6 -3
- data/README.md +6 -26
- data/adminpanel.gemspec +6 -3
- data/app/assets/javascripts/adminpanel/bootstrap-wysihtml5-4pre.js +9579 -0
- data/app/assets/javascripts/adminpanel/bootstrap-wysihtml5.js +9 -9
- data/app/assets/javascripts/adminpanel/realm.js +12 -8
- data/app/assets/javascripts/adminpanel/spinner.js.coffee +11 -0
- data/app/assets/javascripts/adminpanel/wysiwyg.js.coffee +3 -0
- data/app/assets/javascripts/application-admin.js +1 -0
- data/app/assets/stylesheets/adminpanel/{bootstrap.css → bootstrap.css.erb} +2 -2
- data/app/assets/stylesheets/adminpanel/{theme.css → theme.css.erb} +6 -6
- data/app/controllers/adminpanel/analytics_controller.rb +2 -1
- data/app/controllers/adminpanel/application_controller.rb +1 -0
- data/app/controllers/adminpanel/auths_controller.rb +8 -0
- data/app/controllers/adminpanel/categories_controller.rb +1 -1
- data/app/controllers/adminpanel/galleries_controller.rb +3 -11
- data/app/controllers/adminpanel/sections_controller.rb +5 -14
- data/app/controllers/adminpanel/users_controller.rb +1 -1
- data/app/controllers/concerns/adminpanel/facebook_actions.rb +64 -0
- data/app/controllers/concerns/adminpanel/galleryzable_actions.rb +12 -14
- data/app/controllers/concerns/adminpanel/rest_actions.rb +2 -2
- data/app/helpers/adminpanel/adminpanel_form_builder.rb +20 -2
- data/app/helpers/adminpanel/shared_pages_helper.rb +13 -0
- data/app/models/adminpanel/auth.rb +34 -0
- data/app/models/adminpanel/section.rb +1 -2
- data/app/models/adminpanel/user.rb +1 -2
- data/app/models/concerns/adminpanel/base.rb +10 -34
- data/app/models/concerns/adminpanel/facebook.rb +27 -0
- data/app/views/adminpanel/sections/edit.html.erb +0 -5
- data/app/views/adminpanel/sections/index.html.erb +1 -3
- data/app/views/layouts/_side_menu.html.erb +5 -4
- data/app/views/shared/_create_remote_resource_button.html.erb +23 -0
- data/app/views/shared/_fb_icon_button.html.erb +26 -0
- data/app/views/shared/_fb_publish_modal.html.erb +40 -0
- data/app/views/shared/_form_fields.html.erb +6 -50
- data/app/views/shared/_modal.html.erb +1 -1
- data/app/views/shared/create_belongs_to.js.erb +1 -1
- data/app/views/shared/create_has_many.js.erb +1 -1
- data/app/views/shared/fb_choose_page.html.erb +47 -0
- data/app/views/shared/index.html.erb +2 -0
- data/app/views/shared/show.html.erb +2 -0
- data/config/initializers/pluralization_es.rb +3 -0
- data/config/locales/es.yml +69 -60
- data/config/routes.rb +8 -1
- data/lib/adminpanel.rb +1 -0
- data/lib/adminpanel/engine.rb +4 -1
- data/lib/adminpanel/version.rb +1 -1
- data/lib/generators/adminpanel/gallery/gallery_generator.rb +2 -2
- data/lib/generators/adminpanel/initialize/initialize_generator.rb +2 -3
- data/lib/generators/adminpanel/initialize/templates/ability.rb +1 -1
- data/lib/generators/adminpanel/initialize/templates/adminpanel_setup.rb +6 -2
- data/lib/generators/adminpanel/initialize/templates/create_adminpanel_tables.rb +11 -0
- data/lib/generators/adminpanel/resource/resource_generator.rb +112 -130
- data/lib/generators/adminpanel/resource/templates/controller.rb +4 -1
- data/lib/generators/adminpanel/resource/templates/resource.rb +4 -1
- data/lib/tasks/adminpanel/adminpanel.rake +6 -2
- data/spec/dummy/app/controllers/adminpanel/salesmen_controller.rb +9 -0
- data/spec/dummy/app/models/adminpanel/category.rb +1 -0
- data/spec/dummy/app/models/adminpanel/mug.rb +2 -2
- data/spec/dummy/app/models/adminpanel/product.rb +4 -6
- data/spec/dummy/app/models/adminpanel/salesman.rb +35 -0
- data/spec/dummy/config/initializers/adminpanel_setup.rb +2 -1
- data/spec/dummy/db/schema.rb +13 -0
- data/spec/features/shared_pages/edit_spec.rb +48 -0
- data/spec/features/shared_pages/index_spec.rb +50 -0
- data/spec/features/shared_pages/new_spec.rb +128 -0
- data/spec/features/shared_pages/show_spec.rb +30 -0
- data/spec/generators/gallery_generator_spec.rb +1 -1
- data/spec/generators/resource_generator_spec.rb +36 -11
- data/spec/spec_helper.rb +12 -13
- data/spec/support/capybara_matchers.rb +17 -0
- data/spec/support/factories.rb +1 -1
- data/spec/support/helper_methods.rb +0 -18
- data/spec/support/shared_connection.rb +10 -0
- metadata +100 -21
- data/app/assets/javascripts/adminpanel/bootstrap-wysihtml5-3.min.js +0 -261
- data/app/assets/javascripts/adminpanel/medium-editor.js +0 -703
- data/app/assets/javascripts/adminpanel/wysiwyg.js +0 -5
- data/app/assets/stylesheets/adminpanel/medium-editor.css.scss +0 -1
- data/app/views/shared/_init_editor.html.erb +0 -27
- data/lib/generators/adminpanel/resource/templates/migration.rb +0 -13
- data/spec/features/shared_pages_spec.rb +0 -128
@@ -25,7 +25,7 @@ describe Adminpanel::Generators::GalleryGenerator do
|
|
25
25
|
|
26
26
|
|
27
27
|
it 'should migrate the correct fields' do
|
28
|
-
migration_file('db/migrate/
|
28
|
+
migration_file('db/migrate/create_adminpanel_productfiles.rb').should(
|
29
29
|
contain(/t.integer :product_id/) &&
|
30
30
|
contain(/create_table :adminpanel_productfiles/)
|
31
31
|
)
|
@@ -13,8 +13,35 @@ describe Adminpanel::Generators::ResourceGenerator do
|
|
13
13
|
prepare_destination
|
14
14
|
end
|
15
15
|
|
16
|
+
describe 'with args and option -g false' do
|
17
|
+
|
18
|
+
before do
|
19
|
+
# File.new "#{Rails.root}/tmp/config/initializers/adminpanel_setup.rb", 'w+' do |f|
|
20
|
+
# create config/initializers/adminpanel_setup.rb file under generator
|
21
|
+
# f.puts 'hi'
|
22
|
+
# end
|
23
|
+
run_generator %w(
|
24
|
+
post
|
25
|
+
name
|
26
|
+
description:wysiwyg
|
27
|
+
number:float
|
28
|
+
-g=false
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
it "shouldn't generate the gallery " do
|
33
|
+
file('app/models/adminpanel/postfile.rb').should_not exist
|
34
|
+
end
|
35
|
+
|
36
|
+
# it "should add ':posts,' to file adminpanel_setup.rb" do
|
37
|
+
# file('config/initializers/adminpanel_setup.rb').should(
|
38
|
+
# contain(/:posts,/)
|
39
|
+
# )
|
40
|
+
# end
|
41
|
+
end
|
42
|
+
|
16
43
|
describe 'with arguments %w(post name description:wysiwyg number:float
|
17
|
-
quantity:integer date:datepicker
|
44
|
+
quantity:integer date:datepicker)' do
|
18
45
|
|
19
46
|
before do
|
20
47
|
run_generator %w(
|
@@ -25,17 +52,16 @@ describe Adminpanel::Generators::ResourceGenerator do
|
|
25
52
|
flag:boolean
|
26
53
|
quantity:integer
|
27
54
|
date:datepicker
|
28
|
-
photo:images
|
29
55
|
)
|
30
56
|
end
|
31
57
|
|
32
58
|
it 'should generate the posts migration' do
|
33
|
-
migration_file('db/migrate/
|
59
|
+
migration_file('db/migrate/create_adminpanel_posts.rb').should be_a_migration
|
34
60
|
end
|
35
61
|
|
36
62
|
context 'the migration' do
|
37
63
|
it 'should have the correct fields' do
|
38
|
-
migration_file('db/migrate/
|
64
|
+
migration_file('db/migrate/create_adminpanel_posts.rb').should(
|
39
65
|
contain(/t.string :name/) &&
|
40
66
|
contain(/t.float :number/) &&
|
41
67
|
contain(/t.boolean :flag/) &&
|
@@ -60,10 +86,9 @@ describe Adminpanel::Generators::ResourceGenerator do
|
|
60
86
|
contain(/:flag/) &&
|
61
87
|
contain(/:quantity/) &&
|
62
88
|
contain(/:date/) &&
|
63
|
-
contain(/{:
|
89
|
+
contain(/{ postfiles_attributes: \[:id, :file, :_destroy\] }/)
|
64
90
|
)
|
65
91
|
end
|
66
|
-
|
67
92
|
end
|
68
93
|
|
69
94
|
|
@@ -113,7 +138,7 @@ describe Adminpanel::Generators::ResourceGenerator do
|
|
113
138
|
)
|
114
139
|
end
|
115
140
|
|
116
|
-
it
|
141
|
+
it "shouldn't generate categorizations controller" do
|
117
142
|
file('app/controllers/adminpanel/categorizations_controller').should_not exist
|
118
143
|
end
|
119
144
|
|
@@ -125,19 +150,19 @@ describe Adminpanel::Generators::ResourceGenerator do
|
|
125
150
|
end
|
126
151
|
end
|
127
152
|
|
128
|
-
describe 'with arguments post name products
|
153
|
+
describe 'with arguments post name products:has_many' do
|
129
154
|
before do
|
130
155
|
run_generator %w(
|
131
156
|
post
|
132
157
|
name
|
133
|
-
products
|
158
|
+
products:has_many
|
134
159
|
)
|
135
160
|
end
|
136
161
|
|
137
162
|
it 'should generate the model with has_many :categorizations' do
|
138
163
|
file('app/models/adminpanel/post.rb').should(
|
139
|
-
contain(
|
140
|
-
contain(
|
164
|
+
contain(/# has_many :categorizations/) &&
|
165
|
+
contain(/# has_many :products, :through => :categorizations/)
|
141
166
|
)
|
142
167
|
end
|
143
168
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -5,36 +5,35 @@
|
|
5
5
|
#
|
6
6
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
7
|
|
8
|
-
ENV[
|
9
|
-
require File.expand_path(
|
10
|
-
require
|
11
|
-
require
|
12
|
-
require
|
8
|
+
ENV['RAILS_ENV'] ||= 'test'
|
9
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
10
|
+
require 'rspec/rails'
|
11
|
+
require 'capybara/rspec'
|
12
|
+
require 'factory_girl_rails'
|
13
13
|
require 'carrierwave/orm/activerecord'
|
14
|
-
require
|
15
|
-
require
|
16
|
-
require
|
17
|
-
|
14
|
+
require 'carrierwave/test/matchers'
|
15
|
+
require 'active_record'
|
16
|
+
require 'rake'
|
18
17
|
|
19
18
|
Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
|
20
19
|
|
21
|
-
|
20
|
+
Capybara.javascript_driver = :webkit
|
21
|
+
|
22
22
|
RSpec.configure do |config|
|
23
23
|
config.treat_symbols_as_metadata_keys_with_true_values = true
|
24
24
|
config.run_all_when_everything_filtered = true
|
25
25
|
config.filter_run :focus
|
26
26
|
|
27
|
-
# root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
28
27
|
ActiveRecord::Base.establish_connection(
|
29
28
|
:adapter => 'sqlite3',
|
30
29
|
:database => ':memory:'
|
31
30
|
)
|
32
31
|
|
33
|
-
config.include ActionDispatch::TestProcess
|
34
|
-
|
35
32
|
puts "creating sqlite in memory database"
|
36
33
|
load "#{Rails.root}/db/schema.rb"
|
37
34
|
|
35
|
+
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|
36
|
+
|
38
37
|
config.use_transactional_fixtures = false
|
39
38
|
|
40
39
|
config.include Rails.application.routes.url_helpers
|
@@ -0,0 +1,17 @@
|
|
1
|
+
RSpec::Matchers::define :have_title do |text|
|
2
|
+
match do |page|
|
3
|
+
Capybara.string(page.body).has_selector?('title', :text => text)
|
4
|
+
end
|
5
|
+
end
|
6
|
+
|
7
|
+
RSpec::Matchers.define(:have_image) do |src|
|
8
|
+
match { |node| node.has_selector? %(img[src="#{src}"]) }
|
9
|
+
|
10
|
+
failure_message_for_should do
|
11
|
+
"Expected an image with src #{src.inspect}"
|
12
|
+
end
|
13
|
+
|
14
|
+
failure_message_for_should_not do
|
15
|
+
"Found image with src #{src.inspect}!"
|
16
|
+
end
|
17
|
+
end
|
data/spec/support/factories.rb
CHANGED
@@ -25,24 +25,6 @@ def get_user
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
RSpec::Matchers::define :have_title do |text|
|
29
|
-
match do |page|
|
30
|
-
Capybara.string(page.body).has_selector?('title', :text => text)
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
28
|
def clean_uploads_folder
|
35
29
|
FileUtils.rm_rf(Dir["#{Rails.root}/public/uploads/."])
|
36
30
|
end
|
37
|
-
|
38
|
-
RSpec::Matchers.define(:have_image) do |src|
|
39
|
-
match { |node| node.has_selector? %(img[src="#{src}"]) }
|
40
|
-
|
41
|
-
failure_message_for_should do
|
42
|
-
"Expected an image with src #{src.inspect}"
|
43
|
-
end
|
44
|
-
|
45
|
-
failure_message_for_should_not do
|
46
|
-
"Found image with src #{src.inspect}!"
|
47
|
-
end
|
48
|
-
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
class ActiveRecord::Base
|
2
|
+
mattr_accessor :shared_connection
|
3
|
+
@@shared_connection = nil
|
4
|
+
|
5
|
+
def self.connection
|
6
|
+
@@shared_connection || retrieve_connection
|
7
|
+
end
|
8
|
+
end
|
9
|
+
# Forces all threads to share the same connection. This works on
|
10
|
+
# Capybara because it starts the web server in a thread.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Ramon Camacho
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -265,20 +265,46 @@ dependencies:
|
|
265
265
|
- - "<="
|
266
266
|
- !ruby/object:Gem::Version
|
267
267
|
version: 4.1.0
|
268
|
+
- !ruby/object:Gem::Dependency
|
269
|
+
name: koala
|
270
|
+
requirement: !ruby/object:Gem::Requirement
|
271
|
+
requirements:
|
272
|
+
- - ">="
|
273
|
+
- !ruby/object:Gem::Version
|
274
|
+
version: 1.9.0
|
275
|
+
- - "<="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: 2.0.0
|
278
|
+
type: :runtime
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">="
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: 1.9.0
|
285
|
+
- - "<="
|
286
|
+
- !ruby/object:Gem::Version
|
287
|
+
version: 2.0.0
|
268
288
|
- !ruby/object:Gem::Dependency
|
269
289
|
name: sqlite3
|
270
290
|
requirement: !ruby/object:Gem::Requirement
|
271
291
|
requirements:
|
272
|
-
- - "
|
292
|
+
- - ">="
|
273
293
|
- !ruby/object:Gem::Version
|
274
|
-
version:
|
294
|
+
version: 1.3.9
|
295
|
+
- - "<="
|
296
|
+
- !ruby/object:Gem::Version
|
297
|
+
version: 2.0.0
|
275
298
|
type: :development
|
276
299
|
prerelease: false
|
277
300
|
version_requirements: !ruby/object:Gem::Requirement
|
278
301
|
requirements:
|
279
|
-
- - "
|
302
|
+
- - ">="
|
280
303
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
304
|
+
version: 1.3.9
|
305
|
+
- - "<="
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: 2.0.0
|
282
308
|
- !ruby/object:Gem::Dependency
|
283
309
|
name: factory_girl_rails
|
284
310
|
requirement: !ruby/object:Gem::Requirement
|
@@ -343,16 +369,22 @@ dependencies:
|
|
343
369
|
name: capybara
|
344
370
|
requirement: !ruby/object:Gem::Requirement
|
345
371
|
requirements:
|
346
|
-
- -
|
372
|
+
- - ">="
|
373
|
+
- !ruby/object:Gem::Version
|
374
|
+
version: 2.1.0
|
375
|
+
- - "<="
|
347
376
|
- !ruby/object:Gem::Version
|
348
|
-
version:
|
377
|
+
version: 3.0.0
|
349
378
|
type: :development
|
350
379
|
prerelease: false
|
351
380
|
version_requirements: !ruby/object:Gem::Requirement
|
352
381
|
requirements:
|
353
|
-
- -
|
382
|
+
- - ">="
|
354
383
|
- !ruby/object:Gem::Version
|
355
|
-
version: 2.
|
384
|
+
version: 2.1.0
|
385
|
+
- - "<="
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
version: 3.0.0
|
356
388
|
- !ruby/object:Gem::Dependency
|
357
389
|
name: ammeter
|
358
390
|
requirement: !ruby/object:Gem::Requirement
|
@@ -367,6 +399,34 @@ dependencies:
|
|
367
399
|
- - '='
|
368
400
|
- !ruby/object:Gem::Version
|
369
401
|
version: 1.0.0
|
402
|
+
- !ruby/object:Gem::Dependency
|
403
|
+
name: selenium-webdriver
|
404
|
+
requirement: !ruby/object:Gem::Requirement
|
405
|
+
requirements:
|
406
|
+
- - '='
|
407
|
+
- !ruby/object:Gem::Version
|
408
|
+
version: 2.42.0
|
409
|
+
type: :development
|
410
|
+
prerelease: false
|
411
|
+
version_requirements: !ruby/object:Gem::Requirement
|
412
|
+
requirements:
|
413
|
+
- - '='
|
414
|
+
- !ruby/object:Gem::Version
|
415
|
+
version: 2.42.0
|
416
|
+
- !ruby/object:Gem::Dependency
|
417
|
+
name: capybara-webkit
|
418
|
+
requirement: !ruby/object:Gem::Requirement
|
419
|
+
requirements:
|
420
|
+
- - '='
|
421
|
+
- !ruby/object:Gem::Version
|
422
|
+
version: 1.1.1
|
423
|
+
type: :development
|
424
|
+
prerelease: false
|
425
|
+
version_requirements: !ruby/object:Gem::Requirement
|
426
|
+
requirements:
|
427
|
+
- - '='
|
428
|
+
- !ruby/object:Gem::Version
|
429
|
+
version: 1.1.1
|
370
430
|
description: Gem that makes the administrative panel for a site a breeze!
|
371
431
|
email:
|
372
432
|
- joserracamacho@gmail.com
|
@@ -424,7 +484,7 @@ files:
|
|
424
484
|
- app/assets/images/adminpanel/toolbar.png
|
425
485
|
- app/assets/javascripts/adminpanel/bootstrap-datepicker.js
|
426
486
|
- app/assets/javascripts/adminpanel/bootstrap-timepicker.js
|
427
|
-
- app/assets/javascripts/adminpanel/bootstrap-wysihtml5-
|
487
|
+
- app/assets/javascripts/adminpanel/bootstrap-wysihtml5-4pre.js
|
428
488
|
- app/assets/javascripts/adminpanel/bootstrap-wysihtml5-advanced.js
|
429
489
|
- app/assets/javascripts/adminpanel/bootstrap-wysihtml5.js
|
430
490
|
- app/assets/javascripts/adminpanel/bootstrap.js
|
@@ -434,31 +494,32 @@ files:
|
|
434
494
|
- app/assets/javascripts/adminpanel/jquery.facybox.js
|
435
495
|
- app/assets/javascripts/adminpanel/jquery.masonry.min.js
|
436
496
|
- app/assets/javascripts/adminpanel/jquery.slimscroll.min.js
|
437
|
-
- app/assets/javascripts/adminpanel/medium-editor.js
|
438
497
|
- app/assets/javascripts/adminpanel/realm.js
|
498
|
+
- app/assets/javascripts/adminpanel/spinner.js.coffee
|
439
499
|
- app/assets/javascripts/adminpanel/tables.js
|
440
|
-
- app/assets/javascripts/adminpanel/wysiwyg.js
|
500
|
+
- app/assets/javascripts/adminpanel/wysiwyg.js.coffee
|
441
501
|
- app/assets/javascripts/application-admin.js
|
442
502
|
- app/assets/stylesheets/adminpanel/_clearfix.css
|
443
503
|
- app/assets/stylesheets/adminpanel/alertify.css
|
444
504
|
- app/assets/stylesheets/adminpanel/bootstrap-wysihtml5.css
|
445
|
-
- app/assets/stylesheets/adminpanel/bootstrap.css
|
505
|
+
- app/assets/stylesheets/adminpanel/bootstrap.css.erb
|
446
506
|
- app/assets/stylesheets/adminpanel/datepicker.css
|
447
507
|
- app/assets/stylesheets/adminpanel/facybox.css
|
448
508
|
- app/assets/stylesheets/adminpanel/fullcalendar.css
|
449
509
|
- app/assets/stylesheets/adminpanel/fullcalendar.print.css
|
450
|
-
- app/assets/stylesheets/adminpanel/medium-editor.css.scss
|
451
510
|
- app/assets/stylesheets/adminpanel/select2.css
|
452
|
-
- app/assets/stylesheets/adminpanel/theme.css
|
511
|
+
- app/assets/stylesheets/adminpanel/theme.css.erb
|
453
512
|
- app/assets/stylesheets/adminpanel/timepicker.css
|
454
513
|
- app/assets/stylesheets/application-admin.css
|
455
514
|
- app/controllers/adminpanel/analytics_controller.rb
|
456
515
|
- app/controllers/adminpanel/application_controller.rb
|
516
|
+
- app/controllers/adminpanel/auths_controller.rb
|
457
517
|
- app/controllers/adminpanel/categories_controller.rb
|
458
518
|
- app/controllers/adminpanel/galleries_controller.rb
|
459
519
|
- app/controllers/adminpanel/sections_controller.rb
|
460
520
|
- app/controllers/adminpanel/sessions_controller.rb
|
461
521
|
- app/controllers/adminpanel/users_controller.rb
|
522
|
+
- app/controllers/concerns/adminpanel/facebook_actions.rb
|
462
523
|
- app/controllers/concerns/adminpanel/galleryzable_actions.rb
|
463
524
|
- app/controllers/concerns/adminpanel/rest_actions.rb
|
464
525
|
- app/helpers/adminpanel/adminpanel_form_builder.rb
|
@@ -468,12 +529,14 @@ files:
|
|
468
529
|
- app/helpers/adminpanel/sessions_helper.rb
|
469
530
|
- app/helpers/adminpanel/shared_pages_helper.rb
|
470
531
|
- app/models/adminpanel/analytic.rb
|
532
|
+
- app/models/adminpanel/auth.rb
|
471
533
|
- app/models/adminpanel/gallery.rb
|
472
534
|
- app/models/adminpanel/group.rb
|
473
535
|
- app/models/adminpanel/image.rb
|
474
536
|
- app/models/adminpanel/section.rb
|
475
537
|
- app/models/adminpanel/user.rb
|
476
538
|
- app/models/concerns/adminpanel/base.rb
|
539
|
+
- app/models/concerns/adminpanel/facebook.rb
|
477
540
|
- app/models/concerns/adminpanel/galleryzation.rb
|
478
541
|
- app/models/contact.rb
|
479
542
|
- app/uploaders/adminpanel/gallery_uploader.rb
|
@@ -501,13 +564,15 @@ files:
|
|
501
564
|
- app/views/layouts/admin-login.html.erb
|
502
565
|
- app/views/layouts/admin.html.erb
|
503
566
|
- app/views/shared/_breadcrumb.html.erb
|
567
|
+
- app/views/shared/_create_remote_resource_button.html.erb
|
504
568
|
- app/views/shared/_delete_icon_button.html.erb
|
505
569
|
- app/views/shared/_edit_icon_button.html.erb
|
506
570
|
- app/views/shared/_error_messages.html.erb
|
571
|
+
- app/views/shared/_fb_icon_button.html.erb
|
572
|
+
- app/views/shared/_fb_publish_modal.html.erb
|
507
573
|
- app/views/shared/_form_fields.html.erb
|
508
574
|
- app/views/shared/_gallery_entries.html.erb
|
509
575
|
- app/views/shared/_image_fields.html.erb
|
510
|
-
- app/views/shared/_init_editor.html.erb
|
511
576
|
- app/views/shared/_modal.html.erb
|
512
577
|
- app/views/shared/_new_resource_button.html.erb
|
513
578
|
- app/views/shared/_remote_form_fields.html.erb
|
@@ -515,6 +580,7 @@ files:
|
|
515
580
|
- app/views/shared/create_belongs_to.js.erb
|
516
581
|
- app/views/shared/create_has_many.js.erb
|
517
582
|
- app/views/shared/edit.html.erb
|
583
|
+
- app/views/shared/fb_choose_page.html.erb
|
518
584
|
- app/views/shared/gallery_entries.js.erb
|
519
585
|
- app/views/shared/index.html.erb
|
520
586
|
- app/views/shared/new.html.erb
|
@@ -540,7 +606,6 @@ files:
|
|
540
606
|
- lib/generators/adminpanel/initialize/templates/section_uploader.rb
|
541
607
|
- lib/generators/adminpanel/resource/resource_generator.rb
|
542
608
|
- lib/generators/adminpanel/resource/templates/controller.rb
|
543
|
-
- lib/generators/adminpanel/resource/templates/migration.rb
|
544
609
|
- lib/generators/adminpanel/resource/templates/resource.rb
|
545
610
|
- lib/tasks/adminpanel/adminpanel.rake
|
546
611
|
- spec/dummy/.gitignore
|
@@ -553,6 +618,7 @@ files:
|
|
553
618
|
- spec/dummy/app/controllers/adminpanel/.gitkeep
|
554
619
|
- spec/dummy/app/controllers/adminpanel/mugs_controller.rb
|
555
620
|
- spec/dummy/app/controllers/adminpanel/products_controller.rb
|
621
|
+
- spec/dummy/app/controllers/adminpanel/salesmen_controller.rb
|
556
622
|
- spec/dummy/app/controllers/application_controller.rb
|
557
623
|
- spec/dummy/app/helpers/application_helper.rb
|
558
624
|
- spec/dummy/app/mailers/.gitkeep
|
@@ -563,6 +629,7 @@ files:
|
|
563
629
|
- spec/dummy/app/models/adminpanel/mug.rb
|
564
630
|
- spec/dummy/app/models/adminpanel/photo.rb
|
565
631
|
- spec/dummy/app/models/adminpanel/product.rb
|
632
|
+
- spec/dummy/app/models/adminpanel/salesman.rb
|
566
633
|
- spec/dummy/app/uploader/adminpanel/photo_uploader.rb
|
567
634
|
- spec/dummy/app/uploader/adminpanel/section_uploader.rb
|
568
635
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -597,7 +664,10 @@ files:
|
|
597
664
|
- spec/features/authentication_pages_spec.rb
|
598
665
|
- spec/features/galleries_pages_spec.rb
|
599
666
|
- spec/features/section_pages_spec.rb
|
600
|
-
- spec/features/
|
667
|
+
- spec/features/shared_pages/edit_spec.rb
|
668
|
+
- spec/features/shared_pages/index_spec.rb
|
669
|
+
- spec/features/shared_pages/new_spec.rb
|
670
|
+
- spec/features/shared_pages/show_spec.rb
|
601
671
|
- spec/generators/gallery_generator_spec.rb
|
602
672
|
- spec/generators/initialize_generator_spec.rb
|
603
673
|
- spec/generators/resource_generator_spec.rb
|
@@ -605,8 +675,10 @@ files:
|
|
605
675
|
- spec/models/section_spec.rb
|
606
676
|
- spec/models/user_spec.rb
|
607
677
|
- spec/spec_helper.rb
|
678
|
+
- spec/support/capybara_matchers.rb
|
608
679
|
- spec/support/factories.rb
|
609
680
|
- spec/support/helper_methods.rb
|
681
|
+
- spec/support/shared_connection.rb
|
610
682
|
- spec/tasks/adminpanel_rake_spec.rb
|
611
683
|
homepage: https://github.com/joseramonc/adminpanel
|
612
684
|
licenses:
|
@@ -621,7 +693,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
621
693
|
requirements:
|
622
694
|
- - ">="
|
623
695
|
- !ruby/object:Gem::Version
|
624
|
-
version:
|
696
|
+
version: 2.0.0
|
625
697
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
626
698
|
requirements:
|
627
699
|
- - ">="
|
@@ -644,6 +716,7 @@ test_files:
|
|
644
716
|
- spec/dummy/app/controllers/adminpanel/.gitkeep
|
645
717
|
- spec/dummy/app/controllers/adminpanel/mugs_controller.rb
|
646
718
|
- spec/dummy/app/controllers/adminpanel/products_controller.rb
|
719
|
+
- spec/dummy/app/controllers/adminpanel/salesmen_controller.rb
|
647
720
|
- spec/dummy/app/controllers/application_controller.rb
|
648
721
|
- spec/dummy/app/helpers/application_helper.rb
|
649
722
|
- spec/dummy/app/mailers/.gitkeep
|
@@ -654,6 +727,7 @@ test_files:
|
|
654
727
|
- spec/dummy/app/models/adminpanel/mug.rb
|
655
728
|
- spec/dummy/app/models/adminpanel/photo.rb
|
656
729
|
- spec/dummy/app/models/adminpanel/product.rb
|
730
|
+
- spec/dummy/app/models/adminpanel/salesman.rb
|
657
731
|
- spec/dummy/app/uploader/adminpanel/photo_uploader.rb
|
658
732
|
- spec/dummy/app/uploader/adminpanel/section_uploader.rb
|
659
733
|
- spec/dummy/app/views/layouts/application.html.erb
|
@@ -688,7 +762,10 @@ test_files:
|
|
688
762
|
- spec/features/authentication_pages_spec.rb
|
689
763
|
- spec/features/galleries_pages_spec.rb
|
690
764
|
- spec/features/section_pages_spec.rb
|
691
|
-
- spec/features/
|
765
|
+
- spec/features/shared_pages/edit_spec.rb
|
766
|
+
- spec/features/shared_pages/index_spec.rb
|
767
|
+
- spec/features/shared_pages/new_spec.rb
|
768
|
+
- spec/features/shared_pages/show_spec.rb
|
692
769
|
- spec/generators/gallery_generator_spec.rb
|
693
770
|
- spec/generators/initialize_generator_spec.rb
|
694
771
|
- spec/generators/resource_generator_spec.rb
|
@@ -696,6 +773,8 @@ test_files:
|
|
696
773
|
- spec/models/section_spec.rb
|
697
774
|
- spec/models/user_spec.rb
|
698
775
|
- spec/spec_helper.rb
|
776
|
+
- spec/support/capybara_matchers.rb
|
699
777
|
- spec/support/factories.rb
|
700
778
|
- spec/support/helper_methods.rb
|
779
|
+
- spec/support/shared_connection.rb
|
701
780
|
- spec/tasks/adminpanel_rake_spec.rb
|