Skip to content

Commit

Permalink
Prepare for v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecrozz committed Sep 23, 2019
1 parent aa3149b commit 5c815c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
6 changes: 1 addition & 5 deletions lib/errbit/version.rb
Expand Up @@ -3,11 +3,7 @@
module Errbit
class Version
def full_version
[
'0.8.0',
'dev',
source_version
].compact.join('-')
'0.8.0'
end

def source_version
Expand Down
10 changes: 0 additions & 10 deletions spec/lib/errbit/version_spec.rb
@@ -1,13 +1,3 @@
describe Errbit::VERSION do
subject { Errbit::Version.new.full_version }

it 'handles a missing commit sha' do
allow(ENV).to receive(:[]).with('SOURCE_VERSION') { nil }
expect(subject).to end_with('dev')
end

it 'shortens a present commit sha' do
allow(ENV).to receive(:[]).with('SOURCE_VERSION') { 'abcd1234efgh56789' }
expect(subject).to end_with('dev-abcd1234')
end
end

0 comments on commit 5c815c0

Please sign in to comment.