Skip to content

Commit

Permalink
Merge pull request #25 from routific/25_gem_version
Browse files Browse the repository at this point in the history
Fix failing tests and update GEM version
  • Loading branch information
asoesilo authored Jun 26, 2017
2 parents 913ca90 + 4dbda37 commit 63ab151
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
routific (1.1.1)
routific (1.1.2)
json (~> 1.8)
rest-client (~> 1.7)

Expand Down
5 changes: 4 additions & 1 deletion lib/routific/route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions routific.gemspec
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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

0 comments on commit 63ab151

Please sign in to comment.