bin/jspec in jspec-2.11.4 vs bin/jspec in jspec-2.11.5

- old
+ new

@@ -2,19 +2,19 @@ JSPEC_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) $:.unshift JSPEC_ROOT require 'rubygems' -require 'commander' +require 'commander/import' require 'bind' require 'fileutils' require 'server/server' RHINO = 'java org.mozilla.javascript.tools.shell.Main' program :name, 'JSpec' -program :version, '2.11.4' +program :version, '2.11.5' program :description, 'JavaScript BDD Testing Framework' default_command :bind command :init do |c| c.syntax = 'jspec init [dest]' @@ -262,15 +262,15 @@ File.open(path, 'w') { |file| file.write contents } end end ## -# Update JSpec version in _paths_. Matches visionmedia-jspec-TRIPLE +# Update JSpec version in _paths_. Matches jspec-TRIPLE def update_version_in *paths paths.each do |path| next unless File.exists? path - contents = File.read(path).gsub /visionmedia-jspec-(\d+\.\d+\.\d+)/, "visionmedia-jspec-#{program(:version)}" + contents = File.read(path).gsub /jspec-(\d+\.\d+\.\d+)/, "jspec-#{program(:version)}" File.open(path, 'r+'){ |file| file.write contents } say "Updated #{path}; #{$1} -> #{program(:version)}" end say "Finished updating JSpec" end