1
0
Fork 0
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:
Joshua Peek 2011-06-13 16:29:30 -05:00
parent c808b9741a
commit 2e3ec8e5df
3 changed files with 8 additions and 3 deletions

View file

@ -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",

View file

@ -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
View file

@ -0,0 +1,3 @@
module ExecJS
VERSION = "1.1.3"
end