hancock_cms_gallery 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +4 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +54 -0
  9. data/Rakefile +1 -0
  10. data/app/assets/javascripts/hancock/gallery/init.coffee +2 -0
  11. data/app/assets/javascripts/hancock/gallery/loaders/gallery_images_loader.coffee +29 -0
  12. data/app/assets/javascripts/hancock/gallery/loaders/gallery_loader.coffee +29 -0
  13. data/app/assets/javascripts/hancock/gallery/page_selector.coffee +65 -0
  14. data/app/assets/javascripts/hancock/gallery.coffee +11 -0
  15. data/app/controllers/concerns/hancock/gallery/load_gallery.rb +74 -0
  16. data/app/controllers/concerns/hancock/gallery/load_gallery_images.rb +58 -0
  17. data/app/controllers/concerns/rails_admin/jcrop_controller.rb +138 -0
  18. data/app/models/concerns/hancock/gallery/active_record_paperclip.rb +95 -0
  19. data/app/models/concerns/hancock/gallery/auto_crop.rb +86 -0
  20. data/app/models/concerns/hancock/gallery/decorators/embedded_image.rb +47 -0
  21. data/app/models/concerns/hancock/gallery/decorators/gallery.rb +47 -0
  22. data/app/models/concerns/hancock/gallery/decorators/image.rb +52 -0
  23. data/app/models/concerns/hancock/gallery/decorators/original_image.rb +35 -0
  24. data/app/models/concerns/hancock/gallery/gallerable.rb +13 -0
  25. data/app/models/concerns/hancock/gallery/mongoid_paperclip.rb +96 -0
  26. data/app/models/concerns/hancock/gallery/paperclipable.rb +19 -0
  27. data/app/models/concerns/hancock/gallery/watermarkable.rb +117 -0
  28. data/app/models/hancock/gallery/embedded_image.rb +17 -0
  29. data/app/models/hancock/gallery/gallery.rb +16 -0
  30. data/app/models/hancock/gallery/image.rb +16 -0
  31. data/app/models/hancock/gallery/original_image.rb +15 -0
  32. data/app/views/rails_admin/jcrop/edit.html.slim +18 -0
  33. data/bin/console +14 -0
  34. data/bin/setup +7 -0
  35. data/config/initializers/hancock_gallery.rb +29 -0
  36. data/config/initializers/paperclip_fix.rb +4 -0
  37. data/config/locales/hancock.gallery.ru.yml +17 -0
  38. data/hancock_cms_gallery.gemspec +37 -0
  39. data/lib/generators/hancock/gallery/config/install_generator.rb +13 -0
  40. data/lib/generators/hancock/gallery/config/templates/hancock_gallery.erb +9 -0
  41. data/lib/generators/hancock/gallery/migrations/migration_generator.rb +18 -0
  42. data/lib/generators/hancock/gallery/migrations/templates/migration_gallery.rb +51 -0
  43. data/lib/generators/hancock/gallery/models/decorators_generator.rb +21 -0
  44. data/lib/generators/hancock/gallery/models/embedded_image_generator.rb +52 -0
  45. data/lib/generators/hancock/gallery/models/gallery_generator.rb +55 -0
  46. data/lib/generators/hancock/gallery/models/image_generator.rb +51 -0
  47. data/lib/generators/hancock/gallery/models/templates/embedded_image.erb +52 -0
  48. data/lib/generators/hancock/gallery/models/templates/gallery.erb +48 -0
  49. data/lib/generators/hancock/gallery/models/templates/image.erb +50 -0
  50. data/lib/generators/hancock/gallery/models/templates/original_image.erb +34 -0
  51. data/lib/hancock/gallery/admin/embedded_image.rb +41 -0
  52. data/lib/hancock/gallery/admin/gallery.rb +52 -0
  53. data/lib/hancock/gallery/admin/image.rb +45 -0
  54. data/lib/hancock/gallery/admin/original_image.rb +33 -0
  55. data/lib/hancock/gallery/admin.rb +26 -0
  56. data/lib/hancock/gallery/configuration.rb +26 -0
  57. data/lib/hancock/gallery/engine.rb +5 -0
  58. data/lib/hancock/gallery/models/active_record/gallery.rb +19 -0
  59. data/lib/hancock/gallery/models/active_record/image.rb +21 -0
  60. data/lib/hancock/gallery/models/embedded_image.rb +28 -0
  61. data/lib/hancock/gallery/models/gallery.rb +62 -0
  62. data/lib/hancock/gallery/models/image.rb +57 -0
  63. data/lib/hancock/gallery/models/mongoid/embedded_image.rb +12 -0
  64. data/lib/hancock/gallery/models/mongoid/gallery.rb +16 -0
  65. data/lib/hancock/gallery/models/mongoid/image.rb +15 -0
  66. data/lib/hancock/gallery/models/mongoid/original_image.rb +14 -0
  67. data/lib/hancock/gallery/models/original_image.rb +30 -0
  68. data/lib/hancock/gallery/rails_admin_ext/hancock_image.rb +32 -0
  69. data/lib/hancock/gallery/version.rb +5 -0
  70. data/lib/hancock_cms_gallery.rb +66 -0
  71. data/release.sh +6 -0
  72. metadata +176 -0
@@ -0,0 +1,26 @@
1
+ module Hancock::Gallery
2
+ module Admin
3
+
4
+ def self.images_block(is_active = false, fields = [:images])
5
+ if is_active.is_a?(Array) or is_active.is_a?(String) or is_active.is_a?(Symbol)
6
+ is_active, fields = false, [is_active].flatten
7
+ elsif is_active.is_a?(Hash)
8
+ is_active, fields = (is_active[:active] || false), (is_active[:fields] || [:images])
9
+ end
10
+
11
+ Proc.new {
12
+ active is_active
13
+ label I18n.t('hancock.images')
14
+ field :image, :hancock_image
15
+ fields.map { |f|
16
+ field f
17
+ }
18
+
19
+ if block_given?
20
+ yield self
21
+ end
22
+ }
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,26 @@
1
+ module Hancock::Gallery
2
+ include Hancock::PluginConfiguration
3
+
4
+ def self.config_class
5
+ Configuration
6
+ end
7
+
8
+ class Configuration
9
+
10
+ attr_accessor :localize
11
+
12
+ attr_accessor :model_settings_support
13
+ attr_accessor :user_abilities_support
14
+ attr_accessor :ra_comments_support
15
+ attr_accessor :watermark_support
16
+
17
+ def initialize
18
+ @localize = Hancock.config.localize
19
+
20
+ @model_settings_support = defined?(RailsAdminModelSettings)
21
+ @user_abilities_support = defined?(RailsAdminUserAbilities)
22
+ @ra_comments_support = defined?(RailsAdminComments)
23
+ @watermark_support = defined?(PaperclipWatermark)
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,5 @@
1
+ module Hancock::Gallery
2
+ class Engine < ::Rails::Engine
3
+ # isolate_namespace Hancock::Gallery
4
+ end
5
+ end
@@ -0,0 +1,19 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module ActiveRecord
4
+ module Gallery
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ has_paper_trail
9
+ validates_lengths_from_database
10
+ if Hancock::Gallery.config.localize
11
+ translates :name
12
+ end
13
+
14
+ scope :sorted, -> { order(lft: :asc) }
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,21 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module ActiveRecord
4
+ module Image
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ # belongs_to :hancock_gallery_imagable, polymorphic: true
9
+
10
+ has_paper_trail
11
+ validates_lengths_from_database
12
+ if Hancock::Gallery.config.localize
13
+ translates :name
14
+ end
15
+
16
+ scope :sorted, -> { order(lft: :asc) }
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,28 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module EmbeddedImage
4
+ if Hancock::Gallery.mongoid?
5
+ extend ActiveSupport::Concern
6
+
7
+ include Hancock::Gallery::Paperclipable
8
+ include Hancock::Gallery::AutoCrop
9
+ # if Hancock::Gallery.config.watermark_support
10
+ # include Hancock::Gallery::Watermarkable
11
+ # end
12
+
13
+ include Hancock::Gallery.orm_specific('EmbeddedImage')
14
+
15
+ included do
16
+ set_default_auto_crop_params_for(:image)
17
+ hancock_cms_attached_file(:image)
18
+ # if Hancock::Gallery.config.watermark_support
19
+ # paperclip_with_watermark(:image)
20
+ # else
21
+ # hancock_cms_attached_file(:image)
22
+ # end
23
+ end
24
+
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,62 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Gallery
4
+ extend ActiveSupport::Concern
5
+ include Hancock::Model
6
+ include ManualSlug
7
+ include Hancock::Enableable
8
+
9
+ include Hancock::Gallery::Paperclipable
10
+ include Hancock::Gallery::AutoCrop
11
+ # if Hancock::Gallery.config.watermark_support
12
+ # include Hancock::Gallery::Watermarkable
13
+ # end
14
+
15
+ include Hancock::Gallery.orm_specific('Gallery')
16
+
17
+ included do
18
+ manual_slug :name
19
+
20
+ has_many :gallery_images, class_name: "Hancock::Gallery::Image"
21
+ alias :images :gallery_images
22
+
23
+ acts_as_nested_set
24
+
25
+ set_default_auto_crop_params_for(:image)
26
+ hancock_cms_attached_file(:image)
27
+ # if Hancock::Gallery.config.watermark_support
28
+ # paperclip_with_watermark(:image)
29
+ # else
30
+ # hancock_cms_attached_file(:image)
31
+ # end
32
+
33
+
34
+ if Hancock.rails4?
35
+ belongs_to :gallerable, polymorphic: true
36
+ else
37
+ belongs_to :gallerable, polymorphic: true, optional: true
38
+ end
39
+
40
+
41
+ def self.manager_can_add_actions
42
+ ret = [:nested_set]
43
+ # ret += [:multiple_file_upload, :sort_embedded] if Hancock::Gallery.mongoid?
44
+ ret << :model_settings if Hancock::Gallery.config.model_settings_support
45
+ ret << :model_accesses if Hancock::Gallery.config.user_abilities_support
46
+ ret += [:comments, :model_comments] if Hancock::Gallery.config.ra_comments_support
47
+ ret.freeze
48
+ end
49
+ def self.rails_admin_add_visible_actions
50
+ ret = [:nested_set]
51
+ # ret += [:multiple_file_upload, :sort_embedded] if Hancock::Gallery.mongoid?
52
+ ret << :model_settings if Hancock::Gallery.config.model_settings_support
53
+ ret << :model_accesses if Hancock::Gallery.config.user_abilities_support
54
+ ret += [:comments, :model_comments] if Hancock::Gallery.config.ra_comments_support
55
+ ret.freeze
56
+ end
57
+
58
+ end
59
+
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,57 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Image
4
+ extend ActiveSupport::Concern
5
+ include Hancock::Model
6
+ include Hancock::Enableable
7
+
8
+ include Hancock::Gallery::Paperclipable
9
+ include Hancock::Gallery::AutoCrop
10
+ # if Hancock::Gallery.config.watermark_support
11
+ # include Hancock::Gallery::Watermarkable
12
+ # end
13
+
14
+ include Hancock::Cacheable
15
+
16
+ include Hancock::Gallery.orm_specific('Image')
17
+
18
+ included do
19
+
20
+ if Hancock.rails4?
21
+ belongs_to :gallery, class_name: "Hancock::Gallery::Gallery"
22
+ else
23
+ belongs_to :gallery, class_name: "Hancock::Gallery::Gallery", optional: true
24
+ end
25
+
26
+ acts_as_nested_set
27
+
28
+ set_default_auto_crop_params_for(:image)
29
+ hancock_cms_attached_file(:image)
30
+ # if Hancock::Gallery.config.watermark_support
31
+ # paperclip_with_watermark(:image)
32
+ # else
33
+ # hancock_cms_attached_file(:image)
34
+ # end
35
+
36
+ def self.manager_can_add_actions
37
+ ret = [:nested_set, :multiple_file_upload_collection]
38
+ # ret += [:multiple_file_upload, :sort_embedded] if Hancock::Gallery.mongoid?
39
+ ret << :model_settings if Hancock::Gallery.config.model_settings_support
40
+ ret << :model_accesses if Hancock::Gallery.config.user_abilities_support
41
+ ret += [:comments, :model_comments] if Hancock::Gallery.config.ra_comments_support
42
+ ret.freeze
43
+ end
44
+ def self.rails_admin_add_visible_actions
45
+ ret = [:nested_set, :multiple_file_upload_collection]
46
+ # ret += [:multiple_file_upload, :sort_embedded] if Hancock::Gallery.mongoid?
47
+ ret << :model_settings if Hancock::Gallery.config.model_settings_support
48
+ ret << :model_accesses if Hancock::Gallery.config.user_abilities_support
49
+ ret += [:comments, :model_comments] if Hancock::Gallery.config.ra_comments_support
50
+ ret.freeze
51
+ end
52
+
53
+ end
54
+
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,12 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Mongoid
4
+ module EmbeddedImage
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Mongoid
4
+ module Gallery
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ field :name, type: String, localize: Hancock::Gallery.configuration.localize
9
+
10
+ scope :sorted, -> { order_by([:lft, :asc]) }
11
+ end
12
+
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,15 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Mongoid
4
+ module Image
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ field :name, type: String, localize: Hancock::Gallery.configuration.localize
9
+
10
+ scope :sorted, -> { order_by([:lft, :asc]) }
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module Mongoid
4
+ module OriginalImage
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ field :original, type: BSON::Binary
9
+ end
10
+
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,30 @@
1
+ module Hancock::Gallery
2
+ module Models
3
+ module OriginalImage
4
+ extend ActiveSupport::Concern
5
+
6
+ include Hancock::Model
7
+ include Hancock::Gallery.orm_specific('OriginalImage')
8
+
9
+ included do
10
+
11
+ belongs_to :originable, polymorphic: true
12
+
13
+ def self.admin_can_default_actions
14
+ [:show, :read].freeze
15
+ end
16
+ def self.manager_can_default_actions
17
+ [:show, :read].freeze
18
+ end
19
+ def self.admin_cannot_actions
20
+ [:new, :create, :edit, :update].freeze
21
+ end
22
+ def self.manager_cannot_actions
23
+ [:new, :create, :edit, :update].freeze
24
+ end
25
+
26
+ end
27
+
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,32 @@
1
+ require 'ack_rails_admin_jcrop'
2
+
3
+ module RailsAdmin
4
+ module Config
5
+ module Fields
6
+ module Types
7
+ class HancockImage < RailsAdmin::Config::Fields::Types::Jcrop
8
+ # Register field type for the type loader
9
+ RailsAdmin::Config::Fields::Types::register(self)
10
+
11
+ register_instance_option :help do
12
+ "SVG не изменяется."
13
+ end
14
+
15
+ register_instance_option :jcrop_options do
16
+ "#{name}_jcrop_options".to_sym
17
+ end
18
+
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ RailsAdmin::Config::Fields.register_factory do |parent, properties, fields|
26
+ if (properties.respond_to?(:name) ? properties.name : properties[:name]) == :hancock_image
27
+ fields << RailsAdmin::Config::Fields::Types::HancockImage.new(parent, :hancock_image, properties)
28
+ true
29
+ else
30
+ false
31
+ end
32
+ end
@@ -0,0 +1,5 @@
1
+ module Hancock
2
+ module Gallery
3
+ VERSION = "1.0.0".freeze
4
+ end
5
+ end
@@ -0,0 +1,66 @@
1
+ # unless defined?(Hancock) && Hancock.respond_to?(:orm) && [:active_record, :mongoid].include?(Hancock.orm)
2
+ # puts "please use hancock_cms_mongoid or hancock_cms_activerecord"
3
+ # puts "also: please use hancock_cms_news_mongoid or hancock_cms_news_activerecord and not hancock_cms_news directly"
4
+ # exit 1
5
+ # end
6
+
7
+ require "hancock/gallery/version"
8
+
9
+ # require 'hancock_cms'
10
+
11
+ if Hancock.mongoid?
12
+ begin
13
+ begin
14
+ require 'glebtv-mongoid-paperclip'
15
+ rescue LoadError
16
+ require 'mongoid-paperclip'
17
+ end
18
+ rescue LoadError
19
+ raise 'Add mongoid-paperclip or glebtv-mongoid-paperclip'
20
+ end
21
+ elsif Hancock.active_record?
22
+ require 'paperclip'
23
+ end
24
+ # require "image_optim"
25
+ # require "paperclip-optimizer"
26
+
27
+ require "ack_rails_admin_jcrop"
28
+
29
+ require "hancock/gallery/rails_admin_ext/hancock_image"
30
+
31
+ require 'hancock/gallery/configuration'
32
+ require 'hancock/gallery/engine'
33
+
34
+
35
+ module Hancock::Gallery
36
+ include Hancock::Plugin
37
+
38
+ autoload :Admin, 'hancock/gallery/admin'
39
+ module Admin
40
+ autoload :Gallery, 'hancock/gallery/admin/gallery'
41
+ autoload :Image, 'hancock/gallery/admin/image'
42
+ autoload :OriginalImage, 'hancock/gallery/admin/original_image'
43
+ autoload :EmbeddedImage, 'hancock/gallery/admin/embedded_image'
44
+ end
45
+
46
+ module Models
47
+ autoload :Gallery, 'hancock/gallery/models/gallery'
48
+ autoload :Image, 'hancock/gallery/models/image'
49
+ autoload :OriginalImage, 'hancock/gallery/models/original_image'
50
+ autoload :EmbeddedImage, 'hancock/gallery/models/embedded_image'
51
+
52
+ module Mongoid
53
+ autoload :Gallery, 'hancock/gallery/models/mongoid/gallery'
54
+ autoload :Image, 'hancock/gallery/models/mongoid/image'
55
+ autoload :OriginalImage, 'hancock/gallery/models/mongoid/original_image'
56
+ autoload :EmbeddedImage, 'hancock/gallery/models/mongoid/embedded_image'
57
+ end
58
+
59
+ module ActiveRecord
60
+ autoload :Gallery, 'hancock/gallery/models/active_record/gallery'
61
+ autoload :Image, 'hancock/gallery/models/active_record/image'
62
+ # autoload :OriginalImage, 'hancock/gallery/models/active_record/original_image'
63
+ end
64
+ end
65
+
66
+ end
data/release.sh ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/bash
2
+ bundle update
3
+ git add --all .
4
+ git commit -am "${*:1}"
5
+ git push -u origin master
6
+ rake release
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hancock_cms_gallery
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexander Kiseliev
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: hancock_cms
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ - - "<="
49
+ - !ruby/object:Gem::Version
50
+ version: '2.0'
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '1.0'
58
+ - - "<="
59
+ - !ruby/object:Gem::Version
60
+ version: '2.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: ack_rails_admin_jcrop
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.2.0
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.2.0
75
+ description: hancock_cms_gallery
76
+ email:
77
+ - dev@redrocks.pro
78
+ executables: []
79
+ extensions: []
80
+ extra_rdoc_files: []
81
+ files:
82
+ - ".gitignore"
83
+ - ".ruby-gemset"
84
+ - ".ruby-version"
85
+ - ".travis.yml"
86
+ - Gemfile
87
+ - LICENSE.txt
88
+ - README.md
89
+ - Rakefile
90
+ - app/assets/javascripts/hancock/gallery.coffee
91
+ - app/assets/javascripts/hancock/gallery/init.coffee
92
+ - app/assets/javascripts/hancock/gallery/loaders/gallery_images_loader.coffee
93
+ - app/assets/javascripts/hancock/gallery/loaders/gallery_loader.coffee
94
+ - app/assets/javascripts/hancock/gallery/page_selector.coffee
95
+ - app/controllers/concerns/hancock/gallery/load_gallery.rb
96
+ - app/controllers/concerns/hancock/gallery/load_gallery_images.rb
97
+ - app/controllers/concerns/rails_admin/jcrop_controller.rb
98
+ - app/models/concerns/hancock/gallery/active_record_paperclip.rb
99
+ - app/models/concerns/hancock/gallery/auto_crop.rb
100
+ - app/models/concerns/hancock/gallery/decorators/embedded_image.rb
101
+ - app/models/concerns/hancock/gallery/decorators/gallery.rb
102
+ - app/models/concerns/hancock/gallery/decorators/image.rb
103
+ - app/models/concerns/hancock/gallery/decorators/original_image.rb
104
+ - app/models/concerns/hancock/gallery/gallerable.rb
105
+ - app/models/concerns/hancock/gallery/mongoid_paperclip.rb
106
+ - app/models/concerns/hancock/gallery/paperclipable.rb
107
+ - app/models/concerns/hancock/gallery/watermarkable.rb
108
+ - app/models/hancock/gallery/embedded_image.rb
109
+ - app/models/hancock/gallery/gallery.rb
110
+ - app/models/hancock/gallery/image.rb
111
+ - app/models/hancock/gallery/original_image.rb
112
+ - app/views/rails_admin/jcrop/edit.html.slim
113
+ - bin/console
114
+ - bin/setup
115
+ - config/initializers/hancock_gallery.rb
116
+ - config/initializers/paperclip_fix.rb
117
+ - config/locales/hancock.gallery.ru.yml
118
+ - hancock_cms_gallery.gemspec
119
+ - lib/generators/hancock/gallery/config/install_generator.rb
120
+ - lib/generators/hancock/gallery/config/templates/hancock_gallery.erb
121
+ - lib/generators/hancock/gallery/migrations/migration_generator.rb
122
+ - lib/generators/hancock/gallery/migrations/templates/migration_gallery.rb
123
+ - lib/generators/hancock/gallery/models/decorators_generator.rb
124
+ - lib/generators/hancock/gallery/models/embedded_image_generator.rb
125
+ - lib/generators/hancock/gallery/models/gallery_generator.rb
126
+ - lib/generators/hancock/gallery/models/image_generator.rb
127
+ - lib/generators/hancock/gallery/models/templates/embedded_image.erb
128
+ - lib/generators/hancock/gallery/models/templates/gallery.erb
129
+ - lib/generators/hancock/gallery/models/templates/image.erb
130
+ - lib/generators/hancock/gallery/models/templates/original_image.erb
131
+ - lib/hancock/gallery/admin.rb
132
+ - lib/hancock/gallery/admin/embedded_image.rb
133
+ - lib/hancock/gallery/admin/gallery.rb
134
+ - lib/hancock/gallery/admin/image.rb
135
+ - lib/hancock/gallery/admin/original_image.rb
136
+ - lib/hancock/gallery/configuration.rb
137
+ - lib/hancock/gallery/engine.rb
138
+ - lib/hancock/gallery/models/active_record/gallery.rb
139
+ - lib/hancock/gallery/models/active_record/image.rb
140
+ - lib/hancock/gallery/models/embedded_image.rb
141
+ - lib/hancock/gallery/models/gallery.rb
142
+ - lib/hancock/gallery/models/image.rb
143
+ - lib/hancock/gallery/models/mongoid/embedded_image.rb
144
+ - lib/hancock/gallery/models/mongoid/gallery.rb
145
+ - lib/hancock/gallery/models/mongoid/image.rb
146
+ - lib/hancock/gallery/models/mongoid/original_image.rb
147
+ - lib/hancock/gallery/models/original_image.rb
148
+ - lib/hancock/gallery/rails_admin_ext/hancock_image.rb
149
+ - lib/hancock/gallery/version.rb
150
+ - lib/hancock_cms_gallery.rb
151
+ - release.sh
152
+ homepage: https://github.com/red-rocks/hancock_cms_gallery
153
+ licenses:
154
+ - MIT
155
+ metadata: {}
156
+ post_install_message:
157
+ rdoc_options: []
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ required_rubygems_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '0'
170
+ requirements: []
171
+ rubyforge_project:
172
+ rubygems_version: 2.5.1
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: hancock_cms_gallery
176
+ test_files: []