Sha256: efed64ba1b0d7ca4eb81856dddd797be104d75546b0ba3d0d9034b6fe57cb010
Contents?: true
Size: 1.29 KB
Versions: 2
Compression:
Stored size: 1.29 KB
Contents
module GGem; end module GGem::NameSet class Base attr_reader :variations, :name, :module_name, :ruby_name def expected_folders [ "", "lib", "lib/#{@ruby_name}", "test", "test/support", "test/system", "test/unit", "log", "tmp" ] end def expected_files [ ".ruby-version", ".gitignore", "Gemfile", "#{@name}.gemspec", "README.md", "LICENSE", "lib/#{@ruby_name}.rb", "lib/#{@ruby_name}/version.rb", "test/helper.rb", "test/support/factory.rb", "log/.keep", "test/system/.keep", "test/unit/.keep", "tmp/.keep", ] 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", "my__gem", "MyGem", "myGem", "My_Gem"] @name = "my_gem" @module_name = "MyGem" @ruby_name = "my_gem" end end class HyphenatedOther < Base def initialize @variations = ["my-gem"] @name = "my-gem" @module_name = "MyGem" @ruby_name = "my-gem" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.9.3 | test/support/name_set.rb |
ggem-1.9.2 | test/support/name_set.rb |