ecm_news2 1.2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +8 -0
- data/Rakefile +1 -4
- data/app/admin/ecm_news_items.rb +75 -73
- data/app/controllers/ecm/news/items_controller.rb +2 -2
- data/app/helpers/ecm/news_helper.rb +3 -4
- data/app/helpers/markup_helper.rb +2 -2
- data/app/models/ecm/news/item.rb +15 -16
- data/app/policies/ecm/news/backend/engine_policy.rb +4 -0
- data/app/policies/ecm/news/item_policy.rb +4 -0
- data/app/views/ecm/news/_render_news_footer.html.erb +1 -1
- data/app/views/ecm/news/items/_item_for_render_news.html.erb +1 -1
- data/app/views/ecm/news/items/index.html.erb +4 -4
- data/config/locales/ecm.news.item.de.yml +1 -0
- data/config/locales/ecm.news.item.en.yml +1 -0
- data/db/migrate/001_create_ecm_news_items.rb +2 -2
- data/lib/ecm/news/engine.rb +2 -3
- data/lib/ecm/news/routing.rb +4 -12
- data/lib/ecm/news/version.rb +1 -2
- data/lib/generators/ecm/news/install/install_generator.rb +6 -6
- data/lib/generators/ecm/news/install/templates/{ecm_news.rb → initializer.rb} +1 -2
- data/lib/generators/ecm/news/locales/locales_generator.rb +8 -8
- data/lib/tasks/ecm_news_tasks.rake +18 -19
- metadata +22 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52bf6e16f4583feb6dd27ff7b554840dd376c65
|
4
|
+
data.tar.gz: bedcd398986f43338269a89fa859f3e44e4f0429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7678e1949212ab4054f7c04c5779930e88c987990f7affcbc55e84e7125838c9d0e44c4e0a4d8d187e8ed8c98d2ad84a85aff6f539f338f155046049101934ab
|
7
|
+
data.tar.gz: 7341c12e4848422c83d48f1f2fadc9026f73fb455840195f3e05d70909d6b477f11d991b7ecf8d3b33627ac6d9be634e8c9a09731530c96aa39ee2e4b11b53d7
|
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
data/app/admin/ecm_news_items.rb
CHANGED
@@ -1,88 +1,90 @@
|
|
1
|
-
|
2
|
-
include Ecm::Pictures::ActiveAdmin::PictureableHelper
|
1
|
+
if Gem::Specification.find_all_by_name('activeadmin').any?
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
acts_as_published_actions
|
3
|
+
include ActsAsPublished::ActiveAdminHelper
|
4
|
+
include Ecm::Pictures::ActiveAdmin::PictureableHelper
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
:slug,
|
17
|
-
:title,
|
18
|
-
pictures_attributes: [
|
19
|
-
:description,
|
20
|
-
:_destroy,
|
21
|
-
:id,
|
22
|
-
:image,
|
6
|
+
::ActiveAdmin.register Ecm::News::Item do
|
7
|
+
# acts as published
|
8
|
+
acts_as_published_actions
|
9
|
+
|
10
|
+
permit_params :attached_pictures_attributes,
|
11
|
+
:body,
|
12
|
+
:link_to_more,
|
13
|
+
:locale,
|
23
14
|
:markup_language,
|
24
|
-
:
|
25
|
-
:
|
26
|
-
:
|
27
|
-
|
28
|
-
|
15
|
+
:pictures_attributes,
|
16
|
+
:published,
|
17
|
+
:published_at,
|
18
|
+
:slug,
|
19
|
+
:title,
|
20
|
+
pictures_attributes: [
|
21
|
+
:description,
|
22
|
+
:_destroy,
|
23
|
+
:id,
|
24
|
+
:image,
|
25
|
+
:markup_language,
|
26
|
+
:name,
|
27
|
+
:picture_gallery_id,
|
28
|
+
:position
|
29
|
+
],
|
30
|
+
attached_pictures_attributes: []
|
29
31
|
|
30
|
-
|
31
|
-
|
32
|
+
# menu entry settings
|
33
|
+
menu parent: proc { I18n.t('ecm.news.active_admin.menu') }.call
|
32
34
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
# scopes
|
36
|
+
scope :all
|
37
|
+
scope :published
|
38
|
+
scope :unpublished
|
37
39
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
40
|
+
form do |f|
|
41
|
+
f.inputs do
|
42
|
+
f.input :title
|
43
|
+
f.input :locale, as: :select, collection: I18n.available_locales.map(&:to_s)
|
44
|
+
f.input :body
|
45
|
+
f.input :published, as: :boolean
|
46
|
+
end
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
-
|
48
|
+
f.inputs do
|
49
|
+
f.input :markup_language, as: :select, collection: Ecm::News::Configuration.markup_languages.map(&:to_s)
|
50
|
+
end
|
49
51
|
|
50
|
-
|
52
|
+
form_inputs_for_pictureable(f)
|
51
53
|
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
index do
|
56
|
-
selectable_column
|
57
|
-
column :title
|
58
|
-
column :locale
|
59
|
-
column :body do |item|
|
60
|
-
truncate(mu(item, :body), :length => 250, :separator => ' ').html_safe
|
54
|
+
f.actions
|
61
55
|
end
|
62
|
-
acts_as_published_columns
|
63
|
-
column :created_at
|
64
|
-
column :updated_at
|
65
|
-
actions
|
66
|
-
end
|
67
56
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
57
|
+
index do
|
58
|
+
selectable_column
|
59
|
+
column :title
|
60
|
+
column :locale
|
61
|
+
column :body do |item|
|
62
|
+
truncate(mu(item, :body), length: 250, separator: ' ').html_safe
|
63
|
+
end
|
64
|
+
acts_as_published_columns
|
65
|
+
column :created_at
|
66
|
+
column :updated_at
|
67
|
+
actions
|
77
68
|
end
|
78
69
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
70
|
+
show title: :to_s do
|
71
|
+
attributes_table do
|
72
|
+
row :title
|
73
|
+
row :locale
|
74
|
+
row :published_at
|
75
|
+
row :link_to_more
|
76
|
+
row :markup_language
|
77
|
+
row :created_at
|
78
|
+
row :updated_at
|
79
|
+
end
|
84
80
|
|
85
|
-
|
86
|
-
|
87
|
-
|
81
|
+
panel Ecm::News::Item.human_attribute_name(:body) do
|
82
|
+
div do
|
83
|
+
mu(ecm_news_item, :body)
|
84
|
+
end # div
|
85
|
+
end # panel
|
88
86
|
|
87
|
+
panel_for_pictureable
|
88
|
+
end # show
|
89
|
+
end
|
90
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class Ecm::News::ItemsController < Ecm::Pictures::Configuration.base_controller.constantize
|
2
2
|
def index
|
3
|
-
@items = Ecm::News::Item.published.where(:
|
3
|
+
@items = Ecm::News::Item.published.where(locale: I18n.locale.to_s).order('published_at DESC').page(params[:page]).per(5)
|
4
4
|
end
|
5
5
|
|
6
6
|
def show
|
7
|
-
@item = Ecm::News::Item.published.where(:
|
7
|
+
@item = Ecm::News::Item.published.where(locale: I18n.locale.to_s).find(params[:id])
|
8
8
|
end
|
9
9
|
end
|
@@ -1,14 +1,13 @@
|
|
1
1
|
module Ecm::NewsHelper
|
2
2
|
def render_news(count = Ecm::News::Configuration.render_news_default_count)
|
3
|
-
items = Ecm::News::Item.published.where(:
|
3
|
+
items = Ecm::News::Item.published.where(locale: I18n.locale).order('published_at DESC').limit(count)
|
4
4
|
|
5
5
|
return I18n.t('ecm.news.item.messages.empty') if items.empty?
|
6
6
|
|
7
7
|
output = Ecm::News::Configuration.prevent_textile_rendering_in_html ? '<notextile>' : ''
|
8
|
-
output << render(:
|
9
|
-
output << render(:
|
8
|
+
output << render(partial: 'ecm/news/items/item_for_render_news', collection: items, as: :item)
|
9
|
+
output << render(partial: 'ecm/news/render_news_footer')
|
10
10
|
output << '</notextile>' if Ecm::News::Configuration.prevent_textile_rendering_in_html
|
11
11
|
output.html_safe
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module MarkupHelper
|
2
2
|
def mu(object, method)
|
3
3
|
handler = object.send(method)
|
4
|
-
erb_string = ::ERB.new(object[method.to_sym].to_s, 0).result(binding
|
5
|
-
|
4
|
+
erb_string = ::ERB.new(object[method.to_sym].to_s, 0).result(binding)
|
5
|
+
handler.class.new(erb_string).to_html.html_safe
|
6
6
|
end
|
7
7
|
end
|
data/app/models/ecm/news/item.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
class Ecm::News::Item < ActiveRecord::Base
|
2
2
|
# associations
|
3
|
-
has_many :attached_pictures, :
|
4
|
-
:
|
5
|
-
:
|
6
|
-
has_many :pictures, :
|
7
|
-
:
|
3
|
+
has_many :attached_pictures, as: :pictureable,
|
4
|
+
class_name: Ecm::Pictures::AttachedPicture,
|
5
|
+
dependent: :destroy
|
6
|
+
has_many :pictures, through: :attached_pictures,
|
7
|
+
class_name: Ecm::Pictures::Picture
|
8
8
|
|
9
|
-
accepts_nested_attributes_for :attached_pictures, :
|
10
|
-
accepts_nested_attributes_for :pictures, :
|
9
|
+
accepts_nested_attributes_for :attached_pictures, allow_destroy: true
|
10
|
+
accepts_nested_attributes_for :pictures, allow_destroy: true
|
11
11
|
|
12
12
|
# acts as markup
|
13
|
-
acts_as_markup :
|
13
|
+
acts_as_markup language: :variable, columns: [:body]
|
14
14
|
|
15
15
|
# acts as published
|
16
16
|
include ActsAsPublished::ActiveRecord
|
@@ -33,15 +33,15 @@ class Ecm::News::Item < ActiveRecord::Base
|
|
33
33
|
|
34
34
|
# friendly id
|
35
35
|
extend FriendlyId
|
36
|
-
friendly_id :title, :
|
36
|
+
friendly_id :title, use: [:slugged, :finders]
|
37
37
|
|
38
38
|
# validations
|
39
|
-
validates :title, :
|
40
|
-
validates :locale, :
|
41
|
-
:
|
42
|
-
validates :body,
|
43
|
-
validates :markup_language, :
|
44
|
-
:
|
39
|
+
validates :title, presence: true, uniqueness: true
|
40
|
+
validates :locale, presence: true,
|
41
|
+
inclusion: I18n.available_locales.map(&:to_s)
|
42
|
+
validates :body, presence: true
|
43
|
+
validates :markup_language, presence: true,
|
44
|
+
inclusion: Ecm::News::Configuration.markup_languages.map(&:to_s)
|
45
45
|
|
46
46
|
def human
|
47
47
|
title
|
@@ -63,4 +63,3 @@ class Ecm::News::Item < ActiveRecord::Base
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
66
|
-
|
@@ -1,2 +1,2 @@
|
|
1
|
-
<%= link_to(t('ecm.news.item.actions.all'), ecm_news_items_path, :class => 'btn btn-default list-link') %>
|
1
|
+
<%= link_to(t('ecm.news.item.actions.all'), main_app.ecm_news_items_path, :class => 'btn btn-default list-link') %>
|
2
2
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<div class="item-body truncate lines-<%= Ecm::News::Configuration.news_item_preview_lines %> bottom-margin-2"><%= mu(item, :body) %></div>
|
7
7
|
|
8
8
|
<div class="item-actions bottom-margin-2">
|
9
|
-
<%= link_to(t('ecm.news.views.actions.more'), item, class: 'btn btn-primary more-link') %>
|
9
|
+
<%= link_to(t('ecm.news.views.actions.more'), main_app.url_for(item), class: 'btn btn-primary more-link') %>
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<% content_for :meta_description,
|
2
|
-
<% content_for :title,
|
3
|
-
<h1><%=
|
1
|
+
<% content_for :meta_description, t('ecm.news.news') %>
|
2
|
+
<% content_for :title, t('ecm.news.news') %>
|
3
|
+
<h1><%= t('ecm.news.news') %></h1>
|
4
4
|
|
5
5
|
<%= render :partial => 'item_in_list', :collection => @items, :as => :item %>
|
6
6
|
|
7
7
|
<%= paginate @items, :theme => 'twitter-bootstrap' %>
|
8
8
|
|
9
9
|
<div class="well page-actions">
|
10
|
-
<%= link_to(t('ecm.news.views.actions.back'),
|
10
|
+
<%= link_to(t('ecm.news.views.actions.back'), root_path, class: 'btn btn-default') %>
|
11
11
|
</div>
|
data/lib/ecm/news/engine.rb
CHANGED
@@ -3,10 +3,9 @@ module Ecm
|
|
3
3
|
class Engine < ::Rails::Engine
|
4
4
|
initializer :ecm_news_engine do
|
5
5
|
ActiveAdmin.setup do |config|
|
6
|
-
config.load_paths << File.join(
|
6
|
+
config.load_paths << File.join(root, 'app', 'admin')
|
7
7
|
end
|
8
|
-
end
|
8
|
+
end if Gem::Specification.find_all_by_name('activeadmin').any?
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
data/lib/ecm/news/routing.rb
CHANGED
@@ -1,22 +1,14 @@
|
|
1
1
|
module Ecm
|
2
2
|
module News
|
3
3
|
class Routing
|
4
|
-
# Creates the routes for news items. You can pass options to
|
5
|
-
# specify the actions for news items.
|
6
|
-
#
|
7
|
-
# Ecm::News::Routing.routes(self, { :item_actions => [ :show ]})
|
8
|
-
#
|
9
|
-
# This will only create the show action for items, but omit the index
|
10
|
-
# action.
|
11
4
|
def self.routes(router, options = {})
|
12
5
|
options.reverse_merge!(
|
13
|
-
|
14
|
-
}
|
6
|
+
item_actions: [:index, :show]
|
15
7
|
)
|
16
8
|
|
17
|
-
router.resources :ecm_news_items, :
|
18
|
-
:
|
19
|
-
router.get 'page/:page', :
|
9
|
+
router.resources :ecm_news_items, only: options[:item_actions],
|
10
|
+
controller: 'ecm/news/items' do
|
11
|
+
router.get 'page/:page', action: :index, on: :collection
|
20
12
|
end
|
21
13
|
end
|
22
14
|
end
|
data/lib/ecm/news/version.rb
CHANGED
@@ -2,14 +2,14 @@ module Ecm
|
|
2
2
|
module News
|
3
3
|
module Generators
|
4
4
|
class InstallGenerator < Rails::Generators::Base
|
5
|
-
desc
|
5
|
+
desc 'Generates the intializer'
|
6
|
+
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
6
8
|
|
7
|
-
source_root File.expand_path('../templates', __FILE__)
|
8
|
-
|
9
9
|
def generate_intializer
|
10
|
-
copy_file
|
11
|
-
end
|
10
|
+
copy_file 'initializer.rb', 'config/initializers/ecm_news.rb'
|
11
|
+
end
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
15
|
-
end
|
15
|
+
end
|
@@ -12,7 +12,7 @@ Ecm::News.configure do |config|
|
|
12
12
|
# Accepted markup languages
|
13
13
|
#
|
14
14
|
# default: config.markup_languages = %w[ textile ]
|
15
|
-
config.markup_languages = %w
|
15
|
+
config.markup_languages = %w( textile )
|
16
16
|
|
17
17
|
# Default markup language
|
18
18
|
#
|
@@ -48,4 +48,3 @@ Ecm::News.configure do |config|
|
|
48
48
|
#
|
49
49
|
config.prevent_textile_rendering_in_html = true
|
50
50
|
end
|
51
|
-
|
@@ -2,17 +2,17 @@ module Ecm
|
|
2
2
|
module News
|
3
3
|
module Generators
|
4
4
|
class LocalesGenerator < Rails::Generators::Base
|
5
|
-
desc
|
5
|
+
desc 'Copies the locale files to your application'
|
6
6
|
|
7
7
|
source_root File.expand_path('../../../../../../config/locales', __FILE__)
|
8
|
-
|
8
|
+
|
9
9
|
def generate_locales
|
10
|
-
copy_file
|
11
|
-
copy_file
|
12
|
-
copy_file
|
13
|
-
copy_file
|
14
|
-
end
|
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
15
|
end
|
16
16
|
end
|
17
17
|
end
|
18
|
-
end
|
18
|
+
end
|
@@ -1,33 +1,32 @@
|
|
1
1
|
namespace :ecm_news do
|
2
2
|
namespace :db do
|
3
|
-
desc
|
4
|
-
task :populate!, [] => [:environment] do |
|
5
|
-
|
6
|
-
Rake::Task[
|
7
|
-
Rake::Task["ecm_news:db:populate"].execute
|
3
|
+
desc 'Purges and creates example data'
|
4
|
+
task :populate!, [] => [:environment] do |_t, _args|
|
5
|
+
Rake::Task['ecm_news:db:clear!'].execute
|
6
|
+
Rake::Task['ecm_news:db:populate'].execute
|
8
7
|
end
|
9
|
-
|
10
|
-
desc
|
11
|
-
task :clear!, [] => [:environment] do |
|
8
|
+
|
9
|
+
desc 'Clears all data!'
|
10
|
+
task :clear!, [] => [:environment] do |_t, _args|
|
12
11
|
Ecm::News::Item.delete_all
|
13
12
|
end
|
14
|
-
|
15
|
-
desc
|
16
|
-
task :populate, [] => [:environment] do |
|
17
|
-
require
|
18
|
-
require
|
13
|
+
|
14
|
+
desc 'Creates example_data'
|
15
|
+
task :populate, [] => [:environment] do |_t, _args|
|
16
|
+
require 'ffaker'
|
17
|
+
require 'forgery'
|
19
18
|
|
20
19
|
# Create example news items
|
21
20
|
100.times do
|
22
|
-
Ecm::News::Item.create! do |i|
|
23
|
-
i.title = Faker::Lorem.paragraph(1).split(
|
21
|
+
Ecm::News::Item.create! do |i|
|
22
|
+
i.title = Faker::Lorem.paragraph(1).split(' ')[0..3].join(' ')
|
24
23
|
i.locale = I18n.available_locales.choice.to_s
|
25
24
|
i.body = Faker::Lorem.paragraph(rand(9) + 1)
|
26
25
|
i.link_to_more = [true, false].choice
|
27
|
-
i.published = [true, false].choice
|
26
|
+
i.published = [true, false].choice
|
28
27
|
i.markup_language = Ecm::News::Item::MARKUP_LANGAUGES.choice
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
32
31
|
end
|
33
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecm_news2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 5.0.0
|
19
|
+
version: '4.0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 4.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 5.0.0
|
26
|
+
version: '4.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: acts_as_markup
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -48,16 +42,16 @@ dependencies:
|
|
48
42
|
name: acts_as_published
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
|
-
- - "
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
|
-
- - "
|
52
|
+
- - ">="
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: '0'
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: friendly_id
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +137,7 @@ dependencies:
|
|
143
137
|
- !ruby/object:Gem::Version
|
144
138
|
version: '0'
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
|
-
name:
|
140
|
+
name: jquery-rails
|
147
141
|
requirement: !ruby/object:Gem::Requirement
|
148
142
|
requirements:
|
149
143
|
- - ">="
|
@@ -157,7 +151,7 @@ dependencies:
|
|
157
151
|
- !ruby/object:Gem::Version
|
158
152
|
version: '0'
|
159
153
|
- !ruby/object:Gem::Dependency
|
160
|
-
name:
|
154
|
+
name: devise
|
161
155
|
requirement: !ruby/object:Gem::Requirement
|
162
156
|
requirements:
|
163
157
|
- - ">="
|
@@ -171,7 +165,7 @@ dependencies:
|
|
171
165
|
- !ruby/object:Gem::Version
|
172
166
|
version: '0'
|
173
167
|
- !ruby/object:Gem::Dependency
|
174
|
-
name:
|
168
|
+
name: twitter-bootstrap-rails
|
175
169
|
requirement: !ruby/object:Gem::Requirement
|
176
170
|
requirements:
|
177
171
|
- - ">="
|
@@ -185,7 +179,7 @@ dependencies:
|
|
185
179
|
- !ruby/object:Gem::Version
|
186
180
|
version: '0'
|
187
181
|
- !ruby/object:Gem::Dependency
|
188
|
-
name:
|
182
|
+
name: thin
|
189
183
|
requirement: !ruby/object:Gem::Requirement
|
190
184
|
requirements:
|
191
185
|
- - ">="
|
@@ -300,16 +294,16 @@ dependencies:
|
|
300
294
|
name: shoulda-matchers
|
301
295
|
requirement: !ruby/object:Gem::Requirement
|
302
296
|
requirements:
|
303
|
-
- - "
|
297
|
+
- - ">="
|
304
298
|
- !ruby/object:Gem::Version
|
305
|
-
version:
|
299
|
+
version: '0'
|
306
300
|
type: :development
|
307
301
|
prerelease: false
|
308
302
|
version_requirements: !ruby/object:Gem::Requirement
|
309
303
|
requirements:
|
310
|
-
- - "
|
304
|
+
- - ">="
|
311
305
|
- !ruby/object:Gem::Version
|
312
|
-
version:
|
306
|
+
version: '0'
|
313
307
|
- !ruby/object:Gem::Dependency
|
314
308
|
name: factory_girl_rails
|
315
309
|
requirement: !ruby/object:Gem::Requirement
|
@@ -366,7 +360,7 @@ dependencies:
|
|
366
360
|
- - ">="
|
367
361
|
- !ruby/object:Gem::Version
|
368
362
|
version: '0'
|
369
|
-
description: News
|
363
|
+
description: Provides News functionality for ruby on rails.
|
370
364
|
email:
|
371
365
|
- roberto@vasquez-angel.de
|
372
366
|
executables: []
|
@@ -381,6 +375,8 @@ files:
|
|
381
375
|
- app/helpers/ecm/news_helper.rb
|
382
376
|
- app/helpers/markup_helper.rb
|
383
377
|
- app/models/ecm/news/item.rb
|
378
|
+
- app/policies/ecm/news/backend/engine_policy.rb
|
379
|
+
- app/policies/ecm/news/item_policy.rb
|
384
380
|
- app/views/ecm/news/_render_news_footer.html.erb
|
385
381
|
- app/views/ecm/news/items/_item.html.erb
|
386
382
|
- app/views/ecm/news/items/_item_for_render_news.html.erb
|
@@ -398,10 +394,10 @@ files:
|
|
398
394
|
- lib/ecm/news/version.rb
|
399
395
|
- lib/ecm_news2.rb
|
400
396
|
- lib/generators/ecm/news/install/install_generator.rb
|
401
|
-
- lib/generators/ecm/news/install/templates/
|
397
|
+
- lib/generators/ecm/news/install/templates/initializer.rb
|
402
398
|
- lib/generators/ecm/news/locales/locales_generator.rb
|
403
399
|
- lib/tasks/ecm_news_tasks.rake
|
404
|
-
homepage: https://github.com/robotex82/
|
400
|
+
homepage: https://github.com/robotex82/ecm_news2
|
405
401
|
licenses: []
|
406
402
|
metadata: {}
|
407
403
|
post_install_message:
|
@@ -423,6 +419,6 @@ rubyforge_project:
|
|
423
419
|
rubygems_version: 2.4.8
|
424
420
|
signing_key:
|
425
421
|
specification_version: 4
|
426
|
-
summary: News module
|
422
|
+
summary: ECM News module.
|
427
423
|
test_files: []
|
428
424
|
has_rdoc:
|