Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Move version constant to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jun 13, 2011
1 parent c808b97 commit 2e3ec8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion execjs.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require File.expand_path("../lib/execjs/version.rb", __FILE__)

Gem::Specification.new do |s|
s.name = "execjs"
s.version = "1.1.3"
s.version = ExecJS::VERSION

s.homepage = "https://github.com/sstephenson/execjs"
s.summary = "Run JavaScript code from Ruby"
Expand All @@ -12,6 +14,7 @@ Gem::Specification.new do |s|
"lib/execjs.rb",
"lib/execjs/external_runtime.rb",
"lib/execjs/module.rb",
"lib/execjs/version.rb",
"lib/execjs/mustang_runtime.rb",
"lib/execjs/ruby_racer_runtime.rb",
"lib/execjs/ruby_rhino_runtime.rb",
Expand Down
3 changes: 1 addition & 2 deletions lib/execjs/module.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
require "execjs/version"
require "rbconfig"

module ExecJS
VERSION = "1.1.3"

class Error < ::StandardError; end
class RuntimeError < Error; end
class ProgramError < Error; end
Expand Down
3 changes: 3 additions & 0 deletions lib/execjs/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ExecJS
VERSION = "1.1.3"
end

0 comments on commit 2e3ec8e

Please sign in to comment.