diff --git a/.gitignore b/.gitignore index fd3001c..52a954f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ Gemfile.lock +bin/ coverage/* pkg/* tmp/* diff --git a/Guardfile b/Guardfile index c9b4ca4..bebd5c2 100644 --- a/Guardfile +++ b/Guardfile @@ -4,7 +4,7 @@ guard :bundler do end guard :rspec, cmd: 'rspec' do - watch('bin/ruby-beautify') { "spec" } + watch('exe/ruby-beautify') { "spec" } watch(%r{^spec/.+_spec\.rb$}) watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } watch('spec/spec_helper.rb') { "spec" } diff --git a/bin/ruby-beautify b/exe/ruby-beautify similarity index 100% rename from bin/ruby-beautify rename to exe/ruby-beautify diff --git a/ruby-beautify2.gemspec b/ruby-beautify2.gemspec index a2ff097..1e82e44 100644 --- a/ruby-beautify2.gemspec +++ b/ruby-beautify2.gemspec @@ -12,7 +12,8 @@ Gem::Specification.new do |s| s.description = "#{s.summary}. This is a maintained fork of the original ruby-beautify." s.files = Dir['lib/**/*', '*.gemspec', 'LICENSE*', 'README*'] - s.executables = Dir['bin/*'].map { |f| File.basename(f) } + s.executables = Dir['exe/*'].map { |f| File.basename(f) } + s.bindir = 'exe' s.required_ruby_version = '>= 2.0' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1fa056c..08eb345 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,4 +8,4 @@ require 'ruby-beautify' -BEAUTIFY_BIN = "#{Dir.pwd}/bin/ruby-beautify" +BEAUTIFY_BIN = "#{Dir.pwd}/exe/ruby-beautify"