@@ -7,29 +7,23 @@ Gem::Specification.new do |spec|
77 spec . version = AutomaticNamespaces ::VERSION
88 spec . authors = [ "Gary Passero" ]
99 spec . email = [ "gpassero@gmail.com" ]
10-
11- spec . summary = "TODO: Write a short summary, because RubyGems requires one."
12- spec . description = "TODO: Write a longer description or delete this line."
13- spec . homepage = "TODO: Put your gem's website or public repo URL here."
10+ spec . summary = "Modify autoloading to assume all files within a directory belong in a namespace"
11+ spec . homepage = "https://github.com/gap777/automatic_namespaces"
1412 spec . license = "MIT"
1513 spec . required_ruby_version = ">= 2.6.0"
1614
17- spec . metadata [ "allowed_push_host" ] = "TODO: Set to your gem server 'https://example.com'"
18-
19- spec . metadata [ "homepage_uri" ] = spec . homepage
20- spec . metadata [ "source_code_uri" ] = "TODO: Put your gem's public repo URL here."
21- spec . metadata [ "changelog_uri" ] = "TODO: Put your gem's CHANGELOG.md URL here."
15+ if spec . respond_to? ( :metadata )
16+ spec . metadata [ "homepage_uri" ] = spec . homepage
17+ spec . metadata [ "source_code_uri" ] = "https://github.com/alexevanczuk/my_example_gem"
18+ spec . metadata [ "changelog_uri" ] = "https://github.com/alexevanczuk/my_example_gem/releases"
19+ spec . metadata [ "allowed_push_host" ] = "https://rubygems.org"
20+ else
21+ raise "RubyGems 2.0 or newer is required to protect against " \
22+ "public gem pushes."
23+ end
2224
2325 # Specify which files should be added to the gem when it is released.
24- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25- spec . files = Dir . chdir ( __dir__ ) do
26- `git ls-files -z` . split ( "\x0 " ) . reject do |f |
27- ( f == __FILE__ ) || f . match ( %r{\A (?:(?:bin|test|spec|features)/|\. (?:git|travis|circleci)|appveyor)} )
28- end
29- end
30- spec . bindir = "exe"
31- spec . executables = spec . files . grep ( %r{\A exe/} ) { |f | File . basename ( f ) }
32- spec . require_paths = [ "lib" ]
26+ spec . files = Dir [ "README.md" , "lib/**/*" ]
3327
3428 # Uncomment to register a new dependency of your gem
3529 # spec.add_dependency "example-gem", "~> 1.0"
0 commit comments