adminpanel 2.4.3 → 2.5.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 +1 -0
- data/README.md +16 -16
- data/adminpanel.gemspec +9 -8
- data/app/assets/javascripts/adminpanel/application.js +4 -0
- data/app/assets/javascripts/adminpanel/bootstrap-wysihtml5.js +2 -4
- data/app/assets/javascripts/adminpanel/sortable.js.coffee +27 -0
- data/app/assets/stylesheets/adminpanel/application.css +1 -0
- data/app/assets/stylesheets/adminpanel/sortable.css.scss.erb +13 -0
- data/app/controllers/adminpanel/application_controller.rb +0 -1
- data/app/controllers/adminpanel/sessions_controller.rb +5 -2
- data/app/controllers/concerns/adminpanel/rest_actions.rb +24 -22
- data/app/controllers/concerns/adminpanel/sortable_actions.rb +3 -20
- data/app/helpers/adminpanel/breadcrumbs_helper.rb +6 -5
- data/app/helpers/adminpanel/router_helper.rb +9 -3
- data/app/helpers/adminpanel/shared_pages_helper.rb +1 -1
- data/app/models/concerns/adminpanel/base.rb +34 -11
- data/app/models/concerns/adminpanel/sitemap.rb +0 -1
- data/app/models/concerns/adminpanel/sortable.rb +33 -30
- data/app/models/concerns/adminpanel/sortable_gallery.rb +90 -0
- data/app/views/adminpanel/form/_adminpanel_file_field.html.erb +1 -1
- data/app/views/adminpanel/templates/index.html.erb +41 -13
- data/app/views/adminpanel/templates/show.html.erb +33 -13
- data/config/initializers/adminpanel/carrierwave_mini_magick_quality.rb +11 -0
- data/config/locales/en.yml +3 -7
- data/config/locales/es.yml +1 -8
- data/config/routes.rb +6 -8
- data/lib/adminpanel.rb +9 -8
- data/lib/adminpanel/version.rb +1 -1
- data/lib/generators/adminpanel/custom_errors/custom_errors_generator.rb +37 -0
- data/lib/generators/adminpanel/custom_errors/templates/errors_controller.rb +14 -0
- data/lib/generators/adminpanel/custom_errors/templates/show.html.erb +1 -0
- data/lib/generators/adminpanel/gallery/templates/gallery_template.rb +8 -3
- data/lib/generators/adminpanel/gallery/templates/uploader.rb +4 -1
- data/lib/generators/adminpanel/initialize/initialize_generator.rb +0 -12
- data/lib/generators/adminpanel/initialize/templates/adminpanel_setup.rb +1 -2
- data/lib/generators/adminpanel/resource/resource_generator.rb +29 -8
- data/lib/generators/adminpanel/resource/resource_generator_helper.rb +34 -7
- data/lib/generators/adminpanel/resource/templates/adminpanel_resource_template.rb +7 -2
- data/lib/tasks/adminpanel/adminpanel.rake +19 -61
- data/test/dummy/app/models/adminpanel/file_resourcefile.rb +1 -1
- data/test/dummy/app/models/adminpanel/gallery.rb +9 -4
- data/test/dummy/app/models/adminpanel/galleryfile.rb +2 -2
- data/test/dummy/app/models/adminpanel/photo.rb +1 -1
- data/test/dummy/app/models/adminpanel/product.rb +0 -4
- data/test/dummy/config/initializers/adminpanel_setup.rb +1 -1
- data/test/dummy/test/fixtures/adminpanel/galleryfiles.yml +24 -0
- data/test/features/shared/concerns/sortable_gallery_ui_test.rb +25 -0
- data/test/features/shared/concerns/sortable_test.rb +4 -4
- data/test/features/shared/form/{belongs_to_non_category_modal_test.rb → belongs_to_remote_test.rb} +1 -1
- data/test/features/shared/form/{has_many_through_non_category_modal_test.rb → has_many_through_remote_test.rb} +1 -1
- data/test/generators/dump_generator_test.rb +1 -13
- data/test/generators/gallery_generator_test.rb +1 -1
- data/test/generators/initialize_generator_test.rb +1 -9
- data/test/generators/resource_generator_test.rb +21 -1
- data/test/helpers/router_helper_test.rb +0 -4
- data/test/models/adminpanel/sortable_gallery_unit_test.rb +118 -0
- data/test/models/adminpanel/sortable_unit_test.rb +75 -0
- data/test/tasks/adminpanel_rake_test.rb +1 -1
- metadata +86 -85
- data/app/assets/images/adminpanel/loguito.png +0 -0
- data/app/controllers/adminpanel/categories_controller.rb +0 -52
- data/app/controllers/concerns/adminpanel/galleryzable_actions.rb +0 -34
- data/app/models/concerns/adminpanel/galleryzation.rb +0 -78
- data/app/views/adminpanel/categories/_categories_table.html.erb +0 -48
- data/app/views/adminpanel/categories/_category_form.html.erb +0 -33
- data/app/views/adminpanel/categories/create.js.erb +0 -6
- data/app/views/adminpanel/categories/index.html.erb +0 -63
- data/app/views/adminpanel/categories/new.js.erb +0 -5
- data/app/views/adminpanel/icons/_move_to_better.html.erb +0 -17
- data/app/views/adminpanel/icons/_move_to_worst.html.erb +0 -18
- data/app/views/adminpanel/shared/_gallery_entries.html.erb +0 -11
- data/app/views/adminpanel/shared/_index_records.html.erb +0 -32
- data/app/views/adminpanel/templates/gallery_entries.js.erb +0 -1
- data/app/views/adminpanel/templates/index_records.js.erb +0 -1
- data/lib/generators/adminpanel/initialize/templates/category_template.rb +0 -45
- data/lib/generators/adminpanel/initialize/templates/create_adminpanel_categories_table.rb +0 -11
- data/test/features/categories/categories_index_test.rb +0 -31
- data/test/features/shared/concerns/galleryzable_test.rb +0 -22
- data/test/features/shared/form/belongs_to_category_modal_test.rb +0 -35
- data/test/features/shared/form/has_many_through_category_modal_test.rb +0 -35
- data/test/models/adminpanel/galleryzable_test.rb +0 -28
@@ -0,0 +1,118 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
module Adminpanel
|
3
|
+
class SortableGalleryUnitTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
setup :instance_objects
|
6
|
+
|
7
|
+
def test_has_and_ordered_scope
|
8
|
+
gallery = adminpanel_galleries(:one)
|
9
|
+
ordered_galleries = gallery.galleryfiles.ordered.pluck(:position)
|
10
|
+
assert_equal [1,2,3,4,5], ordered_galleries
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_creation_callback
|
14
|
+
gallery = adminpanel_galleries(:one)
|
15
|
+
assert_equal 5, gallery.galleryfiles.count
|
16
|
+
|
17
|
+
galleryfile = gallery.galleryfiles.new
|
18
|
+
galleryfile.save
|
19
|
+
|
20
|
+
assert_equal 6, galleryfile.reload.position
|
21
|
+
assert_equal 6, gallery.galleryfiles.count
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_destroy_callback
|
26
|
+
@fgo_p2.destroy
|
27
|
+
assert_equal 1, @fgo_p1.reload.position
|
28
|
+
assert_equal 2, @fgo_p3.reload.position
|
29
|
+
assert_equal 3, @fgo_p4.reload.position
|
30
|
+
assert_equal 4, @fgo_p5.reload.position
|
31
|
+
|
32
|
+
assert_equal 1, @sgo_p1.reload.position
|
33
|
+
assert_equal 2, @sgo_p2.reload.position
|
34
|
+
|
35
|
+
@fgo_p1.destroy
|
36
|
+
assert_equal 1, @fgo_p3.reload.position
|
37
|
+
assert_equal 2, @fgo_p4.reload.position
|
38
|
+
assert_equal 3, @fgo_p5.reload.position
|
39
|
+
|
40
|
+
assert_equal 1, @sgo_p1.reload.position
|
41
|
+
assert_equal 2, @sgo_p2.reload.position
|
42
|
+
|
43
|
+
@fgo_p5.destroy
|
44
|
+
assert_equal 1, @fgo_p3.reload.position
|
45
|
+
assert_equal 2, @fgo_p4.reload.position
|
46
|
+
|
47
|
+
assert_equal 1, @sgo_p1.reload.position
|
48
|
+
assert_equal 2, @sgo_p2.reload.position
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_moving_and_object_to_lower_priority
|
52
|
+
# make sure fixtures are as expected
|
53
|
+
assert_equal 1, @fgo_p1.position
|
54
|
+
assert_equal 2, @fgo_p2.position
|
55
|
+
assert_equal 3, @fgo_p3.position
|
56
|
+
assert_equal 4, @fgo_p4.position
|
57
|
+
assert_equal 5, @fgo_p5.position
|
58
|
+
|
59
|
+
assert_equal 1, @sgo_p1.position
|
60
|
+
assert_equal 2, @sgo_p2.position
|
61
|
+
|
62
|
+
|
63
|
+
@fgo_p2.move_to_position(5)
|
64
|
+
|
65
|
+
# make sure they are updated from database
|
66
|
+
assert_equal 1, @fgo_p1.reload.position
|
67
|
+
assert_equal 5, @fgo_p2.reload.position
|
68
|
+
assert_equal 2, @fgo_p3.reload.position
|
69
|
+
assert_equal 3, @fgo_p4.reload.position
|
70
|
+
assert_equal 4, @fgo_p5.reload.position
|
71
|
+
|
72
|
+
assert_equal 1, @sgo_p1.reload.position
|
73
|
+
assert_equal 2, @sgo_p2.reload.position
|
74
|
+
end
|
75
|
+
|
76
|
+
def test_moving_and_object_to_higher_priority
|
77
|
+
@fgo_p5.move_to_position(1)
|
78
|
+
|
79
|
+
# make sure they are updated from database
|
80
|
+
assert_equal 2, @fgo_p1.reload.position
|
81
|
+
assert_equal 3, @fgo_p2.reload.position
|
82
|
+
assert_equal 4, @fgo_p3.reload.position
|
83
|
+
assert_equal 5, @fgo_p4.reload.position
|
84
|
+
assert_equal 1, @fgo_p5.reload.position
|
85
|
+
|
86
|
+
assert_equal 1, @sgo_p1.reload.position
|
87
|
+
assert_equal 2, @sgo_p2.reload.position
|
88
|
+
end
|
89
|
+
|
90
|
+
def test_moving_to_same_position
|
91
|
+
@fgo_p5.move_to_position(5)
|
92
|
+
|
93
|
+
# make sure they are updated from database
|
94
|
+
assert_equal 1, @fgo_p1.reload.position
|
95
|
+
assert_equal 2, @fgo_p2.reload.position
|
96
|
+
assert_equal 3, @fgo_p3.reload.position
|
97
|
+
assert_equal 4, @fgo_p4.reload.position
|
98
|
+
assert_equal 5, @fgo_p5.reload.position
|
99
|
+
|
100
|
+
assert_equal 1, @sgo_p1.reload.position
|
101
|
+
assert_equal 2, @sgo_p2.reload.position
|
102
|
+
end
|
103
|
+
|
104
|
+
private
|
105
|
+
def instance_objects
|
106
|
+
# fgo => first gallery object
|
107
|
+
# sgo => second gallery object (since there are 2 galleries according to fixtures)
|
108
|
+
# p1 => means original position 1 and so on...
|
109
|
+
@fgo_p1 = adminpanel_galleryfiles(:first)
|
110
|
+
@fgo_p2 = adminpanel_galleryfiles(:second)
|
111
|
+
@fgo_p3 = adminpanel_galleryfiles(:third)
|
112
|
+
@fgo_p4 = adminpanel_galleryfiles(:fourth)
|
113
|
+
@fgo_p5 = adminpanel_galleryfiles(:fifth)
|
114
|
+
@sgo_p1 = adminpanel_galleryfiles(:first_2)
|
115
|
+
@sgo_p2 = adminpanel_galleryfiles(:second_2)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
module Adminpanel
|
3
|
+
class SortableUnitTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
setup :instance_objects
|
6
|
+
|
7
|
+
def test_has_and_ordered_scope
|
8
|
+
gallery = Adminpanel::Gallery.all.ordered
|
9
|
+
assert_equal [1,2,3], gallery.pluck(:position)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_creation_callback
|
13
|
+
|
14
|
+
Adminpanel::Gallery.destroy_all
|
15
|
+
Adminpanel::Gallery.create
|
16
|
+
assert_equal 1, Adminpanel::Gallery.first.position
|
17
|
+
|
18
|
+
gallery_2 = Adminpanel::Gallery.new
|
19
|
+
gallery_2.save
|
20
|
+
assert_equal 2, gallery_2.position
|
21
|
+
|
22
|
+
assert_equal 2, Adminpanel::Gallery.all.count
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_destroy_callback
|
26
|
+
|
27
|
+
@gallery_1.destroy
|
28
|
+
assert_equal 1, @gallery_2.reload.position
|
29
|
+
assert_equal 2, @gallery_3.reload.position
|
30
|
+
|
31
|
+
@gallery_3.destroy
|
32
|
+
assert_equal 1, @gallery_2.reload.position
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
def test_moving_and_object_to_lower_priority
|
37
|
+
# make sure fixtures are as expected
|
38
|
+
assert_equal 1, @gallery_1.position
|
39
|
+
assert_equal 2, @gallery_2.position
|
40
|
+
assert_equal 3, @gallery_3.position
|
41
|
+
|
42
|
+
@gallery_1.move_to_position(3)
|
43
|
+
|
44
|
+
# make sure they are updated from database
|
45
|
+
assert_equal 3, @gallery_1.reload.position
|
46
|
+
assert_equal 1, @gallery_2.reload.position
|
47
|
+
assert_equal 2, @gallery_3.reload.position
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_moving_and_object_to_higher_priority
|
51
|
+
@gallery_3.move_to_position(1)
|
52
|
+
|
53
|
+
# make sure they are updated from database
|
54
|
+
assert_equal 2, @gallery_1.reload.position
|
55
|
+
assert_equal 3, @gallery_2.reload.position
|
56
|
+
assert_equal 1, @gallery_3.reload.position
|
57
|
+
end
|
58
|
+
|
59
|
+
def test_moving_to_same_position
|
60
|
+
@gallery_3.move_to_position(3)
|
61
|
+
|
62
|
+
# make sure they are updated from database
|
63
|
+
assert_equal 1, @gallery_1.reload.position
|
64
|
+
assert_equal 2, @gallery_2.reload.position
|
65
|
+
assert_equal 3, @gallery_3.reload.position
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
def instance_objects
|
70
|
+
@gallery_1 = adminpanel_galleries(:one)
|
71
|
+
@gallery_2 = adminpanel_galleries(:two)
|
72
|
+
@gallery_3 = adminpanel_galleries(:three)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -29,7 +29,7 @@ class AdminpanelRakeTest < ActiveSupport::TestCase
|
|
29
29
|
def test_user_task
|
30
30
|
Rake.application.invoke_task 'adminpanel:user'
|
31
31
|
generated_user = Adminpanel::User.last
|
32
|
-
assert_equal 'webmaster@codn.
|
32
|
+
assert_equal 'webmaster@codn.mx', generated_user.email
|
33
33
|
assert_equal 'Webmaster', generated_user.name
|
34
34
|
assert_equal 'Admin', generated_user.role.name
|
35
35
|
end
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adminpanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Ramon Camacho
|
8
8
|
- Victor Camacho
|
9
|
+
- Eduardo Albertos
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2015-
|
13
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rails
|
@@ -37,14 +38,14 @@ dependencies:
|
|
37
38
|
requirements:
|
38
39
|
- - '='
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version: 4.0
|
41
|
+
version: 4.1.0
|
41
42
|
type: :runtime
|
42
43
|
prerelease: false
|
43
44
|
version_requirements: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - '='
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version: 4.0
|
48
|
+
version: 4.1.0
|
48
49
|
- !ruby/object:Gem::Dependency
|
49
50
|
name: bcrypt
|
50
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,33 +121,33 @@ dependencies:
|
|
120
121
|
- !ruby/object:Gem::Version
|
121
122
|
version: 0.8.2
|
122
123
|
- !ruby/object:Gem::Dependency
|
123
|
-
name:
|
124
|
+
name: instagram
|
124
125
|
requirement: !ruby/object:Gem::Requirement
|
125
126
|
requirements:
|
126
127
|
- - '='
|
127
128
|
- !ruby/object:Gem::Version
|
128
|
-
version: 1.
|
129
|
+
version: 1.1.3
|
129
130
|
type: :runtime
|
130
131
|
prerelease: false
|
131
132
|
version_requirements: !ruby/object:Gem::Requirement
|
132
133
|
requirements:
|
133
134
|
- - '='
|
134
135
|
- !ruby/object:Gem::Version
|
135
|
-
version: 1.
|
136
|
+
version: 1.1.3
|
136
137
|
- !ruby/object:Gem::Dependency
|
137
|
-
name:
|
138
|
+
name: koala
|
138
139
|
requirement: !ruby/object:Gem::Requirement
|
139
140
|
requirements:
|
140
141
|
- - '='
|
141
142
|
- !ruby/object:Gem::Version
|
142
|
-
version:
|
143
|
+
version: 1.10.1
|
143
144
|
type: :runtime
|
144
145
|
prerelease: false
|
145
146
|
version_requirements: !ruby/object:Gem::Requirement
|
146
147
|
requirements:
|
147
148
|
- - '='
|
148
149
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
150
|
+
version: 1.10.1
|
150
151
|
- !ruby/object:Gem::Dependency
|
151
152
|
name: omniauth-twitter
|
152
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,153 +163,147 @@ dependencies:
|
|
162
163
|
- !ruby/object:Gem::Version
|
163
164
|
version: 1.1.0
|
164
165
|
- !ruby/object:Gem::Dependency
|
165
|
-
name:
|
166
|
+
name: twitter
|
166
167
|
requirement: !ruby/object:Gem::Requirement
|
167
168
|
requirements:
|
168
169
|
- - '='
|
169
170
|
- !ruby/object:Gem::Version
|
170
|
-
version:
|
171
|
+
version: 5.14.0
|
171
172
|
type: :runtime
|
172
173
|
prerelease: false
|
173
174
|
version_requirements: !ruby/object:Gem::Requirement
|
174
175
|
requirements:
|
175
176
|
- - '='
|
176
177
|
- !ruby/object:Gem::Version
|
177
|
-
version:
|
178
|
+
version: 5.14.0
|
178
179
|
- !ruby/object:Gem::Dependency
|
179
|
-
name:
|
180
|
+
name: coffee-rails
|
180
181
|
requirement: !ruby/object:Gem::Requirement
|
181
182
|
requirements:
|
182
183
|
- - "~>"
|
183
184
|
- !ruby/object:Gem::Version
|
184
|
-
version:
|
185
|
+
version: 4.1.0
|
185
186
|
- - ">="
|
186
187
|
- !ruby/object:Gem::Version
|
187
|
-
version: 4.
|
188
|
+
version: 4.1.0
|
188
189
|
type: :runtime
|
189
190
|
prerelease: false
|
190
191
|
version_requirements: !ruby/object:Gem::Requirement
|
191
192
|
requirements:
|
192
193
|
- - "~>"
|
193
194
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
195
|
+
version: 4.1.0
|
195
196
|
- - ">="
|
196
197
|
- !ruby/object:Gem::Version
|
197
|
-
version: 4.
|
198
|
+
version: 4.1.0
|
198
199
|
- !ruby/object:Gem::Dependency
|
199
|
-
name:
|
200
|
+
name: font-awesome-rails
|
200
201
|
requirement: !ruby/object:Gem::Requirement
|
201
202
|
requirements:
|
202
203
|
- - "~>"
|
203
204
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
205
|
+
version: '4.2'
|
205
206
|
- - ">="
|
206
207
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
208
|
+
version: 4.2.0
|
208
209
|
type: :runtime
|
209
210
|
prerelease: false
|
210
211
|
version_requirements: !ruby/object:Gem::Requirement
|
211
212
|
requirements:
|
212
213
|
- - "~>"
|
213
214
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
215
|
+
version: '4.2'
|
215
216
|
- - ">="
|
216
217
|
- !ruby/object:Gem::Version
|
217
|
-
version:
|
218
|
+
version: 4.2.0
|
218
219
|
- !ruby/object:Gem::Dependency
|
219
|
-
name:
|
220
|
+
name: jquery-rails
|
220
221
|
requirement: !ruby/object:Gem::Requirement
|
221
222
|
requirements:
|
222
|
-
- -
|
223
|
-
- !ruby/object:Gem::Version
|
224
|
-
version: 4.1.0
|
225
|
-
- - ">="
|
223
|
+
- - '='
|
226
224
|
- !ruby/object:Gem::Version
|
227
|
-
version: 4.
|
225
|
+
version: 4.0.3
|
228
226
|
type: :runtime
|
229
227
|
prerelease: false
|
230
228
|
version_requirements: !ruby/object:Gem::Requirement
|
231
229
|
requirements:
|
232
|
-
- -
|
233
|
-
- !ruby/object:Gem::Version
|
234
|
-
version: 4.1.0
|
235
|
-
- - ">="
|
230
|
+
- - '='
|
236
231
|
- !ruby/object:Gem::Version
|
237
|
-
version: 4.
|
232
|
+
version: 4.0.3
|
238
233
|
- !ruby/object:Gem::Dependency
|
239
|
-
name: jquery-rails
|
234
|
+
name: jquery-ui-rails
|
240
235
|
requirement: !ruby/object:Gem::Requirement
|
241
236
|
requirements:
|
242
237
|
- - '='
|
243
238
|
- !ruby/object:Gem::Version
|
244
|
-
version:
|
239
|
+
version: 5.0.3
|
245
240
|
type: :runtime
|
246
241
|
prerelease: false
|
247
242
|
version_requirements: !ruby/object:Gem::Requirement
|
248
243
|
requirements:
|
249
244
|
- - '='
|
250
245
|
- !ruby/object:Gem::Version
|
251
|
-
version:
|
246
|
+
version: 5.0.3
|
252
247
|
- !ruby/object:Gem::Dependency
|
253
|
-
name:
|
248
|
+
name: sass-rails
|
254
249
|
requirement: !ruby/object:Gem::Requirement
|
255
250
|
requirements:
|
256
251
|
- - "~>"
|
257
252
|
- !ruby/object:Gem::Version
|
258
|
-
version:
|
253
|
+
version: 5.0.0
|
259
254
|
- - ">="
|
260
255
|
- !ruby/object:Gem::Version
|
261
|
-
version:
|
256
|
+
version: 5.0.0
|
262
257
|
type: :runtime
|
263
258
|
prerelease: false
|
264
259
|
version_requirements: !ruby/object:Gem::Requirement
|
265
260
|
requirements:
|
266
261
|
- - "~>"
|
267
262
|
- !ruby/object:Gem::Version
|
268
|
-
version:
|
263
|
+
version: 5.0.0
|
269
264
|
- - ">="
|
270
265
|
- !ruby/object:Gem::Version
|
271
|
-
version:
|
266
|
+
version: 5.0.0
|
272
267
|
- !ruby/object:Gem::Dependency
|
273
|
-
name:
|
268
|
+
name: turbolinks
|
274
269
|
requirement: !ruby/object:Gem::Requirement
|
275
270
|
requirements:
|
276
271
|
- - "~>"
|
277
272
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
273
|
+
version: 2.5.0
|
279
274
|
- - ">="
|
280
275
|
- !ruby/object:Gem::Version
|
281
|
-
version:
|
276
|
+
version: 2.5.2
|
282
277
|
type: :runtime
|
283
278
|
prerelease: false
|
284
279
|
version_requirements: !ruby/object:Gem::Requirement
|
285
280
|
requirements:
|
286
281
|
- - "~>"
|
287
282
|
- !ruby/object:Gem::Version
|
288
|
-
version:
|
283
|
+
version: 2.5.0
|
289
284
|
- - ">="
|
290
285
|
- !ruby/object:Gem::Version
|
291
|
-
version:
|
286
|
+
version: 2.5.2
|
292
287
|
- !ruby/object:Gem::Dependency
|
293
|
-
name:
|
288
|
+
name: faker
|
294
289
|
requirement: !ruby/object:Gem::Requirement
|
295
290
|
requirements:
|
296
291
|
- - "~>"
|
297
292
|
- !ruby/object:Gem::Version
|
298
293
|
version: '1.3'
|
299
|
-
- -
|
294
|
+
- - ">="
|
300
295
|
- !ruby/object:Gem::Version
|
301
|
-
version: 1.3.
|
302
|
-
type: :
|
296
|
+
version: 1.3.0
|
297
|
+
type: :runtime
|
303
298
|
prerelease: false
|
304
299
|
version_requirements: !ruby/object:Gem::Requirement
|
305
300
|
requirements:
|
306
301
|
- - "~>"
|
307
302
|
- !ruby/object:Gem::Version
|
308
303
|
version: '1.3'
|
309
|
-
- -
|
304
|
+
- - ">="
|
310
305
|
- !ruby/object:Gem::Version
|
311
|
-
version: 1.3.
|
306
|
+
version: 1.3.0
|
312
307
|
- !ruby/object:Gem::Dependency
|
313
308
|
name: minitest
|
314
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -383,6 +378,26 @@ dependencies:
|
|
383
378
|
- - ">="
|
384
379
|
- !ruby/object:Gem::Version
|
385
380
|
version: 1.5.1
|
381
|
+
- !ruby/object:Gem::Dependency
|
382
|
+
name: sqlite3
|
383
|
+
requirement: !ruby/object:Gem::Requirement
|
384
|
+
requirements:
|
385
|
+
- - "~>"
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
version: '1.3'
|
388
|
+
- - '='
|
389
|
+
- !ruby/object:Gem::Version
|
390
|
+
version: 1.3.10
|
391
|
+
type: :development
|
392
|
+
prerelease: false
|
393
|
+
version_requirements: !ruby/object:Gem::Requirement
|
394
|
+
requirements:
|
395
|
+
- - "~>"
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: '1.3'
|
398
|
+
- - '='
|
399
|
+
- !ruby/object:Gem::Version
|
400
|
+
version: 1.3.10
|
386
401
|
description: |-
|
387
402
|
Gem that focus on making a public site's resources very quickly while being very configurable!,
|
388
403
|
supports facebook sharing, twitter, instagram and google analytics integration
|
@@ -420,7 +435,6 @@ files:
|
|
420
435
|
- app/assets/images/adminpanel/icons-big.png
|
421
436
|
- app/assets/images/adminpanel/icons-small.png
|
422
437
|
- app/assets/images/adminpanel/ie-spacer.gif
|
423
|
-
- app/assets/images/adminpanel/loguito.png
|
424
438
|
- app/assets/images/adminpanel/pattern.jpg
|
425
439
|
- app/assets/images/adminpanel/pattern_transp.png
|
426
440
|
- app/assets/images/adminpanel/progress.gif
|
@@ -456,6 +470,7 @@ files:
|
|
456
470
|
- app/assets/javascripts/adminpanel/realm.js
|
457
471
|
- app/assets/javascripts/adminpanel/sections.js.coffee
|
458
472
|
- app/assets/javascripts/adminpanel/shortcuts.js.coffee
|
473
|
+
- app/assets/javascripts/adminpanel/sortable.js.coffee
|
459
474
|
- app/assets/javascripts/adminpanel/spinner.js.coffee
|
460
475
|
- app/assets/javascripts/adminpanel/tables.js
|
461
476
|
- app/assets/javascripts/adminpanel/wysiwyg.js.coffee
|
@@ -470,13 +485,13 @@ files:
|
|
470
485
|
- app/assets/stylesheets/adminpanel/fullcalendar.print.css
|
471
486
|
- app/assets/stylesheets/adminpanel/google_analytics_chart.css
|
472
487
|
- app/assets/stylesheets/adminpanel/select2.css
|
488
|
+
- app/assets/stylesheets/adminpanel/sortable.css.scss.erb
|
473
489
|
- app/assets/stylesheets/adminpanel/theme.css.scss.erb
|
474
490
|
- app/assets/stylesheets/adminpanel/timepicker.css
|
475
491
|
- app/assets/stylesheets/adminpanel/turbolinks_progress_load.css.scss
|
476
492
|
- app/controllers/adminpanel/analytics_controller.rb
|
477
493
|
- app/controllers/adminpanel/application_controller.rb
|
478
494
|
- app/controllers/adminpanel/auths_controller.rb
|
479
|
-
- app/controllers/adminpanel/categories_controller.rb
|
480
495
|
- app/controllers/adminpanel/permissions_controller.rb
|
481
496
|
- app/controllers/adminpanel/roles_controller.rb
|
482
497
|
- app/controllers/adminpanel/sections_controller.rb
|
@@ -485,7 +500,6 @@ files:
|
|
485
500
|
- app/controllers/concerns/adminpanel/analytics/instagram_analytics.rb
|
486
501
|
- app/controllers/concerns/adminpanel/analytics/twitter_analytics.rb
|
487
502
|
- app/controllers/concerns/adminpanel/facebook_actions.rb
|
488
|
-
- app/controllers/concerns/adminpanel/galleryzable_actions.rb
|
489
503
|
- app/controllers/concerns/adminpanel/rest_actions.rb
|
490
504
|
- app/controllers/concerns/adminpanel/sitemap_actions.rb
|
491
505
|
- app/controllers/concerns/adminpanel/sortable_actions.rb
|
@@ -507,9 +521,9 @@ files:
|
|
507
521
|
- app/models/adminpanel/user.rb
|
508
522
|
- app/models/concerns/adminpanel/base.rb
|
509
523
|
- app/models/concerns/adminpanel/facebook.rb
|
510
|
-
- app/models/concerns/adminpanel/galleryzation.rb
|
511
524
|
- app/models/concerns/adminpanel/sitemap.rb
|
512
525
|
- app/models/concerns/adminpanel/sortable.rb
|
526
|
+
- app/models/concerns/adminpanel/sortable_gallery.rb
|
513
527
|
- app/models/concerns/adminpanel/twitter.rb
|
514
528
|
- app/uploaders/adminpanel/.keep
|
515
529
|
- app/views/adminpanel/.DS_Store
|
@@ -524,11 +538,6 @@ files:
|
|
524
538
|
- app/views/adminpanel/analytics/index.html.erb
|
525
539
|
- app/views/adminpanel/analytics/instagram.html.erb
|
526
540
|
- app/views/adminpanel/analytics/twitter.html.erb
|
527
|
-
- app/views/adminpanel/categories/_categories_table.html.erb
|
528
|
-
- app/views/adminpanel/categories/_category_form.html.erb
|
529
|
-
- app/views/adminpanel/categories/create.js.erb
|
530
|
-
- app/views/adminpanel/categories/index.html.erb
|
531
|
-
- app/views/adminpanel/categories/new.js.erb
|
532
541
|
- app/views/adminpanel/form/_adminpanel_file_field.html.erb
|
533
542
|
- app/views/adminpanel/form/_belongs_to.html.erb
|
534
543
|
- app/views/adminpanel/form/_file_field.html.erb
|
@@ -537,8 +546,6 @@ files:
|
|
537
546
|
- app/views/adminpanel/icons/_delete.html.erb
|
538
547
|
- app/views/adminpanel/icons/_edit.html.erb
|
539
548
|
- app/views/adminpanel/icons/_facebook.html.erb
|
540
|
-
- app/views/adminpanel/icons/_move_to_better.html.erb
|
541
|
-
- app/views/adminpanel/icons/_move_to_worst.html.erb
|
542
549
|
- app/views/adminpanel/icons/_new.html.erb
|
543
550
|
- app/views/adminpanel/icons/_show.html.erb
|
544
551
|
- app/views/adminpanel/icons/_twitter.html.erb
|
@@ -551,9 +558,7 @@ files:
|
|
551
558
|
- app/views/adminpanel/shared/_error_messages.html.erb
|
552
559
|
- app/views/adminpanel/shared/_fb_publish_modal.html.erb
|
553
560
|
- app/views/adminpanel/shared/_form_fields.html.erb
|
554
|
-
- app/views/adminpanel/shared/_gallery_entries.html.erb
|
555
561
|
- app/views/adminpanel/shared/_image_fields.html.erb
|
556
|
-
- app/views/adminpanel/shared/_index_records.html.erb
|
557
562
|
- app/views/adminpanel/shared/_modal.html.erb
|
558
563
|
- app/views/adminpanel/shared/_new_resource_button.html.erb
|
559
564
|
- app/views/adminpanel/shared/_remote_form_fields.html.erb
|
@@ -562,9 +567,7 @@ files:
|
|
562
567
|
- app/views/adminpanel/templates/create_has_many.js.erb
|
563
568
|
- app/views/adminpanel/templates/edit.html.erb
|
564
569
|
- app/views/adminpanel/templates/fb_choose_page.html.erb
|
565
|
-
- app/views/adminpanel/templates/gallery_entries.js.erb
|
566
570
|
- app/views/adminpanel/templates/index.html.erb
|
567
|
-
- app/views/adminpanel/templates/index_records.js.erb
|
568
571
|
- app/views/adminpanel/templates/new.html.erb
|
569
572
|
- app/views/adminpanel/templates/new.js.erb
|
570
573
|
- app/views/adminpanel/templates/show.html.erb
|
@@ -573,6 +576,7 @@ files:
|
|
573
576
|
- app/views/layouts/adminpanel/_top_bar.html.erb
|
574
577
|
- app/views/layouts/adminpanel/application-login.html.erb
|
575
578
|
- app/views/layouts/adminpanel/application.html.erb
|
579
|
+
- config/initializers/adminpanel/carrierwave_mini_magick_quality.rb
|
576
580
|
- config/initializers/adminpanel/clear_cache.rb
|
577
581
|
- config/initializers/adminpanel/pluralization_es.rb
|
578
582
|
- config/initializers/adminpanel/twitter_oauth.rb
|
@@ -584,6 +588,9 @@ files:
|
|
584
588
|
- lib/adminpanel/version.rb
|
585
589
|
- lib/generators/adminpanel/contact/contact_generator.rb
|
586
590
|
- lib/generators/adminpanel/contact/templates/contact_template.rb
|
591
|
+
- lib/generators/adminpanel/custom_errors/custom_errors_generator.rb
|
592
|
+
- lib/generators/adminpanel/custom_errors/templates/errors_controller.rb
|
593
|
+
- lib/generators/adminpanel/custom_errors/templates/show.html.erb
|
587
594
|
- lib/generators/adminpanel/dump/dump_generator.rb
|
588
595
|
- lib/generators/adminpanel/gallery/gallery_generator.rb
|
589
596
|
- lib/generators/adminpanel/gallery/templates/gallery_migration.rb
|
@@ -591,8 +598,6 @@ files:
|
|
591
598
|
- lib/generators/adminpanel/gallery/templates/uploader.rb
|
592
599
|
- lib/generators/adminpanel/initialize/initialize_generator.rb
|
593
600
|
- lib/generators/adminpanel/initialize/templates/adminpanel_setup.rb
|
594
|
-
- lib/generators/adminpanel/initialize/templates/category_template.rb
|
595
|
-
- lib/generators/adminpanel/initialize/templates/create_adminpanel_categories_table.rb
|
596
601
|
- lib/generators/adminpanel/initialize/templates/create_adminpanel_tables.rb
|
597
602
|
- lib/generators/adminpanel/initialize/templates/section_uploader.rb
|
598
603
|
- lib/generators/adminpanel/migration/migration_generator.rb
|
@@ -665,14 +670,11 @@ files:
|
|
665
670
|
- test/dummy/test/fixtures/adminpanel/test_objects.yml
|
666
671
|
- test/dummy/test/fixtures/adminpanel/users.yml
|
667
672
|
- test/dummy/test/fixtures/dog fries.png
|
668
|
-
- test/features/categories/categories_index_test.rb
|
669
673
|
- test/features/session/login_test.rb
|
670
|
-
- test/features/shared/concerns/
|
674
|
+
- test/features/shared/concerns/sortable_gallery_ui_test.rb
|
671
675
|
- test/features/shared/concerns/sortable_test.rb
|
672
|
-
- test/features/shared/form/
|
673
|
-
- test/features/shared/form/
|
674
|
-
- test/features/shared/form/has_many_through_category_modal_test.rb
|
675
|
-
- test/features/shared/form/has_many_through_non_category_modal_test.rb
|
676
|
+
- test/features/shared/form/belongs_to_remote_test.rb
|
677
|
+
- test/features/shared/form/has_many_through_remote_test.rb
|
676
678
|
- test/features/shared/form/remote_resource_modal_test.rb
|
677
679
|
- test/features/shared/resource/edit_test.rb
|
678
680
|
- test/features/shared/resource/index_test.rb
|
@@ -690,14 +692,15 @@ files:
|
|
690
692
|
- test/helpers/router_helper_test.rb
|
691
693
|
- test/helpers/shared_pages_helper_test.rb
|
692
694
|
- test/models/ability_test.rb
|
693
|
-
- test/models/adminpanel/galleryzable_test.rb
|
694
695
|
- test/models/adminpanel/section_test.rb
|
696
|
+
- test/models/adminpanel/sortable_gallery_unit_test.rb
|
697
|
+
- test/models/adminpanel/sortable_unit_test.rb
|
695
698
|
- test/models/adminpanel/user_test.rb
|
696
699
|
- test/support/shared_database.rb
|
697
700
|
- test/support/view_case.rb
|
698
701
|
- test/tasks/adminpanel_rake_test.rb
|
699
702
|
- test/test_helper.rb
|
700
|
-
homepage: https://github.com/
|
703
|
+
homepage: https://github.com/codn/adminpanel
|
701
704
|
licenses:
|
702
705
|
- MIT
|
703
706
|
metadata: {}
|
@@ -786,14 +789,11 @@ test_files:
|
|
786
789
|
- test/dummy/test/fixtures/adminpanel/test_objects.yml
|
787
790
|
- test/dummy/test/fixtures/adminpanel/users.yml
|
788
791
|
- test/dummy/test/fixtures/dog fries.png
|
789
|
-
- test/features/categories/categories_index_test.rb
|
790
792
|
- test/features/session/login_test.rb
|
791
|
-
- test/features/shared/concerns/
|
793
|
+
- test/features/shared/concerns/sortable_gallery_ui_test.rb
|
792
794
|
- test/features/shared/concerns/sortable_test.rb
|
793
|
-
- test/features/shared/form/
|
794
|
-
- test/features/shared/form/
|
795
|
-
- test/features/shared/form/has_many_through_category_modal_test.rb
|
796
|
-
- test/features/shared/form/has_many_through_non_category_modal_test.rb
|
795
|
+
- test/features/shared/form/belongs_to_remote_test.rb
|
796
|
+
- test/features/shared/form/has_many_through_remote_test.rb
|
797
797
|
- test/features/shared/form/remote_resource_modal_test.rb
|
798
798
|
- test/features/shared/resource/edit_test.rb
|
799
799
|
- test/features/shared/resource/index_test.rb
|
@@ -811,8 +811,9 @@ test_files:
|
|
811
811
|
- test/helpers/router_helper_test.rb
|
812
812
|
- test/helpers/shared_pages_helper_test.rb
|
813
813
|
- test/models/ability_test.rb
|
814
|
-
- test/models/adminpanel/galleryzable_test.rb
|
815
814
|
- test/models/adminpanel/section_test.rb
|
815
|
+
- test/models/adminpanel/sortable_gallery_unit_test.rb
|
816
|
+
- test/models/adminpanel/sortable_unit_test.rb
|
816
817
|
- test/models/adminpanel/user_test.rb
|
817
818
|
- test/support/shared_database.rb
|
818
819
|
- test/support/view_case.rb
|