adminpanel 1.2.12 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +3 -4
  3. data/Gemfile +22 -20
  4. data/README.md +12 -9
  5. data/adminpanel.gemspec +29 -28
  6. data/app/assets/fonts/.keep +0 -0
  7. data/app/assets/javascripts/adminpanel/images_form.js +5 -2
  8. data/app/assets/javascripts/adminpanel/imagesloaded.js +5 -2
  9. data/app/assets/javascripts/adminpanel/tables.js +6 -3
  10. data/app/assets/javascripts/application-admin.js +2 -1
  11. data/app/assets/stylesheets/adminpanel/{_clearfix.css.scss → _clearfix.css} +0 -0
  12. data/app/assets/stylesheets/adminpanel/bootstrap.css +2 -2
  13. data/app/assets/stylesheets/adminpanel/medium-editor.css.scss +1 -1
  14. data/app/assets/stylesheets/application-admin.css +2 -1
  15. data/app/controllers/adminpanel/application_controller.rb +28 -21
  16. data/app/controllers/adminpanel/categories_controller.rb +16 -5
  17. data/app/controllers/adminpanel/galleries_controller.rb +11 -5
  18. data/app/controllers/adminpanel/sections_controller.rb +14 -0
  19. data/app/controllers/adminpanel/users_controller.rb +10 -80
  20. data/app/controllers/concerns/adminpanel/galleryzable_actions.rb +33 -0
  21. data/app/controllers/concerns/adminpanel/rest_actions.rb +109 -0
  22. data/app/helpers/adminpanel/application_helper.rb +0 -1
  23. data/app/helpers/adminpanel/custom_form_builder.rb +12 -13
  24. data/app/helpers/adminpanel/router_helper.rb +11 -2
  25. data/app/helpers/adminpanel/shared_pages_helper.rb +0 -1
  26. data/app/models/adminpanel/analytic.rb +3 -2
  27. data/app/models/adminpanel/gallery.rb +8 -4
  28. data/app/models/adminpanel/group.rb +1 -1
  29. data/app/models/adminpanel/image.rb +1 -2
  30. data/app/models/adminpanel/section.rb +19 -10
  31. data/app/models/adminpanel/user.rb +11 -3
  32. data/app/models/concerns/adminpanel/base.rb +149 -0
  33. data/app/models/concerns/adminpanel/galleryzation.rb +66 -0
  34. data/app/models/contact.rb +16 -9
  35. data/app/views/adminpanel/analytics/index.html.erb +2 -1
  36. data/app/views/adminpanel/categories/_categories_table.html.erb +6 -7
  37. data/app/views/adminpanel/categories/_category_form.html.erb +2 -2
  38. data/app/views/adminpanel/categories/create.js.erb +2 -2
  39. data/app/views/adminpanel/categories/index.html.erb +1 -1
  40. data/app/views/adminpanel/galleries/_galleries_table.html.erb +7 -7
  41. data/app/views/adminpanel/galleries/index.html.erb +6 -5
  42. data/app/views/adminpanel/sections/_sections_table.html.erb +2 -2
  43. data/app/views/adminpanel/sections/edit.html.erb +5 -3
  44. data/app/views/adminpanel/sections/show.html.erb +3 -3
  45. data/app/views/adminpanel/sessions/new.html.erb +1 -1
  46. data/app/views/layouts/_side_menu.html.erb +2 -2
  47. data/app/views/layouts/_top_bar.html.erb +3 -3
  48. data/app/views/layouts/admin-login.html.erb +0 -1
  49. data/app/views/layouts/admin.html.erb +3 -3
  50. data/app/views/shared/_delete_icon_button.html.erb +16 -0
  51. data/app/views/shared/_edit_icon_button.html.erb +14 -0
  52. data/app/views/shared/_error_messages.html.erb +1 -1
  53. data/app/views/shared/_form_fields.html.erb +15 -13
  54. data/app/views/shared/_gallery_entries.html.erb +2 -2
  55. data/app/views/shared/_init_editor.html.erb +5 -2
  56. data/app/views/shared/_new_resource_button.html.erb +18 -0
  57. data/app/views/shared/_remote_form_fields.html.erb +1 -1
  58. data/app/views/shared/_show_icon_button.html.erb +14 -0
  59. data/app/views/shared/edit.html.erb +3 -3
  60. data/app/views/shared/index.html.erb +13 -48
  61. data/app/views/shared/new.html.erb +3 -3
  62. data/app/views/shared/show.html.erb +5 -5
  63. data/config/initializers/pluralization_es.rb +16 -0
  64. data/config/locales/en.yml +89 -0
  65. data/config/locales/es.yml +4 -4
  66. data/config/routes.rb +15 -16
  67. data/lib/adminpanel.rb +8 -8
  68. data/lib/adminpanel/version.rb +1 -1
  69. data/lib/generators/adminpanel/gallery/gallery_generator.rb +12 -8
  70. data/lib/generators/adminpanel/gallery/templates/gallery_template.rb +2 -3
  71. data/lib/generators/adminpanel/initialize/templates/category_template.rb +2 -3
  72. data/lib/generators/adminpanel/resource/resource_generator.rb +24 -18
  73. data/lib/generators/adminpanel/resource/templates/controller.rb +5 -0
  74. data/lib/generators/adminpanel/resource/templates/resource.rb +3 -3
  75. data/lib/tasks/adminpanel/adminpanel.rake +43 -90
  76. data/spec/dummy/app/controllers/adminpanel/mugs_controller.rb +9 -0
  77. data/spec/dummy/app/controllers/adminpanel/products_controller.rb +12 -0
  78. data/spec/dummy/app/models/ability.rb +1 -1
  79. data/spec/dummy/app/models/adminpanel/categorization.rb +1 -2
  80. data/spec/dummy/app/models/adminpanel/category.rb +18 -19
  81. data/spec/dummy/app/models/adminpanel/mug.rb +37 -0
  82. data/spec/dummy/app/models/adminpanel/photo.rb +3 -3
  83. data/spec/dummy/app/models/adminpanel/product.rb +2 -2
  84. data/spec/dummy/config/application.rb +2 -11
  85. data/spec/dummy/config/database.yml +0 -6
  86. data/spec/dummy/config/environments/development.rb +11 -23
  87. data/spec/dummy/config/environments/production.rb +40 -32
  88. data/spec/dummy/config/environments/test.rb +13 -18
  89. data/spec/dummy/config/initializers/adminpanel_setup.rb +2 -1
  90. data/spec/dummy/config/locales/.keep +0 -0
  91. data/spec/dummy/db/schema.rb +68 -2
  92. data/spec/features/authentication_pages_spec.rb +15 -15
  93. data/spec/features/galleries_pages_spec.rb +30 -22
  94. data/spec/features/section_pages_spec.rb +15 -18
  95. data/spec/features/shared_pages_spec.rb +97 -127
  96. data/spec/generators/gallery_generator_spec.rb +2 -3
  97. data/spec/generators/resource_generator_spec.rb +20 -3
  98. data/spec/models/gallery_spec.rb +2 -2
  99. data/spec/models/section_spec.rb +8 -15
  100. data/spec/models/user_spec.rb +23 -39
  101. data/spec/spec_helper.rb +9 -1
  102. data/spec/support/factories.rb +52 -0
  103. data/spec/support/helper_methods.rb +25 -5
  104. data/spec/tasks/adminpanel_rake_spec.rb +11 -10
  105. metadata +361 -353
  106. data/app/assets/fonts/FontAwesome.otf +0 -0
  107. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  108. data/app/assets/fonts/fontawesome-webfont.svg +0 -255
  109. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  110. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  111. data/app/assets/stylesheets/adminpanel/colorpicker.css +0 -7
  112. data/app/assets/stylesheets/adminpanel/elfinder.min.css +0 -59
  113. data/app/assets/stylesheets/adminpanel/font-awesome.min.css +0 -34
  114. data/app/helpers/adminpanel/pluralizations_helper.rb +0 -25
  115. data/app/helpers/adminpanel/rest_actions_helper.rb +0 -128
  116. data/app/views/adminpanel/galleries/delete.html.erb +0 -2
  117. data/app/views/adminpanel/galleries/edit.html.erb +0 -19
  118. data/app/views/adminpanel/galleries/new.html.erb +0 -18
  119. data/app/views/adminpanel/galleries/show.html.erb +0 -18
  120. data/app/views/adminpanel/galleries/update.html.erb +0 -2
  121. data/lib/adminpanel/active_record/adminpanel_extension.rb +0 -187
  122. data/spec/dummy/config/locales/en.yml +0 -5
  123. data/spec/support/define_factory_models.rb +0 -45
  124. data/spec/support/submit_forms_without_button.rb +0 -17
  125. data/spec/support/test_database.rb +0 -76
  126. data/spec/uploaders/gallery_uploader_spec.rb +0 -37
  127. data/spec/uploaders/image_uploader_spec.rb +0 -31
@@ -31,14 +31,13 @@ describe Adminpanel::Generators::GalleryGenerator do
31
31
  )
32
32
  end
33
33
 
34
- it 'should generate the productfile model with uploader and attr_accessible' do
34
+ it 'should generate the productfile model with uploader' do
35
35
  file('app/models/adminpanel/productfile.rb').should(
36
- contain(/attr_accessible :product_id, :file/) &&
37
36
  contain(/mount_uploader :file, ProductfileUploader/)
38
37
  )
39
38
  end
40
39
 
41
- it 'should generate the productfile model with uploader and attr_accessible' do
40
+ it 'should generate the productfile model with uploader' do
42
41
  file('app/models/adminpanel/productfile.rb').should exist
43
42
  end
44
43
 
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
  require 'generators/adminpanel/resource/resource_generator'
3
3
 
4
4
  describe Adminpanel::Generators::ResourceGenerator do
5
- destination File.expand_path("../../dummy/tmp", __FILE__)
5
+ destination File.expand_path('../../dummy/tmp', __FILE__)
6
6
 
7
7
  before do
8
8
  prepare_destination
@@ -46,8 +46,24 @@ describe Adminpanel::Generators::ResourceGenerator do
46
46
  end
47
47
  end
48
48
 
49
- it 'should generate posts controller' do
50
- file('app/controllers/adminpanel/posts_controller.rb').should exist
49
+ context 'the controller' do
50
+ it 'should generate posts controller' do
51
+ file('app/controllers/adminpanel/posts_controller.rb').should exist
52
+ end
53
+
54
+ it 'should have the params whitelisted' do
55
+ file('app/controllers/adminpanel/posts_controller.rb').should(
56
+ contain(/params.require(:post).permit/) &&
57
+ contain(/:name/) &&
58
+ contain(/:description/) &&
59
+ contain(/:number/) &&
60
+ contain(/:flag/) &&
61
+ contain(/:quantity/) &&
62
+ contain(/:date/) &&
63
+ contain(/{:postfiles_attributes => \[:id, :file, :_destroy\]}/)
64
+ )
65
+ end
66
+
51
67
  end
52
68
 
53
69
 
@@ -58,6 +74,7 @@ describe Adminpanel::Generators::ResourceGenerator do
58
74
  context 'the model' do
59
75
  it 'should generate the model with correct values' do
60
76
  file('app/models/adminpanel/post.rb').should(
77
+ contain(/include Adminpanel::Base/) &&
61
78
  contain(/mount_images :postfiles/) &&
62
79
  contain(/'photos' => \{/) &&
63
80
  contain(/'type' => 'adminpanel_file_field'/)
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require 'support/test_database'
2
+
3
3
 
4
4
 
5
5
  describe Adminpanel::Gallery do
@@ -19,6 +19,6 @@ describe Adminpanel::Gallery do
19
19
  end
20
20
 
21
21
  describe "default scope" do
22
- it { expect(Adminpanel::Gallery.scoped.to_sql).to eq Adminpanel::Gallery.reorder('').order('position ASC').to_sql}
22
+ it { expect(Adminpanel::Gallery.all.to_sql).to eq Adminpanel::Gallery.reorder('').order('position ASC').to_sql}
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require 'support/test_database'
2
+
3
3
 
4
4
  describe Adminpanel::Section do
5
5
  before do
@@ -15,25 +15,18 @@ describe Adminpanel::Section do
15
15
 
16
16
  subject { @section }
17
17
 
18
- it { should respond_to(:description) }
19
- it { should respond_to(:has_image) }
20
- it { should respond_to(:key) }
21
- it { should respond_to(:name) }
22
- it { should respond_to(:has_description) }
23
- it { should respond_to(:page) }
24
-
25
- describe "when key is telephone and has less than 10 chars" do
18
+ describe 'when key is telephone and has less than 10 chars' do
26
19
  before do
27
- @section.key = "telephone"
28
- @section.description = "1" * 9
20
+ @section.key = 'telephone'
21
+ @section.description = '1' * 9
29
22
  end
30
23
  it { @section.valid? eq false}
31
24
  end
32
25
 
33
- describe "when key is telephone and has more than 10 chars" do
26
+ describe 'when key is telephone and has more than 10 chars' do
34
27
  before do
35
- @section.key = "telephone"
36
- @section.description = "1" * 11
28
+ @section.key = 'telephone'
29
+ @section.description = '1' * 11
37
30
  end
38
31
  it { @section.valid? eq false}
39
32
  end
@@ -63,6 +56,6 @@ describe Adminpanel::Section do
63
56
  end
64
57
 
65
58
  describe "default scope" do
66
- it { expect(Adminpanel::Section.scoped.to_sql).to eq Adminpanel::Section.reorder('').order('page ASC').to_sql}
59
+ it { expect(Adminpanel::Section.all.to_sql).to eq Adminpanel::Section.reorder('').order('page ASC').to_sql}
67
60
  end
68
61
  end
@@ -1,30 +1,20 @@
1
1
  require 'spec_helper'
2
- require 'support/test_database'
3
-
4
2
 
5
3
  describe Adminpanel::User do
6
- let(:group) { Factory(:group) }
4
+
7
5
  before do
8
6
  @user = Adminpanel::User.new(
9
7
  :name => "Example User",
10
8
  :email => "user@example.com",
11
9
  :password => "foobar",
12
10
  :password_confirmation => "foobar",
13
- :group_id => group.object_id
14
- )
11
+ :group_id => get_admin_group.id
12
+ )
15
13
  end
16
14
 
17
15
  subject { @user }
18
16
 
19
- it { should respond_to(:name) }
20
- it { should respond_to(:email) }
21
- it { should respond_to(:group_id) }
22
- it { should respond_to(:password_digest) }
23
- it { should respond_to(:password) }
24
- it { should respond_to(:password_confirmation) }
25
-
26
17
  it { should be_valid }
27
- it { should respond_to(:authenticate) }
28
18
 
29
19
  describe "when name is not present" do
30
20
  before { @user.name = " " }
@@ -36,16 +26,6 @@ describe Adminpanel::User do
36
26
  it { should_not be_valid }
37
27
  end
38
28
 
39
- describe "when email address is already taken" do
40
- before do
41
- user_with_same_email = @user.dup
42
- user_with_same_email.email = @user.email.upcase
43
- user_with_same_email.save
44
- end
45
-
46
- it { should_not be_valid }
47
- end
48
-
49
29
  describe "when name is too long" do
50
30
  before { @user.name = "a" * 51 }
51
31
  it { should_not be_valid }
@@ -54,10 +34,10 @@ describe Adminpanel::User do
54
34
  describe "when email format is invalid" do
55
35
  it "should be invalid" do
56
36
  addresses = %w[user@foo,com user_at_foo.org example.user@foo.
57
- foo@bar_baz.com foo@bar+baz.com]
37
+ foo@bar_baz.com foo@bar+baz.com]
58
38
  addresses.each do |invalid_address|
59
39
  @user.email = invalid_address
60
- @user.should_not be_valid
40
+ expect(@user).not_to be_valid
61
41
  end
62
42
  end
63
43
  end
@@ -67,23 +47,31 @@ describe Adminpanel::User do
67
47
  addresses = %w[user@foo.COM A_US-ER@f.b.org frst.lst@foo.jp a+b@baz.cn]
68
48
  addresses.each do |valid_address|
69
49
  @user.email = valid_address
70
- @user.should be_valid
50
+ expect(@user).to be_valid
71
51
  end
72
52
  end
73
53
  end
74
54
 
75
- describe "when password is not present" do
76
- before { @user.password = @user.password_confirmation = " " }
55
+ describe "when email address is already taken" do
56
+ before do
57
+ user_with_same_email = @user.dup
58
+ user_with_same_email.email = @user.email.upcase
59
+ user_with_same_email.save
60
+ end
61
+
77
62
  it { should_not be_valid }
78
63
  end
79
64
 
80
- describe "when password doesn't match confirmation" do
81
- before { @user.password_confirmation = "mismatch" }
65
+ describe "when password is not present" do
66
+ before do
67
+ @user = Adminpanel::User.new(name: "Example User", email: "user@example.com",
68
+ password: " ", password_confirmation: " ")
69
+ end
82
70
  it { should_not be_valid }
83
71
  end
84
72
 
85
- describe "when password confirmation is nil" do
86
- before { @user.password_confirmation = nil }
73
+ describe "when password doesn't match confirmation" do
74
+ before { @user.password_confirmation = "mismatch" }
87
75
  it { should_not be_valid }
88
76
  end
89
77
 
@@ -94,17 +82,13 @@ describe Adminpanel::User do
94
82
 
95
83
  describe "return value of authenticate method" do
96
84
  before { @user.save }
97
- let(:found_user) { Adminpanel::User.find_by_email(@user.email) }
98
-
99
- describe "with valid password" do
100
- it { should == found_user.authenticate(@user.password) }
101
- end
85
+ let(:found_user) {Adminpanel::User.find_by(email: @user.email) }
102
86
 
103
87
  describe "with invalid password" do
104
88
  let(:user_for_invalid_password) { found_user.authenticate("invalid") }
105
89
 
106
- it { should_not == user_for_invalid_password }
107
- specify { user_for_invalid_password.should be_false }
90
+ it { should_not eq user_for_invalid_password }
91
+ specify { expect(user_for_invalid_password).to be_false }
108
92
  end
109
93
  end
110
94
  end
data/spec/spec_helper.rb CHANGED
@@ -9,13 +9,16 @@ ENV["RAILS_ENV"] ||= 'test'
9
9
  require File.expand_path("../dummy/config/environment", __FILE__)
10
10
  require "rspec/rails"
11
11
  require "capybara/rspec"
12
- require "factory_girl"
12
+ require "factory_girl_rails"
13
+ require 'carrierwave/orm/activerecord'
13
14
  require "carrierwave/test/matchers"
14
15
  require "active_record"
15
16
  require "rake"
16
17
 
18
+
17
19
  Dir["./spec/support/**/*.rb"].sort.each { |f| require f }
18
20
 
21
+ # FactoryGirl.find_definitions
19
22
  RSpec.configure do |config|
20
23
  config.treat_symbols_as_metadata_keys_with_true_values = true
21
24
  config.run_all_when_everything_filtered = true
@@ -27,6 +30,11 @@ RSpec.configure do |config|
27
30
  :database => ':memory:'
28
31
  )
29
32
 
33
+ config.include ActionDispatch::TestProcess
34
+
35
+ puts "creating sqlite in memory database"
36
+ load "#{Rails.root}/db/schema.rb"
37
+
30
38
  config.use_transactional_fixtures = false
31
39
 
32
40
  config.include Rails.application.routes.url_helpers
@@ -0,0 +1,52 @@
1
+ include ActionDispatch::TestProcess
2
+ FactoryGirl.define do
3
+
4
+ factory :user, :class => Adminpanel::User do
5
+ name 'test user'
6
+ email 'email@test.com'
7
+ password '123456'
8
+ password_confirmation '123456'
9
+ group_id 1
10
+ end
11
+
12
+ factory :group, :class => Adminpanel::Group do
13
+ name 'Admin'
14
+ end
15
+
16
+ factory :product, :class => Adminpanel::Product do
17
+ price "12392.2"
18
+ name "very little description"
19
+ description "this is a little longer description, can be very long"
20
+ end
21
+
22
+ factory :gallery, :class => Adminpanel::Gallery do
23
+ file { fixture_file_upload(Rails.root.join('app', 'assets', 'images', 'hipster.jpg'), 'image/jpeg') }
24
+ end
25
+
26
+ factory :section_with_gallery, :class => Adminpanel::Section do
27
+ key 'key'
28
+ # description "<p>description</p>"
29
+ has_image true
30
+ has_description false
31
+ name 'section_name'
32
+ page 'index'
33
+ end
34
+
35
+ factory :image_section, :class => Adminpanel::Image do |image|
36
+ file { fixture_file_upload(Rails.root.join('app', 'assets', 'images', 'hipster.jpg'), 'image/jpeg') }
37
+ end
38
+
39
+ factory :category, :class => Adminpanel::Category do
40
+ name 'Test Category'
41
+ model 'Product'
42
+ end
43
+
44
+ factory :photo, :class => Adminpanel::Photo do
45
+ file { fixture_file_upload(Rails.root.join('app', 'assets', 'images', 'hipster.jpg'), 'image/jpeg') }
46
+ end
47
+
48
+ factory :mug, :class => Adminpanel::Mug do
49
+ name 'super mug'
50
+ number 2
51
+ end
52
+ end
@@ -1,8 +1,28 @@
1
- def valid_signin(user)
2
- Factory(:group)
3
- fill_in "inputEmail", :with => user.email
4
- fill_in "inputPassword", :with => user.password
5
- click_button "signin-button"
1
+ def valid_signin_as_admin(user)
2
+ user.update_attribute(:group_id, get_admin_group.id)
3
+ fill_in 'inputEmail', :with => user.email
4
+ fill_in 'inputPassword', :with => user.password
5
+ click_button 'signin-button'
6
+ end
7
+
8
+ def get_admin_group
9
+ group = Adminpanel::Group.find_by_name('Admin')
10
+ if group.nil?
11
+ FactoryGirl.create(:group)
12
+ group = Adminpanel::Group.find_by_name('Admin')
13
+ end
14
+ group
15
+ end
16
+
17
+ def get_user
18
+ if Adminpanel::User.count == 0
19
+ FactoryGirl.create(:user)
20
+ elsif Adminpanel::User.count == 1
21
+ Adminpanel::User.first
22
+ else
23
+ Adminpanel::User.delete_all
24
+ get_user
25
+ end
6
26
  end
7
27
 
8
28
  RSpec::Matchers::define :have_title do |text|
@@ -1,14 +1,15 @@
1
1
  require 'spec_helper'
2
- require 'support/test_database'
3
2
 
4
- describe "adminpanel rake task" do
3
+
4
+ describe 'adminpanel rake task' do
5
5
 
6
6
  before :all do
7
- Rake.application.rake_require "tasks/adminpanel/adminpanel"
7
+ Adminpanel::Section.delete_all
8
+ Rake.application.rake_require 'tasks/adminpanel/adminpanel'
8
9
  Rake::Task.define_task(:environment)
9
10
  end
10
11
 
11
- describe "adminpanel:populate[10, product, name:name description:lorem price:small_lorem]" do
12
+ describe 'adminpanel:populate[10, product, name:name description:lorem price:small_lorem]' do
12
13
 
13
14
  let(:has_nil_attribute) { false }
14
15
  before do
@@ -21,7 +22,7 @@ describe "adminpanel rake task" do
21
22
  # end
22
23
 
23
24
  it "attributes shouldn't be nil" do
24
- Adminpanel::Product.find(:all).each do |product|
25
+ Adminpanel::Product.all.each do |product|
25
26
  if (product.name.nil? || product.description.nil? || product.price.nil? ||
26
27
  product.name == "" || product.description == "" || product.price == "")
27
28
  has_nil_attribute = true
@@ -31,9 +32,9 @@ describe "adminpanel rake task" do
31
32
  end
32
33
  end
33
34
 
34
- describe "adminpanel:section[about, mission]" do
35
+ describe 'adminpanel:section[mission, about]' do
35
36
  before do
36
- Rake.application.invoke_task "adminpanel:section[about, mission]"
37
+ Rake.application.invoke_task "adminpanel:section[mission, about]"
37
38
  end
38
39
 
39
40
  it "should create a section with name 'mission' and section 'about'" do
@@ -49,10 +50,10 @@ describe "adminpanel rake task" do
49
50
 
50
51
  describe 'adminpanel:user' do
51
52
  before do
52
- Rake.application.invoke_task "adminpanel:user"
53
+ Rake.application.invoke_task 'adminpanel:user'
53
54
  end
54
- it 'should create admin@codn user' do
55
- Adminpanel::User.last.email.should eq('admin@codn.com')
55
+ it 'should create webmaster@codn user' do
56
+ Adminpanel::User.last.email.should eq('webmaster@codn.com')
56
57
  end
57
58
  end
58
59
  end
metadata CHANGED
@@ -1,354 +1,381 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: adminpanel
3
- version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
6
- segments:
7
- - 1
8
- - 2
9
- - 12
10
- version: 1.2.12
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Jose Ramon Camacho
14
8
  - Victor Camacho
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2014-04-30 00:00:00 -05:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
12
+ date: 2014-05-05 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  name: rails
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 23
31
- segments:
32
- - 3
33
- - 2
34
- - 12
35
- version: 3.2.12
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: 4.0.0
21
+ - - <=
22
+ - !ruby/object:Gem::Version
23
+ version: 4.1.0
36
24
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: carrierwave
40
25
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 59
47
- segments:
48
- - 0
49
- - 9
50
- - 0
51
- version: 0.9.0
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - '>='
29
+ - !ruby/object:Gem::Version
30
+ version: 4.0.0
31
+ - - <=
32
+ - !ruby/object:Gem::Version
33
+ version: 4.1.0
34
+ - !ruby/object:Gem::Dependency
35
+ name: carrierwave
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.10.0
41
+ - - <=
42
+ - !ruby/object:Gem::Version
43
+ version: 1.0.0
52
44
  type: :runtime
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: rmagick
56
45
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ~>
61
- - !ruby/object:Gem::Version
62
- hash: 63
63
- segments:
64
- - 2
65
- - 13
66
- - 2
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - '>='
49
+ - !ruby/object:Gem::Version
50
+ version: 0.10.0
51
+ - - <=
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: rmagick
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
67
60
  version: 2.13.2
68
61
  type: :runtime
69
- version_requirements: *id003
70
- - !ruby/object:Gem::Dependency
71
- name: jquery-rails
72
62
  prerelease: false
73
- requirement: &id004 !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ~>
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 3
81
- - 1
82
- - 0
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 2.13.2
68
+ - !ruby/object:Gem::Dependency
69
+ name: jquery-rails
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
83
74
  version: 3.1.0
75
+ - - <=
76
+ - !ruby/object:Gem::Version
77
+ version: 4.0.0
84
78
  type: :runtime
85
- version_requirements: *id004
86
- - !ruby/object:Gem::Dependency
87
- name: bcrypt-ruby
88
79
  prerelease: false
89
- requirement: &id005 !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ~>
93
- - !ruby/object:Gem::Version
94
- hash: 7
95
- segments:
96
- - 3
97
- - 0
98
- - 0
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - '>='
83
+ - !ruby/object:Gem::Version
84
+ version: 3.1.0
85
+ - - <=
86
+ - !ruby/object:Gem::Version
87
+ version: 4.0.0
88
+ - !ruby/object:Gem::Dependency
89
+ name: turbolinks
90
+ requirement: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - '>='
93
+ - !ruby/object:Gem::Version
94
+ version: 2.2.2
95
+ - - <=
96
+ - !ruby/object:Gem::Version
99
97
  version: 3.0.0
100
98
  type: :runtime
101
- version_requirements: *id005
102
- - !ruby/object:Gem::Dependency
103
- name: rails-i18n
104
99
  prerelease: false
105
- requirement: &id006 !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- hash: 7
111
- segments:
112
- - 3
113
- - 0
114
- - 0
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: 2.2.2
105
+ - - <=
106
+ - !ruby/object:Gem::Version
115
107
  version: 3.0.0
108
+ - !ruby/object:Gem::Dependency
109
+ name: bcrypt
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - '>='
113
+ - !ruby/object:Gem::Version
114
+ version: 3.1.7
115
+ - - <=
116
+ - !ruby/object:Gem::Version
117
+ version: 4.0.0
116
118
  type: :runtime
117
- version_requirements: *id006
118
- - !ruby/object:Gem::Dependency
119
- name: inherited_resources
120
119
  prerelease: false
121
- requirement: &id007 !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ~>
125
- - !ruby/object:Gem::Version
126
- hash: 25
127
- segments:
128
- - 1
129
- - 3
130
- - 1
131
- version: 1.3.1
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.7
125
+ - - <=
126
+ - !ruby/object:Gem::Version
127
+ version: 4.0.0
128
+ - !ruby/object:Gem::Dependency
129
+ name: rails-i18n
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: 4.0.2
135
+ - - <=
136
+ - !ruby/object:Gem::Version
137
+ version: 4.1.0
132
138
  type: :runtime
133
- version_requirements: *id007
134
- - !ruby/object:Gem::Dependency
135
- name: cancan
136
139
  prerelease: false
137
- requirement: &id008 !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ~>
141
- - !ruby/object:Gem::Version
142
- hash: 27
143
- segments:
144
- - 1
145
- - 6
146
- - 10
147
- version: 1.6.10
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - '>='
143
+ - !ruby/object:Gem::Version
144
+ version: 4.0.2
145
+ - - <=
146
+ - !ruby/object:Gem::Version
147
+ version: 4.1.0
148
+ - !ruby/object:Gem::Dependency
149
+ name: inherited_resources
150
+ requirement: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - '>='
153
+ - !ruby/object:Gem::Version
154
+ version: 1.4.1
155
+ - - <=
156
+ - !ruby/object:Gem::Version
157
+ version: 2.0.0
158
+ type: :runtime
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - '>='
163
+ - !ruby/object:Gem::Version
164
+ version: 1.4.1
165
+ - - <=
166
+ - !ruby/object:Gem::Version
167
+ version: 2.0.0
168
+ - !ruby/object:Gem::Dependency
169
+ name: cancancan
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '1.7'
175
+ - - <=
176
+ - !ruby/object:Gem::Version
177
+ version: 2.0.0
148
178
  type: :runtime
149
- version_requirements: *id008
150
- - !ruby/object:Gem::Dependency
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '1.7'
185
+ - - <=
186
+ - !ruby/object:Gem::Version
187
+ version: 2.0.0
188
+ - !ruby/object:Gem::Dependency
151
189
  name: google-api-client
190
+ requirement: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '>='
193
+ - !ruby/object:Gem::Version
194
+ version: 0.7.1
195
+ - - <=
196
+ - !ruby/object:Gem::Version
197
+ version: 1.0.0
198
+ type: :runtime
152
199
  prerelease: false
153
- requirement: &id009 !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ~>
157
- - !ruby/object:Gem::Version
158
- hash: 1
159
- segments:
160
- - 0
161
- - 7
162
- - 1
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - '>='
203
+ - !ruby/object:Gem::Version
163
204
  version: 0.7.1
205
+ - - <=
206
+ - !ruby/object:Gem::Version
207
+ version: 1.0.0
208
+ - !ruby/object:Gem::Dependency
209
+ name: faker
210
+ requirement: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - '>='
213
+ - !ruby/object:Gem::Version
214
+ version: 1.3.0
215
+ - - <=
216
+ - !ruby/object:Gem::Version
217
+ version: 2.0.0
164
218
  type: :runtime
165
- version_requirements: *id009
166
- - !ruby/object:Gem::Dependency
167
- name: bundler
168
219
  prerelease: false
169
- requirement: &id010 !ruby/object:Gem::Requirement
170
- none: false
171
- requirements:
172
- - - ~>
173
- - !ruby/object:Gem::Version
174
- hash: 9
175
- segments:
176
- - 1
177
- - 3
178
- version: "1.3"
179
- type: :development
180
- version_requirements: *id010
181
- - !ruby/object:Gem::Dependency
182
- name: activerecord
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - '>='
223
+ - !ruby/object:Gem::Version
224
+ version: 1.3.0
225
+ - - <=
226
+ - !ruby/object:Gem::Version
227
+ version: 2.0.0
228
+ - !ruby/object:Gem::Dependency
229
+ name: sass-rails
230
+ requirement: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - '>='
233
+ - !ruby/object:Gem::Version
234
+ version: 4.0.3
235
+ - - <=
236
+ - !ruby/object:Gem::Version
237
+ version: 4.1.0
238
+ type: :runtime
183
239
  prerelease: false
184
- requirement: &id011 !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ~>
188
- - !ruby/object:Gem::Version
189
- hash: 23
190
- segments:
191
- - 3
192
- - 2
193
- - 12
194
- version: 3.2.12
195
- type: :development
196
- version_requirements: *id011
197
- - !ruby/object:Gem::Dependency
198
- name: rake
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - '>='
243
+ - !ruby/object:Gem::Version
244
+ version: 4.0.3
245
+ - - <=
246
+ - !ruby/object:Gem::Version
247
+ version: 4.1.0
248
+ - !ruby/object:Gem::Dependency
249
+ name: font-awesome-rails
250
+ requirement: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - '>='
253
+ - !ruby/object:Gem::Version
254
+ version: 4.0.3.1
255
+ - - <=
256
+ - !ruby/object:Gem::Version
257
+ version: 4.1.0
258
+ type: :runtime
199
259
  prerelease: false
200
- requirement: &id012 !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - "="
204
- - !ruby/object:Gem::Version
205
- hash: 73
206
- segments:
207
- - 10
208
- - 1
209
- - 1
210
- version: 10.1.1
211
- type: :development
212
- version_requirements: *id012
213
- - !ruby/object:Gem::Dependency
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - '>='
263
+ - !ruby/object:Gem::Version
264
+ version: 4.0.3.1
265
+ - - <=
266
+ - !ruby/object:Gem::Version
267
+ version: 4.1.0
268
+ - !ruby/object:Gem::Dependency
214
269
  name: sqlite3
215
- prerelease: false
216
- requirement: &id013 !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ">="
220
- - !ruby/object:Gem::Version
221
- hash: 3
222
- segments:
223
- - 0
224
- version: "0"
225
- type: :development
226
- version_requirements: *id013
227
- - !ruby/object:Gem::Dependency
228
- name: factory_girl
229
- prerelease: false
230
- requirement: &id014 !ruby/object:Gem::Requirement
231
- none: false
232
- requirements:
233
- - - "="
234
- - !ruby/object:Gem::Version
235
- hash: 31
236
- segments:
237
- - 2
238
- - 6
239
- - 4
240
- version: 2.6.4
241
- type: :development
242
- version_requirements: *id014
243
- - !ruby/object:Gem::Dependency
244
- name: rspec
245
- prerelease: false
246
- requirement: &id015 !ruby/object:Gem::Requirement
247
- none: false
248
- requirements:
270
+ requirement: !ruby/object:Gem::Requirement
271
+ requirements:
249
272
  - - ~>
250
- - !ruby/object:Gem::Version
251
- hash: 55
252
- segments:
253
- - 2
254
- - 14
255
- - 0
256
- version: 2.14.0
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
257
275
  type: :development
258
- version_requirements: *id015
259
- - !ruby/object:Gem::Dependency
260
- name: rspec-rails
261
276
  prerelease: false
262
- requirement: &id016 !ruby/object:Gem::Requirement
263
- none: false
264
- requirements:
277
+ version_requirements: !ruby/object:Gem::Requirement
278
+ requirements:
265
279
  - - ~>
266
- - !ruby/object:Gem::Version
267
- hash: 55
268
- segments:
269
- - 2
270
- - 14
271
- - 0
272
- version: 2.14.0
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ - !ruby/object:Gem::Dependency
283
+ name: factory_girl_rails
284
+ requirement: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - '>='
287
+ - !ruby/object:Gem::Version
288
+ version: 4.4.1
289
+ - - <=
290
+ - !ruby/object:Gem::Version
291
+ version: 5.0.0
273
292
  type: :development
274
- version_requirements: *id016
275
- - !ruby/object:Gem::Dependency
276
- name: capybara
277
293
  prerelease: false
278
- requirement: &id017 !ruby/object:Gem::Requirement
279
- none: false
280
- requirements:
281
- - - "="
282
- - !ruby/object:Gem::Version
283
- hash: 27
284
- segments:
285
- - 1
286
- - 1
287
- - 4
288
- version: 1.1.4
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - '>='
297
+ - !ruby/object:Gem::Version
298
+ version: 4.4.1
299
+ - - <=
300
+ - !ruby/object:Gem::Version
301
+ version: 5.0.0
302
+ - !ruby/object:Gem::Dependency
303
+ name: rspec
304
+ requirement: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - '>='
307
+ - !ruby/object:Gem::Version
308
+ version: 2.14.1
309
+ - - <=
310
+ - !ruby/object:Gem::Version
311
+ version: 3.0.0
289
312
  type: :development
290
- version_requirements: *id017
291
- - !ruby/object:Gem::Dependency
292
- name: nokogiri
293
313
  prerelease: false
294
- requirement: &id018 !ruby/object:Gem::Requirement
295
- none: false
296
- requirements:
297
- - - "="
298
- - !ruby/object:Gem::Version
299
- hash: 17
300
- segments:
301
- - 1
302
- - 5
303
- - 9
304
- version: 1.5.9
314
+ version_requirements: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - '>='
317
+ - !ruby/object:Gem::Version
318
+ version: 2.14.1
319
+ - - <=
320
+ - !ruby/object:Gem::Version
321
+ version: 3.0.0
322
+ - !ruby/object:Gem::Dependency
323
+ name: rspec-rails
324
+ requirement: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - '>='
327
+ - !ruby/object:Gem::Version
328
+ version: 2.14.1
329
+ - - <=
330
+ - !ruby/object:Gem::Version
331
+ version: 3.0.0
305
332
  type: :development
306
- version_requirements: *id018
307
- - !ruby/object:Gem::Dependency
308
- name: rubyzip
309
333
  prerelease: false
310
- requirement: &id019 !ruby/object:Gem::Requirement
311
- none: false
312
- requirements:
313
- - - "="
314
- - !ruby/object:Gem::Version
315
- hash: 41
316
- segments:
317
- - 0
318
- - 9
319
- - 9
320
- version: 0.9.9
334
+ version_requirements: !ruby/object:Gem::Requirement
335
+ requirements:
336
+ - - '>='
337
+ - !ruby/object:Gem::Version
338
+ version: 2.14.1
339
+ - - <=
340
+ - !ruby/object:Gem::Version
341
+ version: 3.0.0
342
+ - !ruby/object:Gem::Dependency
343
+ name: capybara
344
+ requirement: !ruby/object:Gem::Requirement
345
+ requirements:
346
+ - - '='
347
+ - !ruby/object:Gem::Version
348
+ version: 2.2.1
321
349
  type: :development
322
- version_requirements: *id019
323
- - !ruby/object:Gem::Dependency
324
- name: ammeter
325
350
  prerelease: false
326
- requirement: &id020 !ruby/object:Gem::Requirement
327
- none: false
328
- requirements:
329
- - - "="
330
- - !ruby/object:Gem::Version
331
- hash: 5
332
- segments:
333
- - 0
334
- - 2
335
- - 9
336
- version: 0.2.9
351
+ version_requirements: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - '='
354
+ - !ruby/object:Gem::Version
355
+ version: 2.2.1
356
+ - !ruby/object:Gem::Dependency
357
+ name: ammeter
358
+ requirement: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - '='
361
+ - !ruby/object:Gem::Version
362
+ version: 1.0.0
337
363
  type: :development
338
- version_requirements: *id020
339
- description: Gem that makes the admin panel for a site a breeze!
340
- email:
364
+ prerelease: false
365
+ version_requirements: !ruby/object:Gem::Requirement
366
+ requirements:
367
+ - - '='
368
+ - !ruby/object:Gem::Version
369
+ version: 1.0.0
370
+ description: Gem that makes the administrative panel for a site a breeze!
371
+ email:
341
372
  - joserracamacho@gmail.com
342
373
  executables: []
343
-
344
374
  extensions: []
345
-
346
375
  extra_rdoc_files: []
347
-
348
- files:
376
+ files:
349
377
  - .gitignore
350
378
  - .rspec
351
- - .ruby-version
352
379
  - .travis.yml
353
380
  - Gemfile
354
381
  - LICENSE.txt
@@ -356,11 +383,7 @@ files:
356
383
  - Rakefile
357
384
  - adminpanel.gemspec
358
385
  - app/assets/fonts/.DS_Store
359
- - app/assets/fonts/FontAwesome.otf
360
- - app/assets/fonts/fontawesome-webfont.eot
361
- - app/assets/fonts/fontawesome-webfont.svg
362
- - app/assets/fonts/fontawesome-webfont.ttf
363
- - app/assets/fonts/fontawesome-webfont.woff
386
+ - app/assets/fonts/.keep
364
387
  - app/assets/images/adminpanel/alpha.png
365
388
  - app/assets/images/adminpanel/arrows-active.png
366
389
  - app/assets/images/adminpanel/arrows-normal.png
@@ -412,14 +435,11 @@ files:
412
435
  - app/assets/javascripts/adminpanel/realm.js
413
436
  - app/assets/javascripts/adminpanel/tables.js
414
437
  - app/assets/javascripts/application-admin.js
415
- - app/assets/stylesheets/adminpanel/_clearfix.css.scss
438
+ - app/assets/stylesheets/adminpanel/_clearfix.css
416
439
  - app/assets/stylesheets/adminpanel/alertify.css
417
440
  - app/assets/stylesheets/adminpanel/bootstrap.css
418
- - app/assets/stylesheets/adminpanel/colorpicker.css
419
441
  - app/assets/stylesheets/adminpanel/datepicker.css
420
- - app/assets/stylesheets/adminpanel/elfinder.min.css
421
442
  - app/assets/stylesheets/adminpanel/facybox.css
422
- - app/assets/stylesheets/adminpanel/font-awesome.min.css
423
443
  - app/assets/stylesheets/adminpanel/fullcalendar.css
424
444
  - app/assets/stylesheets/adminpanel/fullcalendar.print.css
425
445
  - app/assets/stylesheets/adminpanel/medium-editor.css.scss
@@ -434,11 +454,11 @@ files:
434
454
  - app/controllers/adminpanel/sections_controller.rb
435
455
  - app/controllers/adminpanel/sessions_controller.rb
436
456
  - app/controllers/adminpanel/users_controller.rb
457
+ - app/controllers/concerns/adminpanel/galleryzable_actions.rb
458
+ - app/controllers/concerns/adminpanel/rest_actions.rb
437
459
  - app/helpers/adminpanel/application_helper.rb
438
460
  - app/helpers/adminpanel/breadcrumbs_helper.rb
439
461
  - app/helpers/adminpanel/custom_form_builder.rb
440
- - app/helpers/adminpanel/pluralizations_helper.rb
441
- - app/helpers/adminpanel/rest_actions_helper.rb
442
462
  - app/helpers/adminpanel/router_helper.rb
443
463
  - app/helpers/adminpanel/sessions_helper.rb
444
464
  - app/helpers/adminpanel/shared_pages_helper.rb
@@ -448,6 +468,8 @@ files:
448
468
  - app/models/adminpanel/image.rb
449
469
  - app/models/adminpanel/section.rb
450
470
  - app/models/adminpanel/user.rb
471
+ - app/models/concerns/adminpanel/base.rb
472
+ - app/models/concerns/adminpanel/galleryzation.rb
451
473
  - app/models/contact.rb
452
474
  - app/uploaders/adminpanel/gallery_uploader.rb
453
475
  - app/uploaders/adminpanel/image_uploader.rb
@@ -460,14 +482,9 @@ files:
460
482
  - app/views/adminpanel/categories/new.js.erb
461
483
  - app/views/adminpanel/galleries/_galleries_table.html.erb
462
484
  - app/views/adminpanel/galleries/create.html.erb
463
- - app/views/adminpanel/galleries/delete.html.erb
464
- - app/views/adminpanel/galleries/edit.html.erb
465
485
  - app/views/adminpanel/galleries/index.html.erb
466
486
  - app/views/adminpanel/galleries/move_better.js.erb
467
487
  - app/views/adminpanel/galleries/move_worst.js.erb
468
- - app/views/adminpanel/galleries/new.html.erb
469
- - app/views/adminpanel/galleries/show.html.erb
470
- - app/views/adminpanel/galleries/update.html.erb
471
488
  - app/views/adminpanel/sections/_sections_table.html.erb
472
489
  - app/views/adminpanel/sections/edit.html.erb
473
490
  - app/views/adminpanel/sections/index.html.erb
@@ -479,13 +496,17 @@ files:
479
496
  - app/views/layouts/admin-login.html.erb
480
497
  - app/views/layouts/admin.html.erb
481
498
  - app/views/shared/_breadcrumb.html.erb
499
+ - app/views/shared/_delete_icon_button.html.erb
500
+ - app/views/shared/_edit_icon_button.html.erb
482
501
  - app/views/shared/_error_messages.html.erb
483
502
  - app/views/shared/_form_fields.html.erb
484
503
  - app/views/shared/_gallery_entries.html.erb
485
504
  - app/views/shared/_image_fields.html.erb
486
505
  - app/views/shared/_init_editor.html.erb
487
506
  - app/views/shared/_modal.html.erb
507
+ - app/views/shared/_new_resource_button.html.erb
488
508
  - app/views/shared/_remote_form_fields.html.erb
509
+ - app/views/shared/_show_icon_button.html.erb
489
510
  - app/views/shared/create_belongs_to.js.erb
490
511
  - app/views/shared/create_has_many.js.erb
491
512
  - app/views/shared/edit.html.erb
@@ -494,10 +515,11 @@ files:
494
515
  - app/views/shared/new.html.erb
495
516
  - app/views/shared/new.js.erb
496
517
  - app/views/shared/show.html.erb
518
+ - config/initializers/pluralization_es.rb
519
+ - config/locales/en.yml
497
520
  - config/locales/es.yml
498
521
  - config/routes.rb
499
522
  - lib/adminpanel.rb
500
- - lib/adminpanel/active_record/adminpanel_extension.rb
501
523
  - lib/adminpanel/engine.rb
502
524
  - lib/adminpanel/version.rb
503
525
  - lib/generators/adminpanel/gallery/gallery_generator.rb
@@ -524,6 +546,7 @@ files:
524
546
  - spec/dummy/app/assets/javascripts/application.js
525
547
  - spec/dummy/app/assets/stylesheets/application.css
526
548
  - spec/dummy/app/controllers/adminpanel/.gitkeep
549
+ - spec/dummy/app/controllers/adminpanel/mugs_controller.rb
527
550
  - spec/dummy/app/controllers/adminpanel/products_controller.rb
528
551
  - spec/dummy/app/controllers/application_controller.rb
529
552
  - spec/dummy/app/helpers/application_helper.rb
@@ -532,6 +555,7 @@ files:
532
555
  - spec/dummy/app/models/ability.rb
533
556
  - spec/dummy/app/models/adminpanel/categorization.rb
534
557
  - spec/dummy/app/models/adminpanel/category.rb
558
+ - spec/dummy/app/models/adminpanel/mug.rb
535
559
  - spec/dummy/app/models/adminpanel/photo.rb
536
560
  - spec/dummy/app/models/adminpanel/product.rb
537
561
  - spec/dummy/app/uploader/adminpanel/photo_uploader.rb
@@ -552,7 +576,7 @@ files:
552
576
  - spec/dummy/config/initializers/secret_token.rb
553
577
  - spec/dummy/config/initializers/session_store.rb
554
578
  - spec/dummy/config/initializers/wrap_parameters.rb
555
- - spec/dummy/config/locales/en.yml
579
+ - spec/dummy/config/locales/.keep
556
580
  - spec/dummy/config/routes.rb
557
581
  - spec/dummy/db/development.sqlite3
558
582
  - spec/dummy/db/schema.rb
@@ -576,49 +600,35 @@ files:
576
600
  - spec/models/section_spec.rb
577
601
  - spec/models/user_spec.rb
578
602
  - spec/spec_helper.rb
579
- - spec/support/define_factory_models.rb
603
+ - spec/support/factories.rb
580
604
  - spec/support/helper_methods.rb
581
- - spec/support/submit_forms_without_button.rb
582
- - spec/support/test_database.rb
583
605
  - spec/tasks/adminpanel_rake_spec.rb
584
- - spec/uploaders/gallery_uploader_spec.rb
585
- - spec/uploaders/image_uploader_spec.rb
586
- has_rdoc: true
587
606
  homepage: https://github.com/joseramonc/adminpanel
588
- licenses:
607
+ licenses:
589
608
  - MIT
609
+ metadata: {}
590
610
  post_install_message:
591
611
  rdoc_options: []
592
-
593
- require_paths:
612
+ require_paths:
594
613
  - lib
595
614
  - app/assets
596
- required_ruby_version: !ruby/object:Gem::Requirement
597
- none: false
598
- requirements:
599
- - - ">="
600
- - !ruby/object:Gem::Version
601
- hash: 3
602
- segments:
603
- - 0
604
- version: "0"
605
- required_rubygems_version: !ruby/object:Gem::Requirement
606
- none: false
607
- requirements:
608
- - - ">="
609
- - !ruby/object:Gem::Version
610
- hash: 3
611
- segments:
612
- - 0
613
- version: "0"
615
+ required_ruby_version: !ruby/object:Gem::Requirement
616
+ requirements:
617
+ - - '>='
618
+ - !ruby/object:Gem::Version
619
+ version: 1.9.3
620
+ required_rubygems_version: !ruby/object:Gem::Requirement
621
+ requirements:
622
+ - - '>='
623
+ - !ruby/object:Gem::Version
624
+ version: '0'
614
625
  requirements: []
615
-
616
626
  rubyforge_project:
617
- rubygems_version: 1.6.2
627
+ rubygems_version: 2.2.2
618
628
  signing_key:
619
- specification_version: 3
620
- summary: Developed with love for ruby 1.8.7
621
- test_files:
629
+ specification_version: 4
630
+ summary: Developed with <3 by CoDN
631
+ test_files:
622
632
  - spec/dummy/.gitignore
623
633
  - spec/dummy/README.rdoc
624
634
  - spec/dummy/Rakefile
@@ -627,6 +637,7 @@ test_files:
627
637
  - spec/dummy/app/assets/javascripts/application.js
628
638
  - spec/dummy/app/assets/stylesheets/application.css
629
639
  - spec/dummy/app/controllers/adminpanel/.gitkeep
640
+ - spec/dummy/app/controllers/adminpanel/mugs_controller.rb
630
641
  - spec/dummy/app/controllers/adminpanel/products_controller.rb
631
642
  - spec/dummy/app/controllers/application_controller.rb
632
643
  - spec/dummy/app/helpers/application_helper.rb
@@ -635,6 +646,7 @@ test_files:
635
646
  - spec/dummy/app/models/ability.rb
636
647
  - spec/dummy/app/models/adminpanel/categorization.rb
637
648
  - spec/dummy/app/models/adminpanel/category.rb
649
+ - spec/dummy/app/models/adminpanel/mug.rb
638
650
  - spec/dummy/app/models/adminpanel/photo.rb
639
651
  - spec/dummy/app/models/adminpanel/product.rb
640
652
  - spec/dummy/app/uploader/adminpanel/photo_uploader.rb
@@ -655,7 +667,7 @@ test_files:
655
667
  - spec/dummy/config/initializers/secret_token.rb
656
668
  - spec/dummy/config/initializers/session_store.rb
657
669
  - spec/dummy/config/initializers/wrap_parameters.rb
658
- - spec/dummy/config/locales/en.yml
670
+ - spec/dummy/config/locales/.keep
659
671
  - spec/dummy/config/routes.rb
660
672
  - spec/dummy/db/development.sqlite3
661
673
  - spec/dummy/db/schema.rb
@@ -679,10 +691,6 @@ test_files:
679
691
  - spec/models/section_spec.rb
680
692
  - spec/models/user_spec.rb
681
693
  - spec/spec_helper.rb
682
- - spec/support/define_factory_models.rb
694
+ - spec/support/factories.rb
683
695
  - spec/support/helper_methods.rb
684
- - spec/support/submit_forms_without_button.rb
685
- - spec/support/test_database.rb
686
696
  - spec/tasks/adminpanel_rake_spec.rb
687
- - spec/uploaders/gallery_uploader_spec.rb
688
- - spec/uploaders/image_uploader_spec.rb