ecm_pictures2 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +78 -0
- data/Rakefile +28 -0
- data/app/admin/ecm_pictures_attached_pictures.rb +14 -0
- data/app/admin/ecm_pictures_picture_galleries.rb +111 -0
- data/app/admin/ecm_pictures_pictures.rb +98 -0
- data/app/assets/stylesheets/ecm_pictures.css.less +5 -0
- data/app/controllers/ecm/pictures/picture_galleries_controller.rb +11 -0
- data/app/controllers/ecm/pictures/pictures_controller.rb +11 -0
- data/app/helpers/ecm/pictures_helper.rb +72 -0
- data/app/helpers/markup_helper.rb +7 -0
- data/app/models/ecm/pictures/attached_picture.rb +16 -0
- data/app/models/ecm/pictures/picture.rb +68 -0
- data/app/models/ecm/pictures/picture_gallery.rb +55 -0
- data/app/views/ecm/pictures/picture_galleries/_picture_gallery.html.erb +7 -0
- data/app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index.html.erb +17 -0
- data/app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index2.html.erb +12 -0
- data/app/views/ecm/pictures/picture_galleries/index.html.erb +7 -0
- data/app/views/ecm/pictures/picture_galleries/show.html.erb +12 -0
- data/app/views/ecm/pictures/pictures/_picture.html.erb +5 -0
- data/app/views/ecm/pictures/pictures/_picture_for_gallery.html.erb +10 -0
- data/app/views/ecm/pictures/pictures/index.html.erb +5 -0
- data/app/views/ecm/pictures/pictures/show.html.erb +14 -0
- data/config/locales/ecm.pictures.attached_picture.de.yml +15 -0
- data/config/locales/ecm.pictures.attached_picture.en.yml +15 -0
- data/config/locales/ecm.pictures.de.yml +17 -0
- data/config/locales/ecm.pictures.en.yml +15 -0
- data/config/locales/ecm.pictures.picture.de.yml +25 -0
- data/config/locales/ecm.pictures.picture.en.yml +25 -0
- data/config/locales/ecm.pictures.picture_gallery.de.yml +21 -0
- data/config/locales/ecm.pictures.picture_gallery.en.yml +21 -0
- data/db/migrate/001_create_ecm_pictures_picture_galleries.rb +23 -0
- data/db/migrate/002_create_ecm_pictures_pictures.rb +30 -0
- data/db/migrate/003_create_ecm_pictures_attached_pictures.rb +10 -0
- data/lib/ecm/pictures/active_admin/pictureable_helper.rb +53 -0
- data/lib/ecm/pictures/configuration.rb +33 -0
- data/lib/ecm/pictures/engine.rb +12 -0
- data/lib/ecm/pictures/routing.rb +22 -0
- data/lib/ecm/pictures/version.rb +6 -0
- data/lib/ecm_pictures2.rb +18 -0
- data/lib/generators/ecm/pictures/install/install_generator.rb +15 -0
- data/lib/generators/ecm/pictures/install/templates/ecm_pictures.rb +35 -0
- data/lib/generators/ecm/pictures/locales/locales_generator.rb +26 -0
- data/lib/tasks/ecm_pictures_tasks.rake +62 -0
- metadata +430 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
class CreateEcmPicturesPictures < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :ecm_pictures_pictures do |t|
|
4
|
+
t.string :name
|
5
|
+
t.text :description
|
6
|
+
|
7
|
+
# associations
|
8
|
+
t.references :picture_gallery
|
9
|
+
|
10
|
+
# acts as list
|
11
|
+
t.integer :position
|
12
|
+
|
13
|
+
# acts as markup
|
14
|
+
t.string :markup_language
|
15
|
+
|
16
|
+
# friendly id
|
17
|
+
t.string :slug
|
18
|
+
|
19
|
+
# paperclip
|
20
|
+
# t.attachment :image
|
21
|
+
t.string :image_file_name
|
22
|
+
t.integer :image_file_size
|
23
|
+
t.string :image_content_type
|
24
|
+
t.timestamp :image_updated_at
|
25
|
+
t.string :image_fingerprint
|
26
|
+
|
27
|
+
t.timestamps
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'active_admin'
|
2
|
+
|
3
|
+
module Ecm::Pictures
|
4
|
+
module ActiveAdmin
|
5
|
+
module PictureableHelper
|
6
|
+
def form_inputs_for_pictureable(f)
|
7
|
+
f.inputs do
|
8
|
+
f.has_many :pictures do |p|
|
9
|
+
p.input :name
|
10
|
+
p.input :image, :as => :file, :hint => p.template.image_tag(p.object.image.url(:default_thumb))
|
11
|
+
p.input :description
|
12
|
+
p.input :markup_language, :as => :select, :collection => Ecm::Pictures::Configuration.markup_languages
|
13
|
+
end # f.has_many :pictures
|
14
|
+
end # f.inputs
|
15
|
+
|
16
|
+
f.inputs do
|
17
|
+
f.has_many :attached_pictures do |p|
|
18
|
+
p.input :picture, :as => :select,
|
19
|
+
:collection => Ecm::Pictures::Picture.all.collect do |picture|
|
20
|
+
[picture, picture.id, {:style => "background-image: url('#{picture.image.url(:medium_thumb)}'); width: #{Ecm::Pictures::Configuration.paperclip_options[:styles][:medium_thumb].split('x').first}px; height: #{Ecm::Pictures::Configuration.paperclip_options[:styles][:medium_thumb].split('x').last}px; background-repeat: no-repeat; background-position: center;"}]
|
21
|
+
end
|
22
|
+
end # f.has_many :attached_pictures
|
23
|
+
end # f.inputs
|
24
|
+
end # def
|
25
|
+
|
26
|
+
def panel_for_pictureable
|
27
|
+
panel Ecm::Pictures::PictureGallery.human_attribute_name(:pictures) do
|
28
|
+
table_for resource.pictures, :i18n => Ecm::Pictures::Picture do
|
29
|
+
sortable_columns
|
30
|
+
column :thumbnail do |picture|
|
31
|
+
link_to(image_tag(picture.image.url(:default_thumb)), [:admin, picture])
|
32
|
+
end # column
|
33
|
+
column :name
|
34
|
+
column :image_file_size, :sortable => :image_file_size do |picture|
|
35
|
+
number_to_human_size(picture.image_file_size)
|
36
|
+
end # column
|
37
|
+
column :created_at
|
38
|
+
column do |picture|
|
39
|
+
link_to(I18n.t('active_admin.view'), [:admin, picture], :class => "member_link view_link") +
|
40
|
+
link_to(I18n.t('active_admin.edit'), [:edit, :admin, picture], :class => "member_link edit_link") +
|
41
|
+
link_to(I18n.t('active_admin.delete'), [:admin, picture], :class => "member_link delete_link", :method => :delete) +
|
42
|
+
link_to(I18n.t('active_admin.delete_link'), [:admin, picture.attached_pictures.where(:pictureable_type => resource.class, :pictureable_id => resource).first], :class => "member_link delete_link", :method => :delete)
|
43
|
+
end # column
|
44
|
+
end # table_for
|
45
|
+
end # panel
|
46
|
+
end # def
|
47
|
+
end # module PictureableHelper
|
48
|
+
end # module ActiveAdmin
|
49
|
+
end # module Ecm::Pictures
|
50
|
+
|
51
|
+
::ActiveAdmin::ResourceDSL.send :include, Ecm::Pictures::ActiveAdmin::PictureableHelper
|
52
|
+
::ActiveAdmin::Views::Pages::Show.send :include, Ecm::Pictures::ActiveAdmin::PictureableHelper
|
53
|
+
::ActiveAdmin::Views::Pages::Form.send :include, Ecm::Pictures::ActiveAdmin::PictureableHelper
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
3
|
+
require 'active_support/hash_with_indifferent_access'
|
4
|
+
|
5
|
+
module Ecm
|
6
|
+
module Pictures
|
7
|
+
module Configuration
|
8
|
+
def configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
mattr_accessor :markup_languages do
|
13
|
+
[]
|
14
|
+
end
|
15
|
+
|
16
|
+
mattr_accessor :default_markup_language do
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
mattr_accessor :paperclip_options do
|
21
|
+
{}
|
22
|
+
end
|
23
|
+
|
24
|
+
mattr_accessor :base_controller do
|
25
|
+
'ApplicationController'
|
26
|
+
end
|
27
|
+
|
28
|
+
# def paperclip_options=(paperclip_options)
|
29
|
+
# @@paperclip_options = picture_image_styles.with_indifferent_access
|
30
|
+
# end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Pictures
|
3
|
+
class Routing
|
4
|
+
# Creates the routes for pictures and galleries. You can pass options to
|
5
|
+
# specify the actions for both pictures and/or galleries.
|
6
|
+
#
|
7
|
+
# Ecm::Pictures::Routing.routes(self, { :picture_gallery_actions => [ :show ]})
|
8
|
+
#
|
9
|
+
# This will only create the show action for picture galleries, but omit the index action.
|
10
|
+
def self.routes(router, options = {})
|
11
|
+
options.reverse_merge!(
|
12
|
+
{ :picture_gallery_actions => [:index, :show],
|
13
|
+
:picture_actions => [:index, :show]
|
14
|
+
}
|
15
|
+
)
|
16
|
+
|
17
|
+
router.resources :ecm_pictures_picture_galleries, :only => options[:picture_gallery_actions], :controller => 'ecm/pictures/picture_galleries'
|
18
|
+
router.resources :ecm_pictures_pictures,:only => options[:picture_actions], :controller => 'ecm/pictures/pictures'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'acts_as_list'
|
2
|
+
require 'acts_as_markup'
|
3
|
+
require 'active_admin-acts_as_list'
|
4
|
+
require 'friendly_id'
|
5
|
+
require 'paperclip'
|
6
|
+
|
7
|
+
require 'ecm/pictures/engine'
|
8
|
+
require 'ecm/pictures/configuration'
|
9
|
+
require 'ecm/pictures/routing'
|
10
|
+
require 'ecm/pictures/version'
|
11
|
+
require 'ecm/pictures/active_admin/pictureable_helper'
|
12
|
+
|
13
|
+
module Ecm
|
14
|
+
module Pictures
|
15
|
+
extend Configuration
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Pictures
|
3
|
+
module Generators
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
desc "Generates the intializer"
|
6
|
+
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
def generate_intializer
|
10
|
+
copy_file "ecm_pictures.rb", "config/initializers/ecm_pictures.rb"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
Ecm::Pictures.configure do |config|
|
2
|
+
# Accepted markup languages
|
3
|
+
#
|
4
|
+
# default: config.markup_languages = %w[ textile ]
|
5
|
+
config.markup_languages = %w[ textile ]
|
6
|
+
|
7
|
+
# Default markup language
|
8
|
+
#
|
9
|
+
# default: config.default_markup_language = 'textile'
|
10
|
+
config.default_markup_language = 'textile'
|
11
|
+
|
12
|
+
# Paperclip options
|
13
|
+
#
|
14
|
+
# default: config.paperclip_options = {
|
15
|
+
# styles: {
|
16
|
+
# small_thumb: "80x60",
|
17
|
+
# medium_thumb: "160x120",
|
18
|
+
# default_thumb: "260x180"
|
19
|
+
# }
|
20
|
+
# }
|
21
|
+
config.paperclip_options = {
|
22
|
+
styles: {
|
23
|
+
small_thumb: "80x60",
|
24
|
+
medium_thumb: "160x120",
|
25
|
+
default_thumb: "260x180"
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
# Set the base controller for the contact form
|
30
|
+
#
|
31
|
+
# Default: config.base_controller = 'ApplicationController'
|
32
|
+
#
|
33
|
+
config.base_controller = 'ApplicationController'
|
34
|
+
end
|
35
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Pictures
|
3
|
+
module Generators
|
4
|
+
class LocalesGenerator < Rails::Generators::Base
|
5
|
+
desc "Copies the locale files to your application"
|
6
|
+
|
7
|
+
source_root File.expand_path('../../../../../../config/locales', __FILE__)
|
8
|
+
|
9
|
+
def generate_locales
|
10
|
+
copy_file "ecm.pictures.en.yml", "config/locales/ecm.pictures.en.yml"
|
11
|
+
copy_file "ecm.pictures.de.yml", "config/locales/ecm.pictures.de.yml"
|
12
|
+
|
13
|
+
copy_file "ecm.pictures.attached_picture.en.yml", "config/locales/ecm.pictures.attached_picture.en.yml"
|
14
|
+
copy_file "ecm.pictures.attached_picture.de.yml", "config/locales/ecm.pictures.attached_picture.de.yml"
|
15
|
+
|
16
|
+
copy_file "ecm.pictures.picture.en.yml", "config/locales/ecm.pictures.picture.en.yml"
|
17
|
+
copy_file "ecm.pictures.picture.de.yml", "config/locales/ecm.pictures.picture.de.yml"
|
18
|
+
|
19
|
+
copy_file "ecm.pictures.picture_gallery.en.yml", "config/locales/ecm.pictures.picture_gallery.en.yml"
|
20
|
+
copy_file "ecm.pictures.picture_gallery.de.yml", "config/locales/ecm.pictures.picture_gallery.de.yml"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
@@ -0,0 +1,62 @@
|
|
1
|
+
namespace :ecm do
|
2
|
+
namespace :pictures do
|
3
|
+
namespace :db do
|
4
|
+
desc "Purges and creates example data"
|
5
|
+
task :populate!, [] => [:environment] do |t, args|
|
6
|
+
Rake::Task["ecm:pictures:db:clear!"].execute
|
7
|
+
Rake::Task["ecm:pictures:db:populate"].execute
|
8
|
+
end
|
9
|
+
|
10
|
+
desc "Clears all data!"
|
11
|
+
task :clear!, [] => [:environment] do |t, args|
|
12
|
+
Rake::Task["ecm:pictures:db:clear_galleries!"].execute
|
13
|
+
Rake::Task["ecm:pictures:db:clear_pictures!"].execute
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Clears all gallery data!"
|
17
|
+
task :clear_galleries!, [] => [:environment] do |t, args|
|
18
|
+
Ecm::Pictures::PictureGallery.delete_all
|
19
|
+
end
|
20
|
+
|
21
|
+
desc "Clears all picture data!"
|
22
|
+
task :clear_pictures!, [] => [:environment] do |t, args|
|
23
|
+
Ecm::Pictures::Picture.delete_all
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Creates example data"
|
27
|
+
task :populate, [] => [:environment] do |t, args|
|
28
|
+
Rake::Task["ecm:pictures:db:populate_galleries"].execute
|
29
|
+
Rake::Task["ecm:pictures:db:populate_pictures"].execute
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Creates example data for galleries"
|
33
|
+
task :populate_galleries, [] => [:environment] do |t, args|
|
34
|
+
require "ffaker"
|
35
|
+
5.times do |i|
|
36
|
+
Ecm::Pictures::PictureGallery.create! do |pg|
|
37
|
+
pg.name = "Picture Gallery #{i}"
|
38
|
+
pg.description = Faker::Lorem.paragraph(rand(3))
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
desc "Creates example data for pictures"
|
44
|
+
task :populate_pictures, [] => [:environment] do |t, args|
|
45
|
+
require "ffaker"
|
46
|
+
require "forgery"
|
47
|
+
|
48
|
+
picture_galleries = Ecm::Pictures::PictureGallery.all
|
49
|
+
50.times do
|
50
|
+
Ecm::Pictures::Picture.create! do |p|
|
51
|
+
p.picture_gallery = picture_galleries.choice
|
52
|
+
p.image = File.open(File.join(Ecm::Pictures::Engine.root, 'spec/files', 'ecm/pictures/pictures', 'example.jpg'))
|
53
|
+
p.name = Faker::Product.brand if (rand(2) == 1)
|
54
|
+
p.description = Faker::Lorem.paragraph(rand(10))
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
|
metadata
ADDED
@@ -0,0 +1,430 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ecm_pictures2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Roberto Vasquez Angel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '4.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: acts_as_list
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: acts_as_markup
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: active_admin-acts_as_list
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.0.8
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.0.8
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: friendly_id
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: paperclip
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: RedCloth
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rails-dummy
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: sqlite3
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: twitter-bootstrap-rails
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: devise
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: thin
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: yard
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
201
|
+
- !ruby/object:Gem::Dependency
|
202
|
+
name: coffee-rails
|
203
|
+
requirement: !ruby/object:Gem::Requirement
|
204
|
+
requirements:
|
205
|
+
- - ">="
|
206
|
+
- !ruby/object:Gem::Version
|
207
|
+
version: '0'
|
208
|
+
type: :development
|
209
|
+
prerelease: false
|
210
|
+
version_requirements: !ruby/object:Gem::Requirement
|
211
|
+
requirements:
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: '0'
|
215
|
+
- !ruby/object:Gem::Dependency
|
216
|
+
name: less-rails
|
217
|
+
requirement: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - ">="
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
type: :development
|
223
|
+
prerelease: false
|
224
|
+
version_requirements: !ruby/object:Gem::Requirement
|
225
|
+
requirements:
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: '0'
|
229
|
+
- !ruby/object:Gem::Dependency
|
230
|
+
name: sass-rails
|
231
|
+
requirement: !ruby/object:Gem::Requirement
|
232
|
+
requirements:
|
233
|
+
- - ">="
|
234
|
+
- !ruby/object:Gem::Version
|
235
|
+
version: '0'
|
236
|
+
type: :development
|
237
|
+
prerelease: false
|
238
|
+
version_requirements: !ruby/object:Gem::Requirement
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
version: '0'
|
243
|
+
- !ruby/object:Gem::Dependency
|
244
|
+
name: therubyracer
|
245
|
+
requirement: !ruby/object:Gem::Requirement
|
246
|
+
requirements:
|
247
|
+
- - ">="
|
248
|
+
- !ruby/object:Gem::Version
|
249
|
+
version: '0'
|
250
|
+
type: :development
|
251
|
+
prerelease: false
|
252
|
+
version_requirements: !ruby/object:Gem::Requirement
|
253
|
+
requirements:
|
254
|
+
- - ">="
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '0'
|
257
|
+
- !ruby/object:Gem::Dependency
|
258
|
+
name: capybara
|
259
|
+
requirement: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
type: :development
|
265
|
+
prerelease: false
|
266
|
+
version_requirements: !ruby/object:Gem::Requirement
|
267
|
+
requirements:
|
268
|
+
- - ">="
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: '0'
|
271
|
+
- !ruby/object:Gem::Dependency
|
272
|
+
name: rspec-rails
|
273
|
+
requirement: !ruby/object:Gem::Requirement
|
274
|
+
requirements:
|
275
|
+
- - ">="
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
type: :development
|
279
|
+
prerelease: false
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
requirements:
|
282
|
+
- - ">="
|
283
|
+
- !ruby/object:Gem::Version
|
284
|
+
version: '0'
|
285
|
+
- !ruby/object:Gem::Dependency
|
286
|
+
name: shoulda-matchers
|
287
|
+
requirement: !ruby/object:Gem::Requirement
|
288
|
+
requirements:
|
289
|
+
- - "~>"
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: 2.8.0
|
292
|
+
type: :development
|
293
|
+
prerelease: false
|
294
|
+
version_requirements: !ruby/object:Gem::Requirement
|
295
|
+
requirements:
|
296
|
+
- - "~>"
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: 2.8.0
|
299
|
+
- !ruby/object:Gem::Dependency
|
300
|
+
name: factory_girl_rails
|
301
|
+
requirement: !ruby/object:Gem::Requirement
|
302
|
+
requirements:
|
303
|
+
- - ">="
|
304
|
+
- !ruby/object:Gem::Version
|
305
|
+
version: '0'
|
306
|
+
type: :development
|
307
|
+
prerelease: false
|
308
|
+
version_requirements: !ruby/object:Gem::Requirement
|
309
|
+
requirements:
|
310
|
+
- - ">="
|
311
|
+
- !ruby/object:Gem::Version
|
312
|
+
version: '0'
|
313
|
+
- !ruby/object:Gem::Dependency
|
314
|
+
name: guard-rails
|
315
|
+
requirement: !ruby/object:Gem::Requirement
|
316
|
+
requirements:
|
317
|
+
- - ">="
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '0'
|
320
|
+
type: :development
|
321
|
+
prerelease: false
|
322
|
+
version_requirements: !ruby/object:Gem::Requirement
|
323
|
+
requirements:
|
324
|
+
- - ">="
|
325
|
+
- !ruby/object:Gem::Version
|
326
|
+
version: '0'
|
327
|
+
- !ruby/object:Gem::Dependency
|
328
|
+
name: guard-rspec
|
329
|
+
requirement: !ruby/object:Gem::Requirement
|
330
|
+
requirements:
|
331
|
+
- - ">="
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
version: '0'
|
334
|
+
type: :development
|
335
|
+
prerelease: false
|
336
|
+
version_requirements: !ruby/object:Gem::Requirement
|
337
|
+
requirements:
|
338
|
+
- - ">="
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '0'
|
341
|
+
- !ruby/object:Gem::Dependency
|
342
|
+
name: guard-bundler
|
343
|
+
requirement: !ruby/object:Gem::Requirement
|
344
|
+
requirements:
|
345
|
+
- - ">="
|
346
|
+
- !ruby/object:Gem::Version
|
347
|
+
version: '0'
|
348
|
+
type: :development
|
349
|
+
prerelease: false
|
350
|
+
version_requirements: !ruby/object:Gem::Requirement
|
351
|
+
requirements:
|
352
|
+
- - ">="
|
353
|
+
- !ruby/object:Gem::Version
|
354
|
+
version: '0'
|
355
|
+
description: Provides picture galleries for active admin.
|
356
|
+
email:
|
357
|
+
- roberto@vasquez-angel.de
|
358
|
+
executables: []
|
359
|
+
extensions: []
|
360
|
+
extra_rdoc_files: []
|
361
|
+
files:
|
362
|
+
- MIT-LICENSE
|
363
|
+
- README.rdoc
|
364
|
+
- Rakefile
|
365
|
+
- app/admin/ecm_pictures_attached_pictures.rb
|
366
|
+
- app/admin/ecm_pictures_picture_galleries.rb
|
367
|
+
- app/admin/ecm_pictures_pictures.rb
|
368
|
+
- app/assets/stylesheets/ecm_pictures.css.less
|
369
|
+
- app/controllers/ecm/pictures/picture_galleries_controller.rb
|
370
|
+
- app/controllers/ecm/pictures/pictures_controller.rb
|
371
|
+
- app/helpers/ecm/pictures_helper.rb
|
372
|
+
- app/helpers/markup_helper.rb
|
373
|
+
- app/models/ecm/pictures/attached_picture.rb
|
374
|
+
- app/models/ecm/pictures/picture.rb
|
375
|
+
- app/models/ecm/pictures/picture_gallery.rb
|
376
|
+
- app/views/ecm/pictures/picture_galleries/_picture_gallery.html.erb
|
377
|
+
- app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index.html.erb
|
378
|
+
- app/views/ecm/pictures/picture_galleries/_picture_gallery_for_index2.html.erb
|
379
|
+
- app/views/ecm/pictures/picture_galleries/index.html.erb
|
380
|
+
- app/views/ecm/pictures/picture_galleries/show.html.erb
|
381
|
+
- app/views/ecm/pictures/pictures/_picture.html.erb
|
382
|
+
- app/views/ecm/pictures/pictures/_picture_for_gallery.html.erb
|
383
|
+
- app/views/ecm/pictures/pictures/index.html.erb
|
384
|
+
- app/views/ecm/pictures/pictures/show.html.erb
|
385
|
+
- config/locales/ecm.pictures.attached_picture.de.yml
|
386
|
+
- config/locales/ecm.pictures.attached_picture.en.yml
|
387
|
+
- config/locales/ecm.pictures.de.yml
|
388
|
+
- config/locales/ecm.pictures.en.yml
|
389
|
+
- config/locales/ecm.pictures.picture.de.yml
|
390
|
+
- config/locales/ecm.pictures.picture.en.yml
|
391
|
+
- config/locales/ecm.pictures.picture_gallery.de.yml
|
392
|
+
- config/locales/ecm.pictures.picture_gallery.en.yml
|
393
|
+
- db/migrate/001_create_ecm_pictures_picture_galleries.rb
|
394
|
+
- db/migrate/002_create_ecm_pictures_pictures.rb
|
395
|
+
- db/migrate/003_create_ecm_pictures_attached_pictures.rb
|
396
|
+
- lib/ecm/pictures/active_admin/pictureable_helper.rb
|
397
|
+
- lib/ecm/pictures/configuration.rb
|
398
|
+
- lib/ecm/pictures/engine.rb
|
399
|
+
- lib/ecm/pictures/routing.rb
|
400
|
+
- lib/ecm/pictures/version.rb
|
401
|
+
- lib/ecm_pictures2.rb
|
402
|
+
- lib/generators/ecm/pictures/install/install_generator.rb
|
403
|
+
- lib/generators/ecm/pictures/install/templates/ecm_pictures.rb
|
404
|
+
- lib/generators/ecm/pictures/locales/locales_generator.rb
|
405
|
+
- lib/tasks/ecm_pictures_tasks.rake
|
406
|
+
homepage: https://github.com/robotex82/ecm_pictures
|
407
|
+
licenses: []
|
408
|
+
metadata: {}
|
409
|
+
post_install_message:
|
410
|
+
rdoc_options: []
|
411
|
+
require_paths:
|
412
|
+
- lib
|
413
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
414
|
+
requirements:
|
415
|
+
- - ">="
|
416
|
+
- !ruby/object:Gem::Version
|
417
|
+
version: '0'
|
418
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
419
|
+
requirements:
|
420
|
+
- - ">="
|
421
|
+
- !ruby/object:Gem::Version
|
422
|
+
version: '0'
|
423
|
+
requirements: []
|
424
|
+
rubyforge_project:
|
425
|
+
rubygems_version: 2.4.8
|
426
|
+
signing_key:
|
427
|
+
specification_version: 4
|
428
|
+
summary: Picture galleries for active admin.
|
429
|
+
test_files: []
|
430
|
+
has_rdoc:
|