Skip to content

Commit

Permalink
fix: defined Atco::VERSION to the correct released version and move t…
Browse files Browse the repository at this point in the history
…o separate file
  • Loading branch information
davidjrice committed Apr 11, 2024
1 parent 995bc09 commit 7fc42ed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/atco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
require 'atco/location'
require 'atco/journey'
require 'atco/stop'
require 'atco/version'

module Atco
VERSION = '0.0.1'

class << self
@path = nil
@@methods = {
Expand Down
5 changes: 5 additions & 0 deletions lib/atco/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

module Atco
VERSION = '1.0.0'
end
4 changes: 4 additions & 0 deletions spec/atco_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
before(:all) do
end

it 'has a version number' do
expect(Atco::VERSION).not_to be nil
end

it 'should output file for debugging!' do
result = Atco.parse('spec/fixtures/example.cif')
File.open('test.output', 'w+') do |f|
Expand Down

0 comments on commit 7fc42ed

Please sign in to comment.