Sha256: 5b737c695966bfdfec451f9755bac051a2752e813da27c537629f9495b751a4f
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'bundler' class Love def self.share_for(args) by_gemname = args.include? 'by_gem' for_site = args.include? 'site' self.new by_gemname, for_site end attr_reader :by_gemname, :for_site, :gems, :authors def initialize(by_gemname, for_site) @by_gemname = by_gemname @for_site = for_site parse_gemfile share_love end def parse_gemfile Bundler.setup.specs.each do |spec| gem = Love::Gem.new(spec) @gems << gem @authors << gem.authors end @authors = @authors.flatten.uniq end def share_love if for_site Love::Site.create_file else Love::Gem.create_file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
share_some_love-0.0.5 | tmp/lib/love.rb |