ecm_time_tracking_backend 0.0.2 → 0.0.3

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: 2cad000cddaef1fe3f0e6e0919a96f4d63813a04
4
- data.tar.gz: 111ee356f1d2c3842ea5e46e206916dcec458fd0
3
+ metadata.gz: b1dfbaf0a212a615c72710a50357857005ed7e29
4
+ data.tar.gz: 82757d791b96a9a270242ef5a8c051ccc09213c2
5
5
  SHA512:
6
- metadata.gz: 615725f2b9fa16f09f45efc13894b62351477d1107ba026506a5bb47e7191aa9d1ac18ebba520ac5e875fb4f620ac7d0a86d40e7365d174adbecdda68a92c473
7
- data.tar.gz: d9fb19df0541c3b763c0983f87b7446292681fcee40edb0c73f8e56fa631b9a9fed12e59b0e249f7b9940dc1518de609bc7ca98fb1862b84d7766df0407b7ab7
6
+ metadata.gz: 63c697d3852d0d87a76029ecfb83dc9ea31400046f28bb6af5d920adf8f52d671112139e1c407e2c893c58a20bd6f14bebc6dfd1541b00495027227c06da380b
7
+ data.tar.gz: f38c713e6880c3694acf74b3d9cfc04a25fea87dec7f50fcb0a41d79470adae9f29799e5906c2ea7c10a9d6d1a6f804f640653d4403e908f6ea521dee84d0fbe
data/Rakefile CHANGED
@@ -14,5 +14,4 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
-
18
- Bundler::GemHelper.install_tasks
17
+ Bundler::GemHelper.install_tasks
@@ -9,7 +9,7 @@ module Ecm
9
9
  private
10
10
 
11
11
  def permitted_params
12
- p = params.dup; p[:entry].merge!(tracker_id: current_user.id)
12
+ p = params.dup; p[:entry][:tracker_id] = current_user.id
13
13
  p.require(:entry).permit(:begin_at, :end_at, :tracker_id, :break_length_in_minutes, :entry_type_id)
14
14
  end
15
15
  end
@@ -1,2 +1,2 @@
1
1
  Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.css )
2
- Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.js )
2
+ Rails.application.config.assets.precompile += %w( ecm_time_tracking_backend.js )
data/config/routes.rb CHANGED
@@ -3,4 +3,4 @@ Ecm::TimeTracking::Backend::Engine.routes.draw do
3
3
  resources :entries
4
4
 
5
5
  root to: 'home#index'
6
- end
6
+ end
@@ -10,13 +10,13 @@ module Ecm
10
10
  end
11
11
 
12
12
  mattr_accessor :registered_controllers do
13
- -> {[]}
13
+ -> { [] }
14
14
  end
15
-
15
+
16
16
  mattr_accessor :registered_services do
17
- -> {[]}
17
+ -> { [] }
18
18
  end
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module TimeTracking
3
3
  module Backend
4
- VERSION = "0.0.2"
4
+ VERSION = '0.0.3'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,2 +1,2 @@
1
- require "ecm/time_tracking/backend"
2
- require "ecm/time_tracking/backend/engine"
1
+ require 'ecm/time_tracking/backend'
2
+ require 'ecm/time_tracking/backend/engine'
@@ -26,4 +26,4 @@ module Ecm
26
26
  end
27
27
  end
28
28
  end
29
- end
29
+ end
@@ -1,21 +1,25 @@
1
- Ecm::TimeTracking::Backend.configure do |config|
1
+ Ecm::TimeTracking::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu.
3
- #
3
+ #
4
4
  # Default: config.registered_controllers = -> {[
5
5
  # Ecm::TimeTracking::Backend::EntryTypesController,
6
6
  # Ecm::TimeTracking::Backend::EntriesController
7
7
  # ]}
8
- #
9
- config.registered_controllers = -> {[
10
- Ecm::TimeTracking::Backend::EntryTypesController,
11
- Ecm::TimeTracking::Backend::EntriesController
12
- ]}
8
+ #
9
+ config.registered_controllers = lambda {
10
+ [
11
+ Ecm::TimeTracking::Backend::EntryTypesController,
12
+ Ecm::TimeTracking::Backend::EntriesController
13
+ ]
14
+ }
13
15
 
14
16
  # Set the services, that will be shown in the backend menu.
15
17
  #
16
18
  # Default: config.registered_services = -> {[
17
19
  # ]}
18
- #
19
- config.registered_services = -> {[
20
- ]}
21
- end
20
+ #
21
+ config.registered_services = lambda {
22
+ [
23
+ ]
24
+ }
25
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_time_tracking_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel