ecm_downloads 0.0.5.pre → 0.0.6.pre
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/README.rdoc +25 -1
- data/config/locales/ecm.downloads.download.de.yml +11 -8
- data/config/locales/ecm.downloads.download.en.yml +12 -9
- data/config/locales/ecm.downloads.download_category.de.yml +12 -9
- data/config/locales/ecm.downloads.download_category.en.yml +12 -9
- data/lib/ecm/downloads/configuration.rb +16 -0
- data/lib/ecm/downloads/version.rb +3 -2
- data/lib/ecm_downloads.rb +8 -0
- data/lib/generators/ecm/downloads/install/install_generator.rb +16 -0
- data/lib/generators/ecm/downloads/install/templates/ecm_downloads.rb +2 -0
- data/lib/generators/ecm/downloads/locales/locales_generator.rb +24 -0
- metadata +8 -6
- data/config/locales/ecm.downloads.routes.de.yml +0 -4
- data/config/locales/ecm.downloads.routes.en.yml +0 -4
data/README.rdoc
CHANGED
@@ -12,7 +12,31 @@ TODO
|
|
12
12
|
|
13
13
|
= Installation
|
14
14
|
|
15
|
-
|
15
|
+
Add the gem to your bundle:
|
16
|
+
|
17
|
+
# Gemfile
|
18
|
+
gem 'ecm_downloads'
|
19
|
+
|
20
|
+
Install your bundle:
|
21
|
+
|
22
|
+
> bundle install
|
23
|
+
|
24
|
+
Generate initializer:
|
25
|
+
|
26
|
+
> rails generate ecm:downloads:install
|
27
|
+
|
28
|
+
Add migrations:
|
29
|
+
|
30
|
+
> rake ecm_downloads_engine:install:migrations
|
31
|
+
|
32
|
+
Migrate:
|
33
|
+
|
34
|
+
> rake db:migrate
|
35
|
+
|
36
|
+
Add the routes:
|
37
|
+
|
38
|
+
# config/routes.rb
|
39
|
+
Ecm::Downloads::Routing.routes(self)
|
16
40
|
|
17
41
|
= Usage
|
18
42
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
---
|
2
|
-
de:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/downloads/download:
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/downloads/download:
|
6
6
|
asset: Datei
|
7
7
|
asset_content_type: Datei Content-Type
|
8
8
|
asset_file_name: Dateiname
|
@@ -11,7 +11,7 @@ de:
|
|
11
11
|
asset_updated_at: Datei aktualisiert am
|
12
12
|
created_at: Erstellt am
|
13
13
|
description: Beschreibung
|
14
|
-
ecm_downloads_download_category: Download Kategorie
|
14
|
+
ecm_downloads_download_category: Download Kategorie
|
15
15
|
ecm_downloads_download_category_id: Download Kategorie
|
16
16
|
locale: Sprache
|
17
17
|
name: Name
|
@@ -19,7 +19,10 @@ de:
|
|
19
19
|
published: Veröffentlicht
|
20
20
|
slug: Freundliche ID
|
21
21
|
updated_at: Aktualisiert am
|
22
|
-
models:
|
23
|
-
ecm/downloads/download:
|
22
|
+
models:
|
23
|
+
ecm/downloads/download:
|
24
24
|
one: Download
|
25
25
|
other: Downloads
|
26
|
+
resources:
|
27
|
+
ecm_downloads_downloads: downloads
|
28
|
+
|
@@ -1,9 +1,9 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/downloads/download:
|
6
|
-
asset: file
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/downloads/download:
|
6
|
+
asset: file
|
7
7
|
asset_content_type: content type
|
8
8
|
asset_file_name: filename
|
9
9
|
asset_file_size: filesize
|
@@ -11,7 +11,7 @@ en:
|
|
11
11
|
asset_updated_at: file updated at
|
12
12
|
created_at: created at
|
13
13
|
description: description
|
14
|
-
ecm_downloads_download_category: download category
|
14
|
+
ecm_downloads_download_category: download category
|
15
15
|
ecm_downloads_download_category_id: download category
|
16
16
|
locale: locale
|
17
17
|
name: name
|
@@ -19,7 +19,10 @@ en:
|
|
19
19
|
published: published
|
20
20
|
slug: friendly id
|
21
21
|
updated_at: updated at
|
22
|
-
models:
|
23
|
-
ecm/downloads/download:
|
22
|
+
models:
|
23
|
+
ecm/downloads/download:
|
24
24
|
one: download
|
25
25
|
other: downloads
|
26
|
+
resources:
|
27
|
+
ecm_downloads_downloads: downloads
|
28
|
+
|
@@ -1,8 +1,8 @@
|
|
1
|
-
---
|
2
|
-
de:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/downloads/download_category:
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/downloads/download_category:
|
6
6
|
children: Unter Kategorien
|
7
7
|
created_at: Erstellt am
|
8
8
|
depth: Baumtiefe
|
@@ -12,13 +12,16 @@ de:
|
|
12
12
|
lft: Links
|
13
13
|
locale: Sprache
|
14
14
|
name: Name
|
15
|
-
parent: Über Kategorie
|
16
|
-
parent_id: Über Kategorie
|
15
|
+
parent: Über Kategorie
|
16
|
+
parent_id: Über Kategorie
|
17
17
|
position: Position
|
18
18
|
rgt: Rechts
|
19
19
|
slug: Freundliche ID
|
20
20
|
updated_at: Aktualisiert am
|
21
|
-
models:
|
22
|
-
ecm/downloads/download_category:
|
21
|
+
models:
|
22
|
+
ecm/downloads/download_category:
|
23
23
|
one: Download Kategorie
|
24
24
|
other: Download Kategorien
|
25
|
+
resources:
|
26
|
+
ecm_downloads_download_categories: download-kategorien
|
27
|
+
|
@@ -1,8 +1,8 @@
|
|
1
|
-
---
|
2
|
-
en:
|
3
|
-
activerecord:
|
4
|
-
attributes:
|
5
|
-
ecm/downloads/download_category:
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
activerecord:
|
4
|
+
attributes:
|
5
|
+
ecm/downloads/download_category:
|
6
6
|
children: children
|
7
7
|
created_at: created at
|
8
8
|
depth: depth
|
@@ -12,13 +12,16 @@ en:
|
|
12
12
|
lft: left
|
13
13
|
locale: locale
|
14
14
|
name: name
|
15
|
-
parent: parent
|
16
|
-
parent_id: parent
|
15
|
+
parent: parent
|
16
|
+
parent_id: parent
|
17
17
|
position: position
|
18
18
|
rgt: right
|
19
19
|
slug: friendly id
|
20
20
|
updated_at: updated at
|
21
|
-
models:
|
22
|
-
ecm/downloads/download_category:
|
21
|
+
models:
|
22
|
+
ecm/downloads/download_category:
|
23
23
|
one: download category
|
24
24
|
other: download categories
|
25
|
+
resources:
|
26
|
+
ecm_downloads_download_categories: download-categories
|
27
|
+
|
@@ -0,0 +1,16 @@
|
|
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 Downloads
|
7
|
+
module Configuration
|
8
|
+
def configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
# mattr_accessor :foo
|
13
|
+
# @@foo = nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/ecm_downloads.rb
CHANGED
@@ -11,4 +11,12 @@ require 'rails_tools-absence_validator'
|
|
11
11
|
require 'paperclip'
|
12
12
|
|
13
13
|
require 'ecm/downloads/engine'
|
14
|
+
require 'ecm/downloads/configuration'
|
14
15
|
require 'ecm/downloads/routing'
|
16
|
+
|
17
|
+
module Ecm
|
18
|
+
module Downloads
|
19
|
+
extend Configuration
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Downloads
|
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_downloads.rb", "config/initializers/ecm_downloads.rb"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Downloads
|
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.downloads.en.yml", "config/locales/ecm.downloads.en.yml"
|
11
|
+
copy_file "ecm.downloads.de.yml", "config/locales/ecm.downloads.de.yml"
|
12
|
+
|
13
|
+
copy_file "ecm.downloads.download_category.en.yml", "config/locales/ecm.downloads.download_category.en.yml"
|
14
|
+
copy_file "ecm.downloads.download_category.de.yml", "config/locales/ecm.downloads.download_category.de.yml"
|
15
|
+
|
16
|
+
|
17
|
+
copy_file "ecm.downloads.download.en.yml", "config/locales/ecm.downloads.download.en.yml"
|
18
|
+
copy_file "ecm.downloads.download.de.yml", "config/locales/ecm.downloads.download.de.yml"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_downloads
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961915996
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 6
|
10
10
|
- pre
|
11
|
-
version: 0.0.
|
11
|
+
version: 0.0.6.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Roberto Vasquez Angel
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-09-18 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -383,23 +383,25 @@ files:
|
|
383
383
|
- app/assets/stylesheets/ecm_downloads.css
|
384
384
|
- app/assets/stylesheets/ecm_downloads/downloads_categories.css.erb
|
385
385
|
- config/routes.rb
|
386
|
-
- config/locales/ecm.downloads.routes.en.yml
|
387
386
|
- config/locales/ecm.downloads.download.de.yml
|
388
387
|
- config/locales/ecm.downloads.download_category.de.yml
|
389
388
|
- config/locales/active_admin.patch.de.yml
|
390
389
|
- config/locales/ecm.downloads.download_category.en.yml
|
391
|
-
- config/locales/ecm.downloads.routes.de.yml
|
392
390
|
- config/locales/ecm.downloads.en.yml
|
393
391
|
- config/locales/ecm.downloads.de.yml
|
394
392
|
- config/locales/ecm.downloads.download.en.yml
|
395
393
|
- db/migrate/001_create_ecm_downloads_download_categories.rb
|
396
394
|
- db/migrate/002_create_ecm_downloads_downloads.rb
|
395
|
+
- lib/generators/ecm/downloads/locales/locales_generator.rb
|
396
|
+
- lib/generators/ecm/downloads/install/install_generator.rb
|
397
|
+
- lib/generators/ecm/downloads/install/templates/ecm_downloads.rb
|
397
398
|
- lib/tasks/ecm_downloads_tasks.rake
|
398
399
|
- lib/ecm/downloads/active_admin/ecm_downloads_downloads.rb
|
399
400
|
- lib/ecm/downloads/active_admin/ecm_downloads_download_categories.rb
|
400
401
|
- lib/ecm/downloads/engine.rb
|
401
402
|
- lib/ecm/downloads/version.rb
|
402
403
|
- lib/ecm/downloads/routing.rb
|
404
|
+
- lib/ecm/downloads/configuration.rb
|
403
405
|
- lib/ecm_downloads.rb
|
404
406
|
- MIT-LICENSE
|
405
407
|
- Rakefile
|