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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55156b8ab312c5b1073d803a41291663dc6e1758
4
- data.tar.gz: 5c8bd5cbc671ecc02517b93791509fc6c85a8886
3
+ metadata.gz: e52bf6e16f4583feb6dd27ff7b554840dd376c65
4
+ data.tar.gz: bedcd398986f43338269a89fa859f3e44e4f0429
5
5
  SHA512:
6
- metadata.gz: 9789618fe8818ef30ae21fe7e7615ca31cb3041c357195891a2f03dff7900369881bb6c72bc64f60141840a7f82fb6870696b819a508272afb0d6f3e601fe85d
7
- data.tar.gz: 20158d07159968299aaaf49e7e4c5f3c81421f7e89d929663698e1f3eeb688cce0b4265ebdfb24feffb7bf046b762e9f9b418d3cd9753fb8755200e8cec97184
6
+ metadata.gz: 7678e1949212ab4054f7c04c5779930e88c987990f7affcbc55e84e7125838c9d0e44c4e0a4d8d187e8ed8c98d2ad84a85aff6f539f338f155046049101934ab
7
+ data.tar.gz: 7341c12e4848422c83d48f1f2fadc9026f73fb455840195f3e05d70909d6b477f11d991b7ecf8d3b33627ac6d9be634e8c9a09731530c96aa39ee2e4b11b53d7
data/README.rdoc CHANGED
@@ -48,6 +48,14 @@ Add the routes:
48
48
 
49
49
  <%= render_news(count) %>
50
50
 
51
+ = Running specs
52
+
53
+ gem install bundler
54
+ bundle
55
+ cd spec/dummy && rake db:migrate RAILS_ENV=test && cd ../..
56
+ guard
57
+
58
+
51
59
  = License
52
60
 
53
61
  This project rocks and uses MIT-LICENSE.
data/Rakefile CHANGED
@@ -20,9 +20,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
20
20
  rdoc.rdoc_files.include('lib/**/*.rb')
21
21
  end
22
22
 
23
-
24
-
25
-
26
23
  Bundler::GemHelper.install_tasks
27
24
 
28
- require 'rails/dummy/tasks'
25
+ require 'rails/dummy/tasks'
@@ -1,88 +1,90 @@
1
- include ActsAsPublished::ActiveAdminHelper
2
- include Ecm::Pictures::ActiveAdmin::PictureableHelper
1
+ if Gem::Specification.find_all_by_name('activeadmin').any?
3
2
 
4
- ::ActiveAdmin.register Ecm::News::Item do
5
- # acts as published
6
- acts_as_published_actions
3
+ include ActsAsPublished::ActiveAdminHelper
4
+ include Ecm::Pictures::ActiveAdmin::PictureableHelper
7
5
 
8
- permit_params :attached_pictures_attributes,
9
- :body,
10
- :link_to_more,
11
- :locale,
12
- :markup_language,
13
- :pictures_attributes,
14
- :published,
15
- :published_at,
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
- :name,
25
- :picture_gallery_id,
26
- :position
27
- ],
28
- attached_pictures_attributes: []
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
- # menu entry settings
31
- menu :parent => Proc.new { I18n.t('ecm.news.active_admin.menu') }.call
32
+ # menu entry settings
33
+ menu parent: proc { I18n.t('ecm.news.active_admin.menu') }.call
32
34
 
33
- # scopes
34
- scope :all
35
- scope :published
36
- scope :unpublished
35
+ # scopes
36
+ scope :all
37
+ scope :published
38
+ scope :unpublished
37
39
 
38
- form do |f|
39
- f.inputs do
40
- f.input :title
41
- f.input :locale, :as => :select, :collection => I18n.available_locales.map(&:to_s)
42
- f.input :body
43
- f.input :published, :as => :boolean
44
- end
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
- f.inputs do
47
- f.input :markup_language, :as => :select, :collection => Ecm::News::Configuration.markup_languages.map(&:to_s)
48
- end
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
- form_inputs_for_pictureable(f)
52
+ form_inputs_for_pictureable(f)
51
53
 
52
- f.actions
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
- show :title => :to_s do
69
- attributes_table do
70
- row :title
71
- row :locale
72
- row :published_at
73
- row :link_to_more
74
- row :markup_language
75
- row :created_at
76
- row :updated_at
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
- panel Ecm::News::Item.human_attribute_name(:body) do
80
- div do
81
- mu(ecm_news_item, :body)
82
- end # div
83
- end # panel
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
- panel_for_pictureable
86
- end # show
87
- end if defined?(::ActiveAdmin)
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(:locale => I18n.locale.to_s).order("published_at DESC").page(params[:page]).per(5)
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(:locale => I18n.locale.to_s).find(params[:id])
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(:locale => I18n.locale.to_s).order("published_at DESC").limit(count)
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(:partial => 'ecm/news/items/item_for_render_news', :collection => items, :as => :item)
9
- output << render(:partial => 'ecm/news/render_news_footer')
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
- return handler.class.new(erb_string).to_html.html_safe
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
@@ -1,16 +1,16 @@
1
1
  class Ecm::News::Item < ActiveRecord::Base
2
2
  # associations
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
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, :allow_destroy => true
10
- accepts_nested_attributes_for :pictures, :allow_destroy => true
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 :language => :variable, :columns => [ :body ]
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, :use => [:slugged, :finders]
36
+ friendly_id :title, use: [:slugged, :finders]
37
37
 
38
38
  # validations
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)
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
-
@@ -0,0 +1,4 @@
1
+ module Ecm::News::Backend
2
+ class EnginePolicy < Itsf::Backend::EnginePolicy
3
+ end
4
+ end if Gem::Specification::find_all_by_name('itsf_backend').any?
@@ -0,0 +1,4 @@
1
+ module Ecm::News
2
+ class ItemPolicy < Itsf::Backend::BasePolicy
3
+ end
4
+ end if Gem::Specification::find_all_by_name('itsf_backend').any?
@@ -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, I18n.t('ecm.news.news') %>
2
- <% content_for :title, I18n.t('ecm.news.news') %>
3
- <h1><%= I18n.t('ecm.news.news') %></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'), main_app.root_path, class: 'btn btn-default') %>
10
+ <%= link_to(t('ecm.news.views.actions.back'), root_path, class: 'btn btn-default') %>
11
11
  </div>
@@ -11,6 +11,7 @@ de:
11
11
  link_to_more: Vorschau verlinken
12
12
  locale: Sprache
13
13
  markup_language: Markup Sprache
14
+ preview_picture: Vorschau
14
15
  published: Veröffentlicht?
15
16
  published_at: Veröffentlicht am
16
17
  slug: Freundliche ID
@@ -11,6 +11,7 @@ en:
11
11
  link_to_more: link to more?
12
12
  locale: language
13
13
  markup_language: markup language
14
+ preview_picture: preview
14
15
  published: published?
15
16
  published_at: published at
16
17
  slug: friendly id
@@ -6,10 +6,10 @@ class CreateEcmNewsItems < ActiveRecord::Migration
6
6
  t.text :body
7
7
  t.timestamp :published_at
8
8
  t.boolean :link_to_more
9
-
9
+
10
10
  # acts as markup
11
11
  t.string :markup_language
12
-
12
+
13
13
  # friendly id
14
14
  t.string :slug
15
15
 
@@ -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(self.root, 'app/admin')
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
-
@@ -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
- { :item_actions => [:index, :show]
14
- }
6
+ item_actions: [:index, :show]
15
7
  )
16
8
 
17
- router.resources :ecm_news_items, :only => options[:item_actions],
18
- :controller => 'ecm/news/items' do
19
- router.get 'page/:page', :action => :index, :on => :collection
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
@@ -1,6 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = "1.2.0"
3
+ VERSION = '2.0.1'
4
4
  end
5
5
  end
6
-
@@ -2,14 +2,14 @@ module Ecm
2
2
  module News
3
3
  module Generators
4
4
  class InstallGenerator < Rails::Generators::Base
5
- desc "Generates the intializer"
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 "ecm_news.rb", "config/initializers/ecm_news.rb"
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[ textile ]
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 "Copies the locale files to your application"
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 "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
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 "Purges and creates example data"
4
- task :populate!, [] => [:environment] do |t, args|
5
-
6
- Rake::Task["ecm_news:db:clear!"].execute
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 "Clears all data!"
11
- task :clear!, [] => [:environment] do |t, args|
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 "Creates example_data"
16
- task :populate, [] => [:environment] do |t, args|
17
- require "ffaker"
18
- require "forgery"
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(" ")[0..3].join(" ")
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: 1.2.0
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: 2015-11-03 00:00:00.000000000 Z
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.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.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: 1.0.1
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: 1.0.1
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: devise
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: twitter-bootstrap-rails
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: thin
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: yard
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: 2.8.0
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: 2.8.0
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 module for active admin.
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/ecm_news.rb
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/ecm_news
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 for active admin.
422
+ summary: ECM News module.
427
423
  test_files: []
428
424
  has_rdoc: