diff --git a/a.gemspec b/a.gemspec index b727146..93b9952 100644 --- a/a.gemspec +++ b/a.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.files += Dir["lib/commands/*.rb"] s.executables << "a" - #s.require_paths = ['lib'] + s.require_paths << 'lib' s.required_ruby_version = '>= 2.0.0' end \ No newline at end of file diff --git a/bin/a b/bin/a index 04cab26..f1a3588 100755 --- a/bin/a +++ b/bin/a @@ -35,9 +35,9 @@ EOT def main begin - require 'pathname' - require(File.join(File.dirname(__FILE__),'..','lib','commands',target.downcase)) - + #require 'pathname' + #require(File.join(File.dirname(__FILE__),'..','lib','commands',target.downcase)) + require File.join('commands',target.downcase) rescue LoadError puts "the #{target} not exist" diff --git a/lib/a.rb b/lib/a.rb index 02345e0..4c3a5e3 100644 --- a/lib/a.rb +++ b/lib/a.rb @@ -1 +1,7 @@ -# puts rand \ No newline at end of file +module A + class << self + def info + puts rand + end + end +end