Sha256: e48eaf30e8cc54f9c7c41d5a49dd34cf7faf3dc96cd5eb3b46424e8224968d15

Contents?: true

Size: 607 Bytes

Versions: 15

Compression:

Stored size: 607 Bytes

Contents

#
# Version of vcs.rb
#

module VCSRuby
  def self.version_path
    File.expand_path("version.info", File.dirname(__FILE__))
  end

  def self.read_version
    File.open(version_path, &:readline)
  end

  def self.update_version
    current_version = read_version
    parts = File.open(version_path, &:readline).split('.').map(&:strip)
    parts[2] = (parts[2].to_i + 1).to_s
    File.open(version_path, 'w') {|f| f.write(parts.join('.')) }
    current_version    
  end
end

$vcs_ruby_version = Gem::Version.new(VCSRuby::read_version)
$vcs_ruby_name = 'Video Contact Sheet Ruby'
$vcs_ruby_short = 'vcr.rb'

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vcs_ruby-1.1.16 lib/version.rb
vcs_ruby-1.1.15 lib/version.rb
vcs_ruby-1.1.14 lib/version.rb
vcs_ruby-1.1.13 lib/version.rb
vcs_ruby-1.1.12 lib/version.rb
vcs_ruby-1.1.11 lib/version.rb
vcs_ruby-1.1.10 lib/version.rb
vcs_ruby-1.1.8 lib/version.rb
vcs_ruby-1.1.7 lib/version.rb
vcs_ruby-1.1.6 lib/version.rb
vcs_ruby-1.1.5 lib/version.rb
vcs_ruby-1.1.4 lib/version.rb
vcs_ruby-1.1.3 lib/version.rb
vcs_ruby-1.1.2 lib/version.rb
vcs_ruby-1.1.0 lib/version.rb