Skip to content

Commit e2303dd

Browse files
committedFeb 22, 2015
Update RUBY_ENGINE_VERSION
Also add a spec to ensure version is updated at each release.
1 parent 8775c52 commit e2303dd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

Diff for: ‎opal/corelib/variables.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
RUBY_PLATFORM = 'opal'
2121
RUBY_ENGINE = 'opal'
2222
RUBY_VERSION = '2.1.1'
23-
RUBY_ENGINE_VERSION = '0.6.1'
24-
RUBY_RELEASE_DATE = '2014-04-15'
23+
RUBY_ENGINE_VERSION = '0.7.1'
24+
RUBY_RELEASE_DATE = '2015-02-14'

Diff for: ‎spec/lib/version_spec.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'opal/version'
2+
describe 'Opal::VERSION' do
3+
let(:version) { Opal::VERSION }
4+
it 'is reported as the RUBY_ENGINE_VERSION internally' do
5+
expect(Opal::Builder.new.build('corelib/variables').to_s).to match(/RUBY_ENGINE_VERSION', #{version.inspect}/)
6+
end
7+
end

0 commit comments

Comments
 (0)
Please sign in to comment.