Sha256: 0eedf8603a3b01a9405df68da6c3b42a98498bdc8dbd468867cc999978bf96b2
Contents?: true
Size: 1.9 KB
Versions: 1
Compression:
Stored size: 1.9 KB
Contents
require File.dirname(__FILE__) + "/lib/yard-cucumber/version" module CucumberInTheYARD def self.show_version_changes(version) date = "" changes = [] grab_changes = false File.open("#{File.dirname(__FILE__)}/History.txt",'r') do |file| while (line = file.gets) do if line =~ /^===\s*#{version.gsub('.','\.')}\s*\/\s*(.+)\s*$/ grab_changes = true date = $1.strip elsif line =~ /^===\s*.+$/ grab_changes = false elsif grab_changes changes = changes << line end end end { :date => date, :changes => changes } end end Gem::Specification.new do |s| s.name = 'yard-cucumber2' s.version = '2.3.4' s.authors = ["Justin Commu"] s.description = %{ This is simply a published fork of yard-cucumber that works with Cucumber 2.0+, all thanks goes to pghalliday & burtlo } s.summary = "Cucumber 2.0+ Compatible version of Cucumber-YARD" s.email = 'jcommu@@gmail.com' s.homepage = "http://github.com/tk8817/yard-cucumber2" s.license = 'MIT' s.platform = Gem::Platform::RUBY changes = CucumberInTheYARD.show_version_changes(::CucumberInTheYARD::VERSION) s.post_install_message = %{ (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) Thank you for installing yard-cucumber #{::CucumberInTheYARD::VERSION} / #{changes[:date]}. Changes: #{changes[:changes].collect{|change| " #{change}"}.join("")} (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) (::) } s.add_development_dependency 'rake' s.add_dependency 'gherkin', '>= 2.12' s.add_dependency 'cucumber', '>= 1.3.0' s.add_dependency 'yard', '>= 0.8.1' s.rubygems_version = "1.3.7" s.files = `git ls-files`.split("\n") s.extra_rdoc_files = ["README.md", "History.txt"] s.rdoc_options = ["--charset=UTF-8"] s.require_path = "lib" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yard-cucumber2-2.3.4 | yard-cucumber.gemspec |