ecm_pictures 0.0.16 → 0.0.17
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.
- data/lib/ecm/pictures/configuration.rb +14 -0
- data/lib/ecm/pictures/version.rb +1 -1
- data/lib/ecm_pictures.rb +9 -1
- data/lib/generators/ecm/pictures/install/install_generator.rb +15 -0
- data/lib/generators/ecm/pictures/install/templates/ecm_pictures.rb +3 -0
- data/lib/generators/ecm/pictures/locales/locales_generator.rb +23 -0
- metadata +7 -3
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
data/lib/ecm/pictures/version.rb
CHANGED
data/lib/ecm_pictures.rb
CHANGED
|
@@ -6,9 +6,17 @@ require 'friendly_id'
|
|
|
6
6
|
require 'paperclip'
|
|
7
7
|
|
|
8
8
|
# Ecm::Admin should do this!
|
|
9
|
-
require 'activeadmin'
|
|
9
|
+
require 'activeadmin'
|
|
10
10
|
require 'sass-rails'
|
|
11
11
|
require 'meta_search'
|
|
12
12
|
|
|
13
13
|
require 'ecm/pictures/engine'
|
|
14
|
+
require 'ecm/pictures/configuration'
|
|
14
15
|
require 'ecm/pictures/version'
|
|
16
|
+
|
|
17
|
+
module Ecm
|
|
18
|
+
module Pictures
|
|
19
|
+
extend Configuration
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
@@ -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,23 @@
|
|
|
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.picture.en.yml", "config/locales/ecm.pictures.picture.en.yml"
|
|
14
|
+
copy_file "ecm.pictures.picture.de.yml", "config/locales/ecm.pictures.picture.de.yml"
|
|
15
|
+
|
|
16
|
+
# copy_file "ecm.pictures.picture_gallery.en.yml", "config/locales/ecm.pictures.picture_gallery.en.yml"
|
|
17
|
+
copy_file "ecm.pictures.picture_gallery.de.yml", "config/locales/ecm.pictures.picture_gallery.de.yml"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ecm_pictures
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 61
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 17
|
|
10
|
+
version: 0.0.17
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Roberto Vasquez Angel
|
|
@@ -337,12 +337,16 @@ files:
|
|
|
337
337
|
- config/locales/ecm.pictures.picture.de.yml
|
|
338
338
|
- db/migrate/002_create_ecm_pictures_pictures.rb
|
|
339
339
|
- db/migrate/001_create_ecm_pictures_picture_galleries.rb
|
|
340
|
+
- lib/generators/ecm/pictures/locales/locales_generator.rb
|
|
341
|
+
- lib/generators/ecm/pictures/install/install_generator.rb
|
|
342
|
+
- lib/generators/ecm/pictures/install/templates/ecm_pictures.rb
|
|
340
343
|
- lib/tasks/ecm_pictures_tasks.rake
|
|
341
344
|
- lib/ecm_pictures.rb
|
|
342
345
|
- lib/ecm/pictures/active_admin/ecm_pictures_picture_galleries.rb
|
|
343
346
|
- lib/ecm/pictures/active_admin/ecm_pictures_pictures.rb
|
|
344
347
|
- lib/ecm/pictures/engine.rb
|
|
345
348
|
- lib/ecm/pictures/version.rb
|
|
349
|
+
- lib/ecm/pictures/configuration.rb
|
|
346
350
|
- MIT-LICENSE
|
|
347
351
|
- Rakefile
|
|
348
352
|
- README.rdoc
|