Sha256: 78ecb775cdf39b955ab88a57a599395b3782aae34b7e21d68f5c0cfb2cc42219
Contents?: true
Size: 1.18 KB
Versions: 5
Compression:
Stored size: 1.18 KB
Contents
module GGem module NameSet class Base attr_reader :variations, :name, :module_name, :ruby_name def expected_folders [ '', 'lib', "lib/#{@ruby_name}", 'test' ] end def expected_files [ ".gitignore", "Gemfile", "#{@name}.gemspec", "Rakefile", "README.rdoc", "lib/#{@ruby_name}.rb", "lib/#{@ruby_name}/version.rb", "test/helper.rb", "test/irb.rb", "test/#{@ruby_name}_test.rb" ] end end class Simple < Base def initialize @variations = ['simple'] @name = 'simple' @module_name = 'Simple' @ruby_name = 'simple' end end class Underscored < Base def initialize @variations = ['my_gem'] @name = 'my_gem' @module_name = 'MyGem' @ruby_name = 'my_gem' end end class HyphenatedOther < Base def initialize @variations = ['my-gem', 'MyGem', 'myGem'] @name = 'my-gem' @module_name = 'MyGem' @ruby_name = 'my_gem' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.1.4 | test/name_set.rb |
ggem-1.1.3 | test/name_set.rb |
ggem-1.1.2 | test/name_set.rb |
ggem-1.1.1 | test/name_set.rb |
ggem-1.1.0 | test/name_set.rb |