Skip to content

Commit

Permalink
Misc updates
Browse files Browse the repository at this point in the history
 - Proper Rcov rake task
 - exclude large performance file when building gem
 - Leverage .gemspec file in Gemfile
  • Loading branch information
bfaloona committed Mar 5, 2011
1 parent dfa7ff7 commit a8801df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 19 deletions.
8 changes: 1 addition & 7 deletions Gemfile
@@ -1,9 +1,3 @@
source "http://rubygems.org"

gem 'activesupport', '~>3.0.0'
gem 'i18n', '~>0.5.0'

group :development, :test do
gem 'rspec', '~>2.4.0'
gem 'cucumber', '~>0.10.0'
end
gemspec
12 changes: 7 additions & 5 deletions Rakefile
@@ -1,6 +1,7 @@
require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'
require 'rcov/rcovtask'
require "cucumber/rake/task"
require "yard"
require "city"
Expand Down Expand Up @@ -55,14 +56,15 @@ task :flog_detail do
system('find lib -name \*.rb | xargs flog -d')
end

desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
t.rcov = true
# Task :rcov -- Run RCOV to Generate code coverage report
Rcov::RcovTask.new do |t|
t.libs << "lib"
t.test_files = FileList['spec/*.rb']
t.rcov_opts = ['--exclude', 'spec', '--exclude', 'gems', '-T']
t.verbose = true
end


# Task :yard -- Generate yard + CITY docs
YARD::Rake::CitydocTask.new do |t|
t.files = ['features/**/*', 'lib/**/*.rb']
t.options = ['--private']
Expand Down
15 changes: 8 additions & 7 deletions indy.gemspec
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + "/lib/indy"

module Indy
class Indy

def self.show_version_changes(version)
date = ""
Expand Down Expand Up @@ -32,15 +32,15 @@ Gem::Specification.new do |s|
s.authors = ["Franklin Webber","Brandon Faloona"]
s.description = %{ Indy is a log archelogy library that treats logs like data structures. Search fixed format or custom logs by field and/or time. }
s.summary = "Log Search Library"
s.email = 'franklin.webber@gmail.com'
s.email = 'brandon@faloona.net'
s.homepage = "http://github.com/burtlo/Indy"
s.license = 'MIT'

s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 1.8.5'
s.add_dependency('activesupport', '>= 2.3.5')

s.add_development_dependency('cucumber', '>= 0.9.2')
s.add_development_dependency('cucumber', '>= 0.10.0')
s.add_development_dependency('yard', '>= 0.6.4')
s.add_development_dependency('cucumber-in-the-yard', '>= 1.7.7')
s.add_development_dependency('rspec', '>= 2.4.0')
Expand All @@ -62,11 +62,12 @@ Gem::Specification.new do |s|
}

# exclusions = [File.join("performance", "large.log")]
# s.files = `git ls-files`.split("\n") - exclusions


s.rubygems_version = "1.3.7"
s.files = `git ls-files`.split("\n")

exclusions = [File.join("performance", "large.log")]
s.files = `git ls-files`.split("\n") - exclusions

s.extra_rdoc_files = ["README.md", "History.txt"]
s.rdoc_options = ["--charset=UTF-8"]
s.require_path = "lib"
Expand Down

0 comments on commit a8801df

Please sign in to comment.