ecm_news2 3.0.0 → 4.0.0

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: 0f8886de40c82feb12d98b106637347df81e0056
4
- data.tar.gz: fb6ed11d4542b5cfe761f84fdfc241e61c0893f1
3
+ metadata.gz: 690fec36cd3032b49670e75d15b2375297c4d082
4
+ data.tar.gz: c89d34d4762c5a75ab416f5fc18471f2c30c71ec
5
5
  SHA512:
6
- metadata.gz: 75e7173d3fe546baf19fc71102f59b0198ce6572b9f158cb81edc42949d28a4f347d11444b2bf7e5f785acf9d0a4634c67c7501b64ccac811ad97a6b61c5b5bf
7
- data.tar.gz: 7ce0c7eb3247fad919443de8d4d01c42908f5788be6146f28878277d586a2e2bb1b99bf0581c05e25395231c796bc4101c8ba91a9024e3f2a9811a7c6290c6b6
6
+ metadata.gz: 91c7ba0d980eafcfeaef985e4ef37167ccbaede230510f798f64b9447f39ada44e60431707949d54922fbff98f8ca74f9506164a12ae1b96cb3e38f2835b09d3
7
+ data.tar.gz: 483f29f46826c93b1d2c3a0d3b658432c469a1ce2257fc8bec908eee18b7f4d75348ca940037663a46e88b2d1c7c88d75c7c644d973f808325e108020c09475d
@@ -40,7 +40,7 @@ Migrate:
40
40
  Add the routes:
41
41
 
42
42
  # config/routes.rb
43
- Ecm::News::Routing.routes(self)
43
+ mount Ecm::News::Engine, at: '/'
44
44
 
45
45
  = Usage
46
46
 
@@ -2,5 +2,5 @@
2
2
  %h4= item.title
3
3
  .truncate.lines-3
4
4
  = mu(item, :body)
5
- = bootstrap_button(to: main_app.url_for(item)) do
5
+ = bootstrap_button(to: ecm_news.url_for(item)) do
6
6
  = t('.more')
@@ -1,5 +1,5 @@
1
1
  = bootstrap_responsive_media_object(image_options: { src: item.preview_picture_image_url(:media_object) }) do
2
2
  %h4= item.title
3
3
  = mu(item, :body)
4
- = bootstrap_button(to: main_app.url_for(item)) do
4
+ = bootstrap_button(to: ecm_news.url_for(item)) do
5
5
  = t('.more')
@@ -19,5 +19,5 @@ de:
19
19
  title: Titel
20
20
  updated_at: Aktualisiert am
21
21
  routes:
22
- ecm_news_items: news-eintraege
22
+ items: 'news-eintraege'
23
23
 
@@ -0,0 +1,7 @@
1
+ Ecm::News::Engine.routes.draw do
2
+ localized do
3
+ resources :items, only: [:index, :show] do
4
+ get 'page/:page', action: :index, on: :collection
5
+ end
6
+ end
7
+ end
@@ -1,11 +1,7 @@
1
1
  module Ecm
2
2
  module News
3
3
  class Engine < ::Rails::Engine
4
- initializer :ecm_news_engine do
5
- ActiveAdmin.setup do |config|
6
- config.load_paths << File.join(root, 'app', 'admin')
7
- end
8
- end if Gem::Specification.find_all_by_name('activeadmin').any?
4
+ isolate_namespace Ecm::News
9
5
  end
10
6
  end
11
7
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module News
3
- VERSION = '3.0.0'
3
+ VERSION = '4.0.0'
4
4
  end
5
5
  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: 3.0.0
4
+ version: 4.0.0
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: 2017-04-04 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -330,6 +330,7 @@ files:
330
330
  - config/locales/ecm.news.en.yml
331
331
  - config/locales/ecm.news.item.de.yml
332
332
  - config/locales/ecm.news.item.en.yml
333
+ - config/routes.rb
333
334
  - db/migrate/001_create_ecm_news_items.rb
334
335
  - lib/ecm/news/configuration.rb
335
336
  - lib/ecm/news/engine.rb