From afaa5b160f81ba7cc3f5ebefb4feeb52436dcb71 Mon Sep 17 00:00:00 2001 From: Andre Soesilo Date: Mon, 26 Jun 2017 16:18:43 -0700 Subject: [PATCH 1/3] Add missing route solution variables --- lib/routific/route.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/routific/route.rb b/lib/routific/route.rb index f2d5b9b..d5d627a 100644 --- a/lib/routific/route.rb +++ b/lib/routific/route.rb @@ -4,11 +4,14 @@ class Route attr_reader :status, :unserved, :vehicleRoutes, :total_travel_time, :total_idle_time # Constructor - def initialize(status:, solution: {}, unserved: {}, total_travel_time: 0, total_idle_time: 0) + def initialize(status:, solution: {}, unserved: {}, total_travel_time: 0, + total_idle_time: 0, total_break_time: 0, total_working_time: 0) @status = status @unserved = unserved @total_idle_time = total_idle_time @total_travel_time = total_travel_time + @total_break_time = total_break_time + @total_working_time = total_working_time add_solution(solution) end From d1a9aefe2353ef111795301c38e81e0ed41b9472 Mon Sep 17 00:00:00 2001 From: Andre Soesilo Date: Mon, 26 Jun 2017 16:40:33 -0700 Subject: [PATCH 2/3] Update gem version --- routific.gemspec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routific.gemspec b/routific.gemspec index f95c74e..64c96da 100644 --- a/routific.gemspec +++ b/routific.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'routific' - s.version = '1.1.1' - s.date = '2016-08-12' + s.version = '1.1.2' + s.date = '2017-06-26' s.add_runtime_dependency('rest-client', '~> 1.7') s.add_runtime_dependency('json', '~> 1.8') s.add_development_dependency('rspec', '~> 3.0') @@ -10,9 +10,9 @@ Gem::Specification.new do |s| s.summary = 'routific API' s.description = 'Gem to use Routific API' s.authors = ['Marc Kuo', 'Andre Soesilo'] - s.email = 'asoesilo@live.com' + s.email = 'andre@routific.com' s.files = %w(README.md) + Dir["lib/**/*"] s.homepage = 'https://routific.com/' s.license = 'MIT' - s.metadata = { "source_code" => "https://github.com/asoesilo/routific-gem" } + s.metadata = { "source_code" => "https://github.com/routific/routific-gem" } end From 4dbda37cc7841cdaed775e09be6b73b3f381e6da Mon Sep 17 00:00:00 2001 From: Andre Soesilo Date: Mon, 26 Jun 2017 16:44:14 -0700 Subject: [PATCH 3/3] Update routific gem version in gemfile --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 856ca14..ed4c736 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - routific (1.1.1) + routific (1.1.2) json (~> 1.8) rest-client (~> 1.7)