ruby-changes:61339
From: Sutou <ko1@a...>
Date: Sat, 23 May 2020 14:29:39 +0900 (JST)
Subject: [ruby-changes:61339] 13f64333ea (master): [ruby/fiddle] Add Fiddle::VERSION
https://git.ruby-lang.org/ruby.git/commit/?id=13f64333ea From 13f64333ea6c6b904274cb1a95d2bc82236e9237 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Sat, 18 Apr 2020 15:51:03 +0900 Subject: [ruby/fiddle] Add Fiddle::VERSION https://github.com/ruby/fiddle/commit/9dcf64c096 diff --git a/ext/fiddle/fiddle.gemspec b/ext/fiddle/fiddle.gemspec index fb62c31..49a19e3 100644 --- a/ext/fiddle/fiddle.gemspec +++ b/ext/fiddle/fiddle.gemspec @@ -1,7 +1,15 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/fiddle.gemspec#L1 # frozen_string_literal: true + +begin + require_relative "lib/fiddle/version" +rescue LoadError + # for Ruby core repository + require_relative "version" +end + Gem::Specification.new do |spec| spec.name = "fiddle" - spec.version = '1.0.0' + spec.version = Fiddle::VERSION spec.authors = ["Aaron Patterson", "SHIBATA Hiroshi"] spec.email = ["aaron@t...", "hsbt@r..."] diff --git a/ext/fiddle/lib/fiddle/version.rb b/ext/fiddle/lib/fiddle/version.rb new file mode 100644 index 0000000..235d3c0 --- /dev/null +++ b/ext/fiddle/lib/fiddle/version.rb @@ -0,0 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/lib/fiddle/version.rb#L1 +class Fiddle + VERSION = "1.0.0" +end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/