hancock_cms 2.0.0.2 → 2.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/.gitattributes +4 -0
  3. data/app/assets/images/{devices → hancock/devise}/login-bg.jpg +0 -0
  4. data/app/assets/images/{rails-admin → hancock/rails_admin}/hancock_logo.svg +0 -0
  5. data/app/assets/javascripts/hancock/cms.coffee +1 -1
  6. data/app/assets/javascripts/hancock/rails_admin/cms.ui.coffee +11 -37
  7. data/app/assets/javascripts/hancock/rails_admin/en_ru_switcher.coffee +90 -0
  8. data/app/assets/javascripts/hancock/rails_admin/enum_with_custom.coffee +42 -0
  9. data/app/assets/javascripts/hancock/rails_admin/form_controls_fixed.coffee +44 -0
  10. data/app/assets/javascripts/hancock/rails_admin/leftside_hider.coffee +106 -0
  11. data/app/assets/javascripts/hancock/rails_admin/multiselect.coffee +8 -0
  12. data/app/assets/javascripts/hancock/rails_admin/navigation_dropdown.coffee +25 -0
  13. data/app/assets/javascripts/hancock/rails_admin/navigation_filter.coffee +108 -0
  14. data/app/assets/javascripts/hancock/rails_admin/navigation_scroll.coffee +12 -0
  15. data/app/assets/javascripts/hancock/rails_admin/plugins.coffee.erb +16 -0
  16. data/app/assets/javascripts/jquery.placeholder.js +3 -2
  17. data/app/assets/javascripts/rails_admin/custom/ui.coffee +1 -0
  18. data/app/assets/stylesheets/hancock/cms/devise.sass +4 -1
  19. data/app/assets/stylesheets/hancock/rails_admin/cms.theming.sass +354 -147
  20. data/app/assets/stylesheets/hancock/rails_admin/fieldsets.sass +198 -0
  21. data/app/assets/stylesheets/hancock/rails_admin/plugins.sass.erb +6 -0
  22. data/app/assets/stylesheets/rails_admin/custom/theming.sass +1 -1
  23. data/app/controllers/concerns/hancock/decorators/home.rb +1 -1
  24. data/app/controllers/concerns/hancock/errors.rb +5 -7
  25. data/app/controllers/hancock/registrations_controller.rb +2 -7
  26. data/app/controllers/hancock/sessions_controller.rb +3 -7
  27. data/app/helpers/hancock/powered_helper.rb +3 -3
  28. data/app/helpers/hancock/settings_helper.rb +44 -0
  29. data/app/helpers/rails_admin/application/hancock_helper.rb +19 -0
  30. data/app/helpers/rails_admin/hancock/form_builder.rb +44 -0
  31. data/app/helpers/rails_admin/main/hancock_helper.rb +51 -0
  32. data/app/models/concerns/hancock/boolean_field.rb +7 -2
  33. data/app/models/concerns/hancock/decorators/embedded_element.rb +1 -9
  34. data/app/models/concerns/hancock/enableable.rb +1 -0
  35. data/app/models/concerns/hancock/hash_field.rb +9 -8
  36. data/app/models/concerns/hancock/html_field.rb +6 -3
  37. data/app/models/concerns/hancock/insertion_field.rb +115 -0
  38. data/app/models/concerns/hancock/mappable.rb +1 -0
  39. data/app/models/concerns/hancock/master_collection.rb +31 -0
  40. data/app/models/concerns/hancock/model_localizeable.rb +4 -1
  41. data/app/models/concerns/hancock/rails_admin_patch.rb +22 -3
  42. data/app/models/concerns/hancock/sort_field.rb +26 -3
  43. data/app/models/concerns/hancock/sortable.rb +3 -0
  44. data/app/models/concerns/hancock/user_defined.rb +53 -0
  45. data/app/views/blocks/_footer.html.slim +1 -1
  46. data/app/views/devise/passwords/edit.html.slim +0 -2
  47. data/app/views/devise/passwords/new.html.slim +0 -2
  48. data/app/views/devise/registrations/edit.html.slim +0 -2
  49. data/app/views/devise/registrations/new.html.slim +0 -2
  50. data/app/views/devise/sessions/new.html.slim +0 -2
  51. data/app/views/hancock/home/index.html.slim +4 -1
  52. data/app/views/layouts/application.html.slim +1 -11
  53. data/app/views/layouts/hancock/_assets.html.slim +15 -0
  54. data/app/views/layouts/hancock/devise/confirmations.html.slim +7 -4
  55. data/app/views/layouts/hancock/devise/passwords.html.slim +7 -4
  56. data/app/views/layouts/hancock/devise/registrations.html.slim +7 -4
  57. data/app/views/layouts/hancock/devise/sessions.html.slim +7 -4
  58. data/app/views/layouts/hancock/devise/unlocks.html.slim +7 -4
  59. data/app/views/layouts/rails_admin/_footer.html.slim +2 -2
  60. data/app/views/layouts/rails_admin/_footer_navigation.html.slim +20 -4
  61. data/app/views/layouts/rails_admin/_navigation.html.slim +13 -47
  62. data/app/views/layouts/rails_admin/_secondary_navigation.html.slim +5 -12
  63. data/app/views/layouts/rails_admin/_sidebar_navigation.html.slim +2 -0
  64. data/app/views/layouts/rails_admin/_sidebar_navigation_filter.html.slim +3 -0
  65. data/app/views/layouts/rails_admin/application.html.haml +3 -38
  66. data/app/views/rails_admin/main/_enum_for_settings_kinds.html.slim +24 -0
  67. data/app/views/rails_admin/main/_form_hancock_enum.html.slim +18 -0
  68. data/app/views/rails_admin/main/_form_hancock_enum_with_custom.slim +20 -0
  69. data/app/views/rails_admin/main/_hancock_html.html.slim +2 -2
  70. data/app/views/rails_admin/main/_hancock_html_ml.html.slim +31 -34
  71. data/app/views/rails_admin/main/edit.html.haml +18 -0
  72. data/app/views/rails_admin/main/new.html.haml +17 -0
  73. data/app/views/shared/_admin_link.html.slim +4 -2
  74. data/config/initializers/nested_set_patch.rb +76 -73
  75. data/config/initializers/rails_admin_mongoid_patch.rb +27 -0
  76. data/config/initializers/sprockets_patch.rb +159 -0
  77. data/config/locales/en.hancock.yml +1 -0
  78. data/config/locales/ru.devise.yml +22 -18
  79. data/config/locales/ru.hancock.yml +5 -5
  80. data/config/locales/ru.rails_admin.yml +3 -0
  81. data/hancock_cms.gemspec +7 -2
  82. data/lib/filename_to_slug.rb +0 -20
  83. data/lib/generators/hancock/cms/ability_generator.rb +1 -0
  84. data/lib/generators/hancock/cms/admin_generator.rb +1 -0
  85. data/lib/generators/hancock/cms/application_generator.rb +1 -0
  86. data/lib/generators/hancock/cms/assets_generator.rb +1 -0
  87. data/lib/generators/hancock/cms/layout_generator.rb +1 -0
  88. data/lib/generators/hancock/cms/model_generator.rb +1 -0
  89. data/lib/generators/hancock/cms/models/templates/embedded_element.erb +2 -2
  90. data/lib/generators/hancock/cms/rack_generator.rb +1 -0
  91. data/lib/generators/hancock/cms/raven_generator.rb +13 -0
  92. data/lib/generators/hancock/cms/robots_generator.rb +1 -0
  93. data/lib/generators/hancock/cms/scripts_generator.rb +1 -0
  94. data/lib/generators/hancock/cms/setup_generator.rb +146 -33
  95. data/lib/generators/hancock/cms/templates/Gemfile.erb +4 -5
  96. data/lib/generators/hancock/cms/templates/ability.erb +1 -1
  97. data/lib/generators/hancock/cms/templates/admin.erb +12 -4
  98. data/lib/generators/hancock/cms/templates/hancock_cms.erb +6 -3
  99. data/lib/generators/hancock/cms/templates/model.erb +5 -6
  100. data/lib/generators/hancock/cms/templates/raven.erb +13 -0
  101. data/lib/generators/hancock/cms/templates/robots.txt.erb +6 -2
  102. data/lib/generators/hancock/cms/templates/scripts/db_dump.sh.erb +1 -1
  103. data/lib/generators/hancock/cms/unicorn_god_generator.rb +1 -0
  104. data/lib/generators/hancock/cms/utils.rb +2 -0
  105. data/lib/hancock/admin.rb +153 -21
  106. data/lib/hancock/admin/embedded_element.rb +7 -2
  107. data/lib/hancock/configuration.rb +49 -4
  108. data/lib/hancock/controller.rb +1 -1
  109. data/lib/hancock/engine.rb +32 -36
  110. data/lib/hancock/model.rb +10 -0
  111. data/lib/hancock/models/embedded_element.rb +2 -0
  112. data/lib/hancock/models/mongoid/embedded_element.rb +17 -0
  113. data/lib/hancock/plugin_configuration.rb +1 -1
  114. data/lib/hancock/rails_admin_ext/config.rb +21 -4
  115. data/lib/hancock/rails_admin_ext/hancock_array.rb +19 -0
  116. data/lib/hancock/rails_admin_ext/hancock_enum.rb +33 -0
  117. data/lib/hancock/rails_admin_ext/hancock_enum_with_custom.rb +34 -0
  118. data/lib/hancock/rails_admin_ext/hancock_hash.rb +8 -1
  119. data/lib/hancock/rails_admin_ext/hancock_html.rb +17 -2
  120. data/lib/hancock/rails_admin_ext/hancock_multiselect.rb +1 -5
  121. data/lib/hancock/rails_admin_ext/hancock_slugs.rb +2 -6
  122. data/lib/hancock/rails_admin_ext/patches/field_patch.rb +2 -1
  123. data/lib/hancock/rails_admin_ext/patches/fieldset_patch.rb +14 -0
  124. data/lib/hancock/rails_admin_ext/patches/group_patch.rb +9 -0
  125. data/lib/hancock/rails_admin_ext/patches/hancock_cms_group.rb +2 -0
  126. data/lib/hancock/rails_admin_ext/patches/has_fields.rb +27 -0
  127. data/lib/hancock/rails_admin_ext/patches/navigation_patch.rb +25 -0
  128. data/lib/hancock/rails_admin_settings_patch.rb +219 -0
  129. data/lib/hancock/version.rb +1 -1
  130. data/lib/hancock_cms.rb +12 -9
  131. data/lib/manual_slug/active_record.rb +8 -8
  132. data/lib/manual_slug/mongoid.rb +6 -1
  133. data/lib/rails_admin/custom_show_in_app.rb +21 -32
  134. data/template.rb +19 -20
  135. metadata +104 -12
  136. data/app/controllers/concerns/hancock/no_cache.rb +0 -12
  137. data/app/models/concerns/hancock/cacheable.rb +0 -51
@@ -17,7 +17,12 @@ module ManualSlug::Mongoid
17
17
 
18
18
  module ClassMethods
19
19
  def manual_slug(_field, options = {}, callback = true)
20
- options.merge!(permanent: true, history: true)
20
+ options.merge!({
21
+ permanent: true,
22
+ history: true,
23
+ scope: (Hancock.config.mongoid_single_collection ? :_type : nil)
24
+ })
25
+
21
26
  slug _field, options
22
27
  #overwrite for default value
23
28
  field :_slugs, type: Array, localize: options[:localize], default: [], overwrite: true
@@ -1,42 +1,31 @@
1
1
  module RailsAdmin
2
2
  module Config
3
3
  module Actions
4
- class CustomShowInApp < RailsAdmin::Config::Actions::Base
4
+ class CustomShowInApp < RailsAdmin::Config::Actions::ShowInApp
5
5
  RailsAdmin::Config::Actions.register(self)
6
6
 
7
- register_instance_option :member do
8
- true
9
- end
7
+ # register_instance_option :visible? do
8
+ # authorized? && (bindings[:controller].main_app.url_for(bindings[:object]) rescue false)
9
+ # end
10
10
 
11
- register_instance_option :visible? do
12
- authorized? && (bindings[:controller].main_app.url_for(bindings[:object]) rescue false)
13
- end
11
+ # register_instance_option :controller do
12
+ # Proc.new do
13
+ # if @object.class.name == 'Hancock::Pages::Page'
14
+ # if @object.fullpath.blank?
15
+ # redirect_to main_app.page_url(@object)
16
+ # else
17
+ # redirect_to @object.fullpath
18
+ # end
19
+ # elsif @object.class.name == 'Hancock::News::News'
20
+ # redirect_to main_app.news_url(@object)
21
+ # # elsif @object.class.name == 'Obj'
22
+ # # redirect_to main_app.object_url(@object.category, @object)
23
+ # else
24
+ # redirect_to main_app.url_for(@object)
25
+ # end
26
+ # end
27
+ # end
14
28
 
15
- register_instance_option :controller do
16
- Proc.new do
17
- # if @object.class.name == 'Hancock::Pages::Page'
18
- # if @object.fullpath.blank?
19
- # redirect_to main_app.page_url(@object)
20
- # else
21
- # redirect_to @object.fullpath
22
- # end
23
- # elsif @object.class.name == 'Hancock::News::News'
24
- # redirect_to main_app.news_url(@object)
25
- # elsif @object.class.name == 'Obj'
26
- # redirect_to main_app.object_url(@object.category, @object)
27
- # else
28
- # redirect_to main_app.url_for(@object)
29
- # end
30
- end
31
- end
32
-
33
- register_instance_option :link_icon do
34
- 'icon-eye-open'
35
- end
36
-
37
- register_instance_option :pjax? do
38
- false
39
- end
40
29
  end
41
30
  end
42
31
  end
data/template.rb CHANGED
@@ -2,10 +2,12 @@ rails_spec = (Gem.loaded_specs["railties"] || Gem.loaded_specs["rails"])
2
2
  version = rails_spec.version.to_s
3
3
 
4
4
  mongoid = options[:skip_active_record]
5
+ actual_rails_version = "5.0.1"
6
+ notsupported_rails_version = "6.x"
5
7
 
6
- if Gem::Version.new(version) < Gem::Version.new('5.0.0.1') or Gem::Version.new(version) >= Gem::Version.new('6.0.0')
8
+ if Gem::Version.new(version) < Gem::Version.new(actual_rails_version) or Gem::Version.new(version) >= Gem::Version.new(notsupported_rails_version)
7
9
  puts "You are using an incorrect version of Rails (#{version})"
8
- puts "Please update for 5.0.0.1"
10
+ puts "Please update for #{actual_rails_version}"
9
11
  puts "Stopping"
10
12
  exit 1
11
13
  end
@@ -20,26 +22,25 @@ remove_file 'Gemfile'
20
22
  create_file 'Gemfile' do <<-TEXT
21
23
  source 'https://rubygems.org'
22
24
 
23
- gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
25
+ gem 'rails', '~> #{actual_rails_version}'#, '>= #{actual_rails_version}'
24
26
  #{if mongoid then "gem 'mongoid'" else "gem 'pg'" end}
25
27
 
26
28
  gem 'sass'
27
- gem 'sass-rails', '~> 5.0'
29
+ gem 'sass-rails'#, '~> 5.0'
28
30
  gem 'compass'
29
31
  gem 'compass-rails'
30
32
 
31
33
  gem 'rails_admin', '~> 1.1'
32
34
 
33
-
34
35
  # #{if mongoid then "gem 'glebtv-mongoid-paperclip'" else "gem 'paperclip'" end}
35
36
  # gem "image_optim"
36
37
  # gem "paperclip-optimizer"
37
38
  # gem 'ack-paperclip-meta', github: "red-rocks/paperclip-meta"
38
39
 
39
40
  # gem 'rails_admin_multiple_file_upload'
40
- gem 'rails_admin_user_abilities', '~> 0.2.0'
41
+ gem 'rails_admin_user_abilities'#, '~> 0.2'
41
42
  # gem 'rails_admin_user_abilities', github: "red-rocks/rails_admin_user_abilities"
42
- gem 'rails_admin_model_settings', '~> 0.3.0'
43
+ gem 'rails_admin_model_settings'#, '~> 0.3'
43
44
  # gem 'rails_admin_model_settings', github: "red-rocks/rails_admin_model_settings"
44
45
 
45
46
  # #{if mongoid then "gem 'hancock_cms_mongoid'" else "gem 'hancock_cms_activerecord'" end}, github: 'red-rocks/hancock_cms', branch: 'rails5'
@@ -48,7 +49,7 @@ gem 'rails_admin_model_settings', '~> 0.3.0'
48
49
  # gem 'recaptcha', require: 'recaptcha/rails'
49
50
  # gem 'glebtv-simple_captcha'
50
51
 
51
- gem 'slim-rails'
52
+ gem 'slim-rails', '3.1.1'
52
53
  gem 'rs_russian'
53
54
  gem 'cancancan'
54
55
 
@@ -56,8 +57,6 @@ gem 'cancancan'
56
57
  gem 'unicorn'
57
58
  gem 'x-real-ip'
58
59
 
59
- gem 'sentry-raven'
60
-
61
60
  group :development do
62
61
  gem 'better_errors'
63
62
  gem 'binding_of_caller'
@@ -65,19 +64,19 @@ group :development do
65
64
 
66
65
  # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
67
66
  gem 'web-console'
68
- gem 'listen', '~> 3.0.5'
67
+ gem 'listen'#, '~> 3.0.5'
69
68
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
70
69
  gem 'spring'
71
- gem 'spring-watcher-listen', '~> 2.0.0'
70
+ gem 'spring-watcher-listen'#, '~> 2.0.0'
72
71
 
73
- gem 'ack_favicon_maker_rails', '~> 1.0.1'
72
+ gem 'ack_favicon_maker_rails'#, '~> 1.0.1'
74
73
  # gem 'ack_favicon_maker_rails', github: 'ack43/favicon_maker_rails'
75
74
 
76
- # gem 'rails_email_preview', '~> 1.0.3'
75
+ # gem 'rails_email_preview'#, '~> 1.0.3'
77
76
 
78
77
  gem 'image_optim_pack'
79
78
 
80
- gem 'puma', '~> 3.0'
79
+ gem 'puma'#, '~> 3.0'
81
80
  end
82
81
 
83
82
  group :test do
@@ -94,8 +93,8 @@ end
94
93
  gem 'slim'
95
94
  gem 'sprockets'
96
95
 
97
- gem 'coffee-rails', '~> 4.2'
98
- gem 'uglifier', '>= 1.3.0'
96
+ gem 'coffee-rails'#, '~> 4.2'
97
+ gem 'uglifier'#, '>= 1.3.0'
99
98
 
100
99
  # gem 'jbuilder', '~> 2.5'
101
100
 
@@ -108,14 +107,15 @@ end
108
107
  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
109
108
 
110
109
  group :production do
110
+ # gem 'sentry-raven'
111
111
  gem "god"
112
112
  end
113
113
 
114
- gem 'glebtv_mongoid_userstamp', '0.7.0'
114
+ gem 'glebtv_mongoid_userstamp', '~> 0.7'
115
115
  TEXT
116
116
  end
117
117
 
118
- RVM_RUBY_VERSION = "2.3.3"#"2.4.0-preview1"
118
+ RVM_RUBY_VERSION = "2.4.0"#"2.3.3"
119
119
  create_file '.ruby-version', "#{RVM_RUBY_VERSION}\n"
120
120
  create_file '.ruby-gemset', "#{app_name.underscore}\n"
121
121
 
@@ -195,7 +195,6 @@ require File.expand_path('../boot', __FILE__)
195
195
  require "active_model/railtie"
196
196
  #{'#' if mongoid}require "active_record/railtie"
197
197
  require "action_controller/railtie"
198
- # require "action_mailer/railtie" # mailer is off by default
199
198
  # require "active_job/railtie"
200
199
  # require "action_cable/engine"
201
200
  require "action_mailer/railtie"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hancock_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.2
4
+ version: 2.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2017-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '6.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: sprockets
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 3.7.1
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 3.7.1
61
75
  - !ruby/object:Gem::Dependency
62
76
  name: jquery-rails
63
77
  requirement: !ruby/object:Gem::Requirement
@@ -146,16 +160,16 @@ dependencies:
146
160
  name: rails_admin
147
161
  requirement: !ruby/object:Gem::Requirement
148
162
  requirements:
149
- - - ">="
163
+ - - '='
150
164
  - !ruby/object:Gem::Version
151
- version: 1.0.0
165
+ version: 1.1.1
152
166
  type: :runtime
153
167
  prerelease: false
154
168
  version_requirements: !ruby/object:Gem::Requirement
155
169
  requirements:
156
- - - ">="
170
+ - - '='
157
171
  - !ruby/object:Gem::Version
158
- version: 1.0.0
172
+ version: 1.1.1
159
173
  - !ruby/object:Gem::Dependency
160
174
  name: rails_admin_nested_set
161
175
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +204,28 @@ dependencies:
190
204
  requirements:
191
205
  - - "~>"
192
206
  - !ruby/object:Gem::Version
193
- version: '1.2'
207
+ version: 1.2.2
194
208
  type: :runtime
195
209
  prerelease: false
196
210
  version_requirements: !ruby/object:Gem::Requirement
197
211
  requirements:
198
212
  - - "~>"
199
213
  - !ruby/object:Gem::Version
200
- version: '1.2'
214
+ version: 1.2.2
215
+ - !ruby/object:Gem::Dependency
216
+ name: safe_yaml
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - ">="
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ type: :runtime
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
201
229
  - !ruby/object:Gem::Dependency
202
230
  name: kaminari
203
231
  requirement: !ruby/object:Gem::Requirement
@@ -212,6 +240,20 @@ dependencies:
212
240
  - - ">="
213
241
  - !ruby/object:Gem::Version
214
242
  version: '0'
243
+ - !ruby/object:Gem::Dependency
244
+ name: kaminari-actionview
245
+ requirement: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: '0'
250
+ type: :runtime
251
+ prerelease: false
252
+ version_requirements: !ruby/object:Gem::Requirement
253
+ requirements:
254
+ - - ">="
255
+ - !ruby/object:Gem::Version
256
+ version: '0'
215
257
  - !ruby/object:Gem::Dependency
216
258
  name: codemirror-rails
217
259
  requirement: !ruby/object:Gem::Requirement
@@ -240,6 +282,20 @@ dependencies:
240
282
  - - ">="
241
283
  - !ruby/object:Gem::Version
242
284
  version: '0'
285
+ - !ruby/object:Gem::Dependency
286
+ name: stickykit-rails
287
+ requirement: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
292
+ type: :runtime
293
+ prerelease: false
294
+ version_requirements: !ruby/object:Gem::Requirement
295
+ requirements:
296
+ - - ">="
297
+ - !ruby/object:Gem::Version
298
+ version: '0'
243
299
  description: 'HancockCMS '
244
300
  email:
245
301
  - dev@redrocks.pro
@@ -247,6 +303,7 @@ executables: []
247
303
  extensions: []
248
304
  extra_rdoc_files: []
249
305
  files:
306
+ - ".gitattributes"
250
307
  - ".gitignore"
251
308
  - ".rspec"
252
309
  - ".ruby-gemset"
@@ -255,8 +312,8 @@ files:
255
312
  - LICENSE.txt
256
313
  - README.md
257
314
  - Rakefile
258
- - app/assets/images/devices/login-bg.jpg
259
- - app/assets/images/rails-admin/hancock_logo.svg
315
+ - app/assets/images/hancock/devise/login-bg.jpg
316
+ - app/assets/images/hancock/rails_admin/hancock_logo.svg
260
317
  - app/assets/javascripts/hancock/app/back_to_top.coffee
261
318
  - app/assets/javascripts/hancock/cms.coffee
262
319
  - app/assets/javascripts/hancock/cms/flash.coffee
@@ -264,6 +321,15 @@ files:
264
321
  - app/assets/javascripts/hancock/cms/map.coffee
265
322
  - app/assets/javascripts/hancock/rails_admin/cms.ui.coffee
266
323
  - app/assets/javascripts/hancock/rails_admin/custom/ui.coffee
324
+ - app/assets/javascripts/hancock/rails_admin/en_ru_switcher.coffee
325
+ - app/assets/javascripts/hancock/rails_admin/enum_with_custom.coffee
326
+ - app/assets/javascripts/hancock/rails_admin/form_controls_fixed.coffee
327
+ - app/assets/javascripts/hancock/rails_admin/leftside_hider.coffee
328
+ - app/assets/javascripts/hancock/rails_admin/multiselect.coffee
329
+ - app/assets/javascripts/hancock/rails_admin/navigation_dropdown.coffee
330
+ - app/assets/javascripts/hancock/rails_admin/navigation_filter.coffee
331
+ - app/assets/javascripts/hancock/rails_admin/navigation_scroll.coffee
332
+ - app/assets/javascripts/hancock/rails_admin/plugins.coffee.erb
267
333
  - app/assets/javascripts/head.load.js
268
334
  - app/assets/javascripts/jquery.placeholder.js
269
335
  - app/assets/javascripts/rails_admin/custom/ui.coffee
@@ -275,6 +341,8 @@ files:
275
341
  - app/assets/stylesheets/hancock/cms/powered.sass
276
342
  - app/assets/stylesheets/hancock/rails_admin/cms.theming.sass
277
343
  - app/assets/stylesheets/hancock/rails_admin/custom/theming.sass
344
+ - app/assets/stylesheets/hancock/rails_admin/fieldsets.sass
345
+ - app/assets/stylesheets/hancock/rails_admin/plugins.sass.erb
278
346
  - app/assets/stylesheets/hancock/toplink/toplink.sass
279
347
  - app/assets/stylesheets/rails_admin/custom/theming.sass
280
348
  - app/controllers/concerns/hancock/current_user.rb
@@ -283,26 +351,31 @@ files:
283
351
  - app/controllers/concerns/hancock/decorators/sessions.rb
284
352
  - app/controllers/concerns/hancock/errors.rb
285
353
  - app/controllers/concerns/hancock/fancybox.rb
286
- - app/controllers/concerns/hancock/no_cache.rb
287
354
  - app/controllers/hancock/home_controller.rb
288
355
  - app/controllers/hancock/registrations_controller.rb
289
356
  - app/controllers/hancock/sessions_controller.rb
290
357
  - app/helpers/hancock/gzip_helper.rb
291
358
  - app/helpers/hancock/home_helper.rb
292
359
  - app/helpers/hancock/powered_helper.rb
360
+ - app/helpers/hancock/settings_helper.rb
361
+ - app/helpers/rails_admin/application/hancock_helper.rb
362
+ - app/helpers/rails_admin/hancock/form_builder.rb
363
+ - app/helpers/rails_admin/main/hancock_helper.rb
293
364
  - app/models/concerns/hancock/boolean_field.rb
294
- - app/models/concerns/hancock/cacheable.rb
295
365
  - app/models/concerns/hancock/decorators/embedded_element.rb
296
366
  - app/models/concerns/hancock/embedded_findable.rb
297
367
  - app/models/concerns/hancock/enableable.rb
298
368
  - app/models/concerns/hancock/geocodeable.rb
299
369
  - app/models/concerns/hancock/hash_field.rb
300
370
  - app/models/concerns/hancock/html_field.rb
371
+ - app/models/concerns/hancock/insertion_field.rb
301
372
  - app/models/concerns/hancock/mappable.rb
373
+ - app/models/concerns/hancock/master_collection.rb
302
374
  - app/models/concerns/hancock/model_localizeable.rb
303
375
  - app/models/concerns/hancock/rails_admin_patch.rb
304
376
  - app/models/concerns/hancock/sort_field.rb
305
377
  - app/models/concerns/hancock/sortable.rb
378
+ - app/models/concerns/hancock/user_defined.rb
306
379
  - app/models/hancock/embedded_element.rb
307
380
  - app/views/blocks/_favicon.html.slim
308
381
  - app/views/blocks/_footer.html.slim
@@ -322,6 +395,7 @@ files:
322
395
  - app/views/hancock/simple_captcha/_simple_captcha.html.slim
323
396
  - app/views/hancock/toplink/_toplink.html.slim
324
397
  - app/views/layouts/application.html.slim
398
+ - app/views/layouts/hancock/_assets.html.slim
325
399
  - app/views/layouts/hancock/devise/confirmations.html.slim
326
400
  - app/views/layouts/hancock/devise/passwords.html.slim
327
401
  - app/views/layouts/hancock/devise/registrations.html.slim
@@ -331,22 +405,31 @@ files:
331
405
  - app/views/layouts/rails_admin/_footer_navigation.html.slim
332
406
  - app/views/layouts/rails_admin/_navigation.html.slim
333
407
  - app/views/layouts/rails_admin/_secondary_navigation.html.slim
408
+ - app/views/layouts/rails_admin/_sidebar_navigation.html.slim
409
+ - app/views/layouts/rails_admin/_sidebar_navigation_filter.html.slim
334
410
  - app/views/layouts/rails_admin/application.html.haml
335
411
  - app/views/layouts/rails_admin/pjax.html.haml
336
412
  - app/views/rails_admin/main/_check_boxes.html.slim
337
413
  - app/views/rails_admin/main/_enum_check_boxes.html.slim
414
+ - app/views/rails_admin/main/_enum_for_settings_kinds.html.slim
338
415
  - app/views/rails_admin/main/_enum_radio_buttons.html.slim
416
+ - app/views/rails_admin/main/_form_hancock_enum.html.slim
417
+ - app/views/rails_admin/main/_form_hancock_enum_with_custom.slim
339
418
  - app/views/rails_admin/main/_form_hancock_multiselect.html.slim
340
419
  - app/views/rails_admin/main/_form_raw.html.slim
341
420
  - app/views/rails_admin/main/_hancock_hash.html.slim
342
421
  - app/views/rails_admin/main/_hancock_hash_ml.html.slim
343
422
  - app/views/rails_admin/main/_hancock_html.html.slim
344
423
  - app/views/rails_admin/main/_hancock_html_ml.html.slim
424
+ - app/views/rails_admin/main/edit.html.haml
425
+ - app/views/rails_admin/main/new.html.haml
345
426
  - app/views/shared/_admin_link.html.slim
346
427
  - app/views/shared/_messages.html.slim
347
428
  - config/initializers/hancock_cms.rb
348
429
  - config/initializers/nested_set_patch.rb
430
+ - config/initializers/rails_admin_mongoid_patch.rb
349
431
  - config/initializers/simple_captcha.rb
432
+ - config/initializers/sprockets_patch.rb
350
433
  - config/locales/en.hancock.yml
351
434
  - config/locales/en.hancock_admin.yml
352
435
  - config/locales/ru.cancan.yml
@@ -371,6 +454,7 @@ files:
371
454
  - lib/generators/hancock/cms/models/templates/embedded_element.erb
372
455
  - lib/generators/hancock/cms/paperclip_optimizer_generator.rb
373
456
  - lib/generators/hancock/cms/rack_generator.rb
457
+ - lib/generators/hancock/cms/raven_generator.rb
374
458
  - lib/generators/hancock/cms/robots_generator.rb
375
459
  - lib/generators/hancock/cms/scripts_generator.rb
376
460
  - lib/generators/hancock/cms/setup_generator.rb
@@ -385,6 +469,7 @@ files:
385
469
  - lib/generators/hancock/cms/templates/model.erb
386
470
  - lib/generators/hancock/cms/templates/paperclip_optimizer.erb
387
471
  - lib/generators/hancock/cms/templates/rack.erb
472
+ - lib/generators/hancock/cms/templates/raven.erb
388
473
  - lib/generators/hancock/cms/templates/robots.txt.erb
389
474
  - lib/generators/hancock/cms/templates/scripts/assets_precompile.sh
390
475
  - lib/generators/hancock/cms/templates/scripts/bundle_production.sh
@@ -412,14 +497,21 @@ files:
412
497
  - lib/hancock/plugin.rb
413
498
  - lib/hancock/plugin_configuration.rb
414
499
  - lib/hancock/rails_admin_ext/config.rb
500
+ - lib/hancock/rails_admin_ext/hancock_array.rb
501
+ - lib/hancock/rails_admin_ext/hancock_enum.rb
502
+ - lib/hancock/rails_admin_ext/hancock_enum_with_custom.rb
415
503
  - lib/hancock/rails_admin_ext/hancock_hash.rb
416
504
  - lib/hancock/rails_admin_ext/hancock_html.rb
417
505
  - lib/hancock/rails_admin_ext/hancock_multiselect.rb
418
506
  - lib/hancock/rails_admin_ext/hancock_slugs.rb
419
507
  - lib/hancock/rails_admin_ext/patches/field_patch.rb
508
+ - lib/hancock/rails_admin_ext/patches/fieldset_patch.rb
420
509
  - lib/hancock/rails_admin_ext/patches/group_patch.rb
421
510
  - lib/hancock/rails_admin_ext/patches/hancock_cms_group.rb
511
+ - lib/hancock/rails_admin_ext/patches/has_fields.rb
512
+ - lib/hancock/rails_admin_ext/patches/navigation_patch.rb
422
513
  - lib/hancock/rails_admin_ext/patches/new_controller_patch.rb
514
+ - lib/hancock/rails_admin_settings_patch.rb
423
515
  - lib/hancock/routes.rb
424
516
  - lib/hancock/simple_form_patch.rb
425
517
  - lib/hancock/tasks.rb