ecm_time_tracking_backend 0.0.6 → 0.1.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: 928ed1cccc4267d2464a6b8940e1ac4ff6097365
4
- data.tar.gz: 6f2642b636f7dcdd252cc68917a1c5fa6a5d502d
3
+ metadata.gz: cbff07c5f30ab325c5496b377ab7235239fadb4e
4
+ data.tar.gz: e02fe8f07ac1dcc40b100edb9b442176962e7387
5
5
  SHA512:
6
- metadata.gz: 77a35dc0f03363a97ba7680448e7133080d40b1517689ecb288c3e14b0c813eda28076a04bd998810c13b980c902cfe64c18c4a0c80824a37131d64e6cd88307
7
- data.tar.gz: c1a78319849c98fa7cb45e920e1a014f04e531ff2772a0693a2d83b2fbd3a2f9bc1b2292b53355eed297b4e34bf3d1309c038dde89e1c4ffd0c018a7429266c7
6
+ metadata.gz: 79824e38258552a3a1ed14f5b6dbb619bfd7a7a215ad796d77fa926bc09514f3444f5a10e4a5679357163d164072ebc21c1f187f033b7c49f8ab6a6842133c92
7
+ data.tar.gz: 1efe26dd785bca8c98322661f0b1101f1570a80c64413f53f149783cdfe8cc3892ff5ce4078f8085ee3b0618ff5a51fee422221759f627a820eb7805c39fdf03
@@ -0,0 +1,17 @@
1
+ module Ecm
2
+ module TimeTracking
3
+ module Backend
4
+ class TrackerCalculationSchemasController < Itsf::Backend::Resource::BaseController
5
+ def self.resource_class
6
+ Ecm::TimeTracking::TrackerCalculationSchema
7
+ end
8
+
9
+ private
10
+
11
+ def permitted_params
12
+ params.require(:tracker_calculation_schema).permit(:tracker_id, :identifier, :enabled_from, :enabled_to)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,4 @@
1
+ module Ecm::TimeTracking::Backend
2
+ class EnginePolicy < Itsf::Backend::EnginePolicy
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Ecm::TimeTracking
2
+ class EntryPolicy < Itsf::Backend::BasePolicy
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Ecm::TimeTracking
2
+ class EntryTypePolicy < Itsf::Backend::BasePolicy
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Ecm::TimeTracking
2
+ class TrackerCalculationSchemaPolicy < Itsf::Backend::BasePolicy
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ = form.association :tracker, collection: Ecm::TimeTracking::Configuration.tracker_class_name.constantize.all, label_method: :human
2
+ = form.input :identifier
3
+ = form.input :enabled_from, as: :string, input_html: { type: :'datetime-local', value: localize(form.object.enabled_from, format: "%Y-%m-%dT%H:%M:%S.00") }
4
+ = form.input :enabled_to, as: :string, input_html: { type: :'datetime-local', value: localize(form.object.enabled_to, format: "%Y-%m-%dT%H:%M:%S.00") }
@@ -0,0 +1,56 @@
1
+ defaults:
2
+ permissions:
3
+ - ecm/time_tracking/backend/engine
4
+ - ecm/time_tracking/entry/index
5
+ - ecm/time_tracking/entry/show
6
+ - ecm/time_tracking/entry/new
7
+ - ecm/time_tracking/entry/create
8
+ - ecm/time_tracking/entry/edit
9
+ - ecm/time_tracking/entry/update
10
+ - ecm/time_tracking/entry/destroy
11
+ - ecm/time_tracking/entry_type/index
12
+ - ecm/time_tracking/entry_type/show
13
+ - ecm/time_tracking/entry_type/new
14
+ - ecm/time_tracking/entry_type/create
15
+ - ecm/time_tracking/entry_type/edit
16
+ - ecm/time_tracking/entry_type/update
17
+ - ecm/time_tracking/entry_type/destroy
18
+ - ecm/time_tracking/tracker_calculation_schema/index
19
+ - ecm/time_tracking/tracker_calculation_schema/show
20
+ - ecm/time_tracking/tracker_calculation_schema/new
21
+ - ecm/time_tracking/tracker_calculation_schema/create
22
+ - ecm/time_tracking/tracker_calculation_schema/edit
23
+ - ecm/time_tracking/tracker_calculation_schema/update
24
+ - ecm/time_tracking/tracker_calculation_schema/destroy
25
+ roles:
26
+ ecm/time_tracking/administrator:
27
+ - ecm/time_tracking/backend/engine
28
+ - ecm/time_tracking/entry/index
29
+ - ecm/time_tracking/entry/show
30
+ - ecm/time_tracking/entry/new
31
+ - ecm/time_tracking/entry/create
32
+ - ecm/time_tracking/entry/edit
33
+ - ecm/time_tracking/entry/update
34
+ - ecm/time_tracking/entry/destroy
35
+ - ecm/time_tracking/entry_type/index
36
+ - ecm/time_tracking/entry_type/show
37
+ - ecm/time_tracking/entry_type/new
38
+ - ecm/time_tracking/entry_type/create
39
+ - ecm/time_tracking/entry_type/edit
40
+ - ecm/time_tracking/entry_type/update
41
+ - ecm/time_tracking/entry_type/destroy
42
+ - ecm/time_tracking/tracker_calculation_schema/index
43
+ - ecm/time_tracking/tracker_calculation_schema/show
44
+ - ecm/time_tracking/tracker_calculation_schema/new
45
+ - ecm/time_tracking/tracker_calculation_schema/create
46
+ - ecm/time_tracking/tracker_calculation_schema/edit
47
+ - ecm/time_tracking/tracker_calculation_schema/update
48
+ - ecm/time_tracking/tracker_calculation_schema/destroy
49
+ ecm/time_tracking/reviewer:
50
+ - ecm/time_tracking/backend/engine
51
+ - ecm/time_tracking/entry/index
52
+ - ecm/time_tracking/entry/show
53
+ - ecm/time_tracking/entry_type/index
54
+ - ecm/time_tracking/entry_type/show
55
+ - ecm/time_tracking/tracker_calculation_schema/index
56
+ - ecm/time_tracking/tracker_calculation_schema/show
@@ -1,6 +1,7 @@
1
1
  Ecm::TimeTracking::Backend::Engine.routes.draw do
2
2
  resources :entry_types
3
3
  resources :entries
4
+ resources :tracker_calculation_schemas
4
5
 
5
6
  root to: 'home#index'
6
7
  end
@@ -18,7 +18,7 @@ module Ecm
18
18
  end
19
19
 
20
20
  mattr_accessor :current_tracker_id_proc do
21
- ->(controller) { controller.current_user.try(:id) }
21
+ -> { current_user.try(:id) }
22
22
  end
23
23
  end
24
24
  end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module TimeTracking
3
3
  module Backend
4
- VERSION = '0.0.6'.freeze
4
+ VERSION = '0.1.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -3,13 +3,15 @@ Ecm::TimeTracking::Backend.configure do |config|
3
3
  #
4
4
  # Default: config.registered_controllers = -> {[
5
5
  # Ecm::TimeTracking::Backend::EntryTypesController,
6
- # Ecm::TimeTracking::Backend::EntriesController
6
+ # Ecm::TimeTracking::Backend::EntriesController,
7
+ # Ecm::TimeTracking::Backend::TrackerCalculationSchemasController
7
8
  # ]}
8
9
  #
9
10
  config.registered_controllers = lambda {
10
11
  [
11
12
  Ecm::TimeTracking::Backend::EntryTypesController,
12
- Ecm::TimeTracking::Backend::EntriesController
13
+ Ecm::TimeTracking::Backend::EntriesController,
14
+ Ecm::TimeTracking::Backend::TrackerCalculationSchemasController
13
15
  ]
14
16
  }
15
17
 
@@ -25,7 +27,7 @@ Ecm::TimeTracking::Backend.configure do |config|
25
27
 
26
28
  # Proc that will be used to retrieve the current tracker id.
27
29
  #
28
- # Default: config.current_tracker_id_proc = ->(controller) { controller.current_user.try(:id) }
30
+ # Default: config.current_tracker_id_proc = -> { current_user.try(:id) }
29
31
  #
30
- config.current_tracker_id_proc = ->(controller) { controller.current_user.try(:id) }
32
+ config.current_tracker_id_proc = -> { current_user.try(:id) }
31
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_time_tracking_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.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: 2016-04-08 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -57,7 +57,12 @@ files:
57
57
  - app/controllers/ecm/time_tracking/backend/entries_controller.rb
58
58
  - app/controllers/ecm/time_tracking/backend/entry_types_controller.rb
59
59
  - app/controllers/ecm/time_tracking/backend/home_controller.rb
60
+ - app/controllers/ecm/time_tracking/backend/tracker_calculation_schemas_controller.rb
60
61
  - app/helpers/ecm/time_tracking/backend/application_helper.rb
62
+ - app/policies/ecm/time_tracking/backend/engine_policy.rb
63
+ - app/policies/ecm/time_tracking/entry_policy.rb
64
+ - app/policies/ecm/time_tracking/entry_type_policy.rb
65
+ - app/policies/ecm/time_tracking/tracker_calculation_schema_policy.rb
61
66
  - app/views/ecm/time_tracking/backend/entries/_form.haml
62
67
  - app/views/ecm/time_tracking/backend/entries/_head_extras.haml
63
68
  - app/views/ecm/time_tracking/backend/entries/_index_extras.haml
@@ -68,9 +73,11 @@ files:
68
73
  - app/views/ecm/time_tracking/backend/entry_types/_form.haml
69
74
  - app/views/ecm/time_tracking/backend/entry_types/_show.haml
70
75
  - app/views/ecm/time_tracking/backend/entry_types/_table.haml
76
+ - app/views/ecm/time_tracking/backend/tracker_calculation_schemas/_form.haml
71
77
  - app/views/layouts/ecm/time_tracking/backend/application.html.erb
72
78
  - config/initializers/assets.rb
73
79
  - config/locales/de.yml
80
+ - config/rbac.yml
74
81
  - config/routes.rb
75
82
  - lib/ecm/time_tracking/backend.rb
76
83
  - lib/ecm/time_tracking/backend/configuration.rb