ecm_news 0.1.2.pre → 0.1.3.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 +4 -0
- data/config/locales/ecm.news.de.yml +7 -0
- data/config/locales/ecm.news.en.yml +7 -0
- data/lib/ecm/news/configuration.rb +16 -0
- data/lib/ecm/news/version.rb +1 -1
- data/lib/ecm_news.rb +2 -0
- data/lib/generators/ecm/news/install/install_generator.rb +15 -0
- data/lib/generators/ecm/news/install/templates/ecm_news.rb +2 -0
- data/lib/generators/ecm/news/locales/locales_generator.rb +18 -0
- metadata +8 -6
- data/config/locales/pagination.de.yml +0 -8
- data/config/locales/pagination.en.yml +0 -8
data/README.rdoc
CHANGED
@@ -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 News
|
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/news/version.rb
CHANGED
data/lib/ecm_news.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ecm
|
2
|
+
module News
|
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_news.rb", "config/initializers/ecm_news.rb"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Ecm
|
2
|
+
module News
|
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.news.en.yml", "config/locales/ecm.news.en.yml"
|
11
|
+
copy_file "ecm.news.de.yml", "config/locales/ecm.news.de.yml"
|
12
|
+
copy_file "ecm.news.item.en.yml", "config/locales/ecm.news.item.en.yml"
|
13
|
+
copy_file "ecm.news.item.de.yml", "config/locales/ecm.news.item.de.yml"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_news
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 961915968
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
9
|
+
- 3
|
10
10
|
- pre
|
11
|
-
version: 0.1.
|
11
|
+
version: 0.1.3.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-09-
|
19
|
+
date: 2012-09-18 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rails
|
@@ -313,18 +313,20 @@ files:
|
|
313
313
|
- app/models/ecm/news.rb
|
314
314
|
- app/models/ecm/news/item.rb
|
315
315
|
- config/locales/ecm.news.item.de.yml
|
316
|
-
- config/locales/pagination.de.yml
|
317
316
|
- config/locales/ecm.news.item.en.yml
|
318
317
|
- config/locales/ecm.news.de.yml
|
319
|
-
- config/locales/pagination.en.yml
|
320
318
|
- config/locales/ecm.news.en.yml
|
321
319
|
- db/migrate/001_create_ecm_news_items.rb
|
322
320
|
- lib/ecm_news.rb
|
321
|
+
- lib/generators/ecm/news/locales/locales_generator.rb
|
322
|
+
- lib/generators/ecm/news/install/install_generator.rb
|
323
|
+
- lib/generators/ecm/news/install/templates/ecm_news.rb
|
323
324
|
- lib/tasks/ecm_news_tasks.rake
|
324
325
|
- lib/ecm/news/active_admin/ecm_news_items.rb
|
325
326
|
- lib/ecm/news/engine.rb
|
326
327
|
- lib/ecm/news/version.rb
|
327
328
|
- lib/ecm/news/routing.rb
|
329
|
+
- lib/ecm/news/configuration.rb
|
328
330
|
- MIT-LICENSE
|
329
331
|
- Rakefile
|
330
332
|
- README.rdoc
|