Sha256: 6d60f63bc2a64a569d868fa2ba8be25cc909759db8d4db64bb0049b14996d461
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require "bundler/gem_tasks" namespace :project do require "forwardable" module Project class Spec extend Forwardable def_delegators :@gemspec, :name, :version def initialize(name) gemspec_file = "#{name}.gemspec" @gemspec = Bundler.load_gemspec(gemspec_file) end end end spec = Project::Spec.new("jekyll_test_plugin") desc "Print basename of built gem." task :gem_name do puts "#{spec.name}-#{spec.version}" end desc "Print lib version prefixed with 'v'." task :tag_version do puts "v#{spec.version}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jekyll_test_plugin-0.2.0 | Rakefile |
jekyll_test_plugin-0.0.2 | Rakefile |
jekyll_test_plugin-0.1.2 | Rakefile |