mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Move version constant to its own file
This commit is contained in:
parent
c808b9741a
commit
2e3ec8e5df
3 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
||||||
|
require File.expand_path("../lib/execjs/version.rb", __FILE__)
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "execjs"
|
s.name = "execjs"
|
||||||
s.version = "1.1.3"
|
s.version = ExecJS::VERSION
|
||||||
|
|
||||||
s.homepage = "https://github.com/sstephenson/execjs"
|
s.homepage = "https://github.com/sstephenson/execjs"
|
||||||
s.summary = "Run JavaScript code from Ruby"
|
s.summary = "Run JavaScript code from Ruby"
|
||||||
|
@ -12,6 +14,7 @@ Gem::Specification.new do |s|
|
||||||
"lib/execjs.rb",
|
"lib/execjs.rb",
|
||||||
"lib/execjs/external_runtime.rb",
|
"lib/execjs/external_runtime.rb",
|
||||||
"lib/execjs/module.rb",
|
"lib/execjs/module.rb",
|
||||||
|
"lib/execjs/version.rb",
|
||||||
"lib/execjs/mustang_runtime.rb",
|
"lib/execjs/mustang_runtime.rb",
|
||||||
"lib/execjs/ruby_racer_runtime.rb",
|
"lib/execjs/ruby_racer_runtime.rb",
|
||||||
"lib/execjs/ruby_rhino_runtime.rb",
|
"lib/execjs/ruby_rhino_runtime.rb",
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
|
require "execjs/version"
|
||||||
require "rbconfig"
|
require "rbconfig"
|
||||||
|
|
||||||
module ExecJS
|
module ExecJS
|
||||||
VERSION = "1.1.3"
|
|
||||||
|
|
||||||
class Error < ::StandardError; end
|
class Error < ::StandardError; end
|
||||||
class RuntimeError < Error; end
|
class RuntimeError < Error; end
|
||||||
class ProgramError < Error; end
|
class ProgramError < Error; end
|
||||||
|
|
3
lib/execjs/version.rb
Normal file
3
lib/execjs/version.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module ExecJS
|
||||||
|
VERSION = "1.1.3"
|
||||||
|
end
|
Loading…
Reference in a new issue