Skip to content

Commit

Permalink
Merge pull request #27 from chef/slim
Browse files Browse the repository at this point in the history
Add rake tasks / gems from our other gems and stop skipping docs / tests in the gem
  • Loading branch information
tas50 authored Oct 26, 2018
2 parents a900711 + 63a7a4d commit eec8c20
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussion that's relevant]
StackOverflow discussions that are relevant]

### Check List

Expand Down
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
.autotest
coverage
.DS_Store
pkg
*/tags
*~

# you should check in your Gemfile.lock in applications, and not in gems
Gemfile.lock
Gemfile.local

# Do not check in the .bundle directory, or any of the files inside it. Those files are specific to each particular machine, and are used to persist installation options between runs of the bundle install command.
.bundle

# ignore some common Bundler 'binstubs' directory names
# http://gembundler.com/man/bundle-exec.1.html
b/
binstubs/

# RVM and RBENV ruby version files
.rbenv-version
.rvmrc

# Documentation
_site/*
.yardoc/
doc/
2 changes: 2 additions & 0 deletions CHANGES → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# win32-process Changelog

= 0.8.3 - 16-Dec-2015
* Fixed a declaration in the CreateProcessWithLoginW function prototype. Thanks
go to ksubrama for the spot.
Expand Down
21 changes: 20 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
source "https://rubygems.org"

gemspec
gemspec

group :docs do
gem "yard"
gem "redcarpet"
gem "github-markup"
end

group :debug do
gem "pry"
gem "pry-byebug"
gem "pry-stack_explorer"
gem "rb-readline"
end

instance_eval(ENV["GEMFILE_MOD"]) if ENV["GEMFILE_MOD"]

# If you want to load debugging tools into the bundle exec sandbox,
# add these additional dependencies into Gemfile.local
eval_gemfile(__FILE__ + ".local") if File.exist?(__FILE__ + ".local")
15 changes: 0 additions & 15 deletions MANIFEST

This file was deleted.

16 changes: 14 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "rubygems"
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rbconfig'
Expand Down Expand Up @@ -42,4 +40,18 @@ Rake::TestTask.new do |t|
t.warning = true
end

begin
require "yard"
YARD::Rake::YardocTask.new(:docs)
rescue LoadError
puts "yard is not available. bundle install first to make sure all dependencies are installed."
end

task :console do
require "irb"
require "irb/completion"
ARGV.clear
IRB.start
end

task :default => :test
4 changes: 2 additions & 2 deletions win32-process.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/chef/win32-process'
spec.summary = 'Adds and redefines several Process methods for MS Windows'
spec.test_files = Dir['test/*.rb']
spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(\..*|Gemfile|Rakefile|examples|test)}) }

spec.extra_rdoc_files = ['README.md', 'CHANGES', 'MANIFEST']
spec.extra_rdoc_files = ['README.md', 'CHANGELOG.md']

spec.required_ruby_version = '> 1.9.0'
spec.add_dependency('ffi', '>= 1.0.0')
Expand Down

0 comments on commit eec8c20

Please sign in to comment.