Skip to content

Commit b3063f6

Browse files
committed
avoid double loading jopenss/version.rb with gemspec (using Bundler)
1 parent aed535b commit b3063f6

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

jruby-openssl.gemspec

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#-*- mode: ruby -*-
22

3-
require "#{File.dirname(__FILE__)}/lib/jopenssl/version.rb"
4-
53
Gem::Specification.new do |s|
64
s.name = 'jruby-openssl'
7-
s.version = Jopenssl::Version::VERSION
5+
6+
path = File.expand_path('lib/jopenssl/version.rb', File.dirname(__FILE__))
7+
s.version = File.read(path).match( /.*VERSION\s*=\s*['"](.*)['"]/m )[1]
8+
89
s.platform = 'java'
910
s.authors = ['Ola Bini', 'JRuby contributors']
1011
s.email = "ola.bini@gmail.com"
@@ -31,4 +32,4 @@ Gem::Specification.new do |s|
3132
#s.add_development_dependency 'test-unit', '2.5.5'
3233
end
3334

34-
# vim: syntax=Ruby
35+
# vim: syntax=Ruby

0 commit comments

Comments
 (0)