Sha256: ee001aea2e59d7dcb7180cc4f5da3cdfe0f0f7b3b0e0400f1b52013afe0ddd3a
Contents?: true
Size: 964 Bytes
Versions: 21
Compression:
Stored size: 964 Bytes
Contents
# -*- ruby -*- require 'rubygems' require 'hoe' $: << File.dirname(__FILE__) + "/lib/" require "activesupport" require './lib/calendar_date_select.rb' Hoe.new('calendar_date_select', CalendarDateSelect::VERSION) do |p| p.rubyforge_name = 'calendar_date_select' p.developer('Tim Harper', 'tim c harper at gmail dot com') end task :set_version do ["lib/calendar_date_select/calendar_date_select.rb", "public/javascripts/calendar_date_select/calendar_date_select.js"].each do |file| abs_file = File.dirname(__FILE__) + "/" + file src = File.read(abs_file); src = src.map do |line| case line when /^ *VERSION/ then " VERSION = '#{ENV['VERSION']}'\n" when /^\/\/ CalendarDateSelect version / then "// CalendarDateSelect version #{ENV['VERSION']} - a prototype based date picker\n" else line end end.join File.open(abs_file, "wb") { |f| f << src } end end # vim: syntax=Ruby
Version data entries
21 entries across 21 versions & 8 rubygems