doodle_rails 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: 579622ab1e8deccb39248454da64333e6f4c9d7e
4
- data.tar.gz: 55bd433fcfd2b66144591e8b535a4eb9b5102eec
3
+ metadata.gz: ce9f190fed1d21360f0438618328df034a661250
4
+ data.tar.gz: b8e75177756fd8e58d349d4696a89f0a54059c9d
5
5
  SHA512:
6
- metadata.gz: c2f53e6fd36837eea86fb38b8a00aaec571bbcf15bef048f2cb78f0b66d6c6cc021b271ba12b7ddf65f33f959fe8694bb29ffd27c6c7ad63f634bfad92f12d75
7
- data.tar.gz: 31394809f20813d159f903e1a604797cdffbf5db2e81c39dff78cc32eabe6b6830c6a25a8c98f04ecb3f81169ae838c80b6914a8dab3c307c17a70fa183fb7ea
6
+ metadata.gz: 2c0c9210ad59ebea942c9c4b6f945d4c986543fa23081c328212e96d9d187917a8a16cecbd88c8058d947afb78328aff65cf44e1284427f2e735538ec5eb8f10
7
+ data.tar.gz: c9d12c84d3b8e53ed5a131589d282a0120022112a0515ef0a218fb2a3fbb6273f9fb97cde0125b7dc0ef990c49bf9c337538091f37f3ac9ae835a34f9b9b41ac
@@ -29,8 +29,8 @@ module Doodle
29
29
 
30
30
  def service_metrics
31
31
  {
32
- waiting_time: "#{Doodle::Protocol.average_waiting_time.round / 60.to_f} min",
33
- service_time: "#{Doodle::Protocol.average_service_time.round / 60.to_f} min"
32
+ waiting_time: "#{Doodle::Protocol.average_waiting_time.try(:round) || 0 / 60.to_f} min",
33
+ service_time: "#{Doodle::Protocol.average_service_time.try(:round) || 0 / 60.to_f} min"
34
34
  }
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Doodle
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doodle_rails
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
  - Gabriel Malaquias
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
- - !ruby/object:Gem::Dependency
28
- name: sqlite3
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description: A Rails Engine for vists based in Layer Plataform
42
28
  email:
43
29
  - gmalakias@bitbucket.com