ecm_staff2 1.0.0 → 2.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a41d9c23266ee78446b7dd0388659df2cb692f5
4
- data.tar.gz: 070733f746e18c2b6ac5f67112114cbbf59a58ad
3
+ metadata.gz: f74bbb1b554ec04f7963934bba4cb55f0a86712d
4
+ data.tar.gz: 4740aef068369f7fb2ead41183998b48838269f8
5
5
  SHA512:
6
- metadata.gz: 89c37d915844343eee9d34713698f798f6dbe3554f8855f70a2c31577b40db6a930405e7e3b0115f76fb654db76ae48bbfd9998c4c02f64d592447a0660a89f9
7
- data.tar.gz: 43c04949941e667233d424be63e1d3f0417a7b8dfe0773160fa14ce430923eae8c4b925345d0c3de43a15d561f8f8ed8abbf20c226c2ea58240c0ab31e74a0cf
6
+ metadata.gz: 3a6381eaec3198c36a7d045b541049f439b657e5f6b3f2533bf79ba71181f30a7f365b98c5e3635e2e4729095c03c963c8b24f10f842c3cecc429bd64bbff14c
7
+ data.tar.gz: 93813b0f34c73ba472b610e2013b115860b5ade78f7cf3088648d2ffcd5bb971b9c6ecdaecdcd5c79b3ac11d7dd70adaab3a05ac1aeb58ac9f29de8cb170c0f5
@@ -57,6 +57,7 @@ de:
57
57
  show:
58
58
  back: 'Zurück'
59
59
  routes:
60
+ ecm_staff: 'team'
60
61
  business_units: 'abteilungen'
61
62
  organsiations: 'organisationen'
62
63
  people: 'mitarbeiter'
data/config/routes.rb CHANGED
@@ -1,7 +1,11 @@
1
1
  Ecm::Staff::Engine.routes.draw do
2
2
  localized do
3
- resources :organisations
4
- resources :business_units
5
- resources :people
3
+ scope :ecm_staff do
4
+ resources :organisations, only: [:show, :index]
5
+ resources :business_units, only: [:show, :index]
6
+ resources :people, only: [:show, :index]
7
+
8
+ root to: 'people#index'
9
+ end
6
10
  end
7
11
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Staff
3
- VERSION = '1.0.0'.freeze
3
+ VERSION = '2.0.0'.freeze
4
4
  end
5
5
  end
data/lib/ecm_staff2.rb CHANGED
@@ -5,4 +5,3 @@ require 'route_translator'
5
5
 
6
6
  require 'ecm/staff'
7
7
  require 'ecm/staff/engine'
8
- require 'ecm/staff/routing'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_staff2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.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-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -123,7 +123,6 @@ files:
123
123
  - lib/ecm/staff.rb
124
124
  - lib/ecm/staff/configuration.rb
125
125
  - lib/ecm/staff/engine.rb
126
- - lib/ecm/staff/routing.rb
127
126
  - lib/ecm/staff/version.rb
128
127
  - lib/ecm_staff2.rb
129
128
  - lib/tasks/ecm/staff_tasks.rake
@@ -1,19 +0,0 @@
1
- module Ecm::Staff
2
- class Routing
3
- def self.routes(router, options = {})
4
- options.reverse_merge!(
5
- { organisations_actions: [:index, :show],
6
- business_units_actions: [:index, :show],
7
- people_actions: [:index, :show],
8
- }
9
- )
10
-
11
- router.resources :ecm_staff_organisations, only: options[:organisations_actions],
12
- controller: 'ecm/staff/organisations'
13
- router.resources :ecm_staff_business_units, only: options[:business_units_actions],
14
- controller: 'ecm/staff/business_units'
15
- router.resources :ecm_staff_people, only: options[:people_actions],
16
- controller: 'ecm/staff/people'
17
- end
18
- end
19
- end